1 .\" Copyright (c) 1983, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. Neither the name of the University nor the names of its contributors
13 .\" may be used to endorse or promote products derived from this software
14 .\" without specific prior written permission.
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 .\" @(#)a.t 8.1 (Berkeley) 6/8/93
30 .ds RH Summary of facilities
33 \s+2I. Summary of facilities\s0
45 .h 1.1. "Process naming and protection
49 sethostid set UNIX host id
50 gethostid get UNIX host id
51 sethostname set UNIX host name
52 gethostname get UNIX host name
54 fork create new process
55 exit terminate a process
56 execve execute a different process
58 geteuid get effective user id
59 setreuid set real and effective user id's
60 getgid get accounting group id
61 getegid get effective accounting group id
62 getgroups get access group set
63 setregid set real and effective group id's
64 setgroups set access group set
65 getpgrp get process group
66 setpgrp set process group
69 .h 1.2 "Memory management
73 <sys/mman.h> memory management definitions
74 sbrk change data section size
75 sstk\(dg change stack section size
76 getpagesize get memory page size
77 mmap\(dg map pages of memory
78 msync\(dg flush modified mapped pages to filesystem
79 munmap\(dg unmap memory
80 mprotect\(dg change protection of pages
81 madvise\(dg give memory management advice
82 mincore\(dg determine core residency of pages
83 msleep\(dg sleep on a lock
84 mwakeup\(dg wakeup process sleeping on a lock
87 \(dg Not supported in 4.3BSD.
94 <signal.h> signal definitions
95 sigvec set handler for signal
96 kill send signal to process
97 killpgrp send signal to process group
98 sigblock block set of signals
99 sigsetmask restore set of blocked signals
100 sigpause wait for signals
101 sigstack set software stack for signals
104 .h 1.4 "Timing and statistics
108 <sys/time.h> time-related definitions
109 gettimeofday get current time and timezone
110 settimeofday set current time and timezone
111 getitimer read an interval timer
112 setitimer get and set an interval timer
113 profil profile process
120 getdtablesize descriptor reference table size
121 dup duplicate descriptor
122 dup2 duplicate to specified index
123 close close descriptor
124 select multiplex input/output
125 fcntl control descriptor options
126 wrap\(dg wrap descriptor with protocol
129 \(dg Not supported in 4.3BSD.
132 .h 1.6 "Resource controls
136 <sys/resource.h> resource-related definitions
137 getpriority get process priority
138 setpriority set process priority
139 getrusage get resource usage
140 getrlimit get resource limitations
141 setrlimit set resource limitations
144 .h 1.7 "System operation support
148 mount mount a device file system
149 swapon add a swap device
150 umount umount a file system
151 sync flush system caches
152 reboot reboot a machine
153 acct specify accounting file
159 .h 2.1 "Generic operations
165 <sys/uio.h> scatter-gather related definitions
166 readv scattered data input
167 writev gathered data output
168 <sys/ioctl.h> standard control operations
169 ioctl device control operation
174 Operations marked with a * exist in two forms: as shown,
175 operating on a file name, and operating on a file descriptor,
176 when the name is preceded with a ``f''.
180 <sys/file.h> file system definitions
181 chdir change directory
182 chroot change root directory
183 mkdir make a directory
184 rmdir remove a directory
185 open open a new or existing file
186 mknod make a special file
187 portal\(dg make a portal entry
189 stat* return status for a file
190 lstat returned status of link
193 utimes change access/modify times
194 link make a hard link
195 symlink make a symbolic link
196 readlink read contents of symbolic link
197 rename change name of file
198 lseek reposition within file
199 truncate* truncate file
200 access determine accessibility
204 .h 2.3 "Communications
208 <sys/socket.h> standard definitions
210 bind bind socket to name
211 getsockname get socket name
212 listen allow queuing of connections
213 accept accept a connection
214 connect connect to peer socket
215 socketpair create pair of connected sockets
216 sendto send data to named socket
217 send send data to connected socket
218 recvfrom receive data on unconnected socket
219 recv receive data on connected socket
220 sendmsg send gathered data and/or rights
221 recvmsg receive scattered data and/or rights
222 shutdown partially close full-duplex connection
223 getsockopt get socket option
224 setsockopt set socket option
227 .h 2.4 "Terminals, block and character devices
230 .h 2.5 "Processes and kernel hooks