This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.0'.
[unix-history] / share / doc / ps1 / 06.sysman / a.t
CommitLineData
15637ed4
RG
1.\" Copyright (c) 1983 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
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. All advertising materials mentioning features or use of this software
13.\" must display the following acknowledgement:
14.\" This product includes software developed by the University of
15.\" California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\" may be used to endorse or promote products derived from this software
18.\" without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)a.t 6.6 (Berkeley) 4/17/91
33.\"
34.ds RH Summary of facilities
35.bp
36.SH
37\s+2I. Summary of facilities\s0
38.PP
39.de h
40.br
41.if n .ne 8
42\fB\\$1 \\$2\fP
43.br
44..
45.nr H1 0
46.NH
47Kernel primitives
48.LP
49.h 1.1. "Process naming and protection
50.in +5
51.TS
52lw(1.6i) aw(3i).
53sethostid set UNIX host id
54gethostid get UNIX host id
55sethostname set UNIX host name
56gethostname get UNIX host name
57getpid get process id
58fork create new process
59exit terminate a process
60execve execute a different process
61getuid get user id
62geteuid get effective user id
63setreuid set real and effective user id's
64getgid get accounting group id
65getegid get effective accounting group id
66getgroups get access group set
67setregid set real and effective group id's
68setgroups set access group set
69getpgrp get process group
70setpgrp set process group
71.TE
72.in -5
73.h 1.2 "Memory management
74.in +5
75.TS
76lw(1.6i) aw(3i).
77<sys/mman.h> memory management definitions
78sbrk change data section size
79sstk\(dg change stack section size
15637ed4
RG
80getpagesize get memory page size
81mmap\(dg map pages of memory
82msync\(dg flush modified mapped pages to filesystem
83munmap\(dg unmap memory
84mprotect\(dg change protection of pages
85madvise\(dg give memory management advice
86mincore\(dg determine core residency of pages
87msleep\(dg sleep on a lock
88mwakeup\(dg wakeup process sleeping on a lock
78ed81a3 89.FS
90\(dg Not supported in 4.3BSD.
91.FE
15637ed4
RG
92.TE
93.in -5
94.h 1.3 "Signals
95.in +5
96.TS
97lw(1.6i) aw(3i).
98<signal.h> signal definitions
99sigvec set handler for signal
100kill send signal to process
101killpgrp send signal to process group
102sigblock block set of signals
103sigsetmask restore set of blocked signals
104sigpause wait for signals
105sigstack set software stack for signals
106.TE
107.in -5
108.h 1.4 "Timing and statistics
109.in +5
110.TS
111lw(1.6i) aw(3i).
112<sys/time.h> time-related definitions
113gettimeofday get current time and timezone
114settimeofday set current time and timezone
115getitimer read an interval timer
116setitimer get and set an interval timer
117profil profile process
118.TE
119.in -5
120.h 1.5 "Descriptors
121.in +5
122.TS
123lw(1.6i) aw(3i).
124getdtablesize descriptor reference table size
125dup duplicate descriptor
126dup2 duplicate to specified index
127close close descriptor
128select multiplex input/output
129fcntl control descriptor options
130wrap\(dg wrap descriptor with protocol
131.FS
132\(dg Not supported in 4.3BSD.
133.FE
134.TE
135.in -5
136.h 1.6 "Resource controls
137.in +5
138.TS
139lw(1.6i) aw(3i).
140<sys/resource.h> resource-related definitions
141getpriority get process priority
142setpriority set process priority
143getrusage get resource usage
144getrlimit get resource limitations
145setrlimit set resource limitations
146.TE
147.in -5
148.h 1.7 "System operation support
149.in +5
150.TS
151lw(1.6i) aw(3i).
152mount mount a device file system
153swapon add a swap device
154umount umount a file system
155sync flush system caches
156reboot reboot a machine
157acct specify accounting file
158.TE
159.in -5
160.NH
161System facilities
162.LP
163.h 2.1 "Generic operations
164.in +5
165.TS
166lw(1.6i) aw(3i).
167read read data
168write write data
169<sys/uio.h> scatter-gather related definitions
170readv scattered data input
171writev gathered data output
172<sys/ioctl.h> standard control operations
173ioctl device control operation
174.TE
175.in -5
176.h 2.2 "File system
177.PP
178Operations marked with a * exist in two forms: as shown,
179operating on a file name, and operating on a file descriptor,
180when the name is preceded with a ``f''.
181.in +5
182.TS
183lw(1.6i) aw(3i).
184<sys/file.h> file system definitions
185chdir change directory
186chroot change root directory
187mkdir make a directory
188rmdir remove a directory
189open open a new or existing file
190mknod make a special file
191portal\(dg make a portal entry
192unlink remove a link
193stat* return status for a file
194lstat returned status of link
195chown* change owner
196chmod* change mode
197utimes change access/modify times
198link make a hard link
199symlink make a symbolic link
200readlink read contents of symbolic link
201rename change name of file
202lseek reposition within file
203truncate* truncate file
204access determine accessibility
205flock lock a file
206.TE
207.in -5
208.h 2.3 "Communications
209.in +5
210.TS
211lw(1.6i) aw(3i).
212<sys/socket.h> standard definitions
213socket create socket
214bind bind socket to name
215getsockname get socket name
216listen allow queuing of connections
217accept accept a connection
218connect connect to peer socket
219socketpair create pair of connected sockets
220sendto send data to named socket
221send send data to connected socket
222recvfrom receive data on unconnected socket
223recv receive data on connected socket
224sendmsg send gathered data and/or rights
225recvmsg receive scattered data and/or rights
226shutdown partially close full-duplex connection
227getsockopt get socket option
228setsockopt set socket option
229.TE
230.in -5
231.h 2.4 "Terminals, block and character devices
232.in +5
233.TS
234lw(1.6i) aw(3i).
235.TE
236.in -5
237.h 2.5 "Processes and kernel hooks
238.in +5
239.TS
240lw(1.6i) aw(3i).
241.TE
242.in -5