INDEX 1491
setreuid(), 175–176, 181, 786, 801
prototype, 175
setrlimit(), 755–757, 801
example of use, 759
prototype, 756
setrlimit64(), 105
setsid(), 426, 691, 693, 705, 768, 1377
example of use, 706, 770, 1387
prototype, 705
setsockopt(), 426, 1278–1279
example of use, 1222
prototype, 1278
setspent(), 161
prototype, 161
settimeofday(), 204–205, 801
diagram, 188
prototype, 204
set-UID bit. See set-user-ID permission bit
set-UID program. See set-user-ID program
setuid(),173–174, 181, 426, 801
prototype, 173
set-user-ID permission bit, 168, 292, 294,
295, 300, 564, 788, 800, 1432
set-user-ID program, 33, 129, 146, 147,
168–170, 266, 564, 569, 581, 615,
690, 718, 784, 854, 874, 875
core dump files and, 449
dropping and reacquiring
privileges, 784
dropping privileges permanently, 785
set-user-ID-root program, 169, 783
setutxent(), 657, 821
example of use, 824, 829
prototype, 821
SETVAL constant, 971, 972, 973, 987
example of use, 990
setvbuf(), 237–238, 532
prototype, 237
setxattr(), 286, 314–315, 329, 345
prototype, 314
Seventh Edition UNIX, 3
SFD_CLOEXEC constant, 472
SFD_NONBLOCK constant, 472
sh (Bourne shell), 25
shadow group file, 156
shadow password file, 155
retrieving records from, 161–162,
164–165
shared library, 35, 1439
compared with static library, 856
compatibility, 850
controlling symbol visibility, 867–870
creating, 837–838, 841–842
diagram, 842
dependency tree, 860
dynamic dependency list, 839
dynamic loading, 859–867
––export–dynamic linker option, 867
finalization (destructor) function,
872–873
finding at run time, 854
initialization (constructor) function,
872–873
installing, 847–849
interdependencies
diagram, 852
linker name, 845, 846
loading run-time, diagram, 843
major version, 844
minor version, 844
names, 846–848
diagram, 846
overview, 836–837
preloading, 873–874
real name, 840, 846
–rpath linker option, 851–854
soname, 840–843, 846–847
symbol resolution at run time, 854–856
upgrading, 850–851
using, 839–840
versions and naming conventions,
844–847
shared memory, 880. See also
memory mapping;
POSIX shared memory;
System V shared memory
shared object. See shared library
shared subtree, 267, 1445
shell, 24–25
shell command execution, 579–582
SHELL environment variable, 125, 154
example of use, 1392
shell layers, 1300
shell script, 25
SHM_DEST constant, 1013
SHM_HUGETLB constant, 800, 999
SHM_INFO constant, 952, 1015
shm_info structure, 1015
SHM_LOCK constant, 800, 1012, 1048, 1050
SHM_LOCKED constant, 1013
SHM_NORESERVE constant, 999
shm_open(), 801, 1058, 1109–1110
example of use, 1111, 1112, 1113
prototype, 1109
RLIMIT_NOFILE resource limit and, 762
SHM_R constant, 923
SHM_RDONLY constant, 1000, 1001
SHM_REMAP constant, 1000, 1001
SHM_RND constant, 999, 1001
SHM_STAT constant, 952