The Linux Programming Interface

(nextflipdebug5) #1

1480 INDEX


personality(), 1334
PGID (process group ID), 39, 613,
699, 705
Phillips, M., xxxix
physical block, 253
PID (process ID), 32, 114, 604, 608,
613, 705
pid_t data type, 65, 114, 115, 402, 405,
438, 458, 493, 496, 516, 523, 542,
544, 552, 599, 605, 699, 700, 701,
702, 704, 705, 708, 741, 742, 744,
747, 749, 750, 819, 948, 1012,
1125, 1354, 1385
Piggin, N., xxxix
pipe, 3, 214, 282, 392, 882, 883, 886,
889–906
atomicity of write(), 891
bidirectional, 890
capacity, 891
closing unused file descriptors, 894
connecting filters with, 899–902
creating, 892
diagram, 879, 890
poll() on, 1342
read() semantics, 917–918
select() on, 1342
to a shell command, 902–906
stdio buffering and, 906
used for process synchronization,
897–899
write() semantics, 918
pipe(), 286, 426, 801, 892, 1175
diagram, 892
example of use, 896, 898, 900
prototype, 892
RLIMIT_NOFILE resource limit and, 762
PIPE_BUF constant, 214, 891, 918,
1343, 1351
pipe_ls_wc.c, 900
pipe_sync.c, 897
pipe2(), 894
pivot_root(), 345, 801
Plauger (1992), 30, 1442
Plauger, P.J., 1442
Pluzhnikov, P., xxxix
PMMU (paged memory management
unit), 120
pmsg_create.c, 1069
pmsg_getattr.c, 1071
pmsg_receive.c, 1076
pmsg_send.c, 1074
pmsg_unlink.c, 1066
Podolsky, M., 1194
poll, 1326

poll(), 426, 673, 1337–1339, 1389, 1439
comparison with select(), 1344–1345
example of use, 1341
interrupted by signal handler, 444
interrupted by stop signal, 445
performance, 1365
problems with, 1346
prototype, 1337
POLL_ERR constant, 441, 1353
POLL_HUP constant, 441, 1343, 1353
POLL_IN constant, 440, 441, 1353
POLL_MSG constant, 440, 441, 1353
POLL_OUT constant, 440, 441, 1353
poll_pipes.c, 1340
POLL_PRI constant, 441, 1353
Pollard, J., xl
POLLERR constant, 1337, 1338, 1342,
1343, 1353
pollfd structure, 1337–1338
definition, 1337
POLLHUP constant, 1337, 1338, 1342,
1343, 1353
POLLIN constant, 1337, 1338, 1342,
1343, 1353
POLLMSG constant, 1337, 1338, 1353
POLLNVAL constant, 1337, 1338, 1339
Pollock, W., xli
POLLOUT constant, 1337, 1338, 1342,
1343, 1353
POLLPRI constant, 1337, 1338, 1343,
1353, 1389
POLLRDBAND constant, 1337, 1338
POLLRDHUP constant, 1337, 1338, 1339, 1343
POLLRDNORM constant, 1337, 1338, 1353
POLLWRBAND constant, 1337, 1338, 1353
POLLWRNORM constant, 1337, 1338, 1353
popen(), 902–903, 919
avoid in privileged programs, 788
diagram, 902
example of use, 905
prototype, 902
popen_glob.c, 904
port number, 64, 1188–1189
ephemeral, 1189, 1224, 1263
privileged, 800, 1189
registered, 1189
well-known, 1189
portability, xxxiv, 10, 61–68, 211, 1420
source code vs. binary, 19
Portable Application Standards
Committee (PASC), 11
portable filename character set, 28
Portable Operating System Interface
(POSIX), 11
position-independent code, 837, 838
Free download pdf