Copyright (c) 1983 The Regents of the University of California. All rights reserved. %sccs.include.redist.roff% @(#)a.t 6.6 (Berkeley) 04/17/91.bp
\s+2I. Summary of facilities\s0
\\$1 \\$2
..
.nr H1 0
Kernel primitives
.h 1.1. "Process naming and protection
|
sethostid set UNIX host id |
gethostid get UNIX host id |
sethostname set UNIX host name |
gethostname get UNIX host name |
getpid get process id |
fork create new process |
exit terminate a process |
execve execute a different process |
getuid get user id |
geteuid get effective user id |
setreuid set real and effective user id's |
getgid get accounting group id |
getegid get effective accounting group id |
getgroups get access group set |
setregid set real and effective group id's |
setgroups set access group set |
getpgrp get process group |
setpgrp set process group |
|
.h 1.2 "Memory management
|
<sys/mman.h> memory management definitions |
sbrk change data section size |
sstk\(dg change stack section size |
.FS |
\(dg Not supported in 4.3BSD. |
.FE |
getpagesize get memory page size |
mmap\(dg map pages of memory |
msync\(dg flush modified mapped pages to filesystem |
munmap\(dg unmap memory |
mprotect\(dg change protection of pages |
madvise\(dg give memory management advice |
mincore\(dg determine core residency of pages |
msleep\(dg sleep on a lock |
mwakeup\(dg wakeup process sleeping on a lock |
|
.h 1.3 "Signals
|
<signal.h> signal definitions |
sigvec set handler for signal |
kill send signal to process |
killpgrp send signal to process group |
sigblock block set of signals |
sigsetmask restore set of blocked signals |
sigpause wait for signals |
sigstack set software stack for signals |
|
.h 1.4 "Timing and statistics
|
<sys/time.h> time-related definitions |
gettimeofday get current time and timezone |
settimeofday set current time and timezone |
getitimer read an interval timer |
setitimer get and set an interval timer |
profil profile process |
|
.h 1.5 "Descriptors
|
getdtablesize descriptor reference table size |
dup duplicate descriptor |
dup2 duplicate to specified index |
close close descriptor |
select multiplex input/output |
fcntl control descriptor options |
wrap\(dg wrap descriptor with protocol |
.FS |
\(dg Not supported in 4.3BSD. |
.FE |
|
.h 1.6 "Resource controls
|
<sys/resource.h> resource-related definitions |
getpriority get process priority |
setpriority set process priority |
getrusage get resource usage |
getrlimit get resource limitations |
setrlimit set resource limitations |
|
.h 1.7 "System operation support
|
mount mount a device file system |
swapon add a swap device |
umount umount a file system |
sync flush system caches |
reboot reboot a machine |
acct specify accounting file |
|
System facilities
.h 2.1 "Generic operations
|
read read data |
write write data |
<sys/uio.h> scatter-gather related definitions |
readv scattered data input |
writev gathered data output |
<sys/ioctl.h> standard control operations |
ioctl device control operation |
|
.h 2.2 "File system
Operations marked with a * exist in two forms: as shown,
operating on a file name, and operating on a file descriptor,
when the name is preceded with a ``f''.
|
<sys/file.h> file system definitions |
chdir change directory |
chroot change root directory |
mkdir make a directory |
rmdir remove a directory |
open open a new or existing file |
mknod make a special file |
portal\(dg make a portal entry |
unlink remove a link |
stat* return status for a file |
lstat returned status of link |
chown* change owner |
chmod* change mode |
utimes change access/modify times |
link make a hard link |
symlink make a symbolic link |
readlink read contents of symbolic link |
rename change name of file |
lseek reposition within file |
truncate* truncate file |
access determine accessibility |
flock lock a file |
|
.h 2.3 "Communications
|
<sys/socket.h> standard definitions |
socket create socket |
bind bind socket to name |
getsockname get socket name |
listen allow queuing of connections |
accept accept a connection |
connect connect to peer socket |
socketpair create pair of connected sockets |
sendto send data to named socket |
send send data to connected socket |
recvfrom receive data on unconnected socket |
recv receive data on connected socket |
sendmsg send gathered data and/or rights |
recvmsg receive scattered data and/or rights |
shutdown partially close full-duplex connection |
getsockopt get socket option |
setsockopt set socket option |
|
.h 2.4 "Terminals, block and character devices
.h 2.5 "Processes and kernel hooks