NetBSD/sys/compat/sunos/syscalls.master

277 lines
11 KiB
Plaintext

$NetBSD: syscalls.master,v 1.24 1994/12/06 00:17:06 deraadt Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
; NetBSD COMPAT_SUNOS system call name/number "master" file.
; (See syscalls.conf to see what it is processed into.)
;
; Fields: number type [type-dependent ...]
; number system call number, must be in order
; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
; the compatibility options defined in syscalls.conf.
;
; types:
; STD always included
; OBSOL obsolete, not included in system
; UNIMPL unimplemented, not included in system
; NODEF included, but don't define the syscall number
; NOARGS included, but don't define the syscall args structure
;
; The compat options are defined in the syscalls.conf file, and the
; compat option name is prefixed to the syscall name. Other than
; that, they're like NODEF (for 'compat' options), or STD (for
; 'libcompat' options).
;
; The type-dependent arguments are as follows:
; For STD, NODEF, NOARGS, and compat syscalls:
; { pseudo-proto } [alias]
; For other syscalls:
; [comment]
;
; #ifdef's, etc. may be included, and are copied to the output files.
; #include's are copied to the syscall switch definition file only.
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/signal.h>
#include <sys/mount.h>
#include <sys/syscallargs.h>
#include <compat/sunos/sunos.h>
#include <compat/sunos/sunos_syscallargs.h>
0 NOARGS { int nosys(void); } syscall
1 NOARGS { int exit(int rval); }
2 NOARGS { int fork(void); }
3 NOARGS { int read(int fd, char *buf, u_int nbyte); }
4 NOARGS { int write(int fd, char *buf, u_int nbyte); }
5 STD { int sunos_open(char *path, int flags, int mode); }
6 NOARGS { int close(int fd); }
7 STD { int sunos_wait4(int pid, int *status, int options, \
struct rusage *rusage); }
8 STD { int sunos_creat(char *path, int mode); }
9 NOARGS { int link(char *path, char *link); }
10 NOARGS { int unlink(char *path); }
11 STD { int sunos_execv(char *path, char **argp); }
12 NOARGS { int chdir(char *path); }
13 OBSOL time
14 STD { int sunos_mknod(char *path, int mode, int dev); }
15 NOARGS { int chmod(char *path, int mode); }
16 NOARGS { int chown(char *path, int uid, int gid); }
17 NOARGS { int obreak(char *nsize); } break
18 OBSOL stat
19 NOARGS { long compat_43_lseek(int fd, long offset, int whence); }
20 NOARGS { pid_t getpid(void); }
21 OBSOL sunos_old_mount
22 UNIMPL System V umount
23 NOARGS { int setuid(uid_t uid); }
24 NOARGS { uid_t getuid(void); }
25 UNIMPL sunos_stime
26 STD { long sunos_ptrace(int req, int pid, char *addr, \
int data, char *addr2); }
27 UNIMPL sunos_alarm
28 UNIMPL sunos_fstat
29 UNIMPL sunos_pause
30 UNIMPL sunos_utime
31 UNIMPL sunos_stty
32 UNIMPL sunos_gtty
33 NOARGS { int access(char *path, int flags); }
34 UNIMPL sunos_nice
35 UNIMPL sunos_ftime
36 NOARGS { int sync(void); }
37 NOARGS { int kill(int pid, int signum); }
38 NOARGS { int compat_43_stat(char *path, struct ostat *ub); }
39 UNIMPL sunos_setpgrp
40 NOARGS { int compat_43_lstat(char *path, struct ostat *ub); }
41 NOARGS { int dup(u_int fd); }
42 NOARGS { int pipe(void); }
43 UNIMPL sunos_times
44 NOARGS { int profil(caddr_t samples, u_int size, \
u_int offset, u_int scale); }
45 UNIMPL
46 NOARGS { int setgid(uid_t gid); }
47 NOARGS { gid_t getgid(void); }
48 UNIMPL sunos_ssig
49 UNIMPL reserved for USG
50 UNIMPL reserved for USG
51 NOARGS { int acct(char *path); }
52 UNIMPL
53 STD { int sunos_mctl(caddr_t addr, int len, int func, \
void *arg); }
54 STD { int sunos_ioctl(int fd, u_long com, caddr_t data); }
55 NOARGS { int reboot(int opt); }
56 OBSOL sunos_owait3
57 NOARGS { int symlink(char *path, char *link); }
58 NOARGS { int readlink(char *path, char *buf, int count); }
59 NOARGS { int execve(char *path, char **argp, char **envp); }
60 NOARGS { int umask(int newmask); }
61 NOARGS { int chroot(char *path); }
62 NOARGS { int compat_43_fstat(int fd, struct ostat *sb); }
63 UNIMPL
64 NOARGS { int compat_43_getpagesize(void); }
65 STD { int sunos_omsync(caddr_t addr, int len, int flags); }
66 NOARGS { int vfork(void); }
67 OBSOL vread
68 OBSOL vwrite
69 NOARGS { int sbrk(int incr); }
70 NOARGS { int sstk(int incr); }
71 STD { int sunos_mmap(caddr_t addr, int len, int prot, \
u_int flags, int fd, long pos); }
72 NOARGS { int ovadvise(int anom); } vadvise
73 NOARGS { int munmap(caddr_t addr, int len); }
74 NOARGS { int mprotect(caddr_t addr, int len, int prot); }
75 NOARGS { int madvise(caddr_t addr, int len, int behav); }
76 STD { int sunos_vhangup(void); }
77 UNIMPL vlimit
78 NOARGS { int mincore(caddr_t addr, int len, char *vec); }
79 NOARGS { int getgroups(u_int gidsetsize, gid_t *gidset); }
80 NOARGS { int setgroups(u_int gidsetsize, gid_t *gidset); }
81 NOARGS { int getpgrp(void); }
82 STD { int sunos_setpgid(int pid, int pgid); }
83 NOARGS { int setitimer(u_int which, struct itimerval *itv, \
struct itimerval *oitv); }
84 UNIMPL { int sunos_wait(void); }
85 NOARGS { int swapon(char *name); }
86 NOARGS { int getitimer(u_int which, struct itimerval *itv); }
87 NOARGS { int compat_43_gethostname(char *hostname, u_int len); }
88 NOARGS { int compat_43_sethostname(char *hostname, u_int len); }
89 NOARGS { int compat_43_getdtablesize(void); }
90 NOARGS { int dup2(u_int from, u_int to); }
91 UNIMPL getdopt
92 NOARGS { int fcntl(int fd, int cmd, void *arg); }
93 NOARGS { int select(u_int nd, fd_set *in, fd_set *ou, \
fd_set *ex, struct timeval *tv); }
94 UNIMPL setdopt
95 NOARGS { int fsync(int fd); }
96 NOARGS { int setpriority(int which, int who, int prio); }
97 NOARGS { int socket(int domain, int type, int protocol); }
98 NOARGS { int connect(int s, caddr_t name, int namelen); }
99 NOARGS { int compat_43_accept(int s, caddr_t name, int *anamelen); }
100 NOARGS { int getpriority(int which, int who); }
101 NOARGS { int compat_43_send(int s, caddr_t buf, int len, int flags); }
102 NOARGS { int compat_43_recv(int s, caddr_t buf, int len, int flags); }
103 UNIMPL old socketaddr
104 NOARGS { int bind(int s, caddr_t name, int namelen); }
105 STD { int sunos_setsockopt(int s, int level, int name, \
caddr_t val, int valsize); }
106 NOARGS { int listen(int s, int backlog); }
107 UNIMPL vtimes
108 NOARGS { int compat_43_sigvec(int signum, struct sigvec *nsv, \
struct sigvec *osv); }
109 NOARGS { int compat_43_sigblock(int mask); }
110 NOARGS { int compat_43_sigsetmask(int mask); }
111 NOARGS { int sigsuspend(int mask); }
112 NOARGS { int compat_43_sigstack(struct sigstack *nss, \
struct sigstack *oss); }
113 NOARGS { int compat_43_recvmsg(int s, struct omsghdr *msg, int flags); }
114 NOARGS { int compat_43_sendmsg(int s, caddr_t msg, int flags); }
115 OBSOL vtrace
116 NOARGS { int gettimeofday(struct timeval *tp, \
struct timezone *tzp); }
117 NOARGS { int getrusage(int who, struct rusage *rusage); }
118 NOARGS { int getsockopt(int s, int level, int name, \
caddr_t val, int *avalsize); }
119 UNIMPL
120 NOARGS { int readv(int fd, struct iovec *iovp, u_int iovcnt); }
121 NOARGS { int writev(int fd, struct iovec *iovp, \
u_int iovcnt); }
122 NOARGS { int settimeofday(struct timeval *tv, \
struct timezone *tzp); }
123 NOARGS { int fchown(int fd, int uid, int gid); }
124 NOARGS { int fchmod(int fd, int mode); }
125 NOARGS { int compat_43_recvfrom(int s, caddr_t buf, size_t len, \
int flags, caddr_t from, int *fromlenaddr); }
126 NOARGS { int compat_43_setreuid(int ruid, int euid); }
127 NOARGS { int compat_43_setregid(int rgid, int egid); }
128 NOARGS { int rename(char *from, char *to); }
129 NOARGS { int compat_43_truncate(char *path, long length); }
130 NOARGS { int compat_43_ftruncate(int fd, long length); }
131 NOARGS { int flock(int fd, int how); }
132 UNIMPL
133 NOARGS { int sendto(int s, caddr_t buf, size_t len, \
int flags, caddr_t to, int tolen); }
134 NOARGS { int shutdown(int s, int how); }
135 NOARGS { int socketpair(int domain, int type, int protocol, \
int *rsv); }
136 NOARGS { int mkdir(char *path, int mode); }
137 NOARGS { int rmdir(char *path); }
138 NOARGS { int utimes(char *path, struct timeval *tptr); }
139 NOARGS { int sigreturn(struct sigcontext *sigcntxp); }
140 NOARGS { int adjtime(struct timeval *delta, \
struct timeval *olddelta); }
141 NOARGS { int compat_43_getpeername(int fdes, caddr_t asa, int *alen); }
142 NOARGS { int compat_43_gethostid(void); }
143 UNIMPL old sethostid
144 STD { int sunos_getrlimit(u_int which, struct orlimit *rlp); }
145 STD { int sunos_setrlimit(u_int which, struct orlimit *rlp); }
146 NOARGS { int compat_43_killpg(int pgid, int signum); }
147 UNIMPL
148 UNIMPL
149 UNIMPL
150 NOARGS { int compat_43_getsockname(int fdes, caddr_t asa, int *alen); }
151 UNIMPL getmsg
152 UNIMPL putmsg
153 STD { int sunos_poll(struct sunos_pollfd *fds, long nfds, \
int timeout); }
154 UNIMPL
#ifdef NFSSERVER
155 STD { int sunos_nfssvc(int fd); }
#else
155 UNIMPL
#endif
156 NOARGS { int getdirentries(int fd, char *buf, u_int count, \
long *basep); }
157 STD { int sunos_statfs(char *path, struct sunos_statfs *buf); }
158 STD { int sunos_fstatfs(int fd, struct sunos_statfs *buf); }
159 STD { int sunos_unmount(char *path, int flags); }
#ifdef NFSCLIENT
160 NOARGS { int async_daemon(void); }
161 NOARGS { int getfh(char *fname, fhandle_t *fhp); }
#else
160 UNIMPL
161 UNIMPL
#endif
162 NOARGS { int compat_09_getdomainname(char *domainname, int len); }
163 NOARGS { int compat_09_setdomainname(char *domainname, int len); }
164 UNIMPL rtschedule
165 STD { int sunos_quotactl(int cmd, char *special, int uid, \
caddr_t addr); }
166 STD { int sunos_exportfs(char *path, char *ex); }
167 STD { int sunos_mount(char *type, char *dir, int flags, \
caddr_t data); }
168 STD { int sunos_ustat(int dev, struct sunos_ustat *buf); }
#ifdef SYSVSEM
169 NOARGS { int compat_10_semsys(int which, int a2, int a3, int a4, \
int a5); }
#else
169 UNIMPL nosys
#endif
#ifdef SYSVMSG
170 NOARGS { int compat_10_msgsys(int which, int a2, int a3, int a4, \
int a5, int a6); }
#else
170 UNIMPL nosys
#endif
#ifdef SYSVSHM
171 NOARGS { int compat_10_shmsys(int which, int a2, int a3, int a4); }
#else
171 UNIMPL nosys
#endif
172 STD { int sunos_auditsys(char *record); }
173 UNIMPL rfssys
174 STD { int sunos_getdents(int fd, char *buf, int nbytes); }
175 NOARGS { int setsid(void); }
176 NOARGS { int fchdir(int fd); }
177 STD { int sunos_fchroot(int fd); }
178 UNIMPL vpixsys
179 UNIMPL aioread
180 UNIMPL aiowrite
181 UNIMPL aiowait
182 UNIMPL aiocancel
183 STD { int sunos_sigpending(int *mask); }
184 UNIMPL
185 NOARGS { int setpgid(int pid, int pgid); }
186 NOARGS { long pathconf(char *path, int name); }
187 NOARGS { long fpathconf(int fd, int name); }
188 STD { int sunos_sysconf(int name); }
189 STD { int sunos_uname(struct sunos_utsname *name); }