Remove so_gencnt and so_gen_t. The generation counter is not used any more.
[dragonfly.git] / sys / emulation / svr4 / syscalls.master
1  $DragonFly: src/sys/emulation/svr4/Attic/syscalls.master,v 1.3 2003/08/07 21:17:19 dillon Exp $
2 ; from: @(#)syscalls.master     8.1 (Berkeley) 7/19/93
3 ; $FreeBSD: src/sys/svr4/syscalls.master,v 1.6.2.2 2001/10/05 07:34:37 peter Exp $
4 ;
5 ; System call name/number master file (or rather, slave, from SVR4).
6 ; Processed to create svr4_sysent.c, svr4_syscalls.c and svr4_syscall.h.
7
8 ; Columns: number type nargs namespc name alt{name,tag,rtyp}/comments
9 ;       number  system call number, must be in order
10 ;       type    one of STD, OBSOL, UNIMPL, COMPAT
11 ;       namespc one of POSIX, BSD, STD, NOHIDE (I dont care :-) -Peter
12 ;       name    psuedo-prototype of syscall routine
13 ;               If one of the following alts is different, then all appear:
14 ;       altname name of system call if different
15 ;       alttag  name of args struct tag if different from [o]`name'"_args"
16 ;       altrtyp return type if not int (bogus - syscalls always return int)
17 ;               for UNIMPL/OBSOL, name continues with comments
18
19 ; types:
20 ;       STD     always included
21 ;       COMPAT  included on COMPAT #ifdef
22 ;       LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
23 ;       OBSOL   obsolete, not included in system, only specifies name
24 ;       UNIMPL  not implemented, placeholder only
25
26 ; #ifdef's, etc. may be included, and are copied to the output files.
27
28 #include <sys/types.h>
29 #include <sys/sysent.h>
30 #include <sys/sysproto.h>
31 #include <netinet/in.h>
32
33 #include "svr4.h"
34 #include "svr4_types.h"
35 #include "svr4_signal.h"
36 #include "svr4_proto.h"
37
38 0       UNIMPL  SVR4    unused
39 1       NOPROTO POSIX   { void sys_exit(int rval); } exit sys_exit_args void
40 2       NOPROTO POSIX   { int fork(void); }
41 3       NOPROTO POSIX   { int read(int fd, char *buf, u_int nbyte); }
42 4       NOPROTO SVR4    { int write(int fd, char *buf, u_int nbyte); }
43 5       STD     SVR4    { int svr4_sys_open(char *path, int flags, int mode); }
44 6       NOPROTO SVR4    { int close(int fd); }
45 7       STD     SVR4    { int svr4_sys_wait(int *status); }
46 8       STD     SVR4    { int svr4_sys_creat(char *path, int mode); }
47 9       NOPROTO SVR4    { int link(char *path, char *link); }
48 10      NOPROTO SVR4    { int unlink(char *path); }
49 11      STD     SVR4    { int svr4_sys_execv(char *path, char **argp); }
50 12      NOPROTO SVR4    { int chdir(char *path); }
51 13      STD     SVR4    { int svr4_sys_time(time_t *t); }
52 14      STD     SVR4    { int svr4_sys_mknod(char* path, int mode, int dev); }
53 15      NOPROTO SVR4    { int chmod(char *path, int mode); }
54 16      NOPROTO SVR4    { int chown(char *path, uid_t uid, gid_t gid); }
55 17      STD     SVR4    { int svr4_sys_break(caddr_t nsize); }
56 18      STD     SVR4    { int svr4_sys_stat(char* path, \
57                                 struct svr4_stat* ub); }
58 19      NOPROTO SVR4    { int lseek(int filedes, off_t *offset, int whence); }
59 20      NOPROTO SVR4    { pid_t getpid(void); }
60 21      UNIMPL  SVR4    old_mount
61 22      UNIMPL  SVR4    sysv_umount
62 23      NOPROTO SVR4    { int setuid(uid_t uid); }
63 24      NOPROTO SVR4    { uid_t getuid(void); }
64 25      UNIMPL  SVR4    stime
65 26      UNIMPL  SVR4    ptrace
66 27      STD     SVR4    { int svr4_sys_alarm(unsigned sec); }
67 28      STD     SVR4    { int svr4_sys_fstat(int fd, struct svr4_stat *sb); }
68 29      STD     SVR4    { int svr4_sys_pause(void); }
69 30      STD     SVR4    { int svr4_sys_utime(char *path, \
70                                 struct svr4_utimbuf *ubuf); }
71 31      UNIMPL  SVR4    stty
72 32      UNIMPL  SVR4    gtty
73 33      STD     SVR4    { int svr4_sys_access(char *path, int flags); }
74 34      STD     SVR4    { int svr4_sys_nice(int prio); }
75 35      UNIMPL  SVR4    statfs
76 36      NOPROTO SVR4    { int sync(void); }
77 37      STD     SVR4    { int svr4_sys_kill(int pid, int signum); }
78 38      UNIMPL  SVR4    fstatfs
79 39      STD     SVR4    { int svr4_sys_pgrpsys(int cmd, int pid, int pgid); }
80 40      UNIMPL  SVR4    xenix
81 41      NOPROTO SVR4    { int dup(u_int fd); }
82 42      NOPROTO SVR4    { int pipe(void); }
83 43      STD     SVR4    { int svr4_sys_times(struct tms *tp); }
84 44      UNIMPL  SVR4    profil
85 45      UNIMPL  SVR4    plock
86 46      NOPROTO SVR4    { int setgid(gid_t gid); }
87 47      NOPROTO SVR4    { gid_t getgid(void); }
88 48      STD     SVR4    { int svr4_sys_signal(int signum, \
89                                 svr4_sig_t handler); }
90 #if defined(NOTYET)
91 49      STD     SVR4    { int svr4_sys_msgsys(int what, int a2, int a3, \
92                                 int a4, int a5); }
93 #else
94 49      UNIMPL  SVR4    msgsys
95 #endif
96 50      STD     SVR4    { int svr4_sys_sysarch(int op, void *a1); }
97 51      UNIMPL  SVR4    acct
98 52      UNIMPL  SVR4    shmsys
99 53      UNIMPL  SVR4    semsys
100 54      STD     SVR4    { int svr4_sys_ioctl(int fd, u_long com, \
101                                 caddr_t data); }
102 55      UNIMPL  SVR4    uadmin
103 56      UNIMPL  SVR4    exch
104 57      STD     SVR4    { int svr4_sys_utssys(void *a1, void *a2, int sel, \
105                                 void *a3); }
106 58      NOPROTO SVR4    { int fsync(int fd); }
107 59      STD     SVR4    { int svr4_sys_execve(char *path, char **argp, \
108                                 char **envp); }
109 60      NOPROTO SVR4    { int umask(int newmask); }
110 61      NOPROTO SVR4    { int chroot(char *path); }
111 62      STD     SVR4    { int svr4_sys_fcntl(int fd, int cmd, char *arg); }
112 63      STD     SVR4    { int svr4_sys_ulimit(int cmd, long newlimit); }
113 64      UNIMPL  SVR4    reserved
114 65      UNIMPL  SVR4    reserved
115 66      UNIMPL  SVR4    reserved
116 67      UNIMPL  SVR4    reserved
117 68      UNIMPL  SVR4    reserved
118 69      UNIMPL  SVR4    reserved
119 70      UNIMPL  SVR4    advfs
120 71      UNIMPL  SVR4    unadvfs
121 72      UNIMPL  SVR4    rmount
122 73      UNIMPL  SVR4    rumount
123 74      UNIMPL  SVR4    rfstart
124 75      UNIMPL  SVR4    sigret
125 76      UNIMPL  SVR4    rdebug
126 77      UNIMPL  SVR4    rfstop
127 78      UNIMPL  SVR4    rfsys
128 79      NOPROTO SVR4    { int rmdir(char *path); }
129 80      NOPROTO SVR4    { int mkdir(char *path, int mode); }
130 81      STD     SVR4    { int svr4_sys_getdents(int fd, char *buf, \
131                                 int nbytes); }
132 82      UNIMPL  SVR4    libattach
133 83      UNIMPL  SVR4    libdetach
134 84      UNIMPL  SVR4    sysfs
135 85      STD     SVR4    { int svr4_sys_getmsg(int fd, struct svr4_strbuf *ctl, \
136                                 struct svr4_strbuf *dat, int *flags); }
137 86      STD     SVR4    { int svr4_sys_putmsg(int fd, struct svr4_strbuf *ctl, \
138                                 struct svr4_strbuf *dat, int flags); }
139 87      STD     SVR4    { int svr4_sys_poll(struct pollfd *fds, unsigned int nfds, \
140                                 int timeout); }
141 88      STD     SVR4    { int svr4_sys_lstat(char *path, \
142                                 struct svr4_stat *ub); }
143 89      NOPROTO SVR4    { int symlink(char *path, char *link); }
144 90      NOPROTO SVR4    { int readlink(char *path, char *buf, int count); }
145 91      NOPROTO SVR4    { int getgroups(u_int gidsetsize, gid_t *gidset); }
146 92      NOPROTO SVR4    { int setgroups(u_int gidsetsize, gid_t *gidset); }
147 93      NOPROTO SVR4    { int fchmod(int fd, int mode); }
148 94      NOPROTO SVR4    { int fchown(int fd, int uid, int gid); }
149 95      STD     SVR4    { int svr4_sys_sigprocmask(int how, \
150                             svr4_sigset_t *set, svr4_sigset_t *oset); }
151 96      STD     SVR4    { int svr4_sys_sigsuspend(svr4_sigset_t *ss); }
152 97      STD     SVR4    { int svr4_sys_sigaltstack( \
153                                 struct svr4_sigaltstack *nss, \
154                                 struct svr4_sigaltstack *oss); }
155 98      STD     SVR4    { int svr4_sys_sigaction(int signum, \
156                             struct svr4_sigaction *nsa, \
157                             struct svr4_sigaction *osa); }
158 99      STD     SVR4    { int svr4_sys_sigpending(int what, \
159                             svr4_sigset_t *mask); }
160 100     STD     SVR4    { int svr4_sys_context(int func, \
161                             struct svr4_ucontext *uc); }
162 101     UNIMPL  SVR4    evsys
163 102     UNIMPL  SVR4    evtrapret
164 103     STD     SVR4    { int svr4_sys_statvfs(char *path, \
165                                 struct svr4_statvfs *fs); }
166 104     STD     SVR4    { int svr4_sys_fstatvfs(int fd, \
167                                 struct svr4_statvfs *fs); }
168 105     UNIMPL  SVR4    whoknows
169 106     UNIMPL  SVR4    nfssvc
170 107     STD     SVR4    { int svr4_sys_waitsys(int grp, int id, \
171                                 union svr4_siginfo *info, int options); }
172 108     UNIMPL  SVR4    sigsendsys
173 109     STD     SVR4    { int svr4_sys_hrtsys(int cmd, int fun, int sub, \
174                                 void *rv1, void *rv2); }
175 110     UNIMPL  SVR4    acancel
176 111     UNIMPL  SVR4    async
177 112     UNIMPL  SVR4    priocntlsys
178 113     STD     SVR4    { int svr4_sys_pathconf(char *path, int name); }
179 114     UNIMPL  SVR4    mincore
180 115     STD     SVR4    { caddr_t svr4_sys_mmap( caddr_t addr, svr4_size_t len, \
181                                 int prot, int flags, int fd, svr4_off_t pos); }
182 116     NOPROTO SVR4    { int mprotect(void *addr, int len, int prot); }
183 117     NOPROTO SVR4    { int munmap(void *addr, int len); }
184 118     STD     SVR4    { int svr4_sys_fpathconf(int fd, int name); }
185 119     NOPROTO SVR4    { int vfork(void); }
186 120     NOPROTO SVR4    { int fchdir(int fd); }
187 121     NOPROTO SVR4    { int readv(int fd, struct iovec *iovp, \
188                                 u_int iovcnt); }
189 122     NOPROTO SVR4    { int writev(int fd, struct iovec *iovp, \
190                                 u_int iovcnt); }
191 123     STD     SVR4    { int svr4_sys_xstat(int two, char *path, \
192                             struct svr4_xstat *ub); }
193 124     STD     SVR4    { int svr4_sys_lxstat(int two, char *path, \
194                                 struct svr4_xstat *ub); }
195 125     STD     SVR4    { int svr4_sys_fxstat(int two, int fd, \
196                                 struct svr4_xstat *sb); }
197 126     STD     SVR4    { int svr4_sys_xmknod(int two, char *path, \
198                                 svr4_mode_t mode, svr4_dev_t dev); }
199 127     UNIMPL  SVR4    clocal
200 128     STD     SVR4    { int svr4_sys_setrlimit(int which, \
201                                 const struct svr4_rlimit *rlp); }
202 129     STD     SVR4    { int svr4_sys_getrlimit(int which, \
203                                 struct svr4_rlimit *rlp); }
204 130     NOPROTO SVR4    { int lchown(char *path, uid_t uid, gid_t gid); }
205 131     STD     SVR4    { int svr4_sys_memcntl(void * addr, \
206                                 svr4_size_t len, int cmd, void * arg, \
207                                 int attr, int mask); }
208 132     UNIMPL  SVR4    getpmsg
209 133     UNIMPL  SVR4    putpmsg
210 134     NOPROTO SVR4    { int rename(char *from, char *to); }
211 135     STD     SVR4    { int svr4_sys_uname(struct svr4_utsname* name, \
212                                 int dummy); }
213 136     NOPROTO SVR4    { int setegid(gid_t egid); }
214 137     STD     SVR4    { int svr4_sys_sysconfig(int name); }
215 138     NOPROTO SVR4    { int adjtime(struct timeval *delta, \
216                                 struct timeval *olddelta); }
217 139     STD     SVR4    { long svr4_sys_systeminfo(int what, char *buf, \
218                                 long len); }
219 140     UNIMPL  SVR4    notused
220 141     NOPROTO SVR4    { int seteuid(uid_t euid); }
221 142     UNIMPL  SVR4    vtrace
222 ; fork1
223 143     UNIMPL SVR4     { int fork(void); } 
224 144     UNIMPL  SVR4    sigtimedwait
225 145     UNIMPL  SVR4    lwp_info
226 146     UNIMPL  SVR4    yield
227 147     UNIMPL  SVR4    lwp_sema_wait
228 148     UNIMPL  SVR4    lwp_sema_post
229 149     UNIMPL  SVR4    lwp_sema_trywait
230 150     UNIMPL  SVR4    notused
231 151     UNIMPL  SVR4    notused
232 152     UNIMPL  SVR4    modctl
233 153     STD     SVR4    { int svr4_sys_fchroot(int fd); }
234 154     STD     SVR4    { int svr4_sys_utimes(char *path, \
235                                 struct timeval *tptr); }
236 155     STD     SVR4    { int svr4_sys_vhangup(void); }
237 156     STD     SVR4    { int svr4_sys_gettimeofday(struct timeval *tp); }
238 157     NOPROTO SVR4    { int getitimer(u_int which, struct itimerval *itv); }
239 158     NOPROTO SVR4    { int setitimer(u_int which, struct itimerval *itv, \
240                                         struct itimerval *oitv); }
241 159     UNIMPL  SVR4    lwp_create
242 160     UNIMPL  SVR4    lwp_exit
243 161     UNIMPL  SVR4    lwp_suspend
244 162     UNIMPL  SVR4    lwp_continue
245 163     UNIMPL  SVR4    lwp_kill
246 164     UNIMPL  SVR4    lwp_self
247 165     UNIMPL  SVR4    lwp_getprivate
248 166     UNIMPL  SVR4    lwp_setprivate
249 167     UNIMPL  SVR4    lwp_wait
250 168     UNIMPL  SVR4    lwp_mutex_unlock
251 169     UNIMPL  SVR4    lwp_mutex_lock
252 170     UNIMPL  SVR4    lwp_cond_wait
253 171     UNIMPL  SVR4    lwp_cond_signal
254 172     UNIMPL  SVR4    lwp_cond_broadcast
255 173     UNIMPL  SVR4    { ssize_t svr4_sys_pread(int fd, void *buf, \
256                                 size_t nbyte, svr4_off_t off); }
257 174     UNIMPL  SVR4    { ssize_t svr4_sys_pwrite(int fd, const void *buf, \
258                                 size_t nbyte, svr4_off_t off); }
259 175     STD     SVR4    { svr4_off64_t svr4_sys_llseek(int fd, long offset1, \
260                                 long offset2, int whence); }
261 176     UNIMPL  SVR4    inst_sync
262 177     UNIMPL  SVR4    whoknows
263 178     UNIMPL  SVR4    kaio
264 179     UNIMPL  SVR4    whoknows
265 180     UNIMPL  SVR4    whoknows
266 181     UNIMPL  SVR4    whoknows
267 182     UNIMPL  SVR4    whoknows
268 183     UNIMPL  SVR4    whoknows
269 184     UNIMPL  SVR4    tsolsys
270 185     STD     SVR4    { int svr4_sys_acl(char *path, int cmd, int num, \
271                             struct svr4_aclent *buf); }
272 186     STD     SVR4    { int svr4_sys_auditsys(int code, int a1, int a2, \
273                                 int a3, int a4, int a5); }
274 187     UNIMPL  SVR4    processor_bind
275 188     UNIMPL  SVR4    processor_info
276 189     UNIMPL  SVR4    p_online
277 190     UNIMPL  SVR4    sigqueue
278 191     UNIMPL  SVR4    clock_gettime
279 192     UNIMPL  SVR4    clock_settime
280 193     UNIMPL  SVR4    clock_getres
281 194     UNIMPL  SVR4    timer_create
282 195     UNIMPL  SVR4    timer_delete
283 196     UNIMPL  SVR4    timer_settime
284 197     UNIMPL  SVR4    timer_gettime
285 198     UNIMPL  SVR4    timer_overrun
286 199     NOPROTO SVR4    { int nanosleep(const struct timespec *rqtp, \
287                                 struct timespec *rmtp); }
288 200     STD     SVR4    { int svr4_sys_facl(int fd, int cmd, int num, \
289                             struct svr4_aclent *buf); }
290 201     UNIMPL  SVR4    door
291 202     NOPROTO SVR4    { int setreuid(int ruid, int euid); }
292 203     NOPROTO SVR4    { int setregid(int rgid, int egid); }
293 204     UNIMPL  SVR4    install_utrap
294 205     UNIMPL  SVR4    signotify
295 206     UNIMPL  SVR4    schedctl
296 207     UNIMPL  SVR4    pset
297 208     UNIMPL  SVR4    whoknows
298 209     STD     SVR4    { int svr4_sys_resolvepath(const char *path, \
299                                 char *buf, size_t bufsiz); }
300 210     UNIMPL  SVR4    signotifywait
301 211     UNIMPL  SVR4    lwp_sigredirect
302 212     UNIMPL  SVR4    lwp_alarm
303 213     STD     SVR4    { int svr4_sys_getdents64(int fd, \
304                                 struct svr4_dirent64 *dp, \
305                                 int nbytes); }
306 ;213    UNIMPL  SVR4    getdents64
307 214     STD     SVR4    { caddr_t svr4_sys_mmap64(void *addr, \
308                                 svr4_size_t len, int prot, int flags, int fd, \
309                                 svr4_off64_t pos); }
310 215     STD     SVR4    { int svr4_sys_stat64(char *path, \
311                                 struct svr4_stat64 *sb); }
312 216     STD     SVR4    { int svr4_sys_lstat64(char *path, \
313                                 struct svr4_stat64 *sb); }
314 217     STD     SVR4    { int svr4_sys_fstat64(int fd, \
315                                 struct svr4_stat64 *sb); }
316 218     STD     SVR4    { int svr4_sys_statvfs64(char *path, \
317                                 struct svr4_statvfs64 *fs); }
318 219     STD     SVR4    { int svr4_sys_fstatvfs64(int fd, \
319                                 struct svr4_statvfs64 *fs); }
320 220     STD     SVR4    { int svr4_sys_setrlimit64(int which, \
321                                 const struct svr4_rlimit64 *rlp); }
322 221     STD     SVR4    { int svr4_sys_getrlimit64(int which, \
323                                 struct svr4_rlimit64 *rlp); }
324 222     UNIMPL  SVR4    pread64
325 223     UNIMPL  SVR4    pwrite64
326 224     STD     SVR4    { int svr4_sys_creat64(char *path, int mode); }
327 225     STD     SVR4    { int svr4_sys_open64(char *path, int flags, \
328                                 int mode); }
329 226     UNIMPL  SVR4    rpcsys
330 227     UNIMPL  SVR4    whoknows
331 228     UNIMPL  SVR4    whoknows
332 229     UNIMPL  SVR4    whoknows
333 230     STD     SVR4    { int svr4_sys_socket(int domain, int type, \
334                                 int protocol); }
335 231     NOPROTO SVR4    { int socketpair(int domain, int type, \
336                                 int protocol, int *rsv); }
337 232     NOPROTO SVR4    { int bind(int s, const struct sockaddr *name, \
338                                 int namelen); }
339 233     NOPROTO SVR4    { int listen(int s, int backlog); }
340 234     NOPROTO SVR4    { int accept(int s, struct sockaddr *name, \
341                                 int *anamelen); }
342 235     NOPROTO SVR4    { int connect(int s, const struct sockaddr *name, \
343                                 int namelen); }
344 236     NOPROTO SVR4    { int shutdown(int s, int how); }
345 237     STD     SVR4    { int svr4_sys_recv(int s, caddr_t buf, int len, int flags); }
346 238     NOPROTO SVR4    { ssize_t recvfrom(int s, void *buf, size_t len, \
347                                 int flags, struct sockaddr *from, \
348                                 int *fromlenaddr); }
349 239     NOPROTO SVR4    { ssize_t recvmsg(int s, struct msghdr *msg, \
350                                 int flags); }
351 240     STD     SVR4    { int svr4_sys_send(int s, caddr_t buf, int len, int flags); }
352 241     NOPROTO SVR4    { ssize_t sendmsg(int s, const struct msghdr *msg, \
353                                 int flags); }
354 242     STD     SVR4    { ssize_t svr4_sys_sendto(int s, void *buf, \
355                                 size_t len, int flags, \
356                                 struct sockaddr *to, int tolen); }
357 243     NOPROTO SVR4    { int getpeername(int fdes, struct sockaddr *asa, \
358                                 int *alen); }
359 244     NOPROTO SVR4    { int getsockname(int fdes, struct sockaddr *asa, \
360                                 int *alen); }
361 245     NOPROTO SVR4    { int getsockopt(int s, int level, int name, \
362                                 void *val, int *avalsize); }
363 246     NOPROTO SVR4    { int setsockopt(int s, int level, int name, \
364                                 const void *val, int valsize); }
365 247     UNIMPL  SVR4    sockconfig
366 248     UNIMPL  SVR4    { int ntp_gettime(struct ntptimeval *ntvp); }
367 249     UNIMPL  SVR4    { int ntp_adjtime(struct timex *tp); }