Home | History | Annotate | Line # | Download | only in sunos32
syscalls.master revision 1.20
      1 ;	$NetBSD: syscalls.master,v 1.20 2009/01/13 22:27:44 pooka Exp $
      2 
      3 ;	from :NetBSD: syscalls.master,v 1.57 2000/12/09 07:10:36 mycroft Exp
      4 
      5 ; NetBSD COMPAT_SUNOS, 32 bit mode for sparc64 system call name/number "master" file.
      6 ; (See syscalls32.conf to see what it is processed into.)
      7 ;
      8 ; Fields: number type [type-dependent ...]
      9 ;	number	system call number, must be in order
     10 ;	type	one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
     11 ;		the compatibility options defined in syscalls.conf.
     12 ;
     13 ; types:
     14 ;	STD	always included
     15 ;	OBSOL	obsolete, not included in system
     16 ;	UNIMPL	unimplemented, not included in system
     17 ;	NODEF	included, but don't define the syscall number
     18 ;	NOARGS	included, but don't define the syscall args structure
     19 ;
     20 ; The compat options are defined in the syscalls.conf file, and the
     21 ; compat option name is prefixed to the syscall name.  Other than
     22 ; that, they're like NODEF (for 'compat' options), or STD (for
     23 ; 'libcompat' options).
     24 ;
     25 ; The type-dependent arguments are as follows:
     26 ; For STD, NODEF, NOARGS, and compat syscalls:
     27 ;	{ pseudo-proto } [alias]
     28 ; For other syscalls:
     29 ;	[comment]
     30 ;
     31 ; #ifdef's, etc. may be included, and are copied to the output files.
     32 ; #include's are copied to the syscall names and switch definition files only.
     33 
     34 #if defined(_KERNEL_OPT)
     35 #include "opt_sysv.h"
     36 #include "opt_compat_sunos.h"
     37 
     38 #include "fs_nfs.h"
     39 #endif
     40 
     41 #include <sys/param.h>
     42 #include <sys/systm.h>
     43 #include <sys/signal.h>
     44 #include <sys/mount.h>
     45 #include <sys/poll.h>
     46 #include <sys/syscallargs.h>
     47 
     48 #include <compat/sunos/sunos.h>
     49 #include <compat/sunos/sunos_syscallargs.h>
     50 
     51 #include <compat/netbsd32/netbsd32.h>
     52 #include <compat/netbsd32/netbsd32_syscallargs.h>
     53 
     54 #include <compat/sunos32/sunos32.h>
     55 #include <compat/sunos32/sunos32_syscallargs.h>
     56 
     57 %%
     58 
     59 0	NOARGS		{ int|sys||nosys(void); } syscall
     60 1	NOARGS		{ int|netbsd32||exit(int rval); }
     61 2	NOARGS		{ int|sys||fork(void); }
     62 3	NOARGS		{ netbsd32_ssize_t|netbsd32||read(int fd, netbsd32_voidp buf, netbsd32_size_t nbyte); }
     63 4	NOARGS		{ netbsd32_ssize_t|netbsd32||write(int fd, const netbsd32_voidp buf, netbsd32_size_t nbyte); }
     64 5	STD		{ int|sunos32_sys||open(const netbsd32_charp path, int flags, \
     65 			    int mode); }
     66 6	NOARGS		{ int|netbsd32||close(int fd); }
     67 7	STD		{ int|sunos32_sys||wait4(int pid, netbsd32_intp status, \
     68 			    int options, netbsd32_rusagep_t rusage); }
     69 8	STD		{ int|sunos32_sys||creat(const netbsd32_charp path, int mode); }
     70 9	NOARGS		{ int|netbsd32||link(netbsd32_charp path, netbsd32_charp link); }
     71 10	NOARGS		{ int|netbsd32||unlink(netbsd32_charp path); }
     72 11	STD		{ int|sunos32_sys||execv(const netbsd32_charp path, netbsd32_charpp argp); }
     73 12	NOARGS		{ int|netbsd32||chdir(netbsd32_charp path); }
     74 13	OBSOL		old_time
     75 14	STD		{ int|sunos32_sys||mknod(const netbsd32_charp path, int mode, \
     76 			    int dev); }
     77 15	NOARGS		{ int|netbsd32||chmod(netbsd32_charp path, int mode); }
     78 16	NOARGS		{ int|netbsd32||chown(netbsd32_charp path, int uid, int gid); }
     79 17	NOARGS		{ int|netbsd32||break(netbsd32_charp nsize); }
     80 18	OBSOL		old_stat
     81 19	NOARGS		{ netbsd32_long|compat_43_netbsd32||olseek(int fd, netbsd32_long offset, int whence); }
     82 20	NOARGS		{ pid_t|sys||getpid_with_ppid(void); }
     83 21	OBSOL		sunos_old_mount
     84 22	UNIMPL		System V umount
     85 23	NOARGS		{ int|netbsd32||setuid(uid_t uid); }
     86 24	NOARGS		{ uid_t|sys||getuid_with_euid(void); }
     87 25	STD		{ int|sunos32_sys||stime(sunos32_time_tp tp); }
     88 26	STD		{ netbsd32_long|sunos32_sys||ptrace(int req, pid_t pid, \
     89 			    netbsd32_caddr_t addr, int data, netbsd32_charp addr2); }
     90 27	UNIMPL		old_sunos_alarm
     91 28	UNIMPL		old_sunos_fstat
     92 29	UNIMPL		old_sunos_pause
     93 30	UNIMPL		old_sunos_utime
     94 31	UNIMPL		old_sunos_stty
     95 32	UNIMPL		old_sunos_gtty
     96 33	STD		{ int|sunos32_sys||access(const netbsd32_charp path, int flags); }
     97 34	UNIMPL		old_sunos_nice
     98 35	UNIMPL		old_sunos_ftime
     99 36	NOARGS		{ int|sys||sync(void); }
    100 37	NOARGS		{ int|netbsd32||kill(int pid, int signum); }
    101 38	STD		{ int|sunos32_sys||stat(const netbsd32_charp path, \
    102 			    netbsd32_stat43p_t ub); }
    103 39	UNIMPL		sunos_setpgrp
    104 40	STD		{ int|sunos32_sys||lstat(const netbsd32_charp path, \
    105 			    netbsd32_stat43p_t ub); }
    106 41	NOARGS		{ int|netbsd32||dup(u_int fd); }
    107 42	NOARGS		{ int|sys||pipe(void); }
    108 43	UNIMPL		sunos_times
    109 44	NOARGS		{ int|netbsd32||profil(netbsd32_caddr_t samples, u_int size, \
    110 			    u_int offset, u_int scale); }
    111 45	UNIMPL
    112 46	NOARGS		{ int|netbsd32||setgid(uid_t gid); }
    113 47	NOARGS		{ gid_t|sys||getgid_with_egid(void); }
    114 48	UNIMPL		sunos_ssig
    115 49	UNIMPL		reserved for USG
    116 50	UNIMPL		reserved for USG
    117 51	NOARGS		{ int|netbsd32||acct(netbsd32_charp path); }
    118 52	UNIMPL
    119 53	STD		{ int|sunos32_sys||mctl(netbsd32_voidp addr, int len, int func, \
    120 			    netbsd32_voidp arg); }
    121 54	STD		{ int|sunos32_sys||ioctl(int fd, netbsd32_u_long com, \
    122 			    netbsd32_caddr_t data); }
    123 55	STD		{ int|sunos32_sys||reboot(int howto, netbsd32_charp bootstr); }
    124 56	OBSOL		sunos_owait3
    125 57	NOARGS		{ int|netbsd32||symlink(netbsd32_charp path, netbsd32_charp link); }
    126 58	NOARGS		{ int|netbsd32||readlink(netbsd32_charp path, netbsd32_charp buf, int count); }
    127 59	STD		{ int|sunos32_sys||execve(const netbsd32_charp path, netbsd32_charpp argp, \
    128 			    netbsd32_charpp envp); }
    129 60	NOARGS		{ int|netbsd32||umask(int newmask); }
    130 61	NOARGS		{ int|netbsd32||chroot(netbsd32_charp path); }
    131 62	NOARGS		{ int|compat_43_netbsd32||fstat43(int fd, netbsd32_stat43p_t sb); }
    132 63	UNIMPL
    133 64	NOARGS		{ int|compat_43_sys||getpagesize(void); } ogetpagesize
    134 65	STD		{ int|sunos32_sys||omsync(netbsd32_caddr_t addr, netbsd32_size_t len, \
    135 			    int flags); }
    136 66	NOARGS		{ int|sys||vfork(void); }
    137 67	OBSOL		vread
    138 68	OBSOL		vwrite
    139 69	NOARGS		{ int|netbsd32||sbrk(netbsd32_intptr_t incr); }
    140 70	NOARGS		{ int|netbsd32||sstk(int incr); }
    141 71	STD		{ netbsd32_voidp|sunos32_sys||mmap(netbsd32_voidp addr, netbsd32_size_t len, \
    142 			    int prot, int flags, int fd, netbsd32_long pos); }
    143 72	NOARGS		{ int|netbsd32||ovadvise(int anom); } vadvise
    144 73	NOARGS		{ int|netbsd32||munmap(netbsd32_voidp addr, netbsd32_size_t len); }
    145 74	NOARGS		{ int|netbsd32||mprotect(netbsd32_voidp addr, netbsd32_size_t len, \
    146 			    int prot); }
    147 75	NOARGS		{ int|netbsd32||madvise(netbsd32_voidp addr, netbsd32_size_t len, \
    148 			    int behav); }
    149 76	STD		{ int|sunos32_sys||vhangup(void); }
    150 77	UNIMPL		vlimit
    151 78	NOARGS		{ int|netbsd32||mincore(netbsd32_caddr_t addr, netbsd32_size_t len, netbsd32_charp vec); }
    152 79	NOARGS		{ int|netbsd32||getgroups(u_int gidsetsize, netbsd32_gid_tp gidset); }
    153 80	NOARGS		{ int|netbsd32||setgroups(u_int gidsetsize, netbsd32_gid_tp gidset); }
    154 81	NOARGS		{ int|sys||getpgrp(void); }
    155 82	STD		{ int|sunos32_sys||setpgrp(int pid, int pgid); }
    156 83	NOARGS		{ int|compat_50_netbsd32||setitimer(u_int which, netbsd32_itimervalp_t itv, netbsd32_itimervalp_t oitv); }
    157 84	UNIMPL		sunos32_sys_wait
    158 85	NOARGS		{ int|compat_12_netbsd32||oswapon(netbsd32_charp name); }
    159 86	NOARGS		{ int|compat_50_netbsd32||getitimer(u_int which, netbsd32_itimervalp_t itv); }
    160 87	NOARGS		{ int|compat_43_netbsd32||ogethostname(netbsd32_charp hostname, u_int len); }
    161 88	NOARGS		{ int|compat_43_netbsd32||osethostname(netbsd32_charp hostname, u_int len); }
    162 89	NOARGS		{ int|compat_43_sys||getdtablesize(void); } ogetdtablesize
    163 90	NOARGS		{ int|netbsd32||dup2(u_int from, u_int to); }
    164 91	UNIMPL		getdopt
    165 92	STD		{ int|sunos32_sys||fcntl(int fd, int cmd, netbsd32_voidp arg); }
    166 93	NOARGS		{ int|compat_50_netbsd32||select(u_int nd, netbsd32_fd_setp_t in, netbsd32_fd_setp_t ou, \
    167 			    netbsd32_fd_setp_t ex, netbsd32_timevalp_t tv); }
    168 94	UNIMPL		setdopt
    169 95	NOARGS		{ int|netbsd32||fsync(int fd); }
    170 96	NOARGS		{ int|netbsd32||setpriority(int which, int who, int prio); }
    171 97	STD		{ int|sunos32_sys||socket(int domain, int type, int protocol); }
    172 98	NOARGS		{ int|netbsd32||connect(int s, netbsd32_caddr_t name, int namelen); }
    173 99	NOARGS		{ int|compat_43_netbsd32||oaccept(int s, netbsd32_caddr_t name, netbsd32_intp anamelen); }
    174 100	NOARGS		{ int|netbsd32||getpriority(int which, int who); }
    175 101	NOARGS		{ int|compat_43_netbsd32||osend(int s, netbsd32_caddr_t buf, int len, \
    176 			    int flags); }
    177 102	NOARGS		{ int|compat_43_netbsd32||orecv(int s, netbsd32_caddr_t buf, int len, \
    178 			    int flags); }
    179 103	UNIMPL		old socketaddr
    180 104	NOARGS		{ int|netbsd32||bind(int s, netbsd32_caddr_t name, int namelen); }
    181 105	STD		{ int|sunos32_sys||setsockopt(int s, int level, int name, \
    182 			    netbsd32_caddr_t val, int valsize); }
    183 106	NOARGS		{ int|netbsd32||listen(int s, int backlog); }
    184 107	UNIMPL		vtimes
    185 108	STD		{ int|sunos32_sys||sigvec(int signum, netbsd32_sigvecp_t nsv, \
    186 			    netbsd32_sigvecp_t osv); }
    187 109	NOARGS		{ int|compat_43_netbsd32||sigblock(int mask); }
    188 110	NOARGS		{ int|compat_43_netbsd32||sigsetmask(int mask); }
    189 111	STD		{ int|sunos32_sys||sigsuspend(int mask); }
    190 112	NOARGS		{ int|compat_43_netbsd32||osigstack(netbsd32_sigstackp_t nss, \
    191 			    netbsd32_sigstackp_t oss); }
    192 113	NOARGS		{ int|compat_43_netbsd32||orecvmsg(int s, \
    193 			    netbsd32_omsghdrp_t msg, int flags); }
    194 114	NOARGS		{ int|compat_43_netbsd32||osendmsg(int s, netbsd32_caddr_t msg, \
    195 			    int flags); }
    196 115	OBSOL		vtrace
    197 116	NOARGS		{ int|compat_50_netbsd32||gettimeofday(netbsd32_timevalp_t tp, \
    198 			    netbsd32_timezonep_t tzp); }
    199 117	NOARGS		{ int|compat_50_netbsd32||getrusage(int who, netbsd32_rusagep_t rusage); }
    200 118	NOARGS		{ int|netbsd32||getsockopt(int s, int level, int name, \
    201 			    netbsd32_caddr_t val, netbsd32_intp avalsize); }
    202 119	UNIMPL
    203 120	NOARGS		{ int|netbsd32||readv(int fd, netbsd32_iovecp_t iovp, \
    204 			    u_int iovcnt); }
    205 121	NOARGS		{ int|netbsd32||writev(int fd, netbsd32_iovecp_t iovp, \
    206 			    u_int iovcnt); }
    207 122	NOARGS		{ int|compat_50_netbsd32||settimeofday(netbsd32_timevalp_t tv, \
    208 			    netbsd32_timezonep_t tzp); }
    209 123	NOARGS		{ int|netbsd32||fchown(int fd, int uid, int gid); }
    210 124	NOARGS		{ int|netbsd32||fchmod(int fd, int mode); }
    211 125	NOARGS		{ int|compat_43_netbsd32||orecvfrom(int s, netbsd32_caddr_t buf, \
    212 			    netbsd32_size_t len, int flags, netbsd32_caddr_t from, \
    213 			    netbsd32_intp fromlenaddr); }
    214 126	NOARGS		{ int|netbsd32||setreuid(int ruid, int euid); }
    215 127	NOARGS		{ int|netbsd32||setregid(int rgid, int egid); }
    216 128	NOARGS		{ int|netbsd32||rename(netbsd32_charp from, netbsd32_charp to); }
    217 129	NOARGS		{ int|compat_43_netbsd32||otruncate(netbsd32_charp path, netbsd32_long length); }
    218 130	NOARGS		{ int|compat_43_netbsd32||oftruncate(int fd, netbsd32_long length); }
    219 131	NOARGS		{ int|netbsd32||flock(int fd, int how); }
    220 132	UNIMPL
    221 133	NOARGS		{ int|netbsd32||sendto(int s, netbsd32_caddr_t buf, netbsd32_size_t len, \
    222 			    int flags, netbsd32_caddr_t to, int tolen); }
    223 134	NOARGS		{ int|netbsd32||shutdown(int s, int how); }
    224 135	STD		{ int|sunos32_sys||socketpair(int domain, int type, \
    225 			    int protocol, netbsd32_intp rsv); }
    226 136	NOARGS		{ int|netbsd32||mkdir(netbsd32_charp path, int mode); }
    227 137	NOARGS		{ int|netbsd32||rmdir(netbsd32_charp path); }
    228 138	NOARGS		{ int|compat_50_netbsd32||utimes(netbsd32_charp path, netbsd32_timevalp_t tptr); }
    229 139	STD		{ int|sunos32_sys||sigreturn(netbsd32_sigcontextp_t sigcntxp); }
    230 140	NOARGS		{ int|compat_50_netbsd32||adjtime(netbsd32_timevalp_t delta, \
    231 			    netbsd32_timevalp_t olddelta); }
    232 141	NOARGS		{ int|compat_43_netbsd32||ogetpeername(int fdes, netbsd32_caddr_t asa, \
    233 			    netbsd32_intp alen); }
    234 142	NOARGS		{ int|compat_43_sys||gethostid(void); }
    235 143	UNIMPL		old sethostid
    236 144	STD		{ int|sunos32_sys||getrlimit(u_int which, \
    237 			    netbsd32_orlimitp_t rlp); }
    238 145	STD		{ int|sunos32_sys||setrlimit(u_int which, \
    239 			    netbsd32_orlimitp_t rlp); }
    240 146	NOARGS		{ int|compat_43_netbsd32||killpg(int pgid, int signum); }
    241 147	UNIMPL
    242 148	UNIMPL
    243 149	UNIMPL
    244 150	NOARGS		{ int|compat_43_netbsd32||ogetsockname(int fdes, netbsd32_caddr_t asa, \
    245 			    netbsd32_intp alen); }
    246 151	UNIMPL		getmsg
    247 152	UNIMPL		putmsg
    248 153	NOARGS		{ int|netbsd32||poll(netbsd32_pollfdp_t fds, u_int nfds, \
    249 			    int timeout); }
    250 154	UNIMPL
    251 155	STD		{ int|sunos32_sys||nfssvc(int fd); }
    252 156	NOARGS		{ int|compat_43_netbsd32||ogetdirentries(int fd, netbsd32_charp buf, \
    253 			    u_int count, netbsd32_longp basep); }
    254 157	STD		{ int|sunos32_sys||statfs(const netbsd32_charp path, \
    255 			    sunos32_statfsp_t buf); }
    256 158	STD		{ int|sunos32_sys||fstatfs(int fd, \
    257 			    sunos32_statfsp_t buf); }
    258 159	STD		{ int|sunos32_sys||unmount(netbsd32_charp path); }
    259 #ifdef NFS
    260 160	NOARGS		{ int|async||daemon(void); }
    261 161	NOARGS		{ int|compat_30_sys||getfh(netbsd32_charp fname, netbsd32_fhandlep_t fhp); }
    262 #else
    263 160	UNIMPL
    264 161	UNIMPL
    265 #endif
    266 162	NOARGS		{ int|compat_09_netbsd32||ogetdomainname(netbsd32_charp domainname, \
    267 			    int len); }
    268 163	NOARGS		{ int|compat_09_netbsd32||osetdomainname(netbsd32_charp domainname, \
    269 			    int len); }
    270 164	UNIMPL		rtschedule
    271 165	STD		{ int|sunos32_sys||quotactl(int cmd, netbsd32_charp special, \
    272 			    int uid, netbsd32_caddr_t addr); }
    273 166	STD		{ int|sunos32_sys||exportfs(netbsd32_charp path, netbsd32_charp ex); }
    274 167	STD		{ int|sunos32_sys||mount(netbsd32_charp type, netbsd32_charp path, \
    275 			    int flags, netbsd32_caddr_t data); }
    276 168	STD		{ int|sunos32_sys||ustat(int dev, \
    277 			    sunos32_ustatp_t buf); }
    278 #ifdef SYSVSEM
    279 169	NOARGS		{ int|compat_10_netbsd32||semsys(int which, int a2, int a3, \
    280 			    int a4, int a5); } osemsys
    281 #else
    282 169	UNIMPL		semsys
    283 #endif
    284 #ifdef SYSVMSG
    285 170	NOARGS		{ int|compat_10_netbsd32||msgsys(int which, int a2, int a3, \
    286 			    int a4, int a5, int a6); } omsgsys
    287 #else
    288 170	UNIMPL		msgsys
    289 #endif
    290 #ifdef SYSVSHM
    291 171	NOARGS		{ int|compat_10_netbsd32||shmsys(int which, int a2, int a3, \
    292 			    int a4); } oshmsys
    293 #else
    294 171	UNIMPL		shmsys
    295 #endif
    296 172	STD		{ int|sunos32_sys||auditsys(netbsd32_charp record); }
    297 173	UNIMPL		rfssys
    298 174	STD		{ int|sunos32_sys||getdents(int fd, netbsd32_charp buf, \
    299 			    int nbytes); }
    300 175	NOARGS		{ int|sys||setsid(void); }
    301 176	NOARGS		{ int|netbsd32||fchdir(int fd); }
    302 177	NOARGS		{ int|netbsd32||fchroot(int fd); }
    303 178	UNIMPL		vpixsys
    304 179	UNIMPL		aioread
    305 180	UNIMPL		aiowrite
    306 181	UNIMPL		aiowait
    307 182	UNIMPL		aiocancel
    308 183	STD		{ int|sunos32_sys||sigpending(netbsd32_intp mask); }
    309 184	UNIMPL
    310 185	NOARGS		{ int|netbsd32||setpgid(int pid, int pgid); }
    311 186	NOARGS		{ netbsd32_long|netbsd32||pathconf(netbsd32_charp path, int name); }
    312 187	NOARGS		{ netbsd32_long|netbsd32||fpathconf(int fd, int name); }
    313 188	STD		{ int|sunos32_sys||sysconf(int name); }
    314 189	STD		{ int|sunos32_sys||uname(sunos32_utsnamep_t name); }
    315