The Linux Programming Interface

(nextflipdebug5) #1
INDEX 1501

TCP/IP, 1179–1195, 1438, 1440, 1441,
1443, 1444, 1445
TCSADRAIN constant, 1293
TCSAFLUSH constant, 1293
example of use, 1301, 1311, 1313,
1314, 1315
TCSANOW constant, 1293
example of use, 1306, 1387
tcsendbreak(), 426, 718, 727, 1293,
1316–1318
prototype, 1318
tcsetattr(), 426, 718, 727, 1291–1293
example of use, 1301, 1306, 1311, 1313,
1314, 1315, 1387, 1392
prototype, 1291
tcsetpgrp(), 426, 708–709, 718, 727
prototype, 708
tee command, 87, 908
tee(), 1262
tell(), 82
telldir(), 355
TEMP_FAILURE_RETRY macro, 443
tempnam(), 109
temporary file, 108–109
termcap database, 1289, 1444
terminal, 392, 1289–1323
background process group. See
background process group
canonical mode, terminal I/O, 1290,
1305, 1307
disabling echoing of input, 1306
disconnect, 709
flags, 1301–1306
flow control, 1299
foreground process group. See
foreground process group
generating BREAK condition, 1318
identification, 1321
input queue, 1291
flushing, 1318
line control, 1317–1319
line speed, 1316–1317
noncanonical mode, terminal I/O,
1290, 1307–1309
obtaining device name associated with
file descriptor, 1321
output queue, 1291
flushing, 1318
poll() on, 1342
resuming output, 1296, 1319
retrieving and modifying attributes,
1291–1293
select() on, 1342
special character, 64, 1296–1301


stopping output, 1296, 1319
window size, 395, 1319–1321
termination signal, 599, 605
termination status, process, 32, 513,
531, 545
terminfo database, 1289, 1444
termios structure, 1291, 1292, 1296,
1301–1306, 1316
definition, 1292
example of use, 1293, 1301, 1306,
1310–1311, 1313
test_become_daemon.c, 771
test_tty_functions.c, 1313
text segment, 115, 118, 612, 1019, 1024
sharing between processes, 116, 521
TFD_CLOEXEC constant, 508
TFD_NONBLOCK constant, 508
TFD_TIMER_ABSTIME constant, 508
TGID (thread group ID), 604
tgkill(), 441, 684
Thomas, M., 1194
Thompson, K.L., 2, 4, 1443
Thomson, J., 1194
thread, 38, 225, 617–697
attributes, 623, 628
canceling. See thread cancellation
compared to process, 629
creating, 609, 622–623, 626–627
dealing with asynchronous signals, 685
detached, 627, 628
exec() and, 673, 686
exit() and, 687
fork() and, 673, 686
ID. See thread ID
implementation models, 687–689
interactions with signals, 682–683
joinable, 627
joining, 625–627
Linux implementation, 689–699
maximum number of, 682, 763
memory layout, diagram, 618
one-time initialization, 658–659
return value, 623, 625
sending a signal to, 684
signal mask, 683, 684
stack, 681–682
termination, 623–624
thread cancellation, 671–680
asynchronous cancelability, 680
cancelability state, 672
cancelability type, 672
cancellation point, 673–674
cleanup handler, 676–679
sending cancellation request, 671
testing for, 675
Free download pdf