INDEX 1489
SECBIT_NO_SETUID_FIXUP constant, 812, 813
SECBIT_NO_SETUID_FIXUP_LOCKED constant, 812
SECBIT_NOROOT constant, 812, 816
SECBIT_NOROOT_LOCKED constant, 812
secure programming, 783–796, 1437, 1445
Secure Sockets Layer (SSL), 1190
securebits flags, 615, 801, 812–813
SEEK_CUR constant, 82, 1126
SEEK_END constant, 82, 1126
seek_io.c, 84
SEEK_SET constant, 82, 1126
segment (virtual memory), 115
segmentation fault (error message). See
SIGSEGV signal
SEGV_ACCERR constant, 441
SEGV_MAPERR constant, 441
select(), 426, 673, 1331–1334, 1389, 1439
comparison with poll(), 1344–1345
example of use, 1335, 1393
interrupted by signal handler, 444
performance, 1365
problems with, 1346
prototype, 1331
select_mq.c, 1436
self_pipe.c, 1371
self-pipe trick, 1370–1372
SEM_A constant, 923
sem_close(), 1058, 1093
prototype, 1093
sem_destroy(), 1058, 1102–1103
prototype, 1103
SEM_FAILED constant, 1090, 1091
sem_getvalue(), 1058, 1097
example of use, 1098
prototype, 1097
SEM_INFO constant, 952, 993
sem_init(), 1058, 1100–1101
example of use, 1102
prototype, 1100
SEM_NSEMS_MAX constant, 1104
sem_open(), 1058, 1090–1091
example of use, 1093
prototype, 1090
sem_post(), 426, 1058, 1096
example of use, 1097, 1102
prototype, 1096
SEM_R constant, 923
SEM_STAT constant, 952
sem_t data type, 882, 1058, 1059, 1090,
1091, 1093, 1094, 1095, 1096,
1097, 1099, 1100, 1101, 1103
sem_timedwait(), 673, 1095–1096
interrupted by signal handler, 444
interrupted by stop signal, 445
prototype, 1096
sem_trywait(), 1095
prototype, 1095
SEM_UNDO constant, 986–988
example of use, 983, 990
sem_unlink(), 1058, 1093
example of use, 1094
prototype, 1093
SEM_VALUE_MAX constant, 1105
sem_wait(), 673, 1058, 1094–1095
example of use, 1095, 1101
interrupted by signal handler, 444
interrupted by stop signal, 445
prototype, 1094
semadj value (System V semaphore undo
value), 533, 607, 614, 619, 691,
693, 986–988, 991
SEMAEM limit, 991, 992
semaphore, 881. See also POSIX
semaphore; System V semaphore
sembuf structure, 978, 979, 980
definition, 979
example of use, 981
semctl(), 922, 969–972
example of use, 974, 975, 977, 990, 1004
prototype, 969
semget(), 922, 969, 991
example of use, 977, 1003, 1005
prototype, 969
semid_ds structure, 922, 970, 971,
972–973, 976
definition, 972
example of use, 973
seminfo structure, 970, 992, 993
SEMMNI limit, 991, 992
SEMMNS limit, 991, 992
SEMMNU limit, 991
SEMMSL limit, 991, 992
semncnt value, 972, 974, 985
semop(), 922, 971, 972, 973, 978–980, 991
example of use, 977, 981, 983, 990
interrupted by signal handler, 444
interrupted by stop signal, 445
prototype, 978
SEMOPM limit, 991, 992
sempid value, 972, 985
semtimedop(), 980
interrupted by signal handler, 444
interrupted by stop signal, 445
prototype, 980
SEMUME limit, 991
semun union, 969, 970
definition, 970
example of use, 973, 974, 976, 977
semun.h, 970
SEMVMX limit, 988, 991, 992