|
|
1.1 root 1: .\" Copyright (c) 1983 Regents of the University of California.
2: .\" All rights reserved. The Berkeley software License Agreement
3: .\" specifies the terms and conditions for redistribution.
4: .\"
5: .\" @(#)a.t 6.5 (Berkeley) 5/12/86
6: .\"
7: .ds RH Summary of facilities
8: .bp
9: .SH
10: \s+2I. Summary of facilities\s0
11: .PP
12: .de h
13: .br
14: .if n .ne 8
15: \fB\\$1 \\$2\fP
16: .br
17: ..
18: .nr H1 0
19: .NH
20: Kernel primitives
21: .LP
22: .h 1.1. "Process naming and protection
23: .in +5
24: .TS
25: lw(1.6i) aw(3i).
26: sethostid set UNIX host id
27: gethostid get UNIX host id
28: sethostname set UNIX host name
29: gethostname get UNIX host name
30: getpid get process id
31: fork create new process
32: exit terminate a process
33: execve execute a different process
34: getuid get user id
35: geteuid get effective user id
36: setreuid set real and effective user id's
37: getgid get accounting group id
38: getegid get effective accounting group id
39: getgroups get access group set
40: setregid set real and effective group id's
41: setgroups set access group set
42: getpgrp get process group
43: setpgrp set process group
44: .TE
45: .in -5
46: .h 1.2 "Memory management
47: .in +5
48: .TS
49: lw(1.6i) aw(3i).
50: <sys/mman.h> memory management definitions
51: sbrk change data section size
52: sstk\(dg change stack section size
53: .FS
54: \(dg Not supported in 4.3BSD.
55: .FE
56: getpagesize get memory page size
57: mmap\(dg map pages of memory
58: msync\(dg flush modified mapped pages to filesystem
59: munmap\(dg unmap memory
60: mprotect\(dg change protection of pages
61: madvise\(dg give memory management advice
62: mincore\(dg determine core residency of pages
63: msleep\(dg sleep on a lock
64: mwakeup\(dg wakeup process sleeping on a lock
65: .TE
66: .in -5
67: .h 1.3 "Signals
68: .in +5
69: .TS
70: lw(1.6i) aw(3i).
71: <signal.h> signal definitions
72: sigvec set handler for signal
73: kill send signal to process
74: killpgrp send signal to process group
75: sigblock block set of signals
76: sigsetmask restore set of blocked signals
77: sigpause wait for signals
78: sigstack set software stack for signals
79: .TE
80: .in -5
81: .h 1.4 "Timing and statistics
82: .in +5
83: .TS
84: lw(1.6i) aw(3i).
85: <sys/time.h> time-related definitions
86: gettimeofday get current time and timezone
87: settimeofday set current time and timezone
88: getitimer read an interval timer
89: setitimer get and set an interval timer
90: profil profile process
91: .TE
92: .in -5
93: .h 1.5 "Descriptors
94: .in +5
95: .TS
96: lw(1.6i) aw(3i).
97: getdtablesize descriptor reference table size
98: dup duplicate descriptor
99: dup2 duplicate to specified index
100: close close descriptor
101: select multiplex input/output
102: fcntl control descriptor options
103: wrap\(dg wrap descriptor with protocol
104: .FS
105: \(dg Not supported in 4.3BSD.
106: .FE
107: .TE
108: .in -5
109: .h 1.6 "Resource controls
110: .in +5
111: .TS
112: lw(1.6i) aw(3i).
113: <sys/resource.h> resource-related definitions
114: getpriority get process priority
115: setpriority set process priority
116: getrusage get resource usage
117: getrlimit get resource limitations
118: setrlimit set resource limitations
119: .TE
120: .in -5
121: .h 1.7 "System operation support
122: .in +5
123: .TS
124: lw(1.6i) aw(3i).
125: mount mount a device file system
126: swapon add a swap device
127: umount umount a file system
128: sync flush system caches
129: reboot reboot a machine
130: acct specify accounting file
131: .TE
132: .in -5
133: .NH
134: System facilities
135: .LP
136: .h 2.1 "Generic operations
137: .in +5
138: .TS
139: lw(1.6i) aw(3i).
140: read read data
141: write write data
142: <sys/uio.h> scatter-gather related definitions
143: readv scattered data input
144: writev gathered data output
145: <sys/ioctl.h> standard control operations
146: ioctl device control operation
147: .TE
148: .in -5
149: .h 2.2 "File system
150: .PP
151: Operations marked with a * exist in two forms: as shown,
152: operating on a file name, and operating on a file descriptor,
153: when the name is preceded with a ``f''.
154: .in +5
155: .TS
156: lw(1.6i) aw(3i).
157: <sys/file.h> file system definitions
158: chdir change directory
159: chroot change root directory
160: mkdir make a directory
161: rmdir remove a directory
162: open open a new or existing file
163: mknod make a special file
164: portal\(dg make a portal entry
165: unlink remove a link
166: stat* return status for a file
167: lstat returned status of link
168: chown* change owner
169: chmod* change mode
170: utimes change access/modify times
171: link make a hard link
172: symlink make a symbolic link
173: readlink read contents of symbolic link
174: rename change name of file
175: lseek reposition within file
176: truncate* truncate file
177: access determine accessibility
178: flock lock a file
179: .TE
180: .in -5
181: .h 2.3 "Communications
182: .in +5
183: .TS
184: lw(1.6i) aw(3i).
185: <sys/socket.h> standard definitions
186: socket create socket
187: bind bind socket to name
188: getsockname get socket name
189: listen allow queuing of connections
190: accept accept a connection
191: connect connect to peer socket
192: socketpair create pair of connected sockets
193: sendto send data to named socket
194: send send data to connected socket
195: recvfrom receive data on unconnected socket
196: recv receive data on connected socket
197: sendmsg send gathered data and/or rights
198: recvmsg receive scattered data and/or rights
199: shutdown partially close full-duplex connection
200: getsockopt get socket option
201: setsockopt set socket option
202: .TE
203: .in -5
204: .h 2.4 "Terminals, block and character devices
205: .in +5
206: .TS
207: lw(1.6i) aw(3i).
208: .TE
209: .in -5
210: .h 2.5 "Processes and kernel hooks
211: .in +5
212: .TS
213: lw(1.6i) aw(3i).
214: .TE
215: .in -5
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.