Annotation of sys/compat/ultrix/syscalls.master, Revision 1.1.1.1
1.1 nbrk 1: $OpenBSD: syscalls.master,v 1.11 2004/07/09 23:52:02 millert Exp $
2: ; $NetBSD: syscalls.master,v 1.15 1996/01/07 13:38:57 jonathan Exp $
3:
4: ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
5:
6: ; OpenBSD COMPAT_ULTRIX system call name/number "master" file.
7: ; (See syscalls.conf to see what it is processed into.)
8: ;
9: ; Fields: number type [type-dependent ...]
10: ; number system call number, must be in order
11: ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
12: ; the compatibility options defined in syscalls.conf.
13: ;
14: ; types:
15: ; STD always included
16: ; OBSOL obsolete, not included in system
17: ; UNIMPL unimplemented, not included in system
18: ; NODEF included, but don't define the syscall number
19: ; NOARGS included, but don't define the syscall args structure
20: ;
21: ; The compat options are defined in the syscalls.conf file, and the
22: ; compat option name is prefixed to the syscall name. Other than
23: ; that, they're like NODEF (for 'compat' options), or STD (for
24: ; 'libcompat' options).
25: ;
26: ; The type-dependent arguments are as follows:
27: ; For STD, NODEF, NOARGS, and compat syscalls:
28: ; { pseudo-proto } [alias]
29: ; For other syscalls:
30: ; [comment]
31: ;
32: ; #ifdef's, etc. may be included, and are copied to the output files.
33: ; #include's are copied to the syscall switch definition file only.
34:
35: #include <sys/param.h>
36: #include <sys/systm.h>
37: #include <sys/signal.h>
38: #include <sys/mount.h>
39: #include <sys/syscallargs.h>
40: #include <compat/ultrix/ultrix_syscallargs.h>
41:
42: 0 NOARGS { int sys_nosys(void); } syscall
43: 1 NOARGS { int sys_exit(int rval); }
44: 2 NOARGS { int sys_fork(void); }
45: 3 NOARGS { int sys_read(int fd, char *buf, u_int nbyte); }
46: 4 NOARGS { int sys_write(int fd, char *buf, u_int nbyte); }
47: 5 STD { int ultrix_sys_open(char *path, int flags, \
48: int mode); }
49: 6 NOARGS { int sys_close(int fd); }
50: 7 NOARGS { int compat_43_sys_wait(void); } owait
51: 8 STD { int ultrix_sys_creat(char *path, int mode); }
52: 9 NOARGS { int sys_link(char *path, char *link); }
53: 10 NOARGS { int sys_unlink(char *path); }
54: 11 STD { int ultrix_sys_execv(char *path, char **argp); }
55: 12 NOARGS { int sys_chdir(char *path); }
56: 13 OBSOL time
57: 14 STD { int ultrix_sys_mknod(char *path, int mode, int dev); }
58: 15 NOARGS { int sys_chmod(char *path, int mode); }
59: 16 NOARGS { int sys_lchown(char *path, int uid, int gid); }
60: 17 NOARGS { int sys_obreak(char *nsize); } break
61: 18 OBSOL stat
62: 19 NOARGS { long compat_43_sys_lseek(int fd, long offset, \
63: int whence); }
64: 20 NOARGS { pid_t sys_getpid(void); }
65: 21 STD { int ultrix_sys_mount(char *special, char *dir, \
66: int rdonly, int type, caddr_t data); }
67: 22 OBSOL sysV_unmount
68: 23 NOARGS { int sys_setuid(uid_t uid); }
69: 24 NOARGS { uid_t sys_getuid(void); }
70: 25 OBSOL v7 stime
71: 26 OBSOL v7 ptrace
72: 27 OBSOL v7 alarm
73: 28 OBSOL v7 fstat
74: 29 OBSOL v7 pause
75: 30 OBSOL v7 utime
76: 31 OBSOL v7 stty
77: 32 OBSOL v7 gtty
78: 33 STD { int ultrix_sys_access(char *path, int flags); }
79: 34 OBSOL v7 nice
80: 35 OBSOL v7 ftime
81: 36 NOARGS { int sys_sync(void); }
82: 37 NOARGS { int sys_kill(int pid, int signum); }
83: 38 STD { int ultrix_sys_stat(char *path, \
84: struct stat43 *ub); } stat43
85: 39 OBSOL v7 setpgrp
86: 40 STD { int ultrix_sys_lstat(char *path, \
87: struct stat43 *ub); } olstat
88: 41 NOARGS { int sys_dup(u_int fd); }
89: 42 NOARGS { int sys_opipe(void); }
90: 43 OBSOL v7 times
91: 44 NOARGS { int sys_profil(caddr_t samples, u_int size, \
92: u_int offset, u_int scale); }
93: 45 UNIMPL
94: 46 OBSOL v7 setgid
95: 47 NOARGS { gid_t sys_getgid(void); }
96: 48 UNIMPL ssig
97: 49 UNIMPL reserved for USG
98: 50 UNIMPL reserved for USG
99: #ifdef ACCOUNTING
100: 51 NOARGS { int sys_acct(char *path); }
101: #else
102: 51 UNIMPL acct
103: #endif
104: 52 UNIMPL
105: 53 UNIMPL syslock
106: 54 STD { int ultrix_sys_ioctl(int fd, u_long com, caddr_t data); }
107: 55 NOARGS { int sys_reboot(int opt); }
108: 56 UNIMPL v7 mpxchan
109: 57 NOARGS { int sys_symlink(char *path, char *link); }
110: 58 NOARGS { int sys_readlink(char *path, char *buf, int count); }
111: 59 STD { int ultrix_sys_execve(char *path, char **argp, \
112: char **envp); }
113: 60 NOARGS { int sys_umask(int newmask); }
114: 61 NOARGS { int sys_chroot(char *path); }
115: 62 NOARGS { int compat_43_sys_fstat(int fd, struct stat43 *sb); }
116: 63 UNIMPL
117: 64 NOARGS { int compat_43_sys_getpagesize(void); }
118: 65 UNIMPL mremap
119: 66 NOARGS { int sys_vfork(void); }
120: 67 OBSOL vread
121: 68 OBSOL vwrite
122: 69 NOARGS { int sys_sbrk(int incr); }
123: 70 NOARGS { int sys_sstk(int incr); }
124: 71 STD { int ultrix_sys_mmap(caddr_t addr, size_t len, \
125: int prot, u_int flags, int fd, long pos); }
126: 72 NOARGS { int sys_ovadvise(int anom); } vadvise
127: 73 NOARGS { int sys_munmap(caddr_t addr, size_t len); }
128: 74 NOARGS { int sys_mprotect(caddr_t addr, size_t len, \
129: int prot); }
130: 75 NOARGS { int sys_madvise(caddr_t addr, size_t len, \
131: int behav); }
132: 76 STD { int ultrix_sys_vhangup(void); }
133: 77 UNIMPL old vlimit
134: 78 NOARGS { int sys_mincore(caddr_t addr, int len, char *vec); }
135: 79 NOARGS { int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
136: 80 NOARGS { int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
137: 81 NOARGS { int sys_getpgrp(void); }
138: 82 STD { int ultrix_sys_setpgrp(int pid, int pgid); }
139: 83 NOARGS { int sys_setitimer(u_int which, \
140: struct itimerval *itv, struct itimerval *oitv); }
141: 84 STD { int ultrix_sys_wait3(int *status, int options, \
142: struct rusage *rusage);}
143: 85 NOARGS { int compat_25_sys_swapon(char *name); }
144: 86 NOARGS { int sys_getitimer(u_int which, \
145: struct itimerval *itv); }
146: 87 NOARGS { int compat_43_sys_gethostname(char *hostname, \
147: u_int len); }
148: 88 NOARGS { int compat_43_sys_sethostname(char *hostname, \
149: u_int len); }
150: 89 NOARGS { int compat_43_sys_getdtablesize(void); }
151: 90 NOARGS { int sys_dup2(u_int from, u_int to); }
152: 91 UNIMPL getdopt
153: 92 NOARGS { int sys_fcntl(int fd, int cmd, void *arg); }
154: 93 STD { int ultrix_sys_select(u_int nd, fd_set *in, fd_set *ou, \
155: fd_set *ex, struct timeval *tv); }
156: 94 UNIMPL setdopt
157: 95 NOARGS { int sys_fsync(int fd); }
158: 96 NOARGS { int sys_setpriority(int which, int who, int prio); }
159: 97 NOARGS { int sys_socket(int domain, int type, int protocol); }
160: 98 NOARGS { int sys_connect(int s, caddr_t name, int namelen); }
161: 99 NOARGS { int compat_43_sys_accept(int s, caddr_t name, \
162: int *anamelen); }
163: 100 NOARGS { int sys_getpriority(int which, int who); }
164: 101 NOARGS { int compat_43_sys_send(int s, caddr_t buf, int len, \
165: int flags); }
166: 102 NOARGS { int compat_43_sys_recv(int s, caddr_t buf, int len, \
167: int flags); }
168: 103 NOARGS { int sys_sigreturn(struct sigcontext *sigcntxp); }
169: 104 NOARGS { int sys_bind(int s, caddr_t name, int namelen); }
170: 105 STD { int ultrix_sys_setsockopt(int s, int level, \
171: int name, caddr_t val, int valsize); }
172: 106 NOARGS { int sys_listen(int s, int backlog); }
173: 107 UNIMPL vtimes
174: 108 NOARGS { int compat_43_sys_sigvec(int signum, \
175: struct sigvec *nsv, struct sigvec *osv); }
176: 109 NOARGS { int compat_43_sys_sigblock(int mask); }
177: 110 NOARGS { int compat_43_sys_sigsetmask(int mask); }
178: 111 NOARGS { int sys_sigsuspend(int mask); }
179: 112 NOARGS { int compat_43_sys_sigstack(struct sigstack *nss, \
180: struct sigstack *oss); }
181: 113 NOARGS { int compat_43_sys_recvmsg(int s, \
182: struct omsghdr *msg, int flags); }
183: 114 NOARGS { int compat_43_sys_sendmsg(int s, caddr_t msg, \
184: int flags); }
185: 115 OBSOL vtrace
186: 116 NOARGS { int sys_gettimeofday(struct timeval *tp, \
187: struct timezone *tzp); }
188: 117 NOARGS { int sys_getrusage(int who, struct rusage *rusage); }
189: 118 NOARGS { int sys_getsockopt(int s, int level, int name, \
190: caddr_t val, int *avalsize); }
191: 119 UNIMPL resuba
192: 120 NOARGS { int sys_readv(int fd, struct iovec *iovp, \
193: u_int iovcnt); }
194: 121 NOARGS { int sys_writev(int fd, struct iovec *iovp, \
195: u_int iovcnt); }
196: 122 NOARGS { int sys_settimeofday(struct timeval *tv, \
197: struct timezone *tzp); }
198: 123 NOARGS { int sys_fchown(int fd, int uid, int gid); }
199: 124 NOARGS { int sys_fchmod(int fd, int mode); }
200: 125 NOARGS { int compat_43_sys_recvfrom(int s, caddr_t buf, \
201: size_t len, int flags, caddr_t from, \
202: int *fromlenaddr); }
203: 126 NOARGS { int sys_setreuid(uid_t ruid, uid_t euid); }
204: 127 NOARGS { int sys_setregid(gid_t rgid, gid_t egid); }
205: 128 NOARGS { int sys_rename(char *from, char *to); }
206: 129 NOARGS { int compat_43_sys_truncate(char *path, long length); }
207: 130 NOARGS { int compat_43_sys_ftruncate(int fd, long length); }
208: 131 NOARGS { int sys_flock(int fd, int how); }
209: 132 UNIMPL
210: 133 NOARGS { int sys_sendto(int s, caddr_t buf, size_t len, \
211: int flags, caddr_t to, int tolen); }
212: 134 NOARGS { int sys_shutdown(int s, int how); }
213: 135 NOARGS { int sys_socketpair(int domain, int type, \
214: int protocol, int *rsv); }
215: 136 NOARGS { int sys_mkdir(char *path, int mode); }
216: 137 NOARGS { int sys_rmdir(char *path); }
217: 138 NOARGS { int sys_utimes(char *path, struct timeval *tptr); }
218: 139 STD { int ultrix_sys_sigcleanup(struct sigcontext *sigcntxp); }
219: 140 NOARGS { int sys_adjtime(struct timeval *delta, \
220: struct timeval *olddelta); }
221: 141 NOARGS { int compat_43_sys_getpeername(int fdes, caddr_t asa, \
222: int *alen); }
223: 142 NOARGS { int compat_43_sys_gethostid(void); }
224: 143 UNIMPL old sethostid
225: 144 NOARGS { int compat_43_sys_getrlimit(u_int which, \
226: struct orlimit *rlp); }
227: 145 NOARGS { int compat_43_sys_setrlimit(u_int which, \
228: struct orlimit *rlp); }
229: 146 NOARGS { int compat_43_sys_killpg(int pgid, int signum); }
230: 147 UNIMPL
231: 148 UNIMPL setquota
232: 149 UNIMPL quota /* needs to be nullop to boot on Ultrix root partition*/
233: 150 NOARGS { int compat_43_sys_getsockname(int fdes, caddr_t asa, \
234: int *alen); }
235: 151 UNIMPL sysmips /* 4 args */
236: 152 UNIMPL cacheflush /* 4 args */
237: 153 UNIMPL cachectl /* 3 args */
238: 154 UNIMPL
239: 155 UNIMPL atomic_op
240: 156 UNIMPL
241: 157 UNIMPL
242: #ifdef NFSSERVER
243: 158 STD { int ultrix_sys_nfssvc(int fd); }
244: #else
245: 158 UNIMPL
246: #endif
247: 159 NOARGS { int compat_43_sys_getdirentries(int fd, char *buf, \
248: u_int count, long *basep); }
249: 160 STD { int ultrix_sys_statfs(char *path, \
250: struct ultrix_statfs *buf); }
251: 161 STD { int ultrix_sys_fstatfs(int fd, \
252: struct ultrix_statfs *buf); }
253: 162 UNIMPL umount
254: #ifdef NFSCLIENT
255: 163 NOARGS { int async_daemon(void); }
256: 164 NOARGS { int sys_getfh(char *fname, fhandle_t *fhp); }
257: #else
258: 163 UNIMPL async_daemon
259: 164 UNIMPL getfh
260: #endif
261: 165 NOARGS { int compat_09_sys_getdomainname(char *domainname, \
262: int len); }
263: 166 NOARGS { int compat_09_sys_setdomainname(char *domainname, \
264: int len); }
265: 167 UNIMPL
266: 168 STD { int ultrix_sys_quotactl(int cmd, char *special, \
267: int uid, caddr_t addr); }
268: 169 STD { int ultrix_sys_exportfs(char *path, char *ex); }
269: 170 UNIMPL { int ultrix_sys_mount(char *special, char *dir, \
270: int rdonly, int type, caddr_t data); }
271: 171 UNIMPL 4 hdwconf
272: 172 UNIMPL msgctl
273: 173 UNIMPL msgget
274: 174 UNIMPL msgrcv
275: 175 UNIMPL msgsnd
276: 176 UNIMPL semctl
277: 177 UNIMPL semget
278: 178 UNIMPL semop
279: 179 STD { int ultrix_sys_uname(struct ultrix_utsname *name); }
280: 180 UNIMPL shmsys
281: 181 UNIMPL 0 plock
282: 182 UNIMPL 0 lockf
283: 183 STD { int ultrix_sys_ustat(int dev, \
284: struct ultrix_ustat *buf); }
285: 184 STD { int ultrix_sys_getmnt(int *start, \
286: struct ultrix_fs_data *buf, \
287: int bufsize, int mode, char *path); }
288: 185 UNIMPL notdef
289: 186 UNIMPL notdef
290: 187 STD { int ultrix_sys_sigpending(int *mask); }
291: 188 NOARGS { int sys_setsid(void); }
292: 189 STD { int ultrix_sys_waitpid(int pid, int *status, \
293: int options); }
294: 190 UNIMPL
295: 191 UNIMPL
296: 192 UNIMPL
297: 193 UNIMPL
298: 194 UNIMPL
299: 195 UNIMPL
300: 196 UNIMPL
301: 197 UNIMPL
302: 198 UNIMPL
303: 199 UNIMPL
304: 200 UNIMPL
305: 201 UNIMPL
306: 202 UNIMPL
307: 203 UNIMPL
308: 204 UNIMPL
309: 205 UNIMPL
310: 206 UNIMPL
311: 207 UNIMPL
312: 208 UNIMPL
313: 209 UNIMPL
314: 210 UNIMPL
315: 211 UNIMPL
316: 212 UNIMPL
317: 213 UNIMPL
318: 214 UNIMPL
319: 215 UNIMPL
320: 216 UNIMPL
321: 217 UNIMPL
322: 218 UNIMPL
323: 219 UNIMPL
324: 220 UNIMPL
325: 221 UNIMPL
326: 222 UNIMPL
327: 223 UNIMPL
328: 224 UNIMPL
329: 225 UNIMPL
330: 226 UNIMPL
331: 227 UNIMPL
332: 228 UNIMPL
333: 229 UNIMPL
334: 230 UNIMPL
335: 231 UNIMPL
336: 232 UNIMPL
337: 233 UNIMPL 1 utc_gettime
338: 234 UNIMPL 2 utc_adjtime
339: 235 UNIMPL
340: 236 UNIMPL
341: 237 UNIMPL
342: 238 UNIMPL
343: 239 UNIMPL
344: 240 UNIMPL
345: 241 UNIMPL
346: 242 UNIMPL
347: 243 UNIMPL
348: 244 UNIMPL
349: 245 UNIMPL
350: 246 UNIMPL
351: 247 UNIMPL
352: 248 UNIMPL
353: 249 UNIMPL
354: 250 UNIMPL
355: 251 UNIMPL
356: 252 UNIMPL audctl /*Make no-op for installation on Ultrix rootpartition?*/
357: 253 UNIMPL audgen /*Make no-op for installation on Ultrix rootpartition?*/
358: 254 UNIMPL startcpu
359: 255 UNIMPL stopcpu
360: 256 STD { int ultrix_sys_getsysinfo(unsigned op, char *buffer, \
361: unsigned nbytes, int *start, char *arg); }
362: 257 STD { int ultrix_sys_setsysinfo(unsigned op, char *buffer, \
363: unsigned nbytes, unsigned arg, unsigned flag); }
364:
CVSweb