Try to make the reboot system call compile under sun3 with RB_STRING

support [not tested]
Add files.sunos
Rename system call switch table file from sunos_init_sysent.c to sunos_sysent.c
like other emulations.
This commit is contained in:
christos 1995-04-27 12:05:37 +00:00
parent b9c4f23337
commit b9771ef7b1
5 changed files with 542 additions and 947 deletions

View File

@ -0,0 +1,13 @@
# $NetBSD: files.sunos,v 1.1 1995/04/27 12:05:37 christos Exp $
#
# Config.new file description for machine-independent SunOS compat code.
# Included by ports that need it.
# ports should define any machine-specific files they need in their
# own file lists.
file compat/sunos/sunos_exec.c compat_sunos
file compat/sunos/sunos_sysent.c compat_sunos
file compat/sunos/sunos_ioctl.c compat_sunos
file compat/sunos/sunos_misc.c compat_sunos
#file compat/sunos/sunos_syscalls.c compat_sunos

View File

@ -1,655 +0,0 @@
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.26 1995/04/22 23:45:33 christos Exp
*/
#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>
int nosys();
int exit();
int fork();
int read();
int write();
int sunos_open();
int close();
int sunos_wait4();
int sunos_creat();
int link();
int unlink();
int sunos_execv();
int chdir();
int sunos_mknod();
int chmod();
int chown();
int obreak();
int compat_43_lseek();
int getpid();
int setuid();
int getuid();
int sunos_ptrace();
int access();
int sync();
int kill();
int compat_43_stat();
int compat_43_lstat();
int dup();
int pipe();
int profil();
int setgid();
int getgid();
int acct();
int sunos_mctl();
int sunos_ioctl();
int sunos_reboot();
int symlink();
int readlink();
int execve();
int umask();
int chroot();
int compat_43_fstat();
int compat_43_getpagesize();
int sunos_omsync();
int vfork();
int sbrk();
int sstk();
int sunos_mmap();
int ovadvise();
int munmap();
int mprotect();
int madvise();
int sunos_vhangup();
int mincore();
int getgroups();
int setgroups();
int getpgrp();
int sunos_setpgid();
int setitimer();
int swapon();
int getitimer();
int compat_43_gethostname();
int compat_43_sethostname();
int compat_43_getdtablesize();
int dup2();
int fcntl();
int select();
int fsync();
int setpriority();
int socket();
int connect();
int compat_43_accept();
int getpriority();
int compat_43_send();
int compat_43_recv();
int bind();
int sunos_setsockopt();
int listen();
int compat_43_sigvec();
int compat_43_sigblock();
int compat_43_sigsetmask();
int sigsuspend();
int compat_43_sigstack();
int compat_43_recvmsg();
int compat_43_sendmsg();
int gettimeofday();
int getrusage();
int getsockopt();
int readv();
int writev();
int settimeofday();
int fchown();
int fchmod();
int compat_43_recvfrom();
int compat_43_setreuid();
int compat_43_setregid();
int rename();
int compat_43_truncate();
int compat_43_ftruncate();
int flock();
int sendto();
int shutdown();
int socketpair();
int mkdir();
int rmdir();
int utimes();
int sunos_sigreturn();
int adjtime();
int compat_43_getpeername();
int compat_43_gethostid();
int sunos_getrlimit();
int sunos_setrlimit();
int compat_43_killpg();
int compat_43_getsockname();
int sunos_poll();
#ifdef NFSSERVER
int sunos_nfssvc();
#else
#endif
int getdirentries();
int sunos_statfs();
int sunos_fstatfs();
int sunos_unmount();
#ifdef NFSCLIENT
int async_daemon();
int getfh();
#else
#endif
int compat_09_getdomainname();
int compat_09_setdomainname();
int sunos_quotactl();
int sunos_exportfs();
int sunos_mount();
int sunos_ustat();
#ifdef SYSVSEM
int compat_10_semsys();
#else
#endif
#ifdef SYSVMSG
int compat_10_msgsys();
#else
#endif
#ifdef SYSVSHM
int compat_10_shmsys();
#else
#endif
int sunos_auditsys();
int sunos_getdents();
int setsid();
int fchdir();
int sunos_fchroot();
int sunos_sigpending();
int setpgid();
int pathconf();
int fpathconf();
int sunos_sysconf();
int sunos_uname();
#ifdef COMPAT_43
#define compat_43(func) __CONCAT(compat_43_,func)
#ifdef NFSSERVER
#else
#endif
#ifdef NFSCLIENT
#else
#endif
#ifdef SYSVSEM
#else
#endif
#ifdef SYSVMSG
#else
#endif
#ifdef SYSVSHM
#else
#endif
#else /* COMPAT_43 */
#define compat_43(func) nosys
#endif /* COMPAT_43 */
#ifdef COMPAT_09
#define compat_09(func) __CONCAT(compat_09_,func)
#ifdef NFSSERVER
#else
#endif
#ifdef NFSCLIENT
#else
#endif
#ifdef SYSVSEM
#else
#endif
#ifdef SYSVMSG
#else
#endif
#ifdef SYSVSHM
#else
#endif
#else /* COMPAT_09 */
#define compat_09(func) nosys
#endif /* COMPAT_09 */
#ifdef COMPAT_10
#define compat_10(func) __CONCAT(compat_10_,func)
#ifdef NFSSERVER
#else
#endif
#ifdef NFSCLIENT
#else
#endif
#ifdef SYSVSEM
#else
#endif
#ifdef SYSVMSG
#else
#endif
#ifdef SYSVSHM
#else
#endif
#else /* COMPAT_10 */
#define compat_10(func) nosys
#endif /* COMPAT_10 */
#define s(type) sizeof(type)
struct sysent sunos_sysent[] = {
{ 0, 0,
nosys }, /* 0 = syscall */
{ 1, s(struct exit_args),
exit }, /* 1 = exit */
{ 0, 0,
fork }, /* 2 = fork */
{ 3, s(struct read_args),
read }, /* 3 = read */
{ 3, s(struct write_args),
write }, /* 4 = write */
{ 3, s(struct sunos_open_args),
sunos_open }, /* 5 = sunos_open */
{ 1, s(struct close_args),
close }, /* 6 = close */
{ 4, s(struct sunos_wait4_args),
sunos_wait4 }, /* 7 = sunos_wait4 */
{ 2, s(struct sunos_creat_args),
sunos_creat }, /* 8 = sunos_creat */
{ 2, s(struct link_args),
link }, /* 9 = link */
{ 1, s(struct unlink_args),
unlink }, /* 10 = unlink */
{ 2, s(struct sunos_execv_args),
sunos_execv }, /* 11 = sunos_execv */
{ 1, s(struct chdir_args),
chdir }, /* 12 = chdir */
{ 0, 0,
nosys }, /* 13 = obsolete time */
{ 3, s(struct sunos_mknod_args),
sunos_mknod }, /* 14 = sunos_mknod */
{ 2, s(struct chmod_args),
chmod }, /* 15 = chmod */
{ 3, s(struct chown_args),
chown }, /* 16 = chown */
{ 1, s(struct obreak_args),
obreak }, /* 17 = break */
{ 0, 0,
nosys }, /* 18 = obsolete stat */
{ 3, s(struct compat_43_lseek_args),
compat_43_lseek }, /* 19 = compat_43_lseek */
{ 0, 0,
getpid }, /* 20 = getpid */
{ 0, 0,
nosys }, /* 21 = obsolete sunos_old_mount */
{ 0, 0,
nosys }, /* 22 = unimplemented System V umount */
{ 1, s(struct setuid_args),
setuid }, /* 23 = setuid */
{ 0, 0,
getuid }, /* 24 = getuid */
{ 0, 0,
nosys }, /* 25 = unimplemented sunos_stime */
{ 5, s(struct sunos_ptrace_args),
sunos_ptrace }, /* 26 = sunos_ptrace */
{ 0, 0,
nosys }, /* 27 = unimplemented sunos_alarm */
{ 0, 0,
nosys }, /* 28 = unimplemented sunos_fstat */
{ 0, 0,
nosys }, /* 29 = unimplemented sunos_pause */
{ 0, 0,
nosys }, /* 30 = unimplemented sunos_utime */
{ 0, 0,
nosys }, /* 31 = unimplemented sunos_stty */
{ 0, 0,
nosys }, /* 32 = unimplemented sunos_gtty */
{ 2, s(struct access_args),
access }, /* 33 = access */
{ 0, 0,
nosys }, /* 34 = unimplemented sunos_nice */
{ 0, 0,
nosys }, /* 35 = unimplemented sunos_ftime */
{ 0, 0,
sync }, /* 36 = sync */
{ 2, s(struct kill_args),
kill }, /* 37 = kill */
{ 2, s(struct compat_43_stat_args),
compat_43_stat }, /* 38 = compat_43_stat */
{ 0, 0,
nosys }, /* 39 = unimplemented sunos_setpgrp */
{ 2, s(struct compat_43_lstat_args),
compat_43_lstat }, /* 40 = compat_43_lstat */
{ 1, s(struct dup_args),
dup }, /* 41 = dup */
{ 0, 0,
pipe }, /* 42 = pipe */
{ 0, 0,
nosys }, /* 43 = unimplemented sunos_times */
{ 4, s(struct profil_args),
profil }, /* 44 = profil */
{ 0, 0,
nosys }, /* 45 = unimplemented */
{ 1, s(struct setgid_args),
setgid }, /* 46 = setgid */
{ 0, 0,
getgid }, /* 47 = getgid */
{ 0, 0,
nosys }, /* 48 = unimplemented sunos_ssig */
{ 0, 0,
nosys }, /* 49 = unimplemented reserved for USG */
{ 0, 0,
nosys }, /* 50 = unimplemented reserved for USG */
{ 1, s(struct acct_args),
acct }, /* 51 = acct */
{ 0, 0,
nosys }, /* 52 = unimplemented */
{ 4, s(struct sunos_mctl_args),
sunos_mctl }, /* 53 = sunos_mctl */
{ 3, s(struct sunos_ioctl_args),
sunos_ioctl }, /* 54 = sunos_ioctl */
{ 2, s(struct sunos_reboot_args),
sunos_reboot }, /* 55 = sunos_reboot */
{ 0, 0,
nosys }, /* 56 = obsolete sunos_owait3 */
{ 2, s(struct symlink_args),
symlink }, /* 57 = symlink */
{ 3, s(struct readlink_args),
readlink }, /* 58 = readlink */
{ 3, s(struct execve_args),
execve }, /* 59 = execve */
{ 1, s(struct umask_args),
umask }, /* 60 = umask */
{ 1, s(struct chroot_args),
chroot }, /* 61 = chroot */
{ 2, s(struct compat_43_fstat_args),
compat_43_fstat }, /* 62 = compat_43_fstat */
{ 0, 0,
nosys }, /* 63 = unimplemented */
{ 0, 0,
compat_43_getpagesize }, /* 64 = compat_43_getpagesize */
{ 3, s(struct sunos_omsync_args),
sunos_omsync }, /* 65 = sunos_omsync */
{ 0, 0,
vfork }, /* 66 = vfork */
{ 0, 0,
nosys }, /* 67 = obsolete vread */
{ 0, 0,
nosys }, /* 68 = obsolete vwrite */
{ 1, s(struct sbrk_args),
sbrk }, /* 69 = sbrk */
{ 1, s(struct sstk_args),
sstk }, /* 70 = sstk */
{ 6, s(struct sunos_mmap_args),
sunos_mmap }, /* 71 = sunos_mmap */
{ 1, s(struct ovadvise_args),
ovadvise }, /* 72 = vadvise */
{ 2, s(struct munmap_args),
munmap }, /* 73 = munmap */
{ 3, s(struct mprotect_args),
mprotect }, /* 74 = mprotect */
{ 3, s(struct madvise_args),
madvise }, /* 75 = madvise */
{ 0, 0,
sunos_vhangup }, /* 76 = sunos_vhangup */
{ 0, 0,
nosys }, /* 77 = unimplemented vlimit */
{ 3, s(struct mincore_args),
mincore }, /* 78 = mincore */
{ 2, s(struct getgroups_args),
getgroups }, /* 79 = getgroups */
{ 2, s(struct setgroups_args),
setgroups }, /* 80 = setgroups */
{ 0, 0,
getpgrp }, /* 81 = getpgrp */
{ 2, s(struct sunos_setpgid_args),
sunos_setpgid }, /* 82 = sunos_setpgid */
{ 3, s(struct setitimer_args),
setitimer }, /* 83 = setitimer */
{ 0, 0,
nosys }, /* 84 = unimplemented { int sunos_wait ( void ) ; } */
{ 1, s(struct swapon_args),
swapon }, /* 85 = swapon */
{ 2, s(struct getitimer_args),
getitimer }, /* 86 = getitimer */
{ 2, s(struct compat_43_gethostname_args),
compat_43_gethostname }, /* 87 = compat_43_gethostname */
{ 2, s(struct compat_43_sethostname_args),
compat_43_sethostname }, /* 88 = compat_43_sethostname */
{ 0, 0,
compat_43_getdtablesize }, /* 89 = compat_43_getdtablesize */
{ 2, s(struct dup2_args),
dup2 }, /* 90 = dup2 */
{ 0, 0,
nosys }, /* 91 = unimplemented getdopt */
{ 3, s(struct fcntl_args),
fcntl }, /* 92 = fcntl */
{ 5, s(struct select_args),
select }, /* 93 = select */
{ 0, 0,
nosys }, /* 94 = unimplemented setdopt */
{ 1, s(struct fsync_args),
fsync }, /* 95 = fsync */
{ 3, s(struct setpriority_args),
setpriority }, /* 96 = setpriority */
{ 3, s(struct socket_args),
socket }, /* 97 = socket */
{ 3, s(struct connect_args),
connect }, /* 98 = connect */
{ 3, s(struct compat_43_accept_args),
compat_43_accept }, /* 99 = compat_43_accept */
{ 2, s(struct getpriority_args),
getpriority }, /* 100 = getpriority */
{ 4, s(struct compat_43_send_args),
compat_43_send }, /* 101 = compat_43_send */
{ 4, s(struct compat_43_recv_args),
compat_43_recv }, /* 102 = compat_43_recv */
{ 0, 0,
nosys }, /* 103 = unimplemented old socketaddr */
{ 3, s(struct bind_args),
bind }, /* 104 = bind */
{ 5, s(struct sunos_setsockopt_args),
sunos_setsockopt }, /* 105 = sunos_setsockopt */
{ 2, s(struct listen_args),
listen }, /* 106 = listen */
{ 0, 0,
nosys }, /* 107 = unimplemented vtimes */
{ 3, s(struct compat_43_sigvec_args),
compat_43_sigvec }, /* 108 = compat_43_sigvec */
{ 1, s(struct compat_43_sigblock_args),
compat_43_sigblock }, /* 109 = compat_43_sigblock */
{ 1, s(struct compat_43_sigsetmask_args),
compat_43_sigsetmask }, /* 110 = compat_43_sigsetmask */
{ 1, s(struct sigsuspend_args),
sigsuspend }, /* 111 = sigsuspend */
{ 2, s(struct compat_43_sigstack_args),
compat_43_sigstack }, /* 112 = compat_43_sigstack */
{ 3, s(struct compat_43_recvmsg_args),
compat_43_recvmsg }, /* 113 = compat_43_recvmsg */
{ 3, s(struct compat_43_sendmsg_args),
compat_43_sendmsg }, /* 114 = compat_43_sendmsg */
{ 0, 0,
nosys }, /* 115 = obsolete vtrace */
{ 2, s(struct gettimeofday_args),
gettimeofday }, /* 116 = gettimeofday */
{ 2, s(struct getrusage_args),
getrusage }, /* 117 = getrusage */
{ 5, s(struct getsockopt_args),
getsockopt }, /* 118 = getsockopt */
{ 0, 0,
nosys }, /* 119 = unimplemented */
{ 3, s(struct readv_args),
readv }, /* 120 = readv */
{ 3, s(struct writev_args),
writev }, /* 121 = writev */
{ 2, s(struct settimeofday_args),
settimeofday }, /* 122 = settimeofday */
{ 3, s(struct fchown_args),
fchown }, /* 123 = fchown */
{ 2, s(struct fchmod_args),
fchmod }, /* 124 = fchmod */
{ 6, s(struct compat_43_recvfrom_args),
compat_43_recvfrom }, /* 125 = compat_43_recvfrom */
{ 2, s(struct compat_43_setreuid_args),
compat_43_setreuid }, /* 126 = compat_43_setreuid */
{ 2, s(struct compat_43_setregid_args),
compat_43_setregid }, /* 127 = compat_43_setregid */
{ 2, s(struct rename_args),
rename }, /* 128 = rename */
{ 2, s(struct compat_43_truncate_args),
compat_43_truncate }, /* 129 = compat_43_truncate */
{ 2, s(struct compat_43_ftruncate_args),
compat_43_ftruncate }, /* 130 = compat_43_ftruncate */
{ 2, s(struct flock_args),
flock }, /* 131 = flock */
{ 0, 0,
nosys }, /* 132 = unimplemented */
{ 6, s(struct sendto_args),
sendto }, /* 133 = sendto */
{ 2, s(struct shutdown_args),
shutdown }, /* 134 = shutdown */
{ 4, s(struct socketpair_args),
socketpair }, /* 135 = socketpair */
{ 2, s(struct mkdir_args),
mkdir }, /* 136 = mkdir */
{ 1, s(struct rmdir_args),
rmdir }, /* 137 = rmdir */
{ 2, s(struct utimes_args),
utimes }, /* 138 = utimes */
{ 1, s(struct sunos_sigreturn_args),
sunos_sigreturn }, /* 139 = sunos_sigreturn */
{ 2, s(struct adjtime_args),
adjtime }, /* 140 = adjtime */
{ 3, s(struct compat_43_getpeername_args),
compat_43_getpeername }, /* 141 = compat_43_getpeername */
{ 0, 0,
compat_43_gethostid }, /* 142 = compat_43_gethostid */
{ 0, 0,
nosys }, /* 143 = unimplemented old sethostid */
{ 2, s(struct sunos_getrlimit_args),
sunos_getrlimit }, /* 144 = sunos_getrlimit */
{ 2, s(struct sunos_setrlimit_args),
sunos_setrlimit }, /* 145 = sunos_setrlimit */
{ 2, s(struct compat_43_killpg_args),
compat_43_killpg }, /* 146 = compat_43_killpg */
{ 0, 0,
nosys }, /* 147 = unimplemented */
{ 0, 0,
nosys }, /* 148 = unimplemented */
{ 0, 0,
nosys }, /* 149 = unimplemented */
{ 3, s(struct compat_43_getsockname_args),
compat_43_getsockname }, /* 150 = compat_43_getsockname */
{ 0, 0,
nosys }, /* 151 = unimplemented getmsg */
{ 0, 0,
nosys }, /* 152 = unimplemented putmsg */
{ 3, s(struct sunos_poll_args),
sunos_poll }, /* 153 = sunos_poll */
{ 0, 0,
nosys }, /* 154 = unimplemented */
#ifdef NFSSERVER
{ 1, s(struct sunos_nfssvc_args),
sunos_nfssvc }, /* 155 = sunos_nfssvc */
#else
{ 0, 0,
nosys }, /* 155 = unimplemented */
#endif
{ 4, s(struct getdirentries_args),
getdirentries }, /* 156 = getdirentries */
{ 2, s(struct sunos_statfs_args),
sunos_statfs }, /* 157 = sunos_statfs */
{ 2, s(struct sunos_fstatfs_args),
sunos_fstatfs }, /* 158 = sunos_fstatfs */
{ 2, s(struct sunos_unmount_args),
sunos_unmount }, /* 159 = sunos_unmount */
#ifdef NFSCLIENT
{ 0, 0,
async_daemon }, /* 160 = async_daemon */
{ 2, s(struct getfh_args),
getfh }, /* 161 = getfh */
#else
{ 0, 0,
nosys }, /* 160 = unimplemented */
{ 0, 0,
nosys }, /* 161 = unimplemented */
#endif
{ 2, s(struct compat_09_getdomainname_args),
compat_09_getdomainname }, /* 162 = compat_09_getdomainname */
{ 2, s(struct compat_09_setdomainname_args),
compat_09_setdomainname }, /* 163 = compat_09_setdomainname */
{ 0, 0,
nosys }, /* 164 = unimplemented rtschedule */
{ 4, s(struct sunos_quotactl_args),
sunos_quotactl }, /* 165 = sunos_quotactl */
{ 2, s(struct sunos_exportfs_args),
sunos_exportfs }, /* 166 = sunos_exportfs */
{ 4, s(struct sunos_mount_args),
sunos_mount }, /* 167 = sunos_mount */
{ 2, s(struct sunos_ustat_args),
sunos_ustat }, /* 168 = sunos_ustat */
#ifdef SYSVSEM
{ 5, s(struct compat_10_semsys_args),
compat_10_semsys }, /* 169 = compat_10_semsys */
#else
{ 0, 0,
nosys }, /* 169 = unimplemented nosys */
#endif
#ifdef SYSVMSG
{ 6, s(struct compat_10_msgsys_args),
compat_10_msgsys }, /* 170 = compat_10_msgsys */
#else
{ 0, 0,
nosys }, /* 170 = unimplemented nosys */
#endif
#ifdef SYSVSHM
{ 4, s(struct compat_10_shmsys_args),
compat_10_shmsys }, /* 171 = compat_10_shmsys */
#else
{ 0, 0,
nosys }, /* 171 = unimplemented nosys */
#endif
{ 1, s(struct sunos_auditsys_args),
sunos_auditsys }, /* 172 = sunos_auditsys */
{ 0, 0,
nosys }, /* 173 = unimplemented rfssys */
{ 3, s(struct sunos_getdents_args),
sunos_getdents }, /* 174 = sunos_getdents */
{ 0, 0,
setsid }, /* 175 = setsid */
{ 1, s(struct fchdir_args),
fchdir }, /* 176 = fchdir */
{ 1, s(struct sunos_fchroot_args),
sunos_fchroot }, /* 177 = sunos_fchroot */
{ 0, 0,
nosys }, /* 178 = unimplemented vpixsys */
{ 0, 0,
nosys }, /* 179 = unimplemented aioread */
{ 0, 0,
nosys }, /* 180 = unimplemented aiowrite */
{ 0, 0,
nosys }, /* 181 = unimplemented aiowait */
{ 0, 0,
nosys }, /* 182 = unimplemented aiocancel */
{ 1, s(struct sunos_sigpending_args),
sunos_sigpending }, /* 183 = sunos_sigpending */
{ 0, 0,
nosys }, /* 184 = unimplemented */
{ 2, s(struct setpgid_args),
setpgid }, /* 185 = setpgid */
{ 2, s(struct pathconf_args),
pathconf }, /* 186 = pathconf */
{ 2, s(struct fpathconf_args),
fpathconf }, /* 187 = fpathconf */
{ 1, s(struct sunos_sysconf_args),
sunos_sysconf }, /* 188 = sunos_sysconf */
{ 1, s(struct sunos_uname_args),
sunos_uname }, /* 189 = sunos_uname */
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: sunos_misc.c,v 1.46 1995/04/26 23:12:02 gwr Exp $ */
/* $NetBSD: sunos_misc.c,v 1.47 1995/04/27 12:05:40 christos Exp $ */
/*
* Copyright (c) 1992, 1993
@ -1061,7 +1061,7 @@ sunos_reboot(p, uap, retval)
convp++;
}
#if defined(SUN3)
#ifdef sun3
/*
* Sun RB_STRING (Get user supplied bootstring.)
* If the machine supports passing a string to the
@ -1071,12 +1071,13 @@ sunos_reboot(p, uap, retval)
if (sun_howto & SUNOS_RB_STRING) {
char bs[128];
error = copyinstr(uap->bootstr, bs, sizeof(bs), 0);
if (error) return error;
error = copyinstr(SCARG(uap, bootstr), bs, sizeof(bs), 0);
if (error)
return error;
return (reboot2(bsd_howto, bs));
}
#endif /* sun3, ... */
#endif /* sun3 */
return (boot(bsd_howto));
}

View File

@ -2,75 +2,80 @@
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from: NetBSD syscalls.master,v 1.17 1994/06/29 06:30:25
* created from NetBSD: syscalls.master,v 1.26 1995/04/22 23:45:33 christos Exp
*/
#include <sys/param.h>
#include <sys/systm.h>
int nosys();
#include <sys/signal.h>
#include <sys/mount.h>
#include <sys/syscallargs.h>
#include <compat/sunos/sunos.h>
#include <compat/sunos/sunos_syscallargs.h>
int nosys();
int exit();
int fork();
int read();
int write();
int sun_open();
int sunos_open();
int close();
int sun_wait4();
int sun_creat();
int sunos_wait4();
int sunos_creat();
int link();
int unlink();
int sun_execv();
int sunos_execv();
int chdir();
int sun_mknod();
int sunos_mknod();
int chmod();
int chown();
int obreak();
int olseek();
int compat_43_lseek();
int getpid();
int setuid();
int getuid();
int sunos_ptrace();
int access();
int sync();
int kill();
int ostat();
int olstat();
int compat_43_stat();
int compat_43_lstat();
int dup();
int pipe();
int profil();
int setgid();
int getgid();
int acct();
int sun_mctl();
int sun_ioctl();
int reboot();
int sunos_mctl();
int sunos_ioctl();
int sunos_reboot();
int symlink();
int readlink();
int execve();
int umask();
int chroot();
int ofstat();
int ogetpagesize();
int sun_omsync();
int compat_43_fstat();
int compat_43_getpagesize();
int sunos_omsync();
int vfork();
int sbrk();
int sstk();
int sun_mmap();
int sunos_mmap();
int ovadvise();
int munmap();
int mprotect();
int madvise();
int sun_vhangup();
int sunos_vhangup();
int mincore();
int getgroups();
int setgroups();
int getpgrp();
int sun_setpgid();
int sunos_setpgid();
int setitimer();
int swapon();
int getitimer();
int ogethostname();
int osethostname();
int ogetdtablesize();
int compat_43_gethostname();
int compat_43_sethostname();
int compat_43_getdtablesize();
int dup2();
int fcntl();
int select();
@ -78,20 +83,20 @@ int fsync();
int setpriority();
int socket();
int connect();
int oaccept();
int compat_43_accept();
int getpriority();
int osend();
int orecv();
int compat_43_send();
int compat_43_recv();
int bind();
int sun_setsockopt();
int sunos_setsockopt();
int listen();
int osigvec();
int osigblock();
int osigsetmask();
int compat_43_sigvec();
int compat_43_sigblock();
int compat_43_sigsetmask();
int sigsuspend();
int osigstack();
int orecvmsg();
int osendmsg();
int compat_43_sigstack();
int compat_43_recvmsg();
int compat_43_sendmsg();
int gettimeofday();
int getrusage();
int getsockopt();
@ -100,12 +105,12 @@ int writev();
int settimeofday();
int fchown();
int fchmod();
int orecvfrom();
int osetreuid();
int osetregid();
int compat_43_recvfrom();
int compat_43_setreuid();
int compat_43_setregid();
int rename();
int otruncate();
int oftruncate();
int compat_43_truncate();
int compat_43_ftruncate();
int flock();
int sendto();
int shutdown();
@ -113,75 +118,61 @@ int socketpair();
int mkdir();
int rmdir();
int utimes();
int sigreturn();
int sunos_sigreturn();
int adjtime();
int ogetpeername();
int ogethostid();
int sun_getrlimit();
int sun_setrlimit();
int okillpg();
int ogetsockname();
int compat_43_getpeername();
int compat_43_gethostid();
int sunos_getrlimit();
int sunos_setrlimit();
int compat_43_killpg();
int compat_43_getsockname();
int sunos_poll();
#ifdef NFSSERVER
int sun_nfssvc();
int sunos_nfssvc();
#else
#endif
int getdirentries();
int sun_statfs();
int sun_fstatfs();
int sun_unmount();
int sunos_statfs();
int sunos_fstatfs();
int sunos_unmount();
#ifdef NFSCLIENT
int async_daemon();
int getfh();
#else
#endif
int ogetdomainname();
int osetdomainname();
int sun_quotactl();
int sun_exportfs();
int sun_mount();
int sun_ustat();
int compat_09_getdomainname();
int compat_09_setdomainname();
int sunos_quotactl();
int sunos_exportfs();
int sunos_mount();
int sunos_ustat();
#ifdef SYSVSEM
int semsys();
int compat_10_semsys();
#else
#endif
#ifdef SYSVMSG
int msgsys();
int compat_10_msgsys();
#else
#endif
#ifdef SYSVSHM
int shmsys();
int compat_10_shmsys();
#else
#endif
int sun_auditsys();
int sun_getdents();
int sunos_auditsys();
int sunos_getdents();
int setsid();
int fchdir();
int sun_fchroot();
int sun_sigpending();
int sunos_fchroot();
int sunos_sigpending();
int setpgid();
int sun_sysconf();
int sun_uname();
int pathconf();
int fpathconf();
int sunos_sysconf();
int sunos_uname();
#ifdef XXX_UNUSED
#define compat(n, name) n, __CONCAT(o,name)
#ifdef COMPAT_43
#define compat_43(func) __CONCAT(compat_43_,func)
int osun_time();
int osun_stat();
int osetuid();
int osun_stime();
int osun_alarm();
int osun_fstat();
int osun_pause();
int osun_utime();
int osun_nice();
int osun_ftime();
int osun_setpgrp();
int osun_times();
int osun_setgid();
int osun_ssig();
int ovlimit();
int owait();
int ovtimes();
#ifdef NFSSERVER
#else
#endif
@ -198,222 +189,467 @@ int ovtimes();
#else
#endif
#else /* XXX_UNUSED */
#define compat(n, name) 0, nosys
#endif /* XXX_UNUSED */
#else /* COMPAT_43 */
#define compat_43(func) nosys
#endif /* COMPAT_43 */
#ifdef COMPAT_09
#define compat_09(func) __CONCAT(compat_09_,func)
struct sysent sun_sysent[] = {
{ 0, nosys }, /* 0 = syscall */
{ 1, exit }, /* 1 = exit */
{ 0, fork }, /* 2 = fork */
{ 3, read }, /* 3 = read */
{ 3, write }, /* 4 = write */
{ 3, sun_open }, /* 5 = sun_open */
{ 1, close }, /* 6 = close */
{ 4, sun_wait4 }, /* 7 = sun_wait4 */
{ 2, sun_creat }, /* 8 = sun_creat */
{ 2, link }, /* 9 = link */
{ 1, unlink }, /* 10 = unlink */
{ 2, sun_execv }, /* 11 = sun_execv */
{ 1, chdir }, /* 12 = chdir */
{ compat(0,sun_time) }, /* 13 = old sun_time */
{ 3, sun_mknod }, /* 14 = sun_mknod */
{ 2, chmod }, /* 15 = chmod */
{ 3, chown }, /* 16 = chown */
{ 1, obreak }, /* 17 = break */
{ compat(2,sun_stat) }, /* 18 = old sun_stat */
{ 3, olseek }, /* 19 = lseek */
{ 0, getpid }, /* 20 = getpid */
{ 0, nosys }, /* 21 = obsolete sun_old_mount */
{ 0, nosys }, /* 22 = System V umount */
{ compat(1,setuid) }, /* 23 = old setuid */
{ 0, getuid }, /* 24 = getuid */
{ compat(1,sun_stime) }, /* 25 = old sun_stime */
{ 0, nosys }, /* 26 = sun_ptrace */
{ compat(1,sun_alarm) }, /* 27 = old sun_alarm */
{ compat(1,sun_fstat) }, /* 28 = old sun_fstat */
{ compat(0,sun_pause) }, /* 29 = old sun_pause */
{ compat(2,sun_utime) }, /* 30 = old sun_utime */
{ 0, nosys }, /* 31 = was stty */
{ 0, nosys }, /* 32 = was gtty */
{ 2, access }, /* 33 = access */
{ compat(1,sun_nice) }, /* 34 = old sun_nice */
{ compat(1,sun_ftime) }, /* 35 = old sun_ftime */
{ 0, sync }, /* 36 = sync */
{ 2, kill }, /* 37 = kill */
{ 2, ostat }, /* 38 = stat */
{ compat(2,sun_setpgrp) }, /* 39 = old sun_setpgrp */
{ 2, olstat }, /* 40 = lstat */
{ 2, dup }, /* 41 = dup */
{ 0, pipe }, /* 42 = pipe */
{ compat(1,sun_times) }, /* 43 = old sun_times */
{ 4, profil }, /* 44 = profil */
{ 0, nosys }, /* 45 = nosys */
{ compat(1,sun_setgid) }, /* 46 = old sun_setgid */
{ 0, getgid }, /* 47 = getgid */
{ compat(2,sun_ssig) }, /* 48 = old sun_ssig */
{ 0, nosys }, /* 49 = reserved for USG */
{ 0, nosys }, /* 50 = reserved for USG */
{ 1, acct }, /* 51 = acct */
{ 0, nosys }, /* 52 = nosys */
{ 4, sun_mctl }, /* 53 = sun_mctl */
{ 3, sun_ioctl }, /* 54 = sun_ioctl */
{ 2, reboot }, /* 55 = reboot */
{ 0, nosys }, /* 56 = obsolete sun_owait3 */
{ 2, symlink }, /* 57 = symlink */
{ 3, readlink }, /* 58 = readlink */
{ 3, execve }, /* 59 = execve */
{ 1, umask }, /* 60 = umask */
{ 1, chroot }, /* 61 = chroot */
{ 2, ofstat }, /* 62 = ofstat */
{ 0, nosys }, /* 63 = nosys */
{ 0, ogetpagesize }, /* 64 = ogetpagesize */
{ 3, sun_omsync }, /* 65 = sun_omsync */
{ 0, vfork }, /* 66 = vfork */
{ 0, nosys }, /* 67 = obsolete vread */
{ 0, nosys }, /* 68 = obsolete vwrite */
{ 1, sbrk }, /* 69 = sbrk */
{ 1, sstk }, /* 70 = sstk */
{ 6, sun_mmap }, /* 71 = mmap */
{ 1, ovadvise }, /* 72 = vadvise */
{ 2, munmap }, /* 73 = munmap */
{ 3, mprotect }, /* 74 = mprotect */
{ 3, madvise }, /* 75 = madvise */
{ 0, sun_vhangup }, /* 76 = sun_vhangup */
{ compat(0,vlimit) }, /* 77 = old vlimit */
{ 3, mincore }, /* 78 = mincore */
{ 2, getgroups }, /* 79 = getgroups */
{ 2, setgroups }, /* 80 = setgroups */
{ 1, getpgrp }, /* 81 = getpgrp */
{ 2, sun_setpgid }, /* 82 = sun_setpgid */
{ 3, setitimer }, /* 83 = setitimer */
{ compat(0,wait) }, /* 84 = old wait */
{ 1, swapon }, /* 85 = swapon */
{ 2, getitimer }, /* 86 = getitimer */
{ 2, ogethostname }, /* 87 = ogethostname */
{ 2, osethostname }, /* 88 = osethostname */
{ 0, ogetdtablesize }, /* 89 = ogetdtablesize */
{ 2, dup2 }, /* 90 = dup2 */
{ 0, nosys }, /* 91 = getdopt */
{ 3, fcntl }, /* 92 = fcntl */
{ 5, select }, /* 93 = select */
{ 0, nosys }, /* 94 = setdopt */
{ 1, fsync }, /* 95 = fsync */
{ 3, setpriority }, /* 96 = setpriority */
{ 3, socket }, /* 97 = socket */
{ 3, connect }, /* 98 = connect */
{ 3, oaccept }, /* 99 = oaccept */
{ 2, getpriority }, /* 100 = getpriority */
{ 4, osend }, /* 101 = osend */
{ 4, orecv }, /* 102 = orecv */
{ 0, nosys }, /* 103 = old socketaddr */
{ 3, bind }, /* 104 = bind */
{ 5, sun_setsockopt }, /* 105 = sun_setsockopt */
{ 2, listen }, /* 106 = listen */
{ compat(0,vtimes) }, /* 107 = old vtimes */
{ 3, osigvec }, /* 108 = osigvec */
{ 1, osigblock }, /* 109 = osigblock */
{ 1, osigsetmask }, /* 110 = osigsetmask */
{ 1, sigsuspend }, /* 111 = sigsuspend */
{ 2, osigstack }, /* 112 = osigstack */
{ 3, orecvmsg }, /* 113 = orecvmsg */
{ 3, osendmsg }, /* 114 = osendmsg */
{ 0, nosys }, /* 115 = obsolete vtrace */
{ 2, gettimeofday }, /* 116 = gettimeofday */
{ 2, getrusage }, /* 117 = getrusage */
{ 5, getsockopt }, /* 118 = getsockopt */
{ 0, nosys }, /* 119 = nosys */
{ 3, readv }, /* 120 = readv */
{ 3, writev }, /* 121 = writev */
{ 2, settimeofday }, /* 122 = settimeofday */
{ 3, fchown }, /* 123 = fchown */
{ 2, fchmod }, /* 124 = fchmod */
{ 6, orecvfrom }, /* 125 = orecvfrom */
{ 2, osetreuid }, /* 126 = osetreuid */
{ 2, osetregid }, /* 127 = osetregid */
{ 2, rename }, /* 128 = rename */
{ 2, otruncate }, /* 129 = truncate */
{ 2, oftruncate }, /* 130 = ftruncate */
{ 2, flock }, /* 131 = flock */
{ 0, nosys }, /* 132 = nosys */
{ 6, sendto }, /* 133 = sendto */
{ 2, shutdown }, /* 134 = shutdown */
{ 5, socketpair }, /* 135 = socketpair */
{ 2, mkdir }, /* 136 = mkdir */
{ 1, rmdir }, /* 137 = rmdir */
{ 2, utimes }, /* 138 = utimes */
{ 1, sigreturn }, /* 139 = sigreturn */
{ 2, adjtime }, /* 140 = adjtime */
{ 3, ogetpeername }, /* 141 = ogetpeername */
{ 0, ogethostid }, /* 142 = ogethostid */
{ 0, nosys }, /* 143 = old sethostid */
{ 2, sun_getrlimit }, /* 144 = sun_getrlimit */
{ 2, sun_setrlimit }, /* 145 = sun_setrlimit */
{ 2, okillpg }, /* 146 = okillpg */
{ 0, nosys }, /* 147 = nosys */
{ 0, nosys }, /* 148 = nosys */
{ 0, nosys }, /* 149 = nosys */
{ 3, ogetsockname }, /* 150 = ogetsockname */
{ 0, nosys }, /* 151 = getmsg */
{ 0, nosys }, /* 152 = putmsg */
{ 0, nosys }, /* 153 = poll */
{ 0, nosys }, /* 154 = nosys */
#ifdef NFSSERVER
{ 0, sun_nfssvc }, /* 155 = sun_nfssvc */
#else
{ 0, nosys }, /* 155 = nosys */
#endif
{ 4, getdirentries }, /* 156 = getdirentries */
{ 2, sun_statfs }, /* 157 = sun_statfs */
{ 2, sun_fstatfs }, /* 158 = sun_fstatfs */
{ 1, sun_unmount }, /* 159 = sun_unmount */
#ifdef NFSCLIENT
{ 0, async_daemon }, /* 160 = async_daemon */
{ 2, getfh }, /* 161 = getfh */
#else
{ 0, nosys }, /* 160 = nosys */
{ 0, nosys }, /* 161 = nosys */
#endif
{ 2, ogetdomainname }, /* 162 = ogetdomainname */
{ 2, osetdomainname }, /* 163 = osetdomainname */
{ 0, nosys }, /* 164 = rtschedule */
{ 4, sun_quotactl }, /* 165 = sun_quotactl */
{ 2, sun_exportfs }, /* 166 = sun_exportfs */
{ 4, sun_mount }, /* 167 = sun_mount */
{ 2, sun_ustat }, /* 168 = sun_ustat */
#ifdef SYSVSEM
{ 5, semsys }, /* 169 = semsys */
#else
{ 0, nosys }, /* 169 = nosys */
#endif
#ifdef SYSVMSG
{ 6, msgsys }, /* 170 = msgsys */
#else
{ 0, nosys }, /* 170 = nosys */
#endif
#ifdef SYSVSHM
{ 4, shmsys }, /* 171 = shmsys */
#else
{ 0, nosys }, /* 171 = nosys */
#endif
{ 4, sun_auditsys }, /* 172 = sun_auditsys */
{ 0, nosys }, /* 173 = rfssys */
{ 3, sun_getdents }, /* 174 = sun_getdents */
{ 1, setsid }, /* 175 = setsid */
{ 1, fchdir }, /* 176 = fchdir */
{ 1, sun_fchroot }, /* 177 = sun_fchroot */
{ 0, nosys }, /* 178 = vpixsys */
{ 0, nosys }, /* 179 = aioread */
{ 0, nosys }, /* 180 = aiowrite */
{ 0, nosys }, /* 181 = aiowait */
{ 0, nosys }, /* 182 = aiocancel */
{ 1, sun_sigpending }, /* 183 = sun_sigpending */
{ 0, nosys }, /* 184 = nosys */
{ 2, setpgid }, /* 185 = setpgid */
{ 0, nosys }, /* 186 = pathconf */
{ 0, nosys }, /* 187 = fpathconf */
{ 1, sun_sysconf }, /* 188 = sun_sysconf */
{ 1, sun_uname }, /* 189 = sun_uname */
#else /* COMPAT_09 */
#define compat_09(func) nosys
#endif /* COMPAT_09 */
#ifdef COMPAT_10
#define compat_10(func) __CONCAT(compat_10_,func)
#ifdef NFSSERVER
#else
#endif
#ifdef NFSCLIENT
#else
#endif
#ifdef SYSVSEM
#else
#endif
#ifdef SYSVMSG
#else
#endif
#ifdef SYSVSHM
#else
#endif
#else /* COMPAT_10 */
#define compat_10(func) nosys
#endif /* COMPAT_10 */
#define s(type) sizeof(type)
struct sysent sunos_sysent[] = {
{ 0, 0,
nosys }, /* 0 = syscall */
{ 1, s(struct exit_args),
exit }, /* 1 = exit */
{ 0, 0,
fork }, /* 2 = fork */
{ 3, s(struct read_args),
read }, /* 3 = read */
{ 3, s(struct write_args),
write }, /* 4 = write */
{ 3, s(struct sunos_open_args),
sunos_open }, /* 5 = sunos_open */
{ 1, s(struct close_args),
close }, /* 6 = close */
{ 4, s(struct sunos_wait4_args),
sunos_wait4 }, /* 7 = sunos_wait4 */
{ 2, s(struct sunos_creat_args),
sunos_creat }, /* 8 = sunos_creat */
{ 2, s(struct link_args),
link }, /* 9 = link */
{ 1, s(struct unlink_args),
unlink }, /* 10 = unlink */
{ 2, s(struct sunos_execv_args),
sunos_execv }, /* 11 = sunos_execv */
{ 1, s(struct chdir_args),
chdir }, /* 12 = chdir */
{ 0, 0,
nosys }, /* 13 = obsolete time */
{ 3, s(struct sunos_mknod_args),
sunos_mknod }, /* 14 = sunos_mknod */
{ 2, s(struct chmod_args),
chmod }, /* 15 = chmod */
{ 3, s(struct chown_args),
chown }, /* 16 = chown */
{ 1, s(struct obreak_args),
obreak }, /* 17 = break */
{ 0, 0,
nosys }, /* 18 = obsolete stat */
{ 3, s(struct compat_43_lseek_args),
compat_43_lseek }, /* 19 = compat_43_lseek */
{ 0, 0,
getpid }, /* 20 = getpid */
{ 0, 0,
nosys }, /* 21 = obsolete sunos_old_mount */
{ 0, 0,
nosys }, /* 22 = unimplemented System V umount */
{ 1, s(struct setuid_args),
setuid }, /* 23 = setuid */
{ 0, 0,
getuid }, /* 24 = getuid */
{ 0, 0,
nosys }, /* 25 = unimplemented sunos_stime */
{ 5, s(struct sunos_ptrace_args),
sunos_ptrace }, /* 26 = sunos_ptrace */
{ 0, 0,
nosys }, /* 27 = unimplemented sunos_alarm */
{ 0, 0,
nosys }, /* 28 = unimplemented sunos_fstat */
{ 0, 0,
nosys }, /* 29 = unimplemented sunos_pause */
{ 0, 0,
nosys }, /* 30 = unimplemented sunos_utime */
{ 0, 0,
nosys }, /* 31 = unimplemented sunos_stty */
{ 0, 0,
nosys }, /* 32 = unimplemented sunos_gtty */
{ 2, s(struct access_args),
access }, /* 33 = access */
{ 0, 0,
nosys }, /* 34 = unimplemented sunos_nice */
{ 0, 0,
nosys }, /* 35 = unimplemented sunos_ftime */
{ 0, 0,
sync }, /* 36 = sync */
{ 2, s(struct kill_args),
kill }, /* 37 = kill */
{ 2, s(struct compat_43_stat_args),
compat_43_stat }, /* 38 = compat_43_stat */
{ 0, 0,
nosys }, /* 39 = unimplemented sunos_setpgrp */
{ 2, s(struct compat_43_lstat_args),
compat_43_lstat }, /* 40 = compat_43_lstat */
{ 1, s(struct dup_args),
dup }, /* 41 = dup */
{ 0, 0,
pipe }, /* 42 = pipe */
{ 0, 0,
nosys }, /* 43 = unimplemented sunos_times */
{ 4, s(struct profil_args),
profil }, /* 44 = profil */
{ 0, 0,
nosys }, /* 45 = unimplemented */
{ 1, s(struct setgid_args),
setgid }, /* 46 = setgid */
{ 0, 0,
getgid }, /* 47 = getgid */
{ 0, 0,
nosys }, /* 48 = unimplemented sunos_ssig */
{ 0, 0,
nosys }, /* 49 = unimplemented reserved for USG */
{ 0, 0,
nosys }, /* 50 = unimplemented reserved for USG */
{ 1, s(struct acct_args),
acct }, /* 51 = acct */
{ 0, 0,
nosys }, /* 52 = unimplemented */
{ 4, s(struct sunos_mctl_args),
sunos_mctl }, /* 53 = sunos_mctl */
{ 3, s(struct sunos_ioctl_args),
sunos_ioctl }, /* 54 = sunos_ioctl */
{ 2, s(struct sunos_reboot_args),
sunos_reboot }, /* 55 = sunos_reboot */
{ 0, 0,
nosys }, /* 56 = obsolete sunos_owait3 */
{ 2, s(struct symlink_args),
symlink }, /* 57 = symlink */
{ 3, s(struct readlink_args),
readlink }, /* 58 = readlink */
{ 3, s(struct execve_args),
execve }, /* 59 = execve */
{ 1, s(struct umask_args),
umask }, /* 60 = umask */
{ 1, s(struct chroot_args),
chroot }, /* 61 = chroot */
{ 2, s(struct compat_43_fstat_args),
compat_43_fstat }, /* 62 = compat_43_fstat */
{ 0, 0,
nosys }, /* 63 = unimplemented */
{ 0, 0,
compat_43_getpagesize }, /* 64 = compat_43_getpagesize */
{ 3, s(struct sunos_omsync_args),
sunos_omsync }, /* 65 = sunos_omsync */
{ 0, 0,
vfork }, /* 66 = vfork */
{ 0, 0,
nosys }, /* 67 = obsolete vread */
{ 0, 0,
nosys }, /* 68 = obsolete vwrite */
{ 1, s(struct sbrk_args),
sbrk }, /* 69 = sbrk */
{ 1, s(struct sstk_args),
sstk }, /* 70 = sstk */
{ 6, s(struct sunos_mmap_args),
sunos_mmap }, /* 71 = sunos_mmap */
{ 1, s(struct ovadvise_args),
ovadvise }, /* 72 = vadvise */
{ 2, s(struct munmap_args),
munmap }, /* 73 = munmap */
{ 3, s(struct mprotect_args),
mprotect }, /* 74 = mprotect */
{ 3, s(struct madvise_args),
madvise }, /* 75 = madvise */
{ 0, 0,
sunos_vhangup }, /* 76 = sunos_vhangup */
{ 0, 0,
nosys }, /* 77 = unimplemented vlimit */
{ 3, s(struct mincore_args),
mincore }, /* 78 = mincore */
{ 2, s(struct getgroups_args),
getgroups }, /* 79 = getgroups */
{ 2, s(struct setgroups_args),
setgroups }, /* 80 = setgroups */
{ 0, 0,
getpgrp }, /* 81 = getpgrp */
{ 2, s(struct sunos_setpgid_args),
sunos_setpgid }, /* 82 = sunos_setpgid */
{ 3, s(struct setitimer_args),
setitimer }, /* 83 = setitimer */
{ 0, 0,
nosys }, /* 84 = unimplemented { int sunos_wait ( void ) ; } */
{ 1, s(struct swapon_args),
swapon }, /* 85 = swapon */
{ 2, s(struct getitimer_args),
getitimer }, /* 86 = getitimer */
{ 2, s(struct compat_43_gethostname_args),
compat_43_gethostname }, /* 87 = compat_43_gethostname */
{ 2, s(struct compat_43_sethostname_args),
compat_43_sethostname }, /* 88 = compat_43_sethostname */
{ 0, 0,
compat_43_getdtablesize }, /* 89 = compat_43_getdtablesize */
{ 2, s(struct dup2_args),
dup2 }, /* 90 = dup2 */
{ 0, 0,
nosys }, /* 91 = unimplemented getdopt */
{ 3, s(struct fcntl_args),
fcntl }, /* 92 = fcntl */
{ 5, s(struct select_args),
select }, /* 93 = select */
{ 0, 0,
nosys }, /* 94 = unimplemented setdopt */
{ 1, s(struct fsync_args),
fsync }, /* 95 = fsync */
{ 3, s(struct setpriority_args),
setpriority }, /* 96 = setpriority */
{ 3, s(struct socket_args),
socket }, /* 97 = socket */
{ 3, s(struct connect_args),
connect }, /* 98 = connect */
{ 3, s(struct compat_43_accept_args),
compat_43_accept }, /* 99 = compat_43_accept */
{ 2, s(struct getpriority_args),
getpriority }, /* 100 = getpriority */
{ 4, s(struct compat_43_send_args),
compat_43_send }, /* 101 = compat_43_send */
{ 4, s(struct compat_43_recv_args),
compat_43_recv }, /* 102 = compat_43_recv */
{ 0, 0,
nosys }, /* 103 = unimplemented old socketaddr */
{ 3, s(struct bind_args),
bind }, /* 104 = bind */
{ 5, s(struct sunos_setsockopt_args),
sunos_setsockopt }, /* 105 = sunos_setsockopt */
{ 2, s(struct listen_args),
listen }, /* 106 = listen */
{ 0, 0,
nosys }, /* 107 = unimplemented vtimes */
{ 3, s(struct compat_43_sigvec_args),
compat_43_sigvec }, /* 108 = compat_43_sigvec */
{ 1, s(struct compat_43_sigblock_args),
compat_43_sigblock }, /* 109 = compat_43_sigblock */
{ 1, s(struct compat_43_sigsetmask_args),
compat_43_sigsetmask }, /* 110 = compat_43_sigsetmask */
{ 1, s(struct sigsuspend_args),
sigsuspend }, /* 111 = sigsuspend */
{ 2, s(struct compat_43_sigstack_args),
compat_43_sigstack }, /* 112 = compat_43_sigstack */
{ 3, s(struct compat_43_recvmsg_args),
compat_43_recvmsg }, /* 113 = compat_43_recvmsg */
{ 3, s(struct compat_43_sendmsg_args),
compat_43_sendmsg }, /* 114 = compat_43_sendmsg */
{ 0, 0,
nosys }, /* 115 = obsolete vtrace */
{ 2, s(struct gettimeofday_args),
gettimeofday }, /* 116 = gettimeofday */
{ 2, s(struct getrusage_args),
getrusage }, /* 117 = getrusage */
{ 5, s(struct getsockopt_args),
getsockopt }, /* 118 = getsockopt */
{ 0, 0,
nosys }, /* 119 = unimplemented */
{ 3, s(struct readv_args),
readv }, /* 120 = readv */
{ 3, s(struct writev_args),
writev }, /* 121 = writev */
{ 2, s(struct settimeofday_args),
settimeofday }, /* 122 = settimeofday */
{ 3, s(struct fchown_args),
fchown }, /* 123 = fchown */
{ 2, s(struct fchmod_args),
fchmod }, /* 124 = fchmod */
{ 6, s(struct compat_43_recvfrom_args),
compat_43_recvfrom }, /* 125 = compat_43_recvfrom */
{ 2, s(struct compat_43_setreuid_args),
compat_43_setreuid }, /* 126 = compat_43_setreuid */
{ 2, s(struct compat_43_setregid_args),
compat_43_setregid }, /* 127 = compat_43_setregid */
{ 2, s(struct rename_args),
rename }, /* 128 = rename */
{ 2, s(struct compat_43_truncate_args),
compat_43_truncate }, /* 129 = compat_43_truncate */
{ 2, s(struct compat_43_ftruncate_args),
compat_43_ftruncate }, /* 130 = compat_43_ftruncate */
{ 2, s(struct flock_args),
flock }, /* 131 = flock */
{ 0, 0,
nosys }, /* 132 = unimplemented */
{ 6, s(struct sendto_args),
sendto }, /* 133 = sendto */
{ 2, s(struct shutdown_args),
shutdown }, /* 134 = shutdown */
{ 4, s(struct socketpair_args),
socketpair }, /* 135 = socketpair */
{ 2, s(struct mkdir_args),
mkdir }, /* 136 = mkdir */
{ 1, s(struct rmdir_args),
rmdir }, /* 137 = rmdir */
{ 2, s(struct utimes_args),
utimes }, /* 138 = utimes */
{ 1, s(struct sunos_sigreturn_args),
sunos_sigreturn }, /* 139 = sunos_sigreturn */
{ 2, s(struct adjtime_args),
adjtime }, /* 140 = adjtime */
{ 3, s(struct compat_43_getpeername_args),
compat_43_getpeername }, /* 141 = compat_43_getpeername */
{ 0, 0,
compat_43_gethostid }, /* 142 = compat_43_gethostid */
{ 0, 0,
nosys }, /* 143 = unimplemented old sethostid */
{ 2, s(struct sunos_getrlimit_args),
sunos_getrlimit }, /* 144 = sunos_getrlimit */
{ 2, s(struct sunos_setrlimit_args),
sunos_setrlimit }, /* 145 = sunos_setrlimit */
{ 2, s(struct compat_43_killpg_args),
compat_43_killpg }, /* 146 = compat_43_killpg */
{ 0, 0,
nosys }, /* 147 = unimplemented */
{ 0, 0,
nosys }, /* 148 = unimplemented */
{ 0, 0,
nosys }, /* 149 = unimplemented */
{ 3, s(struct compat_43_getsockname_args),
compat_43_getsockname }, /* 150 = compat_43_getsockname */
{ 0, 0,
nosys }, /* 151 = unimplemented getmsg */
{ 0, 0,
nosys }, /* 152 = unimplemented putmsg */
{ 3, s(struct sunos_poll_args),
sunos_poll }, /* 153 = sunos_poll */
{ 0, 0,
nosys }, /* 154 = unimplemented */
#ifdef NFSSERVER
{ 1, s(struct sunos_nfssvc_args),
sunos_nfssvc }, /* 155 = sunos_nfssvc */
#else
{ 0, 0,
nosys }, /* 155 = unimplemented */
#endif
{ 4, s(struct getdirentries_args),
getdirentries }, /* 156 = getdirentries */
{ 2, s(struct sunos_statfs_args),
sunos_statfs }, /* 157 = sunos_statfs */
{ 2, s(struct sunos_fstatfs_args),
sunos_fstatfs }, /* 158 = sunos_fstatfs */
{ 2, s(struct sunos_unmount_args),
sunos_unmount }, /* 159 = sunos_unmount */
#ifdef NFSCLIENT
{ 0, 0,
async_daemon }, /* 160 = async_daemon */
{ 2, s(struct getfh_args),
getfh }, /* 161 = getfh */
#else
{ 0, 0,
nosys }, /* 160 = unimplemented */
{ 0, 0,
nosys }, /* 161 = unimplemented */
#endif
{ 2, s(struct compat_09_getdomainname_args),
compat_09_getdomainname }, /* 162 = compat_09_getdomainname */
{ 2, s(struct compat_09_setdomainname_args),
compat_09_setdomainname }, /* 163 = compat_09_setdomainname */
{ 0, 0,
nosys }, /* 164 = unimplemented rtschedule */
{ 4, s(struct sunos_quotactl_args),
sunos_quotactl }, /* 165 = sunos_quotactl */
{ 2, s(struct sunos_exportfs_args),
sunos_exportfs }, /* 166 = sunos_exportfs */
{ 4, s(struct sunos_mount_args),
sunos_mount }, /* 167 = sunos_mount */
{ 2, s(struct sunos_ustat_args),
sunos_ustat }, /* 168 = sunos_ustat */
#ifdef SYSVSEM
{ 5, s(struct compat_10_semsys_args),
compat_10_semsys }, /* 169 = compat_10_semsys */
#else
{ 0, 0,
nosys }, /* 169 = unimplemented nosys */
#endif
#ifdef SYSVMSG
{ 6, s(struct compat_10_msgsys_args),
compat_10_msgsys }, /* 170 = compat_10_msgsys */
#else
{ 0, 0,
nosys }, /* 170 = unimplemented nosys */
#endif
#ifdef SYSVSHM
{ 4, s(struct compat_10_shmsys_args),
compat_10_shmsys }, /* 171 = compat_10_shmsys */
#else
{ 0, 0,
nosys }, /* 171 = unimplemented nosys */
#endif
{ 1, s(struct sunos_auditsys_args),
sunos_auditsys }, /* 172 = sunos_auditsys */
{ 0, 0,
nosys }, /* 173 = unimplemented rfssys */
{ 3, s(struct sunos_getdents_args),
sunos_getdents }, /* 174 = sunos_getdents */
{ 0, 0,
setsid }, /* 175 = setsid */
{ 1, s(struct fchdir_args),
fchdir }, /* 176 = fchdir */
{ 1, s(struct sunos_fchroot_args),
sunos_fchroot }, /* 177 = sunos_fchroot */
{ 0, 0,
nosys }, /* 178 = unimplemented vpixsys */
{ 0, 0,
nosys }, /* 179 = unimplemented aioread */
{ 0, 0,
nosys }, /* 180 = unimplemented aiowrite */
{ 0, 0,
nosys }, /* 181 = unimplemented aiowait */
{ 0, 0,
nosys }, /* 182 = unimplemented aiocancel */
{ 1, s(struct sunos_sigpending_args),
sunos_sigpending }, /* 183 = sunos_sigpending */
{ 0, 0,
nosys }, /* 184 = unimplemented */
{ 2, s(struct setpgid_args),
setpgid }, /* 185 = setpgid */
{ 2, s(struct pathconf_args),
pathconf }, /* 186 = pathconf */
{ 2, s(struct fpathconf_args),
fpathconf }, /* 187 = fpathconf */
{ 1, s(struct sunos_sysconf_args),
sunos_sysconf }, /* 188 = sunos_sysconf */
{ 1, s(struct sunos_uname_args),
sunos_uname }, /* 189 = sunos_uname */
};
int nsun_sysent = sizeof(sun_sysent) / sizeof(sun_sysent[0]);

View File

@ -1,8 +1,8 @@
# $NetBSD: syscalls.conf,v 1.2 1994/10/26 02:57:10 cgd Exp $
# $NetBSD: syscalls.conf,v 1.3 1995/04/27 12:05:43 christos Exp $
sysnames="sunos_syscalls.c"
sysnumhdr="sunos_syscall.h"
syssw="sunos_init_sysent.c"
syssw="sunos_sysent.c"
sysarghdr="sunos_syscallargs.h"
compatopts="compat_43 compat_09 compat_10"
libcompatopts=""