The Linux Programming Interface

(nextflipdebug5) #1

1502 INDEX


thread group, 225, 604, 610
diagram, 605
thread group ID, 604
thread group leader, 605
diagram, 605
thread ID (kernel), 605
thread ID (Pthreads), 623, 624
comparing IDs, 624
thread of execution, 422
thread_cancel.c, 674
thread_cleanup.c, 678
thread_incr.c, 632
thread_incr_mutex.c, 636
thread_incr_psem.c, 1101
thread_multijoin.c, 649
thread-local storage, 668–669
thread-safe function, 655
thread-specific data, 659–668
implementation, 662–663
three-way handshake, TCP, 1270
diagram, 1272
TID (thread ID, kernel), 605
Tilk, K., xl
time command, 206
time slice, 733
TIME terminal setting, 1307
time(), 187, 426
diagram, 188
example of use, 192
prototype, 187
time_t data type, 65, 186, 187, 188, 189,
190, 280, 283, 287, 290, 471, 480,
488, 498, 747, 830, 948, 972,
1012, 1333
converting to and from broken-down
time, 189–190
converting to printable form, 188–189
TIME_WAIT state (TCP), 1269,
1274–1275
assassination, 1275
timed_read.c, 486
timeout on blocking system call, 486–487
timer
high-resolution, 485
POSIX. See POSIX timer
profiling, 392, 480
real, 390, 480
virtual, 395, 480
timer overrun, 495, 503–504, 505
TIMER_ABSTIME constant, 494, 498
timer_create(), 495–497
example of use, 501, 507
prototype, 495
timer_delete(), 495, 499
prototype, 499

timer_getoverrun(), 426
example of use, 501, 506
prototype, 504
timer_gettime(), 426, 499
prototype, 499
timer_settime(), 426, 495, 498–499
example of use, 501, 507
prototype, 498
timer_t data type, 65, 494, 496, 498,
499, 504
timerfd timers, 507–511, 615
timerfd_create(), 508
example of use, 511
prototype, 508
timerfd_gettime(), 509
prototype, 509
timerfd_settime(), 508–509
example of use, 511
prototype, 508
times(), 206–207, 210, 426, 560, 619, 691,
694, 755
example of use, 209
prototype, 206
timespec structure, 289, 290, 471, 488, 491,
492, 493, 498, 645, 747, 980,
1077, 1096, 1369
definition, 290, 471, 488, 498, 747
example of use, 290, 490
timeval structure, 186, 188, 204, 205, 288,
289, 480, 754, 819, 1331, 1333
definition, 186, 480, 1333
timezone, 197–200
specifying to a program, 198–200
timezone structure, 186, 187, 204
timezone variable, 198
TIOCCONS constant, 801
TIOCGPGRP constant, 709
TIOCGSID constant, 706
TIOCGWINSZ constant, 1319, 1392, 1395
example of use, 1320
TIOCNOTTY constant, 692, 707
TIOCPKT constant, 1389
TIOCSCTTY constant, 707, 1385
example of use, 1387
TIOCSPGRP constant, 709
TIOCSWINSZ constant, 1320, 1395
example of use, 1387
tkill(), 441
TLI (Transport Layer Interface), 16
tlpi_hdr.h, 51
tm structure, 188, 189, 190, 191, 193,
195, 196
definition, 189
example of use, 192
Free download pdf