From 753fd8506c143da6fa56159337fa27d177d8fb8d Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Mon, 5 Jun 2006 07:26:11 +0000 Subject: [PATCH] Modify kern/makesyscall.sh to prefix all kernel system call procedures with "sys_". Modify all related kernel procedures to use the new naming convention. This gets rid of most of the namespace overloading between the kernel and standard header files. --- sys/dev/raid/vinum/vinum.c | 4 +- sys/emulation/43bsd/43bsd_exit.c | 4 +- sys/emulation/43bsd/43bsd_file.c | 12 +- sys/emulation/43bsd/43bsd_hostinfo.c | 14 +- sys/emulation/43bsd/43bsd_resource.c | 6 +- sys/emulation/43bsd/43bsd_signal.c | 12 +- sys/emulation/43bsd/43bsd_socket.c | 18 +- sys/emulation/43bsd/43bsd_stats.c | 8 +- sys/emulation/43bsd/43bsd_vm.c | 8 +- .../dragonfly12/dfbsd12_getdirentries.c | 6 +- sys/emulation/dragonfly12/dfbsd12_stat.c | 10 +- sys/emulation/linux/i386/linux_dummy.c | 4 +- sys/emulation/linux/i386/linux_machdep.c | 64 +- sys/emulation/linux/i386/linux_proto.h | 344 +++---- sys/emulation/linux/i386/linux_ptrace.c | 4 +- sys/emulation/linux/i386/linux_syscall.h | 4 +- sys/emulation/linux/i386/linux_sysent.c | 538 +++++------ sys/emulation/linux/i386/linux_sysvec.c | 6 +- sys/emulation/linux/i386/linux_union.h | 3 +- sys/emulation/linux/i386/syscalls.master | 8 +- sys/emulation/linux/linux_file.c | 70 +- sys/emulation/linux/linux_getcwd.c | 4 +- sys/emulation/linux/linux_ioctl.c | 4 +- sys/emulation/linux/linux_ipc.c | 28 +- sys/emulation/linux/linux_misc.c | 92 +- sys/emulation/linux/linux_signal.c | 18 +- sys/emulation/linux/linux_socket.c | 4 +- sys/emulation/linux/linux_stats.c | 20 +- sys/emulation/linux/linux_sysctl.c | 4 +- sys/emulation/linux/linux_uid16.c | 46 +- sys/emulation/linux/linux_util.h | 4 +- sys/emulation/posix4/p1003_1b.c | 18 +- sys/i386/i386/machdep.c | 4 +- sys/i386/i386/sys_machdep.c | 4 +- sys/i386/i386/tls.c | 6 +- sys/kern/imgact_resident.c | 6 +- sys/kern/init_main.c | 4 +- sys/kern/init_sysent.c | 900 +++++++++--------- sys/kern/kern_acct.c | 4 +- sys/kern/kern_acl.c | 18 +- sys/kern/kern_checkpoint.c | 4 +- sys/kern/kern_descrip.c | 22 +- sys/kern/kern_event.c | 6 +- sys/kern/kern_exec.c | 4 +- sys/kern/kern_exit.c | 10 +- sys/kern/kern_fork.c | 8 +- sys/kern/kern_jail.c | 6 +- sys/kern/kern_ktrace.c | 6 +- sys/kern/kern_linker.c | 16 +- sys/kern/kern_module.c | 10 +- sys/kern/kern_ntptime.c | 4 +- sys/kern/kern_p1003_1b.c | 18 +- sys/kern/kern_prot.c | 54 +- sys/kern/kern_resource.c | 14 +- sys/kern/kern_shutdown.c | 8 +- sys/kern/kern_sig.c | 20 +- sys/kern/kern_syscalls.c | 10 +- sys/kern/kern_sysctl.c | 4 +- sys/kern/kern_threads.c | 8 +- sys/kern/kern_time.c | 22 +- sys/kern/kern_umtx.c | 6 +- sys/kern/kern_upcall.c | 6 +- sys/kern/kern_usched.c | 4 +- sys/kern/kern_varsym.c | 8 +- sys/kern/kern_xxx.c | 8 +- sys/kern/lwkt_caps.c | 22 +- sys/kern/makesyscalls.sh | 36 +- sys/kern/subr_prof.c | 4 +- sys/kern/sys_generic.c | 28 +- sys/kern/sys_pipe.c | 4 +- sys/kern/sys_process.c | 4 +- sys/kern/syscalls.c | 4 +- sys/kern/syscalls.master | 4 +- sys/kern/sysv_msg.c | 16 +- sys/kern/sysv_sem.c | 23 +- sys/kern/sysv_shm.c | 24 +- sys/kern/uipc_syscalls.c | 34 +- sys/kern/vfs_aio.c | 18 +- sys/kern/vfs_cache.c | 4 +- sys/kern/vfs_syscalls.c | 108 +-- sys/netproto/ncp/ncp_mod.c | 4 +- sys/platform/pc32/i386/machdep.c | 4 +- sys/platform/pc32/i386/sys_machdep.c | 4 +- sys/platform/pc32/i386/tls.c | 6 +- sys/sys/syscall-args | 6 +- sys/sys/syscall-hide.h | 4 +- sys/sys/syscall.h | 4 +- sys/sys/syscall.mk | 4 +- sys/sys/sysproto.h | 600 ++++++------ sys/sys/sysunion.h | 68 +- sys/vfs/mfs/mfs_vnops.c | 4 +- sys/vfs/nfs/nfs_subs.c | 6 +- sys/vfs/nfs/nfs_syscalls.c | 4 +- sys/vfs/portal/portal_vnops.c | 4 +- sys/vm/vm_mmap.c | 28 +- sys/vm/vm_swap.c | 4 +- sys/vm/vm_unix.c | 4 +- 97 files changed, 1862 insertions(+), 1850 deletions(-) diff --git a/sys/dev/raid/vinum/vinum.c b/sys/dev/raid/vinum/vinum.c index 37c97bf055..aca9317241 100644 --- a/sys/dev/raid/vinum/vinum.c +++ b/sys/dev/raid/vinum/vinum.c @@ -37,7 +37,7 @@ * * $Id: vinum.c,v 1.33 2001/01/09 06:19:15 grog Exp grog $ * $FreeBSD: src/sys/dev/vinum/vinum.c,v 1.38.2.3 2003/01/07 12:14:16 joerg Exp $ - * $DragonFly: src/sys/dev/raid/vinum/vinum.c,v 1.11 2004/05/19 22:52:48 dillon Exp $ + * $DragonFly: src/sys/dev/raid/vinum/vinum.c,v 1.12 2006/06/05 07:26:06 dillon Exp $ */ #define STATIC static /* nothing while we're testing XXX */ @@ -248,7 +248,7 @@ vinum_modevent(module_t mod, modeventtype_t type, void *unused) if (!vinum_inactive(1)) /* is anything open? */ return EBUSY; /* yes, we can't do it */ vinum_conf.flags |= VF_STOPPING; /* note that we want to stop */ - sync(NULL); /* write out buffers */ + sys_sync(NULL); /* write out buffers */ free_vinum(0); /* clean up */ #ifdef VINUMDEBUG if (total_malloced) { diff --git a/sys/emulation/43bsd/43bsd_exit.c b/sys/emulation/43bsd/43bsd_exit.c index 925e659c0a..5b985ece61 100644 --- a/sys/emulation/43bsd/43bsd_exit.c +++ b/sys/emulation/43bsd/43bsd_exit.c @@ -37,7 +37,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/emulation/43bsd/43bsd_exit.c,v 1.1 2003/11/03 15:57:33 daver Exp $ + * $DragonFly: src/sys/emulation/43bsd/43bsd_exit.c,v 1.2 2006/06/05 07:26:07 dillon Exp $ * from: DragonFly kern/kern_exit.c,v 1.26 * * These syscalls used to live in kern/kern_exit.c. They are modified @@ -61,7 +61,7 @@ * owait_args(int dummy) */ int -owait(struct owait_args *uap) +sys_owait(struct owait_args *uap) { int error, status; diff --git a/sys/emulation/43bsd/43bsd_file.c b/sys/emulation/43bsd/43bsd_file.c index 02029c47cf..6d84866a6b 100644 --- a/sys/emulation/43bsd/43bsd_file.c +++ b/sys/emulation/43bsd/43bsd_file.c @@ -37,7 +37,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/emulation/43bsd/43bsd_file.c,v 1.9 2005/08/27 20:23:05 joerg Exp $ + * $DragonFly: src/sys/emulation/43bsd/43bsd_file.c,v 1.10 2006/06/05 07:26:07 dillon Exp $ * from: DragonFly kern/vfs_syscalls.c,v 1.20 * * These syscalls used to live in kern/vfs_syscalls.c. They are modified @@ -66,7 +66,7 @@ #include int -ocreat(struct ocreat_args *uap) +sys_ocreat(struct ocreat_args *uap) { struct nlookupdata nd; int error; @@ -80,7 +80,7 @@ ocreat(struct ocreat_args *uap) } int -oftruncate(struct oftruncate_args *uap) +sys_oftruncate(struct oftruncate_args *uap) { int error; @@ -90,7 +90,7 @@ oftruncate(struct oftruncate_args *uap) } int -olseek(struct olseek_args *uap) +sys_olseek(struct olseek_args *uap) { int error; @@ -101,7 +101,7 @@ olseek(struct olseek_args *uap) } int -otruncate(struct otruncate_args *uap) +sys_otruncate(struct otruncate_args *uap) { struct nlookupdata nd; int error; @@ -126,7 +126,7 @@ struct odirent { }; int -ogetdirentries(struct ogetdirentries_args *uap) +sys_ogetdirentries(struct ogetdirentries_args *uap) { int error, bytes_transfered; char *buf, *outbuf; diff --git a/sys/emulation/43bsd/43bsd_hostinfo.c b/sys/emulation/43bsd/43bsd_hostinfo.c index bad7105a7c..58a2d56ba1 100644 --- a/sys/emulation/43bsd/43bsd_hostinfo.c +++ b/sys/emulation/43bsd/43bsd_hostinfo.c @@ -32,7 +32,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/emulation/43bsd/43bsd_hostinfo.c,v 1.2 2003/11/14 02:54:52 daver Exp $ + * $DragonFly: src/sys/emulation/43bsd/43bsd_hostinfo.c,v 1.3 2006/06/05 07:26:07 dillon Exp $ * from: DragonFly kern/kern_xxx.c,v 1.7 * from: DragonFly kern/kern_sysctl.c,v 1.12 * @@ -51,7 +51,7 @@ #include int -ogethostname(struct gethostname_args *uap) +sys_ogethostname(struct gethostname_args *uap) { size_t len; char *hostname; @@ -72,7 +72,7 @@ ogethostname(struct gethostname_args *uap) } int -osethostname(struct sethostname_args *uap) +sys_osethostname(struct sethostname_args *uap) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -103,14 +103,14 @@ osethostname(struct sethostname_args *uap) } int -ogethostid(struct ogethostid_args *uap) +sys_ogethostid(struct ogethostid_args *uap) { uap->sysmsg_lresult = hostid; return (0); } int -osethostid(struct osethostid_args *uap) +sys_osethostid(struct osethostid_args *uap) { struct thread *td = curthread; int error; @@ -123,7 +123,7 @@ osethostid(struct osethostid_args *uap) } int -oquota(struct oquota_args *uap) +sys_oquota(struct oquota_args *uap) { return (ENOSYS); } @@ -184,7 +184,7 @@ static struct { static char bsdi_strings[80]; /* It had better be less than this! */ int -ogetkerninfo(struct getkerninfo_args *uap) +sys_ogetkerninfo(struct getkerninfo_args *uap) { int error, name[6]; size_t size; diff --git a/sys/emulation/43bsd/43bsd_resource.c b/sys/emulation/43bsd/43bsd_resource.c index 81e90697a4..d29f777df8 100644 --- a/sys/emulation/43bsd/43bsd_resource.c +++ b/sys/emulation/43bsd/43bsd_resource.c @@ -37,7 +37,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/emulation/43bsd/43bsd_resource.c,v 1.1 2003/11/03 15:57:33 daver Exp $ + * $DragonFly: src/sys/emulation/43bsd/43bsd_resource.c,v 1.2 2006/06/05 07:26:07 dillon Exp $ * from: DragonFly kern/kern_resource.c,v 1.14 * * These syscalls used to live in kern/kern_resource.c. They are modified @@ -55,7 +55,7 @@ #include int -ogetrlimit(struct ogetrlimit_args *uap) +sys_ogetrlimit(struct ogetrlimit_args *uap) { struct orlimit olim; struct rlimit lim; @@ -77,7 +77,7 @@ ogetrlimit(struct ogetrlimit_args *uap) } int -osetrlimit(struct osetrlimit_args *uap) +sys_osetrlimit(struct osetrlimit_args *uap) { struct orlimit olim; struct rlimit lim; diff --git a/sys/emulation/43bsd/43bsd_signal.c b/sys/emulation/43bsd/43bsd_signal.c index 84612a0d7a..926d16da9b 100644 --- a/sys/emulation/43bsd/43bsd_signal.c +++ b/sys/emulation/43bsd/43bsd_signal.c @@ -37,7 +37,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/emulation/43bsd/43bsd_signal.c,v 1.2 2005/06/16 17:55:58 dillon Exp $ + * $DragonFly: src/sys/emulation/43bsd/43bsd_signal.c,v 1.3 2006/06/05 07:26:07 dillon Exp $ * from: DragonFly kern/kern_sig.c,v 1.22 * * These syscalls used to live in kern/kern_sig.c. They are modified @@ -76,7 +76,7 @@ */ int -osigvec(struct osigvec_args *uap) +sys_osigvec(struct osigvec_args *uap) { struct sigvec vec; struct sigaction nsa, osa; @@ -111,7 +111,7 @@ osigvec(struct osigvec_args *uap) } int -osigblock(struct osigblock_args *uap) +sys_osigblock(struct osigblock_args *uap) { struct proc *p = curproc; sigset_t set; @@ -126,7 +126,7 @@ osigblock(struct osigblock_args *uap) } int -osigsetmask(struct osigsetmask_args *uap) +sys_osigsetmask(struct osigsetmask_args *uap) { struct proc *p = curproc; sigset_t set; @@ -141,7 +141,7 @@ osigsetmask(struct osigsetmask_args *uap) } int -osigstack(struct osigstack_args *uap) +sys_osigstack(struct osigstack_args *uap) { struct proc *p = curproc; struct sigstack ss; @@ -162,7 +162,7 @@ osigstack(struct osigstack_args *uap) } int -okillpg(struct okillpg_args *uap) +sys_okillpg(struct okillpg_args *uap) { int error; diff --git a/sys/emulation/43bsd/43bsd_socket.c b/sys/emulation/43bsd/43bsd_socket.c index 5fd1364549..1ce2277b6f 100644 --- a/sys/emulation/43bsd/43bsd_socket.c +++ b/sys/emulation/43bsd/43bsd_socket.c @@ -32,7 +32,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/emulation/43bsd/43bsd_socket.c,v 1.6 2006/04/26 17:42:50 dillon Exp $ + * $DragonFly: src/sys/emulation/43bsd/43bsd_socket.c,v 1.7 2006/06/05 07:26:07 dillon Exp $ * from: DragonFly kern/uipc_syscalls.c,v 1.13 * * The original versions of these syscalls used to live in @@ -98,7 +98,7 @@ compat_43_copyout_sockaddr(struct sockaddr *sa, caddr_t uaddr, int sa_len) } int -oaccept(struct accept_args *uap) +sys_oaccept(struct accept_args *uap) { struct sockaddr *sa = NULL; int sa_len; @@ -134,7 +134,7 @@ oaccept(struct accept_args *uap) } int -ogetsockname(struct getsockname_args *uap) +sys_ogetsockname(struct getsockname_args *uap) { struct sockaddr *sa = NULL; int error, sa_len; @@ -156,7 +156,7 @@ ogetsockname(struct getsockname_args *uap) } int -ogetpeername(struct ogetpeername_args *uap) +sys_ogetpeername(struct ogetpeername_args *uap) { struct sockaddr *sa = NULL; int error, sa_len; @@ -178,7 +178,7 @@ ogetpeername(struct ogetpeername_args *uap) } int -osend(struct osend_args *uap) +sys_osend(struct osend_args *uap) { struct thread *td = curthread; struct uio auio; @@ -202,7 +202,7 @@ osend(struct osend_args *uap) } int -osendmsg(struct osendmsg_args *uap) +sys_osendmsg(struct osendmsg_args *uap) { struct thread *td = curthread; struct msghdr msg; @@ -291,7 +291,7 @@ cleanup: } int -orecv(struct orecv_args *uap) +sys_orecv(struct orecv_args *uap) { struct thread *td = curthread; struct uio auio; @@ -315,7 +315,7 @@ orecv(struct orecv_args *uap) } int -orecvfrom(struct recvfrom_args *uap) +sys_orecvfrom(struct recvfrom_args *uap) { struct thread *td = curthread; struct uio auio; @@ -362,7 +362,7 @@ orecvfrom(struct recvfrom_args *uap) } int -orecvmsg(struct orecvmsg_args *uap) +sys_orecvmsg(struct orecvmsg_args *uap) { struct thread *td = curthread; struct msghdr msg; diff --git a/sys/emulation/43bsd/43bsd_stats.c b/sys/emulation/43bsd/43bsd_stats.c index b66e259b91..37480f441f 100644 --- a/sys/emulation/43bsd/43bsd_stats.c +++ b/sys/emulation/43bsd/43bsd_stats.c @@ -37,7 +37,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/emulation/43bsd/43bsd_stats.c,v 1.4 2005/07/30 20:29:40 joerg Exp $ + * $DragonFly: src/sys/emulation/43bsd/43bsd_stats.c,v 1.5 2006/06/05 07:26:07 dillon Exp $ * from: DragonFly kern/kern_descrip.c,v 1.16 * from: DragonFly kern/vfs_syscalls.c,v 1.21 * @@ -89,7 +89,7 @@ compat_43_copyout_stat(struct stat *st, struct ostat *uaddr) } int -ofstat(struct ofstat_args *uap) +sys_ofstat(struct ofstat_args *uap) { struct stat st; int error; @@ -102,7 +102,7 @@ ofstat(struct ofstat_args *uap) } int -ostat(struct ostat_args *uap) +sys_ostat(struct ostat_args *uap) { struct nlookupdata nd; struct stat st; @@ -119,7 +119,7 @@ ostat(struct ostat_args *uap) } int -olstat(struct olstat_args *uap) +sys_olstat(struct olstat_args *uap) { struct nlookupdata nd; struct stat st; diff --git a/sys/emulation/43bsd/43bsd_vm.c b/sys/emulation/43bsd/43bsd_vm.c index c507401c17..e1411b2db5 100644 --- a/sys/emulation/43bsd/43bsd_vm.c +++ b/sys/emulation/43bsd/43bsd_vm.c @@ -37,7 +37,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/emulation/43bsd/43bsd_vm.c,v 1.2 2005/11/14 18:07:13 dillon Exp $ + * $DragonFly: src/sys/emulation/43bsd/43bsd_vm.c,v 1.3 2006/06/05 07:26:07 dillon Exp $ * from: DragonFly vm/vm_unix.c,v 1.3 * from: DragonFly vm/vm_mmap.c,v 1.15 */ @@ -50,20 +50,20 @@ #include int -ovadvise(struct ovadvise_args *uap) +sys_ovadvise(struct ovadvise_args *uap) { return (EINVAL); } int -ogetpagesize(struct getpagesize_args *uap) +sys_ogetpagesize(struct getpagesize_args *uap) { uap->sysmsg_result = PAGE_SIZE; return (0); } int -ommap(struct ommap_args *uap) +sys_ommap(struct ommap_args *uap) { static const char cvtbsdprot[8] = { 0, diff --git a/sys/emulation/dragonfly12/dfbsd12_getdirentries.c b/sys/emulation/dragonfly12/dfbsd12_getdirentries.c index 4596093294..eb9a6977f6 100644 --- a/sys/emulation/dragonfly12/dfbsd12_getdirentries.c +++ b/sys/emulation/dragonfly12/dfbsd12_getdirentries.c @@ -31,7 +31,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/emulation/dragonfly12/dfbsd12_getdirentries.c,v 1.1 2005/08/27 20:23:05 joerg Exp $ + * $DragonFly: src/sys/emulation/dragonfly12/dfbsd12_getdirentries.c,v 1.2 2006/06/05 07:26:08 dillon Exp $ */ #include "opt_compatdf12.h" @@ -114,7 +114,7 @@ common_getdirentries(long *base, int *result, int fd, char *usr_buf, size_t coun } int -dfbsd12_getdirentries(struct dfbsd12_getdirentries_args *uap) +sys_dfbsd12_getdirentries(struct dfbsd12_getdirentries_args *uap) { long base; int error; @@ -128,7 +128,7 @@ dfbsd12_getdirentries(struct dfbsd12_getdirentries_args *uap) } int -dfbsd12_getdents(struct dfbsd12_getdents_args *uap) +sys_dfbsd12_getdents(struct dfbsd12_getdents_args *uap) { return(common_getdirentries(NULL, &uap->sysmsg_result, uap->fd, uap->buf, uap->count)); diff --git a/sys/emulation/dragonfly12/dfbsd12_stat.c b/sys/emulation/dragonfly12/dfbsd12_stat.c index 4f96badc90..13099fa1da 100644 --- a/sys/emulation/dragonfly12/dfbsd12_stat.c +++ b/sys/emulation/dragonfly12/dfbsd12_stat.c @@ -31,7 +31,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/emulation/dragonfly12/dfbsd12_stat.c,v 1.2 2006/05/06 02:43:09 dillon Exp $ + * $DragonFly: src/sys/emulation/dragonfly12/dfbsd12_stat.c,v 1.3 2006/06/05 07:26:08 dillon Exp $ */ #include "opt_compatdf12.h" @@ -76,7 +76,7 @@ cvtstat(struct dfbsd12_stat *oldstat, struct stat *newstat) * Get file status; this version follows links. */ int -dfbsd12_stat(struct dfbsd12_stat_args *uap) +sys_dfbsd12_stat(struct dfbsd12_stat_args *uap) { struct nlookupdata nd; struct dfbsd12_stat ost; @@ -101,7 +101,7 @@ dfbsd12_stat(struct dfbsd12_stat_args *uap) * Get file status; this version does not follow links. */ int -dfbsd12_lstat(struct dfbsd12_lstat_args *uap) +sys_dfbsd12_lstat(struct dfbsd12_lstat_args *uap) { struct nlookupdata nd; struct dfbsd12_stat ost; @@ -124,7 +124,7 @@ dfbsd12_lstat(struct dfbsd12_lstat_args *uap) * fhstat_args(struct fhandle *u_fhp, struct dfbsd12_stat *sb) */ int -dfbsd12_fhstat(struct dfbsd12_fhstat_args *uap) +sys_dfbsd12_fhstat(struct dfbsd12_fhstat_args *uap) { struct thread *td = curthread; struct dfbsd12_stat osb; @@ -162,7 +162,7 @@ dfbsd12_fhstat(struct dfbsd12_fhstat_args *uap) * dfbsd12_fstat_args(int fd, struct dfbsd12_stat *sb) */ int -dfbsd12_fstat(struct dfbsd12_fstat_args *uap) +sys_dfbsd12_fstat(struct dfbsd12_fstat_args *uap) { struct dfbsd12_stat ost; struct stat st; diff --git a/sys/emulation/linux/i386/linux_dummy.c b/sys/emulation/linux/i386/linux_dummy.c index 5422733af6..7c8f8c91fe 100644 --- a/sys/emulation/linux/i386/linux_dummy.c +++ b/sys/emulation/linux/i386/linux_dummy.c @@ -26,7 +26,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/i386/linux/linux_dummy.c,v 1.21.2.7 2003/01/02 20:41:33 kan Exp $ - * $DragonFly: src/sys/emulation/linux/i386/linux_dummy.c,v 1.6 2004/11/14 01:41:41 dillon Exp $ + * $DragonFly: src/sys/emulation/linux/i386/linux_dummy.c,v 1.7 2006/06/05 07:26:10 dillon Exp $ */ #include @@ -74,7 +74,7 @@ DUMMY(fadvise64); #define DUMMY_XATTR(s) \ int \ -linux_ ## s ## xattr( struct linux_ ## s ## xattr_args *arg) \ +sys_linux_ ## s ## xattr( struct linux_ ## s ## xattr_args *arg) \ { \ return (ENOATTR); \ } diff --git a/sys/emulation/linux/i386/linux_machdep.c b/sys/emulation/linux/i386/linux_machdep.c index d4a82ea4f4..6219e116c0 100644 --- a/sys/emulation/linux/i386/linux_machdep.c +++ b/sys/emulation/linux/i386/linux_machdep.c @@ -26,7 +26,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/i386/linux/linux_machdep.c,v 1.6.2.4 2001/11/05 19:08:23 marcel Exp $ - * $DragonFly: src/sys/emulation/linux/i386/linux_machdep.c,v 1.15 2004/11/12 00:09:19 dillon Exp $ + * $DragonFly: src/sys/emulation/linux/i386/linux_machdep.c,v 1.16 2006/06/05 07:26:10 dillon Exp $ */ #include @@ -102,7 +102,7 @@ bsd_to_linux_sigaltstack(int bsa) } int -linux_execve(struct linux_execve_args *args) +sys_linux_execve(struct linux_execve_args *args) { struct nlookupdata nd; struct image_args exec_args; @@ -144,7 +144,7 @@ struct l_ipc_kludge { }; int -linux_ipc(struct linux_ipc_args *args) +sys_linux_ipc(struct linux_ipc_args *args) { int error = 0; @@ -296,7 +296,7 @@ linux_ipc(struct linux_ipc_args *args) } int -linux_old_select(struct linux_old_select_args *args) +sys_linux_old_select(struct linux_old_select_args *args) { struct l_old_select_argv linux_args; struct linux_select_args newsel; @@ -317,13 +317,13 @@ linux_old_select(struct linux_old_select_args *args) newsel.writefds = linux_args.writefds; newsel.exceptfds = linux_args.exceptfds; newsel.timeout = linux_args.timeout; - error = linux_select(&newsel); + error = sys_linux_select(&newsel); args->sysmsg_result = newsel.sysmsg_result; return(error); } int -linux_fork(struct linux_fork_args *args) +sys_linux_fork(struct linux_fork_args *args) { int error; @@ -332,7 +332,7 @@ linux_fork(struct linux_fork_args *args) printf(ARGS(fork, "")); #endif - if ((error = fork((struct fork_args *)args)) != 0) + if ((error = sys_fork((struct fork_args *)args)) != 0) return (error); if (args->sysmsg_result == 1) @@ -341,7 +341,19 @@ linux_fork(struct linux_fork_args *args) } int -linux_vfork(struct linux_vfork_args *args) +sys_linux_exit_group(struct linux_exit_group_args *args) +{ + struct exit_args newargs; + int error; + + newargs.sysmsg_result = 0; + error = sys_exit(&newargs); + args->sysmsg_result = newargs.sysmsg_result; + return (error); +} + +int +sys_linux_vfork(struct linux_vfork_args *args) { int error; @@ -350,7 +362,7 @@ linux_vfork(struct linux_vfork_args *args) printf(ARGS(vfork, "")); #endif - if ((error = vfork((struct vfork_args *)args)) != 0) + if ((error = sys_vfork((struct vfork_args *)args)) != 0) return (error); /* Are we the child? */ if (args->sysmsg_result == 1) @@ -365,7 +377,7 @@ linux_vfork(struct linux_vfork_args *args) #define CLONE_PID 0x1000 int -linux_clone(struct linux_clone_args *args) +sys_linux_clone(struct linux_clone_args *args) { int error, ff = RFPROC; struct proc *p2; @@ -407,7 +419,7 @@ linux_clone(struct linux_clone_args *args) rf_args.flags = ff; rf_args.sysmsg_result = 0; - if ((error = rfork(&rf_args)) != 0) + if ((error = sys_rfork(&rf_args)) != 0) return (error); args->sysmsg_result = rf_args.sysmsg_result; @@ -546,7 +558,7 @@ linux_mmap_common(caddr_t linux_addr, size_t linux_len, int linux_prot, } int -linux_mmap(struct linux_mmap_args *args) +sys_linux_mmap(struct linux_mmap_args *args) { struct l_mmap_argv linux_args; int error; @@ -572,7 +584,7 @@ linux_mmap(struct linux_mmap_args *args) } int -linux_mmap2(struct linux_mmap2_args *args) +sys_linux_mmap2(struct linux_mmap2_args *args) { int error; @@ -593,7 +605,7 @@ linux_mmap2(struct linux_mmap2_args *args) } int -linux_pipe(struct linux_pipe_args *args) +sys_linux_pipe(struct linux_pipe_args *args) { int error; int reg_edx; @@ -605,7 +617,7 @@ linux_pipe(struct linux_pipe_args *args) #endif reg_edx = args->sysmsg_fds[1]; - error = pipe(&bsd_args); + error = sys_pipe(&bsd_args); if (error) { args->sysmsg_fds[1] = reg_edx; return (error); @@ -623,7 +635,7 @@ linux_pipe(struct linux_pipe_args *args) } int -linux_ioperm(struct linux_ioperm_args *args) +sys_linux_ioperm(struct linux_ioperm_args *args) { struct sysarch_args sa; struct i386_ioperm_args *iia; @@ -638,13 +650,13 @@ linux_ioperm(struct linux_ioperm_args *args) sa.sysmsg_resultp = NULL; sa.op = I386_SET_IOPERM; sa.parms = (char *)iia; - error = sysarch(&sa); + error = sys_sysarch(&sa); args->sysmsg_resultp = sa.sysmsg_resultp; return(error); } int -linux_iopl(struct linux_iopl_args *args) +sys_linux_iopl(struct linux_iopl_args *args) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -664,7 +676,7 @@ linux_iopl(struct linux_iopl_args *args) } int -linux_modify_ldt(struct linux_modify_ldt_args *uap) +sys_linux_modify_ldt(struct linux_modify_ldt_args *uap) { int error; caddr_t sg; @@ -687,7 +699,7 @@ linux_modify_ldt(struct linux_modify_ldt_args *uap) args.op = I386_GET_LDT; args.parms = (char*)ldt; args.sysmsg_result = 0; - error = sysarch(&args); + error = sys_sysarch(&args); uap->sysmsg_result = args.sysmsg_result * sizeof(union descriptor); break; @@ -719,7 +731,7 @@ linux_modify_ldt(struct linux_modify_ldt_args *uap) args.op = I386_SET_LDT; args.parms = (char*)ldt; args.sysmsg_result = 0; - error = sysarch(&args); + error = sys_sysarch(&args); uap->sysmsg_result = args.sysmsg_result; break; default: @@ -731,7 +743,7 @@ linux_modify_ldt(struct linux_modify_ldt_args *uap) } int -linux_sigaction(struct linux_sigaction_args *args) +sys_linux_sigaction(struct linux_sigaction_args *args) { l_osigaction_t osa; l_sigaction_t linux_act, linux_oact; @@ -776,7 +788,7 @@ linux_sigaction(struct linux_sigaction_args *args) * enables the signal to happen with a different register set. */ int -linux_sigsuspend(struct linux_sigsuspend_args *args) +sys_linux_sigsuspend(struct linux_sigsuspend_args *args) { l_sigset_t linux_mask; sigset_t mask; @@ -797,7 +809,7 @@ linux_sigsuspend(struct linux_sigsuspend_args *args) } int -linux_rt_sigsuspend(struct linux_rt_sigsuspend_args *uap) +sys_linux_rt_sigsuspend(struct linux_rt_sigsuspend_args *uap) { l_sigset_t linux_mask; sigset_t mask; @@ -824,7 +836,7 @@ linux_rt_sigsuspend(struct linux_rt_sigsuspend_args *uap) } int -linux_pause(struct linux_pause_args *args) +sys_linux_pause(struct linux_pause_args *args) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -844,7 +856,7 @@ linux_pause(struct linux_pause_args *args) } int -linux_sigaltstack(struct linux_sigaltstack_args *uap) +sys_linux_sigaltstack(struct linux_sigaltstack_args *uap) { stack_t ss, oss; l_stack_t linux_ss; diff --git a/sys/emulation/linux/i386/linux_proto.h b/sys/emulation/linux/i386/linux_proto.h index e0252a05e0..4c6d411618 100644 --- a/sys/emulation/linux/i386/linux_proto.h +++ b/sys/emulation/linux/i386/linux_proto.h @@ -2,7 +2,7 @@ * System call prototypes. * * DO NOT EDIT-- this file is automatically generated. - * $DragonFly: src/sys/emulation/linux/i386/linux_proto.h,v 1.15 2005/10/08 11:41:44 corecode Exp $ + * $DragonFly: src/sys/emulation/linux/i386/linux_proto.h,v 1.16 2006/06/05 07:26:10 dillon Exp $ * created from DragonFly: src/sys/emulation/linux/i386/syscalls.master,v 1.8 2005/10/08 11:41:11 corecode Exp */ @@ -1344,6 +1344,13 @@ struct linux_fadvise64_args { union usrmsg usrmsg; register_t dummy; }; +struct linux_exit_group_args { +#ifdef _KERNEL + struct sysmsg sysmsg; +#endif + union usrmsg usrmsg; + int rval; char rval_[PAD_(int)]; +}; #ifdef COMPAT_43 @@ -1372,173 +1379,174 @@ struct linux_fadvise64_args { #ifdef _KERNEL #define nosys linux_nosys -int linux_fork (struct linux_fork_args *); -int linux_open (struct linux_open_args *); -int linux_waitpid (struct linux_waitpid_args *); -int linux_creat (struct linux_creat_args *); -int linux_link (struct linux_link_args *); -int linux_unlink (struct linux_unlink_args *); -int linux_execve (struct linux_execve_args *); -int linux_chdir (struct linux_chdir_args *); -int linux_time (struct linux_time_args *); -int linux_mknod (struct linux_mknod_args *); -int linux_chmod (struct linux_chmod_args *); -int linux_lchown16 (struct linux_lchown16_args *); -int linux_stat (struct linux_stat_args *); -int linux_lseek (struct linux_lseek_args *); -int linux_getpid (struct linux_getpid_args *); -int linux_mount (struct linux_mount_args *); -int linux_oldumount (struct linux_oldumount_args *); -int linux_setuid16 (struct linux_setuid16_args *); -int linux_getuid16 (struct linux_getuid16_args *); -int linux_stime (struct linux_stime_args *); -int linux_ptrace (struct linux_ptrace_args *); -int linux_alarm (struct linux_alarm_args *); -int linux_fstat (struct linux_fstat_args *); -int linux_pause (struct linux_pause_args *); -int linux_utime (struct linux_utime_args *); -int linux_access (struct linux_access_args *); -int linux_nice (struct linux_nice_args *); -int linux_kill (struct linux_kill_args *); -int linux_rename (struct linux_rename_args *); -int linux_mkdir (struct linux_mkdir_args *); -int linux_rmdir (struct linux_rmdir_args *); -int linux_pipe (struct linux_pipe_args *); -int linux_times (struct linux_times_args *); -int linux_brk (struct linux_brk_args *); -int linux_setgid16 (struct linux_setgid16_args *); -int linux_getgid16 (struct linux_getgid16_args *); -int linux_signal (struct linux_signal_args *); -int linux_geteuid16 (struct linux_geteuid16_args *); -int linux_getegid16 (struct linux_getegid16_args *); -int linux_umount (struct linux_umount_args *); -int linux_ioctl (struct linux_ioctl_args *); -int linux_fcntl (struct linux_fcntl_args *); -int linux_olduname (struct linux_olduname_args *); -int linux_ustat (struct linux_ustat_args *); -int linux_sigaction (struct linux_sigaction_args *); -int linux_sgetmask (struct linux_sgetmask_args *); -int linux_ssetmask (struct linux_ssetmask_args *); -int linux_setreuid16 (struct linux_setreuid16_args *); -int linux_setregid16 (struct linux_setregid16_args *); -int linux_sigsuspend (struct linux_sigsuspend_args *); -int linux_sigpending (struct linux_sigpending_args *); -int linux_setrlimit (struct linux_setrlimit_args *); -int linux_old_getrlimit (struct linux_old_getrlimit_args *); -int linux_getgroups16 (struct linux_getgroups16_args *); -int linux_setgroups16 (struct linux_setgroups16_args *); -int linux_old_select (struct linux_old_select_args *); -int linux_symlink (struct linux_symlink_args *); -int linux_readlink (struct linux_readlink_args *); -int linux_uselib (struct linux_uselib_args *); -int linux_reboot (struct linux_reboot_args *); -int linux_readdir (struct linux_readdir_args *); -int linux_mmap (struct linux_mmap_args *); -int linux_truncate (struct linux_truncate_args *); -int linux_ftruncate (struct linux_ftruncate_args *); -int linux_statfs (struct linux_statfs_args *); -int linux_fstatfs (struct linux_fstatfs_args *); -int linux_ioperm (struct linux_ioperm_args *); -int linux_socketcall (struct linux_socketcall_args *); -int linux_syslog (struct linux_syslog_args *); -int linux_setitimer (struct linux_setitimer_args *); -int linux_getitimer (struct linux_getitimer_args *); -int linux_newstat (struct linux_newstat_args *); -int linux_newlstat (struct linux_newlstat_args *); -int linux_newfstat (struct linux_newfstat_args *); -int linux_uname (struct linux_uname_args *); -int linux_iopl (struct linux_iopl_args *); -int linux_vhangup (struct linux_vhangup_args *); -int linux_vm86old (struct linux_vm86old_args *); -int linux_wait4 (struct linux_wait4_args *); -int linux_swapoff (struct linux_swapoff_args *); -int linux_sysinfo (struct linux_sysinfo_args *); -int linux_ipc (struct linux_ipc_args *); -int linux_sigreturn (struct linux_sigreturn_args *); -int linux_clone (struct linux_clone_args *); -int linux_newuname (struct linux_newuname_args *); -int linux_modify_ldt (struct linux_modify_ldt_args *); -int linux_adjtimex (struct linux_adjtimex_args *); -int linux_sigprocmask (struct linux_sigprocmask_args *); -int linux_create_module (struct linux_create_module_args *); -int linux_init_module (struct linux_init_module_args *); -int linux_delete_module (struct linux_delete_module_args *); -int linux_get_kernel_syms (struct linux_get_kernel_syms_args *); -int linux_quotactl (struct linux_quotactl_args *); -int linux_bdflush (struct linux_bdflush_args *); -int linux_sysfs (struct linux_sysfs_args *); -int linux_personality (struct linux_personality_args *); -int linux_setfsuid16 (struct linux_setfsuid16_args *); -int linux_setfsgid16 (struct linux_setfsgid16_args *); -int linux_llseek (struct linux_llseek_args *); -int linux_getdents (struct linux_getdents_args *); -int linux_select (struct linux_select_args *); -int linux_msync (struct linux_msync_args *); -int linux_getsid (struct linux_getsid_args *); -int linux_fdatasync (struct linux_fdatasync_args *); -int linux_sysctl (struct linux_sysctl_args *); -int linux_sched_setscheduler (struct linux_sched_setscheduler_args *); -int linux_sched_getscheduler (struct linux_sched_getscheduler_args *); -int linux_sched_get_priority_max (struct linux_sched_get_priority_max_args *); -int linux_sched_get_priority_min (struct linux_sched_get_priority_min_args *); -int linux_mremap (struct linux_mremap_args *); -int linux_setresuid16 (struct linux_setresuid16_args *); -int linux_getresuid16 (struct linux_getresuid16_args *); -int linux_vm86 (struct linux_vm86_args *); -int linux_query_module (struct linux_query_module_args *); -int linux_nfsservctl (struct linux_nfsservctl_args *); -int linux_setresgid16 (struct linux_setresgid16_args *); -int linux_getresgid16 (struct linux_getresgid16_args *); -int linux_prctl (struct linux_prctl_args *); -int linux_rt_sigreturn (struct linux_rt_sigreturn_args *); -int linux_rt_sigaction (struct linux_rt_sigaction_args *); -int linux_rt_sigprocmask (struct linux_rt_sigprocmask_args *); -int linux_rt_sigpending (struct linux_rt_sigpending_args *); -int linux_rt_sigtimedwait (struct linux_rt_sigtimedwait_args *); -int linux_rt_sigqueueinfo (struct linux_rt_sigqueueinfo_args *); -int linux_rt_sigsuspend (struct linux_rt_sigsuspend_args *); -int linux_pread (struct linux_pread_args *); -int linux_pwrite (struct linux_pwrite_args *); -int linux_chown16 (struct linux_chown16_args *); -int linux_getcwd (struct linux_getcwd_args *); -int linux_capget (struct linux_capget_args *); -int linux_capset (struct linux_capset_args *); -int linux_sigaltstack (struct linux_sigaltstack_args *); -int linux_sendfile (struct linux_sendfile_args *); -int linux_vfork (struct linux_vfork_args *); -int linux_getrlimit (struct linux_getrlimit_args *); -int linux_mmap2 (struct linux_mmap2_args *); -int linux_truncate64 (struct linux_truncate64_args *); -int linux_ftruncate64 (struct linux_ftruncate64_args *); -int linux_stat64 (struct linux_stat64_args *); -int linux_lstat64 (struct linux_lstat64_args *); -int linux_fstat64 (struct linux_fstat64_args *); -int linux_lchown (struct linux_lchown_args *); -int linux_getuid (struct linux_getuid_args *); -int linux_getgid (struct linux_getgid_args *); -int linux_getgroups (struct linux_getgroups_args *); -int linux_setgroups (struct linux_setgroups_args *); -int linux_chown (struct linux_chown_args *); -int linux_setfsuid (struct linux_setfsuid_args *); -int linux_setfsgid (struct linux_setfsgid_args *); -int linux_pivot_root (struct linux_pivot_root_args *); -int linux_mincore (struct linux_mincore_args *); -int linux_madvise (struct linux_madvise_args *); -int linux_getdents64 (struct linux_getdents64_args *); -int linux_fcntl64 (struct linux_fcntl64_args *); -int linux_setxattr (struct linux_setxattr_args *); -int linux_lsetxattr (struct linux_lsetxattr_args *); -int linux_fsetxattr (struct linux_fsetxattr_args *); -int linux_getxattr (struct linux_getxattr_args *); -int linux_lgetxattr (struct linux_lgetxattr_args *); -int linux_fgetxattr (struct linux_fgetxattr_args *); -int linux_listxattr (struct linux_listxattr_args *); -int linux_llistxattr (struct linux_llistxattr_args *); -int linux_flistxattr (struct linux_flistxattr_args *); -int linux_removexattr (struct linux_removexattr_args *); -int linux_lremovexattr (struct linux_lremovexattr_args *); -int linux_fremovexattr (struct linux_fremovexattr_args *); -int linux_fadvise64 (struct linux_fadvise64_args *); +int sys_linux_fork (struct linux_fork_args *); +int sys_linux_open (struct linux_open_args *); +int sys_linux_waitpid (struct linux_waitpid_args *); +int sys_linux_creat (struct linux_creat_args *); +int sys_linux_link (struct linux_link_args *); +int sys_linux_unlink (struct linux_unlink_args *); +int sys_linux_execve (struct linux_execve_args *); +int sys_linux_chdir (struct linux_chdir_args *); +int sys_linux_time (struct linux_time_args *); +int sys_linux_mknod (struct linux_mknod_args *); +int sys_linux_chmod (struct linux_chmod_args *); +int sys_linux_lchown16 (struct linux_lchown16_args *); +int sys_linux_stat (struct linux_stat_args *); +int sys_linux_lseek (struct linux_lseek_args *); +int sys_linux_getpid (struct linux_getpid_args *); +int sys_linux_mount (struct linux_mount_args *); +int sys_linux_oldumount (struct linux_oldumount_args *); +int sys_linux_setuid16 (struct linux_setuid16_args *); +int sys_linux_getuid16 (struct linux_getuid16_args *); +int sys_linux_stime (struct linux_stime_args *); +int sys_linux_ptrace (struct linux_ptrace_args *); +int sys_linux_alarm (struct linux_alarm_args *); +int sys_linux_fstat (struct linux_fstat_args *); +int sys_linux_pause (struct linux_pause_args *); +int sys_linux_utime (struct linux_utime_args *); +int sys_linux_access (struct linux_access_args *); +int sys_linux_nice (struct linux_nice_args *); +int sys_linux_kill (struct linux_kill_args *); +int sys_linux_rename (struct linux_rename_args *); +int sys_linux_mkdir (struct linux_mkdir_args *); +int sys_linux_rmdir (struct linux_rmdir_args *); +int sys_linux_pipe (struct linux_pipe_args *); +int sys_linux_times (struct linux_times_args *); +int sys_linux_brk (struct linux_brk_args *); +int sys_linux_setgid16 (struct linux_setgid16_args *); +int sys_linux_getgid16 (struct linux_getgid16_args *); +int sys_linux_signal (struct linux_signal_args *); +int sys_linux_geteuid16 (struct linux_geteuid16_args *); +int sys_linux_getegid16 (struct linux_getegid16_args *); +int sys_linux_umount (struct linux_umount_args *); +int sys_linux_ioctl (struct linux_ioctl_args *); +int sys_linux_fcntl (struct linux_fcntl_args *); +int sys_linux_olduname (struct linux_olduname_args *); +int sys_linux_ustat (struct linux_ustat_args *); +int sys_linux_sigaction (struct linux_sigaction_args *); +int sys_linux_sgetmask (struct linux_sgetmask_args *); +int sys_linux_ssetmask (struct linux_ssetmask_args *); +int sys_linux_setreuid16 (struct linux_setreuid16_args *); +int sys_linux_setregid16 (struct linux_setregid16_args *); +int sys_linux_sigsuspend (struct linux_sigsuspend_args *); +int sys_linux_sigpending (struct linux_sigpending_args *); +int sys_linux_setrlimit (struct linux_setrlimit_args *); +int sys_linux_old_getrlimit (struct linux_old_getrlimit_args *); +int sys_linux_getgroups16 (struct linux_getgroups16_args *); +int sys_linux_setgroups16 (struct linux_setgroups16_args *); +int sys_linux_old_select (struct linux_old_select_args *); +int sys_linux_symlink (struct linux_symlink_args *); +int sys_linux_readlink (struct linux_readlink_args *); +int sys_linux_uselib (struct linux_uselib_args *); +int sys_linux_reboot (struct linux_reboot_args *); +int sys_linux_readdir (struct linux_readdir_args *); +int sys_linux_mmap (struct linux_mmap_args *); +int sys_linux_truncate (struct linux_truncate_args *); +int sys_linux_ftruncate (struct linux_ftruncate_args *); +int sys_linux_statfs (struct linux_statfs_args *); +int sys_linux_fstatfs (struct linux_fstatfs_args *); +int sys_linux_ioperm (struct linux_ioperm_args *); +int sys_linux_socketcall (struct linux_socketcall_args *); +int sys_linux_syslog (struct linux_syslog_args *); +int sys_linux_setitimer (struct linux_setitimer_args *); +int sys_linux_getitimer (struct linux_getitimer_args *); +int sys_linux_newstat (struct linux_newstat_args *); +int sys_linux_newlstat (struct linux_newlstat_args *); +int sys_linux_newfstat (struct linux_newfstat_args *); +int sys_linux_uname (struct linux_uname_args *); +int sys_linux_iopl (struct linux_iopl_args *); +int sys_linux_vhangup (struct linux_vhangup_args *); +int sys_linux_vm86old (struct linux_vm86old_args *); +int sys_linux_wait4 (struct linux_wait4_args *); +int sys_linux_swapoff (struct linux_swapoff_args *); +int sys_linux_sysinfo (struct linux_sysinfo_args *); +int sys_linux_ipc (struct linux_ipc_args *); +int sys_linux_sigreturn (struct linux_sigreturn_args *); +int sys_linux_clone (struct linux_clone_args *); +int sys_linux_newuname (struct linux_newuname_args *); +int sys_linux_modify_ldt (struct linux_modify_ldt_args *); +int sys_linux_adjtimex (struct linux_adjtimex_args *); +int sys_linux_sigprocmask (struct linux_sigprocmask_args *); +int sys_linux_create_module (struct linux_create_module_args *); +int sys_linux_init_module (struct linux_init_module_args *); +int sys_linux_delete_module (struct linux_delete_module_args *); +int sys_linux_get_kernel_syms (struct linux_get_kernel_syms_args *); +int sys_linux_quotactl (struct linux_quotactl_args *); +int sys_linux_bdflush (struct linux_bdflush_args *); +int sys_linux_sysfs (struct linux_sysfs_args *); +int sys_linux_personality (struct linux_personality_args *); +int sys_linux_setfsuid16 (struct linux_setfsuid16_args *); +int sys_linux_setfsgid16 (struct linux_setfsgid16_args *); +int sys_linux_llseek (struct linux_llseek_args *); +int sys_linux_getdents (struct linux_getdents_args *); +int sys_linux_select (struct linux_select_args *); +int sys_linux_msync (struct linux_msync_args *); +int sys_linux_getsid (struct linux_getsid_args *); +int sys_linux_fdatasync (struct linux_fdatasync_args *); +int sys_linux_sysctl (struct linux_sysctl_args *); +int sys_linux_sched_setscheduler (struct linux_sched_setscheduler_args *); +int sys_linux_sched_getscheduler (struct linux_sched_getscheduler_args *); +int sys_linux_sched_get_priority_max (struct linux_sched_get_priority_max_args *); +int sys_linux_sched_get_priority_min (struct linux_sched_get_priority_min_args *); +int sys_linux_mremap (struct linux_mremap_args *); +int sys_linux_setresuid16 (struct linux_setresuid16_args *); +int sys_linux_getresuid16 (struct linux_getresuid16_args *); +int sys_linux_vm86 (struct linux_vm86_args *); +int sys_linux_query_module (struct linux_query_module_args *); +int sys_linux_nfsservctl (struct linux_nfsservctl_args *); +int sys_linux_setresgid16 (struct linux_setresgid16_args *); +int sys_linux_getresgid16 (struct linux_getresgid16_args *); +int sys_linux_prctl (struct linux_prctl_args *); +int sys_linux_rt_sigreturn (struct linux_rt_sigreturn_args *); +int sys_linux_rt_sigaction (struct linux_rt_sigaction_args *); +int sys_linux_rt_sigprocmask (struct linux_rt_sigprocmask_args *); +int sys_linux_rt_sigpending (struct linux_rt_sigpending_args *); +int sys_linux_rt_sigtimedwait (struct linux_rt_sigtimedwait_args *); +int sys_linux_rt_sigqueueinfo (struct linux_rt_sigqueueinfo_args *); +int sys_linux_rt_sigsuspend (struct linux_rt_sigsuspend_args *); +int sys_linux_pread (struct linux_pread_args *); +int sys_linux_pwrite (struct linux_pwrite_args *); +int sys_linux_chown16 (struct linux_chown16_args *); +int sys_linux_getcwd (struct linux_getcwd_args *); +int sys_linux_capget (struct linux_capget_args *); +int sys_linux_capset (struct linux_capset_args *); +int sys_linux_sigaltstack (struct linux_sigaltstack_args *); +int sys_linux_sendfile (struct linux_sendfile_args *); +int sys_linux_vfork (struct linux_vfork_args *); +int sys_linux_getrlimit (struct linux_getrlimit_args *); +int sys_linux_mmap2 (struct linux_mmap2_args *); +int sys_linux_truncate64 (struct linux_truncate64_args *); +int sys_linux_ftruncate64 (struct linux_ftruncate64_args *); +int sys_linux_stat64 (struct linux_stat64_args *); +int sys_linux_lstat64 (struct linux_lstat64_args *); +int sys_linux_fstat64 (struct linux_fstat64_args *); +int sys_linux_lchown (struct linux_lchown_args *); +int sys_linux_getuid (struct linux_getuid_args *); +int sys_linux_getgid (struct linux_getgid_args *); +int sys_linux_getgroups (struct linux_getgroups_args *); +int sys_linux_setgroups (struct linux_setgroups_args *); +int sys_linux_chown (struct linux_chown_args *); +int sys_linux_setfsuid (struct linux_setfsuid_args *); +int sys_linux_setfsgid (struct linux_setfsgid_args *); +int sys_linux_pivot_root (struct linux_pivot_root_args *); +int sys_linux_mincore (struct linux_mincore_args *); +int sys_linux_madvise (struct linux_madvise_args *); +int sys_linux_getdents64 (struct linux_getdents64_args *); +int sys_linux_fcntl64 (struct linux_fcntl64_args *); +int sys_linux_setxattr (struct linux_setxattr_args *); +int sys_linux_lsetxattr (struct linux_lsetxattr_args *); +int sys_linux_fsetxattr (struct linux_fsetxattr_args *); +int sys_linux_getxattr (struct linux_getxattr_args *); +int sys_linux_lgetxattr (struct linux_lgetxattr_args *); +int sys_linux_fgetxattr (struct linux_fgetxattr_args *); +int sys_linux_listxattr (struct linux_listxattr_args *); +int sys_linux_llistxattr (struct linux_llistxattr_args *); +int sys_linux_flistxattr (struct linux_flistxattr_args *); +int sys_linux_removexattr (struct linux_removexattr_args *); +int sys_linux_lremovexattr (struct linux_lremovexattr_args *); +int sys_linux_fremovexattr (struct linux_fremovexattr_args *); +int sys_linux_fadvise64 (struct linux_fadvise64_args *); +int sys_linux_exit_group (struct linux_exit_group_args *); #endif /* !_LINUX_SYSPROTO_H_ */ #undef PAD_ diff --git a/sys/emulation/linux/i386/linux_ptrace.c b/sys/emulation/linux/i386/linux_ptrace.c index bb68b33f72..fe19d5fe7c 100644 --- a/sys/emulation/linux/i386/linux_ptrace.c +++ b/sys/emulation/linux/i386/linux_ptrace.c @@ -26,7 +26,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/i386/linux/linux_ptrace.c,v 1.7.4.3 2003/01/03 17:13:23 kan Exp $ - * $DragonFly: src/sys/emulation/linux/i386/linux_ptrace.c,v 1.9 2005/11/14 18:49:57 dillon Exp $ + * $DragonFly: src/sys/emulation/linux/i386/linux_ptrace.c,v 1.10 2006/06/05 07:26:10 dillon Exp $ */ #include "opt_cpu.h" @@ -246,7 +246,7 @@ linux_proc_write_fpxregs(struct proc *p, struct linux_pt_fpxreg *fpxregs) #endif int -linux_ptrace(struct linux_ptrace_args *uap) +sys_linux_ptrace(struct linux_ptrace_args *uap) { struct proc *curp = curproc; union { diff --git a/sys/emulation/linux/i386/linux_syscall.h b/sys/emulation/linux/i386/linux_syscall.h index 14ce17761c..1cdcf11125 100644 --- a/sys/emulation/linux/i386/linux_syscall.h +++ b/sys/emulation/linux/i386/linux_syscall.h @@ -2,7 +2,7 @@ * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * $DragonFly: src/sys/emulation/linux/i386/linux_syscall.h,v 1.15 2005/10/08 11:41:44 corecode Exp $ + * $DragonFly: src/sys/emulation/linux/i386/linux_syscall.h,v 1.16 2006/06/05 07:26:10 dillon Exp $ * created from DragonFly: src/sys/emulation/linux/i386/syscalls.master,v 1.8 2005/10/08 11:41:11 corecode Exp */ @@ -226,5 +226,5 @@ #define LINUX_SYS_linux_lremovexattr 236 #define LINUX_SYS_linux_fremovexattr 237 #define LINUX_SYS_linux_fadvise64 250 -#define LINUX_SYS_exit_group 252 +#define LINUX_SYS_linux_exit_group 252 #define LINUX_SYS_MAXSYSCALL 268 diff --git a/sys/emulation/linux/i386/linux_sysent.c b/sys/emulation/linux/i386/linux_sysent.c index a02846d926..85f303e6a6 100644 --- a/sys/emulation/linux/i386/linux_sysent.c +++ b/sys/emulation/linux/i386/linux_sysent.c @@ -2,7 +2,7 @@ * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * $DragonFly: src/sys/emulation/linux/i386/linux_sysent.c,v 1.15 2005/10/08 11:41:44 corecode Exp $ + * $DragonFly: src/sys/emulation/linux/i386/linux_sysent.c,v 1.16 2006/06/05 07:26:10 dillon Exp $ * created from DragonFly: src/sys/emulation/linux/i386/syscalls.master,v 1.8 2005/10/08 11:41:11 corecode Exp */ @@ -20,272 +20,272 @@ /* The casts are bogus but will do for now. */ struct sysent linux_sysent[] = { #define nosys linux_nosys - { 0, (sy_call_t *)nosys }, /* 0 = setup */ - { AS(sys_exit_args), (sy_call_t *)sys_exit }, /* 1 = exit */ - { 0, (sy_call_t *)linux_fork }, /* 2 = linux_fork */ - { AS(read_args), (sy_call_t *)read }, /* 3 = read */ - { AS(write_args), (sy_call_t *)write }, /* 4 = write */ - { AS(linux_open_args), (sy_call_t *)linux_open }, /* 5 = linux_open */ - { AS(close_args), (sy_call_t *)close }, /* 6 = close */ - { AS(linux_waitpid_args), (sy_call_t *)linux_waitpid }, /* 7 = linux_waitpid */ - { AS(linux_creat_args), (sy_call_t *)linux_creat }, /* 8 = linux_creat */ - { AS(linux_link_args), (sy_call_t *)linux_link }, /* 9 = linux_link */ - { AS(linux_unlink_args), (sy_call_t *)linux_unlink }, /* 10 = linux_unlink */ - { AS(linux_execve_args), (sy_call_t *)linux_execve }, /* 11 = linux_execve */ - { AS(linux_chdir_args), (sy_call_t *)linux_chdir }, /* 12 = linux_chdir */ - { AS(linux_time_args), (sy_call_t *)linux_time }, /* 13 = linux_time */ - { AS(linux_mknod_args), (sy_call_t *)linux_mknod }, /* 14 = linux_mknod */ - { AS(linux_chmod_args), (sy_call_t *)linux_chmod }, /* 15 = linux_chmod */ - { AS(linux_lchown16_args), (sy_call_t *)linux_lchown16 }, /* 16 = linux_lchown16 */ - { 0, (sy_call_t *)nosys }, /* 17 = break */ - { AS(linux_stat_args), (sy_call_t *)linux_stat }, /* 18 = linux_stat */ - { AS(linux_lseek_args), (sy_call_t *)linux_lseek }, /* 19 = linux_lseek */ - { 0, (sy_call_t *)linux_getpid }, /* 20 = linux_getpid */ - { AS(linux_mount_args), (sy_call_t *)linux_mount }, /* 21 = linux_mount */ - { AS(linux_oldumount_args), (sy_call_t *)linux_oldumount }, /* 22 = linux_oldumount */ - { AS(linux_setuid16_args), (sy_call_t *)linux_setuid16 }, /* 23 = linux_setuid16 */ - { 0, (sy_call_t *)linux_getuid16 }, /* 24 = linux_getuid16 */ - { 0, (sy_call_t *)linux_stime }, /* 25 = linux_stime */ - { AS(linux_ptrace_args), (sy_call_t *)linux_ptrace }, /* 26 = linux_ptrace */ - { AS(linux_alarm_args), (sy_call_t *)linux_alarm }, /* 27 = linux_alarm */ - { AS(linux_fstat_args), (sy_call_t *)linux_fstat }, /* 28 = linux_fstat */ - { 0, (sy_call_t *)linux_pause }, /* 29 = linux_pause */ - { AS(linux_utime_args), (sy_call_t *)linux_utime }, /* 30 = linux_utime */ - { 0, (sy_call_t *)nosys }, /* 31 = stty */ - { 0, (sy_call_t *)nosys }, /* 32 = gtty */ - { AS(linux_access_args), (sy_call_t *)linux_access }, /* 33 = linux_access */ - { AS(linux_nice_args), (sy_call_t *)linux_nice }, /* 34 = linux_nice */ - { 0, (sy_call_t *)nosys }, /* 35 = ftime */ - { 0, (sy_call_t *)sync }, /* 36 = sync */ - { AS(linux_kill_args), (sy_call_t *)linux_kill }, /* 37 = linux_kill */ - { AS(linux_rename_args), (sy_call_t *)linux_rename }, /* 38 = linux_rename */ - { AS(linux_mkdir_args), (sy_call_t *)linux_mkdir }, /* 39 = linux_mkdir */ - { AS(linux_rmdir_args), (sy_call_t *)linux_rmdir }, /* 40 = linux_rmdir */ - { AS(dup_args), (sy_call_t *)dup }, /* 41 = dup */ - { AS(linux_pipe_args), (sy_call_t *)linux_pipe }, /* 42 = linux_pipe */ - { AS(linux_times_args), (sy_call_t *)linux_times }, /* 43 = linux_times */ - { 0, (sy_call_t *)nosys }, /* 44 = prof */ - { AS(linux_brk_args), (sy_call_t *)linux_brk }, /* 45 = linux_brk */ - { AS(linux_setgid16_args), (sy_call_t *)linux_setgid16 }, /* 46 = linux_setgid16 */ - { 0, (sy_call_t *)linux_getgid16 }, /* 47 = linux_getgid16 */ - { AS(linux_signal_args), (sy_call_t *)linux_signal }, /* 48 = linux_signal */ - { 0, (sy_call_t *)linux_geteuid16 }, /* 49 = linux_geteuid16 */ - { 0, (sy_call_t *)linux_getegid16 }, /* 50 = linux_getegid16 */ - { AS(acct_args), (sy_call_t *)acct }, /* 51 = acct */ - { AS(linux_umount_args), (sy_call_t *)linux_umount }, /* 52 = linux_umount */ - { 0, (sy_call_t *)nosys }, /* 53 = lock */ - { AS(linux_ioctl_args), (sy_call_t *)linux_ioctl }, /* 54 = linux_ioctl */ - { AS(linux_fcntl_args), (sy_call_t *)linux_fcntl }, /* 55 = linux_fcntl */ - { 0, (sy_call_t *)nosys }, /* 56 = mpx */ - { AS(setpgid_args), (sy_call_t *)setpgid }, /* 57 = setpgid */ - { 0, (sy_call_t *)nosys }, /* 58 = ulimit */ - { 0, (sy_call_t *)linux_olduname }, /* 59 = linux_olduname */ - { AS(umask_args), (sy_call_t *)umask }, /* 60 = umask */ - { AS(chroot_args), (sy_call_t *)chroot }, /* 61 = chroot */ - { AS(linux_ustat_args), (sy_call_t *)linux_ustat }, /* 62 = linux_ustat */ - { AS(dup2_args), (sy_call_t *)dup2 }, /* 63 = dup2 */ - { 0, (sy_call_t *)getppid }, /* 64 = getppid */ - { 0, (sy_call_t *)getpgrp }, /* 65 = getpgrp */ - { 0, (sy_call_t *)setsid }, /* 66 = setsid */ - { AS(linux_sigaction_args), (sy_call_t *)linux_sigaction }, /* 67 = linux_sigaction */ - { 0, (sy_call_t *)linux_sgetmask }, /* 68 = linux_sgetmask */ - { AS(linux_ssetmask_args), (sy_call_t *)linux_ssetmask }, /* 69 = linux_ssetmask */ - { AS(linux_setreuid16_args), (sy_call_t *)linux_setreuid16 }, /* 70 = linux_setreuid16 */ - { AS(linux_setregid16_args), (sy_call_t *)linux_setregid16 }, /* 71 = linux_setregid16 */ - { AS(linux_sigsuspend_args), (sy_call_t *)linux_sigsuspend }, /* 72 = linux_sigsuspend */ - { AS(linux_sigpending_args), (sy_call_t *)linux_sigpending }, /* 73 = linux_sigpending */ - { AS(sethostname_args), (sy_call_t *)osethostname }, /* 74 = osethostname */ - { AS(linux_setrlimit_args), (sy_call_t *)linux_setrlimit }, /* 75 = linux_setrlimit */ - { AS(linux_old_getrlimit_args), (sy_call_t *)linux_old_getrlimit }, /* 76 = linux_old_getrlimit */ - { AS(getrusage_args), (sy_call_t *)getrusage }, /* 77 = getrusage */ - { AS(gettimeofday_args), (sy_call_t *)gettimeofday }, /* 78 = gettimeofday */ - { AS(settimeofday_args), (sy_call_t *)settimeofday }, /* 79 = settimeofday */ - { AS(linux_getgroups16_args), (sy_call_t *)linux_getgroups16 }, /* 80 = linux_getgroups16 */ - { AS(linux_setgroups16_args), (sy_call_t *)linux_setgroups16 }, /* 81 = linux_setgroups16 */ - { AS(linux_old_select_args), (sy_call_t *)linux_old_select }, /* 82 = linux_old_select */ - { AS(linux_symlink_args), (sy_call_t *)linux_symlink }, /* 83 = linux_symlink */ - { AS(ostat_args), (sy_call_t *)ostat }, /* 84 = ostat */ - { AS(linux_readlink_args), (sy_call_t *)linux_readlink }, /* 85 = linux_readlink */ - { AS(linux_uselib_args), (sy_call_t *)linux_uselib }, /* 86 = linux_uselib */ - { AS(swapon_args), (sy_call_t *)swapon }, /* 87 = swapon */ - { AS(linux_reboot_args), (sy_call_t *)linux_reboot }, /* 88 = linux_reboot */ - { AS(linux_readdir_args), (sy_call_t *)linux_readdir }, /* 89 = linux_readdir */ - { AS(linux_mmap_args), (sy_call_t *)linux_mmap }, /* 90 = linux_mmap */ - { AS(munmap_args), (sy_call_t *)munmap }, /* 91 = munmap */ - { AS(linux_truncate_args), (sy_call_t *)linux_truncate }, /* 92 = linux_truncate */ - { AS(linux_ftruncate_args), (sy_call_t *)linux_ftruncate }, /* 93 = linux_ftruncate */ - { AS(fchmod_args), (sy_call_t *)fchmod }, /* 94 = fchmod */ - { AS(fchown_args), (sy_call_t *)fchown }, /* 95 = fchown */ - { AS(getpriority_args), (sy_call_t *)getpriority }, /* 96 = getpriority */ - { AS(setpriority_args), (sy_call_t *)setpriority }, /* 97 = setpriority */ - { 0, (sy_call_t *)nosys }, /* 98 = profil */ - { AS(linux_statfs_args), (sy_call_t *)linux_statfs }, /* 99 = linux_statfs */ - { AS(linux_fstatfs_args), (sy_call_t *)linux_fstatfs }, /* 100 = linux_fstatfs */ - { AS(linux_ioperm_args), (sy_call_t *)linux_ioperm }, /* 101 = linux_ioperm */ - { AS(linux_socketcall_args), (sy_call_t *)linux_socketcall }, /* 102 = linux_socketcall */ - { AS(linux_syslog_args), (sy_call_t *)linux_syslog }, /* 103 = linux_syslog */ - { AS(linux_setitimer_args), (sy_call_t *)linux_setitimer }, /* 104 = linux_setitimer */ - { AS(linux_getitimer_args), (sy_call_t *)linux_getitimer }, /* 105 = linux_getitimer */ - { AS(linux_newstat_args), (sy_call_t *)linux_newstat }, /* 106 = linux_newstat */ - { AS(linux_newlstat_args), (sy_call_t *)linux_newlstat }, /* 107 = linux_newlstat */ - { AS(linux_newfstat_args), (sy_call_t *)linux_newfstat }, /* 108 = linux_newfstat */ - { 0, (sy_call_t *)linux_uname }, /* 109 = linux_uname */ - { AS(linux_iopl_args), (sy_call_t *)linux_iopl }, /* 110 = linux_iopl */ - { 0, (sy_call_t *)linux_vhangup }, /* 111 = linux_vhangup */ - { 0, (sy_call_t *)nosys }, /* 112 = idle */ - { 0, (sy_call_t *)linux_vm86old }, /* 113 = linux_vm86old */ - { AS(linux_wait4_args), (sy_call_t *)linux_wait4 }, /* 114 = linux_wait4 */ - { 0, (sy_call_t *)linux_swapoff }, /* 115 = linux_swapoff */ - { AS(linux_sysinfo_args), (sy_call_t *)linux_sysinfo }, /* 116 = linux_sysinfo */ - { AS(linux_ipc_args), (sy_call_t *)linux_ipc }, /* 117 = linux_ipc */ - { AS(fsync_args), (sy_call_t *)fsync }, /* 118 = fsync */ - { AS(linux_sigreturn_args), (sy_call_t *)linux_sigreturn }, /* 119 = linux_sigreturn */ - { AS(linux_clone_args), (sy_call_t *)linux_clone }, /* 120 = linux_clone */ - { AS(setdomainname_args), (sy_call_t *)setdomainname }, /* 121 = setdomainname */ - { AS(linux_newuname_args), (sy_call_t *)linux_newuname }, /* 122 = linux_newuname */ - { AS(linux_modify_ldt_args), (sy_call_t *)linux_modify_ldt }, /* 123 = linux_modify_ldt */ - { 0, (sy_call_t *)linux_adjtimex }, /* 124 = linux_adjtimex */ - { AS(mprotect_args), (sy_call_t *)mprotect }, /* 125 = mprotect */ - { AS(linux_sigprocmask_args), (sy_call_t *)linux_sigprocmask }, /* 126 = linux_sigprocmask */ - { 0, (sy_call_t *)linux_create_module }, /* 127 = linux_create_module */ - { 0, (sy_call_t *)linux_init_module }, /* 128 = linux_init_module */ - { 0, (sy_call_t *)linux_delete_module }, /* 129 = linux_delete_module */ - { 0, (sy_call_t *)linux_get_kernel_syms }, /* 130 = linux_get_kernel_syms */ - { 0, (sy_call_t *)linux_quotactl }, /* 131 = linux_quotactl */ - { AS(getpgid_args), (sy_call_t *)getpgid }, /* 132 = getpgid */ - { AS(fchdir_args), (sy_call_t *)fchdir }, /* 133 = fchdir */ - { 0, (sy_call_t *)linux_bdflush }, /* 134 = linux_bdflush */ - { AS(linux_sysfs_args), (sy_call_t *)linux_sysfs }, /* 135 = linux_sysfs */ - { AS(linux_personality_args), (sy_call_t *)linux_personality }, /* 136 = linux_personality */ - { 0, (sy_call_t *)nosys }, /* 137 = afs_syscall */ - { AS(linux_setfsuid16_args), (sy_call_t *)linux_setfsuid16 }, /* 138 = linux_setfsuid16 */ - { AS(linux_setfsgid16_args), (sy_call_t *)linux_setfsgid16 }, /* 139 = linux_setfsgid16 */ - { AS(linux_llseek_args), (sy_call_t *)linux_llseek }, /* 140 = linux_llseek */ - { AS(linux_getdents_args), (sy_call_t *)linux_getdents }, /* 141 = linux_getdents */ - { AS(linux_select_args), (sy_call_t *)linux_select }, /* 142 = linux_select */ - { AS(flock_args), (sy_call_t *)flock }, /* 143 = flock */ - { AS(linux_msync_args), (sy_call_t *)linux_msync }, /* 144 = linux_msync */ - { AS(readv_args), (sy_call_t *)readv }, /* 145 = readv */ - { AS(writev_args), (sy_call_t *)writev }, /* 146 = writev */ - { AS(linux_getsid_args), (sy_call_t *)linux_getsid }, /* 147 = linux_getsid */ - { AS(linux_fdatasync_args), (sy_call_t *)linux_fdatasync }, /* 148 = linux_fdatasync */ - { AS(linux_sysctl_args), (sy_call_t *)linux_sysctl }, /* 149 = linux_sysctl */ - { AS(mlock_args), (sy_call_t *)mlock }, /* 150 = mlock */ - { AS(munlock_args), (sy_call_t *)munlock }, /* 151 = munlock */ - { AS(mlockall_args), (sy_call_t *)mlockall }, /* 152 = mlockall */ - { 0, (sy_call_t *)munlockall }, /* 153 = munlockall */ - { AS(sched_setparam_args), (sy_call_t *)sched_setparam }, /* 154 = sched_setparam */ - { AS(sched_getparam_args), (sy_call_t *)sched_getparam }, /* 155 = sched_getparam */ - { AS(linux_sched_setscheduler_args), (sy_call_t *)linux_sched_setscheduler }, /* 156 = linux_sched_setscheduler */ - { AS(linux_sched_getscheduler_args), (sy_call_t *)linux_sched_getscheduler }, /* 157 = linux_sched_getscheduler */ - { 0, (sy_call_t *)sched_yield }, /* 158 = sched_yield */ - { AS(linux_sched_get_priority_max_args), (sy_call_t *)linux_sched_get_priority_max }, /* 159 = linux_sched_get_priority_max */ - { AS(linux_sched_get_priority_min_args), (sy_call_t *)linux_sched_get_priority_min }, /* 160 = linux_sched_get_priority_min */ - { AS(sched_rr_get_interval_args), (sy_call_t *)sched_rr_get_interval }, /* 161 = sched_rr_get_interval */ - { AS(nanosleep_args), (sy_call_t *)nanosleep }, /* 162 = nanosleep */ - { AS(linux_mremap_args), (sy_call_t *)linux_mremap }, /* 163 = linux_mremap */ - { AS(linux_setresuid16_args), (sy_call_t *)linux_setresuid16 }, /* 164 = linux_setresuid16 */ - { AS(linux_getresuid16_args), (sy_call_t *)linux_getresuid16 }, /* 165 = linux_getresuid16 */ - { 0, (sy_call_t *)linux_vm86 }, /* 166 = linux_vm86 */ - { 0, (sy_call_t *)linux_query_module }, /* 167 = linux_query_module */ - { AS(poll_args), (sy_call_t *)poll }, /* 168 = poll */ - { 0, (sy_call_t *)linux_nfsservctl }, /* 169 = linux_nfsservctl */ - { AS(linux_setresgid16_args), (sy_call_t *)linux_setresgid16 }, /* 170 = linux_setresgid16 */ - { AS(linux_getresgid16_args), (sy_call_t *)linux_getresgid16 }, /* 171 = linux_getresgid16 */ - { 0, (sy_call_t *)linux_prctl }, /* 172 = linux_prctl */ - { AS(linux_rt_sigreturn_args), (sy_call_t *)linux_rt_sigreturn }, /* 173 = linux_rt_sigreturn */ - { AS(linux_rt_sigaction_args), (sy_call_t *)linux_rt_sigaction }, /* 174 = linux_rt_sigaction */ - { AS(linux_rt_sigprocmask_args), (sy_call_t *)linux_rt_sigprocmask }, /* 175 = linux_rt_sigprocmask */ - { 0, (sy_call_t *)linux_rt_sigpending }, /* 176 = linux_rt_sigpending */ - { 0, (sy_call_t *)linux_rt_sigtimedwait }, /* 177 = linux_rt_sigtimedwait */ - { 0, (sy_call_t *)linux_rt_sigqueueinfo }, /* 178 = linux_rt_sigqueueinfo */ - { AS(linux_rt_sigsuspend_args), (sy_call_t *)linux_rt_sigsuspend }, /* 179 = linux_rt_sigsuspend */ - { AS(linux_pread_args), (sy_call_t *)linux_pread }, /* 180 = linux_pread */ - { AS(linux_pwrite_args), (sy_call_t *)linux_pwrite }, /* 181 = linux_pwrite */ - { AS(linux_chown16_args), (sy_call_t *)linux_chown16 }, /* 182 = linux_chown16 */ - { AS(linux_getcwd_args), (sy_call_t *)linux_getcwd }, /* 183 = linux_getcwd */ - { 0, (sy_call_t *)linux_capget }, /* 184 = linux_capget */ - { 0, (sy_call_t *)linux_capset }, /* 185 = linux_capset */ - { AS(linux_sigaltstack_args), (sy_call_t *)linux_sigaltstack }, /* 186 = linux_sigaltstack */ - { 0, (sy_call_t *)linux_sendfile }, /* 187 = linux_sendfile */ - { 0, (sy_call_t *)nosys }, /* 188 = getpmsg */ - { 0, (sy_call_t *)nosys }, /* 189 = putpmsg */ - { 0, (sy_call_t *)linux_vfork }, /* 190 = linux_vfork */ - { AS(linux_getrlimit_args), (sy_call_t *)linux_getrlimit }, /* 191 = linux_getrlimit */ - { AS(linux_mmap2_args), (sy_call_t *)linux_mmap2 }, /* 192 = linux_mmap2 */ - { AS(linux_truncate64_args), (sy_call_t *)linux_truncate64 }, /* 193 = linux_truncate64 */ - { AS(linux_ftruncate64_args), (sy_call_t *)linux_ftruncate64 }, /* 194 = linux_ftruncate64 */ - { AS(linux_stat64_args), (sy_call_t *)linux_stat64 }, /* 195 = linux_stat64 */ - { AS(linux_lstat64_args), (sy_call_t *)linux_lstat64 }, /* 196 = linux_lstat64 */ - { AS(linux_fstat64_args), (sy_call_t *)linux_fstat64 }, /* 197 = linux_fstat64 */ - { AS(linux_lchown_args), (sy_call_t *)linux_lchown }, /* 198 = linux_lchown */ - { 0, (sy_call_t *)linux_getuid }, /* 199 = linux_getuid */ - { 0, (sy_call_t *)linux_getgid }, /* 200 = linux_getgid */ - { 0, (sy_call_t *)geteuid }, /* 201 = geteuid */ - { 0, (sy_call_t *)getegid }, /* 202 = getegid */ - { AS(setreuid_args), (sy_call_t *)setreuid }, /* 203 = setreuid */ - { AS(setregid_args), (sy_call_t *)setregid }, /* 204 = setregid */ - { AS(linux_getgroups_args), (sy_call_t *)linux_getgroups }, /* 205 = linux_getgroups */ - { AS(linux_setgroups_args), (sy_call_t *)linux_setgroups }, /* 206 = linux_setgroups */ - { AS(fchown_args), (sy_call_t *)fchown }, /* 207 = fchown */ - { AS(setresuid_args), (sy_call_t *)setresuid }, /* 208 = setresuid */ - { AS(getresuid_args), (sy_call_t *)getresuid }, /* 209 = getresuid */ - { AS(setresgid_args), (sy_call_t *)setresgid }, /* 210 = setresgid */ - { AS(getresgid_args), (sy_call_t *)getresgid }, /* 211 = getresgid */ - { AS(linux_chown_args), (sy_call_t *)linux_chown }, /* 212 = linux_chown */ - { AS(setuid_args), (sy_call_t *)setuid }, /* 213 = setuid */ - { AS(setgid_args), (sy_call_t *)setgid }, /* 214 = setgid */ - { AS(linux_setfsuid_args), (sy_call_t *)linux_setfsuid }, /* 215 = linux_setfsuid */ - { AS(linux_setfsgid_args), (sy_call_t *)linux_setfsgid }, /* 216 = linux_setfsgid */ - { AS(linux_pivot_root_args), (sy_call_t *)linux_pivot_root }, /* 217 = linux_pivot_root */ - { AS(linux_mincore_args), (sy_call_t *)linux_mincore }, /* 218 = linux_mincore */ - { 0, (sy_call_t *)linux_madvise }, /* 219 = linux_madvise */ - { AS(linux_getdents64_args), (sy_call_t *)linux_getdents64 }, /* 220 = linux_getdents64 */ - { AS(linux_fcntl64_args), (sy_call_t *)linux_fcntl64 }, /* 221 = linux_fcntl64 */ - { 0, (sy_call_t *)nosys }, /* 222 = none */ - { 0, (sy_call_t *)nosys }, /* 223 = none */ - { 0, (sy_call_t *)nosys }, /* 224 = linux_gettid */ - { 0, (sy_call_t *)nosys }, /* 225 = linux_readahead */ - { 0, (sy_call_t *)linux_setxattr }, /* 226 = linux_setxattr */ - { 0, (sy_call_t *)linux_lsetxattr }, /* 227 = linux_lsetxattr */ - { 0, (sy_call_t *)linux_fsetxattr }, /* 228 = linux_fsetxattr */ - { 0, (sy_call_t *)linux_getxattr }, /* 229 = linux_getxattr */ - { 0, (sy_call_t *)linux_lgetxattr }, /* 230 = linux_lgetxattr */ - { 0, (sy_call_t *)linux_fgetxattr }, /* 231 = linux_fgetxattr */ - { 0, (sy_call_t *)linux_listxattr }, /* 232 = linux_listxattr */ - { 0, (sy_call_t *)linux_llistxattr }, /* 233 = linux_llistxattr */ - { 0, (sy_call_t *)linux_flistxattr }, /* 234 = linux_flistxattr */ - { 0, (sy_call_t *)linux_removexattr }, /* 235 = linux_removexattr */ - { 0, (sy_call_t *)linux_lremovexattr }, /* 236 = linux_lremovexattr */ - { 0, (sy_call_t *)linux_fremovexattr }, /* 237 = linux_fremovexattr */ - { 0, (sy_call_t *)nosys }, /* 238 = linux_tkill */ - { 0, (sy_call_t *)nosys }, /* 239 = linux_sendfile64 */ - { 0, (sy_call_t *)nosys }, /* 240 = linux_futex */ - { 0, (sy_call_t *)nosys }, /* 241 = linux_sched_setaffinity */ - { 0, (sy_call_t *)nosys }, /* 242 = linux_sched_getaffinity */ - { 0, (sy_call_t *)nosys }, /* 243 = linux_set_thread_area */ - { 0, (sy_call_t *)nosys }, /* 244 = linux_get_thread_area */ - { 0, (sy_call_t *)nosys }, /* 245 = linux_io_setup */ - { 0, (sy_call_t *)nosys }, /* 246 = linux_io_destroy */ - { 0, (sy_call_t *)nosys }, /* 247 = linux_io_getevents */ - { 0, (sy_call_t *)nosys }, /* 248 = linux_io_submit */ - { 0, (sy_call_t *)nosys }, /* 249 = linux_io_cancel */ - { 0, (sy_call_t *)linux_fadvise64 }, /* 250 = linux_fadvise64 */ - { 0, (sy_call_t *)nosys }, /* 251 = */ - { AS(sys_exit_args), (sy_call_t *)sys_exit }, /* 252 = exit_group */ - { 0, (sy_call_t *)nosys }, /* 253 = linux_lookup_dcookie */ - { 0, (sy_call_t *)nosys }, /* 254 = linux_epoll_create */ - { 0, (sy_call_t *)nosys }, /* 255 = linux_epoll_ctl */ - { 0, (sy_call_t *)nosys }, /* 256 = linux_epoll_wait */ - { 0, (sy_call_t *)nosys }, /* 257 = linux_remap_file_pages */ - { 0, (sy_call_t *)nosys }, /* 258 = linux_set_tid_address */ - { 0, (sy_call_t *)nosys }, /* 259 = linux_timer_create */ - { 0, (sy_call_t *)nosys }, /* 260 = linux_timer_settime */ - { 0, (sy_call_t *)nosys }, /* 261 = linux_timer_gettime */ - { 0, (sy_call_t *)nosys }, /* 262 = linux_timer_getoverrun */ - { 0, (sy_call_t *)nosys }, /* 263 = linux_timer_delete */ - { 0, (sy_call_t *)nosys }, /* 264 = linux_clock_settime */ - { 0, (sy_call_t *)nosys }, /* 265 = linux_clock_gettime */ - { 0, (sy_call_t *)nosys }, /* 266 = linux_clock_getres */ - { 0, (sy_call_t *)nosys }, /* 267 = linux_clock_nanosleep */ + { 0, (sy_call_t *)sys_nosys }, /* 0 = setup */ + { AS(exit_args), (sy_call_t *)sys_exit }, /* 1 = exit */ + { 0, (sy_call_t *)sys_linux_fork }, /* 2 = linux_fork */ + { AS(read_args), (sy_call_t *)sys_read }, /* 3 = read */ + { AS(write_args), (sy_call_t *)sys_write }, /* 4 = write */ + { AS(linux_open_args), (sy_call_t *)sys_linux_open }, /* 5 = linux_open */ + { AS(close_args), (sy_call_t *)sys_close }, /* 6 = close */ + { AS(linux_waitpid_args), (sy_call_t *)sys_linux_waitpid }, /* 7 = linux_waitpid */ + { AS(linux_creat_args), (sy_call_t *)sys_linux_creat }, /* 8 = linux_creat */ + { AS(linux_link_args), (sy_call_t *)sys_linux_link }, /* 9 = linux_link */ + { AS(linux_unlink_args), (sy_call_t *)sys_linux_unlink }, /* 10 = linux_unlink */ + { AS(linux_execve_args), (sy_call_t *)sys_linux_execve }, /* 11 = linux_execve */ + { AS(linux_chdir_args), (sy_call_t *)sys_linux_chdir }, /* 12 = linux_chdir */ + { AS(linux_time_args), (sy_call_t *)sys_linux_time }, /* 13 = linux_time */ + { AS(linux_mknod_args), (sy_call_t *)sys_linux_mknod }, /* 14 = linux_mknod */ + { AS(linux_chmod_args), (sy_call_t *)sys_linux_chmod }, /* 15 = linux_chmod */ + { AS(linux_lchown16_args), (sy_call_t *)sys_linux_lchown16 }, /* 16 = linux_lchown16 */ + { 0, (sy_call_t *)sys_nosys }, /* 17 = break */ + { AS(linux_stat_args), (sy_call_t *)sys_linux_stat }, /* 18 = linux_stat */ + { AS(linux_lseek_args), (sy_call_t *)sys_linux_lseek }, /* 19 = linux_lseek */ + { 0, (sy_call_t *)sys_linux_getpid }, /* 20 = linux_getpid */ + { AS(linux_mount_args), (sy_call_t *)sys_linux_mount }, /* 21 = linux_mount */ + { AS(linux_oldumount_args), (sy_call_t *)sys_linux_oldumount }, /* 22 = linux_oldumount */ + { AS(linux_setuid16_args), (sy_call_t *)sys_linux_setuid16 }, /* 23 = linux_setuid16 */ + { 0, (sy_call_t *)sys_linux_getuid16 }, /* 24 = linux_getuid16 */ + { 0, (sy_call_t *)sys_linux_stime }, /* 25 = linux_stime */ + { AS(linux_ptrace_args), (sy_call_t *)sys_linux_ptrace }, /* 26 = linux_ptrace */ + { AS(linux_alarm_args), (sy_call_t *)sys_linux_alarm }, /* 27 = linux_alarm */ + { AS(linux_fstat_args), (sy_call_t *)sys_linux_fstat }, /* 28 = linux_fstat */ + { 0, (sy_call_t *)sys_linux_pause }, /* 29 = linux_pause */ + { AS(linux_utime_args), (sy_call_t *)sys_linux_utime }, /* 30 = linux_utime */ + { 0, (sy_call_t *)sys_nosys }, /* 31 = stty */ + { 0, (sy_call_t *)sys_nosys }, /* 32 = gtty */ + { AS(linux_access_args), (sy_call_t *)sys_linux_access }, /* 33 = linux_access */ + { AS(linux_nice_args), (sy_call_t *)sys_linux_nice }, /* 34 = linux_nice */ + { 0, (sy_call_t *)sys_nosys }, /* 35 = ftime */ + { 0, (sy_call_t *)sys_sync }, /* 36 = sync */ + { AS(linux_kill_args), (sy_call_t *)sys_linux_kill }, /* 37 = linux_kill */ + { AS(linux_rename_args), (sy_call_t *)sys_linux_rename }, /* 38 = linux_rename */ + { AS(linux_mkdir_args), (sy_call_t *)sys_linux_mkdir }, /* 39 = linux_mkdir */ + { AS(linux_rmdir_args), (sy_call_t *)sys_linux_rmdir }, /* 40 = linux_rmdir */ + { AS(dup_args), (sy_call_t *)sys_dup }, /* 41 = dup */ + { AS(linux_pipe_args), (sy_call_t *)sys_linux_pipe }, /* 42 = linux_pipe */ + { AS(linux_times_args), (sy_call_t *)sys_linux_times }, /* 43 = linux_times */ + { 0, (sy_call_t *)sys_nosys }, /* 44 = prof */ + { AS(linux_brk_args), (sy_call_t *)sys_linux_brk }, /* 45 = linux_brk */ + { AS(linux_setgid16_args), (sy_call_t *)sys_linux_setgid16 }, /* 46 = linux_setgid16 */ + { 0, (sy_call_t *)sys_linux_getgid16 }, /* 47 = linux_getgid16 */ + { AS(linux_signal_args), (sy_call_t *)sys_linux_signal }, /* 48 = linux_signal */ + { 0, (sy_call_t *)sys_linux_geteuid16 }, /* 49 = linux_geteuid16 */ + { 0, (sy_call_t *)sys_linux_getegid16 }, /* 50 = linux_getegid16 */ + { AS(acct_args), (sy_call_t *)sys_acct }, /* 51 = acct */ + { AS(linux_umount_args), (sy_call_t *)sys_linux_umount }, /* 52 = linux_umount */ + { 0, (sy_call_t *)sys_nosys }, /* 53 = lock */ + { AS(linux_ioctl_args), (sy_call_t *)sys_linux_ioctl }, /* 54 = linux_ioctl */ + { AS(linux_fcntl_args), (sy_call_t *)sys_linux_fcntl }, /* 55 = linux_fcntl */ + { 0, (sy_call_t *)sys_nosys }, /* 56 = mpx */ + { AS(setpgid_args), (sy_call_t *)sys_setpgid }, /* 57 = setpgid */ + { 0, (sy_call_t *)sys_nosys }, /* 58 = ulimit */ + { 0, (sy_call_t *)sys_linux_olduname }, /* 59 = linux_olduname */ + { AS(umask_args), (sy_call_t *)sys_umask }, /* 60 = umask */ + { AS(chroot_args), (sy_call_t *)sys_chroot }, /* 61 = chroot */ + { AS(linux_ustat_args), (sy_call_t *)sys_linux_ustat }, /* 62 = linux_ustat */ + { AS(dup2_args), (sy_call_t *)sys_dup2 }, /* 63 = dup2 */ + { 0, (sy_call_t *)sys_getppid }, /* 64 = getppid */ + { 0, (sy_call_t *)sys_getpgrp }, /* 65 = getpgrp */ + { 0, (sy_call_t *)sys_setsid }, /* 66 = setsid */ + { AS(linux_sigaction_args), (sy_call_t *)sys_linux_sigaction }, /* 67 = linux_sigaction */ + { 0, (sy_call_t *)sys_linux_sgetmask }, /* 68 = linux_sgetmask */ + { AS(linux_ssetmask_args), (sy_call_t *)sys_linux_ssetmask }, /* 69 = linux_ssetmask */ + { AS(linux_setreuid16_args), (sy_call_t *)sys_linux_setreuid16 }, /* 70 = linux_setreuid16 */ + { AS(linux_setregid16_args), (sy_call_t *)sys_linux_setregid16 }, /* 71 = linux_setregid16 */ + { AS(linux_sigsuspend_args), (sy_call_t *)sys_linux_sigsuspend }, /* 72 = linux_sigsuspend */ + { AS(linux_sigpending_args), (sy_call_t *)sys_linux_sigpending }, /* 73 = linux_sigpending */ + { AS(sethostname_args), (sy_call_t *)sys_osethostname }, /* 74 = osethostname */ + { AS(linux_setrlimit_args), (sy_call_t *)sys_linux_setrlimit }, /* 75 = linux_setrlimit */ + { AS(linux_old_getrlimit_args), (sy_call_t *)sys_linux_old_getrlimit }, /* 76 = linux_old_getrlimit */ + { AS(getrusage_args), (sy_call_t *)sys_getrusage }, /* 77 = getrusage */ + { AS(gettimeofday_args), (sy_call_t *)sys_gettimeofday }, /* 78 = gettimeofday */ + { AS(settimeofday_args), (sy_call_t *)sys_settimeofday }, /* 79 = settimeofday */ + { AS(linux_getgroups16_args), (sy_call_t *)sys_linux_getgroups16 }, /* 80 = linux_getgroups16 */ + { AS(linux_setgroups16_args), (sy_call_t *)sys_linux_setgroups16 }, /* 81 = linux_setgroups16 */ + { AS(linux_old_select_args), (sy_call_t *)sys_linux_old_select }, /* 82 = linux_old_select */ + { AS(linux_symlink_args), (sy_call_t *)sys_linux_symlink }, /* 83 = linux_symlink */ + { AS(ostat_args), (sy_call_t *)sys_ostat }, /* 84 = ostat */ + { AS(linux_readlink_args), (sy_call_t *)sys_linux_readlink }, /* 85 = linux_readlink */ + { AS(linux_uselib_args), (sy_call_t *)sys_linux_uselib }, /* 86 = linux_uselib */ + { AS(swapon_args), (sy_call_t *)sys_swapon }, /* 87 = swapon */ + { AS(linux_reboot_args), (sy_call_t *)sys_linux_reboot }, /* 88 = linux_reboot */ + { AS(linux_readdir_args), (sy_call_t *)sys_linux_readdir }, /* 89 = linux_readdir */ + { AS(linux_mmap_args), (sy_call_t *)sys_linux_mmap }, /* 90 = linux_mmap */ + { AS(munmap_args), (sy_call_t *)sys_munmap }, /* 91 = munmap */ + { AS(linux_truncate_args), (sy_call_t *)sys_linux_truncate }, /* 92 = linux_truncate */ + { AS(linux_ftruncate_args), (sy_call_t *)sys_linux_ftruncate }, /* 93 = linux_ftruncate */ + { AS(fchmod_args), (sy_call_t *)sys_fchmod }, /* 94 = fchmod */ + { AS(fchown_args), (sy_call_t *)sys_fchown }, /* 95 = fchown */ + { AS(getpriority_args), (sy_call_t *)sys_getpriority }, /* 96 = getpriority */ + { AS(setpriority_args), (sy_call_t *)sys_setpriority }, /* 97 = setpriority */ + { 0, (sy_call_t *)sys_nosys }, /* 98 = profil */ + { AS(linux_statfs_args), (sy_call_t *)sys_linux_statfs }, /* 99 = linux_statfs */ + { AS(linux_fstatfs_args), (sy_call_t *)sys_linux_fstatfs }, /* 100 = linux_fstatfs */ + { AS(linux_ioperm_args), (sy_call_t *)sys_linux_ioperm }, /* 101 = linux_ioperm */ + { AS(linux_socketcall_args), (sy_call_t *)sys_linux_socketcall }, /* 102 = linux_socketcall */ + { AS(linux_syslog_args), (sy_call_t *)sys_linux_syslog }, /* 103 = linux_syslog */ + { AS(linux_setitimer_args), (sy_call_t *)sys_linux_setitimer }, /* 104 = linux_setitimer */ + { AS(linux_getitimer_args), (sy_call_t *)sys_linux_getitimer }, /* 105 = linux_getitimer */ + { AS(linux_newstat_args), (sy_call_t *)sys_linux_newstat }, /* 106 = linux_newstat */ + { AS(linux_newlstat_args), (sy_call_t *)sys_linux_newlstat }, /* 107 = linux_newlstat */ + { AS(linux_newfstat_args), (sy_call_t *)sys_linux_newfstat }, /* 108 = linux_newfstat */ + { 0, (sy_call_t *)sys_linux_uname }, /* 109 = linux_uname */ + { AS(linux_iopl_args), (sy_call_t *)sys_linux_iopl }, /* 110 = linux_iopl */ + { 0, (sy_call_t *)sys_linux_vhangup }, /* 111 = linux_vhangup */ + { 0, (sy_call_t *)sys_nosys }, /* 112 = idle */ + { 0, (sy_call_t *)sys_linux_vm86old }, /* 113 = linux_vm86old */ + { AS(linux_wait4_args), (sy_call_t *)sys_linux_wait4 }, /* 114 = linux_wait4 */ + { 0, (sy_call_t *)sys_linux_swapoff }, /* 115 = linux_swapoff */ + { AS(linux_sysinfo_args), (sy_call_t *)sys_linux_sysinfo }, /* 116 = linux_sysinfo */ + { AS(linux_ipc_args), (sy_call_t *)sys_linux_ipc }, /* 117 = linux_ipc */ + { AS(fsync_args), (sy_call_t *)sys_fsync }, /* 118 = fsync */ + { AS(linux_sigreturn_args), (sy_call_t *)sys_linux_sigreturn }, /* 119 = linux_sigreturn */ + { AS(linux_clone_args), (sy_call_t *)sys_linux_clone }, /* 120 = linux_clone */ + { AS(setdomainname_args), (sy_call_t *)sys_setdomainname }, /* 121 = setdomainname */ + { AS(linux_newuname_args), (sy_call_t *)sys_linux_newuname }, /* 122 = linux_newuname */ + { AS(linux_modify_ldt_args), (sy_call_t *)sys_linux_modify_ldt }, /* 123 = linux_modify_ldt */ + { 0, (sy_call_t *)sys_linux_adjtimex }, /* 124 = linux_adjtimex */ + { AS(mprotect_args), (sy_call_t *)sys_mprotect }, /* 125 = mprotect */ + { AS(linux_sigprocmask_args), (sy_call_t *)sys_linux_sigprocmask }, /* 126 = linux_sigprocmask */ + { 0, (sy_call_t *)sys_linux_create_module }, /* 127 = linux_create_module */ + { 0, (sy_call_t *)sys_linux_init_module }, /* 128 = linux_init_module */ + { 0, (sy_call_t *)sys_linux_delete_module }, /* 129 = linux_delete_module */ + { 0, (sy_call_t *)sys_linux_get_kernel_syms }, /* 130 = linux_get_kernel_syms */ + { 0, (sy_call_t *)sys_linux_quotactl }, /* 131 = linux_quotactl */ + { AS(getpgid_args), (sy_call_t *)sys_getpgid }, /* 132 = getpgid */ + { AS(fchdir_args), (sy_call_t *)sys_fchdir }, /* 133 = fchdir */ + { 0, (sy_call_t *)sys_linux_bdflush }, /* 134 = linux_bdflush */ + { AS(linux_sysfs_args), (sy_call_t *)sys_linux_sysfs }, /* 135 = linux_sysfs */ + { AS(linux_personality_args), (sy_call_t *)sys_linux_personality }, /* 136 = linux_personality */ + { 0, (sy_call_t *)sys_nosys }, /* 137 = afs_syscall */ + { AS(linux_setfsuid16_args), (sy_call_t *)sys_linux_setfsuid16 }, /* 138 = linux_setfsuid16 */ + { AS(linux_setfsgid16_args), (sy_call_t *)sys_linux_setfsgid16 }, /* 139 = linux_setfsgid16 */ + { AS(linux_llseek_args), (sy_call_t *)sys_linux_llseek }, /* 140 = linux_llseek */ + { AS(linux_getdents_args), (sy_call_t *)sys_linux_getdents }, /* 141 = linux_getdents */ + { AS(linux_select_args), (sy_call_t *)sys_linux_select }, /* 142 = linux_select */ + { AS(flock_args), (sy_call_t *)sys_flock }, /* 143 = flock */ + { AS(linux_msync_args), (sy_call_t *)sys_linux_msync }, /* 144 = linux_msync */ + { AS(readv_args), (sy_call_t *)sys_readv }, /* 145 = readv */ + { AS(writev_args), (sy_call_t *)sys_writev }, /* 146 = writev */ + { AS(linux_getsid_args), (sy_call_t *)sys_linux_getsid }, /* 147 = linux_getsid */ + { AS(linux_fdatasync_args), (sy_call_t *)sys_linux_fdatasync }, /* 148 = linux_fdatasync */ + { AS(linux_sysctl_args), (sy_call_t *)sys_linux_sysctl }, /* 149 = linux_sysctl */ + { AS(mlock_args), (sy_call_t *)sys_mlock }, /* 150 = mlock */ + { AS(munlock_args), (sy_call_t *)sys_munlock }, /* 151 = munlock */ + { AS(mlockall_args), (sy_call_t *)sys_mlockall }, /* 152 = mlockall */ + { 0, (sy_call_t *)sys_munlockall }, /* 153 = munlockall */ + { AS(sched_setparam_args), (sy_call_t *)sys_sched_setparam }, /* 154 = sched_setparam */ + { AS(sched_getparam_args), (sy_call_t *)sys_sched_getparam }, /* 155 = sched_getparam */ + { AS(linux_sched_setscheduler_args), (sy_call_t *)sys_linux_sched_setscheduler }, /* 156 = linux_sched_setscheduler */ + { AS(linux_sched_getscheduler_args), (sy_call_t *)sys_linux_sched_getscheduler }, /* 157 = linux_sched_getscheduler */ + { 0, (sy_call_t *)sys_sched_yield }, /* 158 = sched_yield */ + { AS(linux_sched_get_priority_max_args), (sy_call_t *)sys_linux_sched_get_priority_max }, /* 159 = linux_sched_get_priority_max */ + { AS(linux_sched_get_priority_min_args), (sy_call_t *)sys_linux_sched_get_priority_min }, /* 160 = linux_sched_get_priority_min */ + { AS(sched_rr_get_interval_args), (sy_call_t *)sys_sched_rr_get_interval }, /* 161 = sched_rr_get_interval */ + { AS(nanosleep_args), (sy_call_t *)sys_nanosleep }, /* 162 = nanosleep */ + { AS(linux_mremap_args), (sy_call_t *)sys_linux_mremap }, /* 163 = linux_mremap */ + { AS(linux_setresuid16_args), (sy_call_t *)sys_linux_setresuid16 }, /* 164 = linux_setresuid16 */ + { AS(linux_getresuid16_args), (sy_call_t *)sys_linux_getresuid16 }, /* 165 = linux_getresuid16 */ + { 0, (sy_call_t *)sys_linux_vm86 }, /* 166 = linux_vm86 */ + { 0, (sy_call_t *)sys_linux_query_module }, /* 167 = linux_query_module */ + { AS(poll_args), (sy_call_t *)sys_poll }, /* 168 = poll */ + { 0, (sy_call_t *)sys_linux_nfsservctl }, /* 169 = linux_nfsservctl */ + { AS(linux_setresgid16_args), (sy_call_t *)sys_linux_setresgid16 }, /* 170 = linux_setresgid16 */ + { AS(linux_getresgid16_args), (sy_call_t *)sys_linux_getresgid16 }, /* 171 = linux_getresgid16 */ + { 0, (sy_call_t *)sys_linux_prctl }, /* 172 = linux_prctl */ + { AS(linux_rt_sigreturn_args), (sy_call_t *)sys_linux_rt_sigreturn }, /* 173 = linux_rt_sigreturn */ + { AS(linux_rt_sigaction_args), (sy_call_t *)sys_linux_rt_sigaction }, /* 174 = linux_rt_sigaction */ + { AS(linux_rt_sigprocmask_args), (sy_call_t *)sys_linux_rt_sigprocmask }, /* 175 = linux_rt_sigprocmask */ + { 0, (sy_call_t *)sys_linux_rt_sigpending }, /* 176 = linux_rt_sigpending */ + { 0, (sy_call_t *)sys_linux_rt_sigtimedwait }, /* 177 = linux_rt_sigtimedwait */ + { 0, (sy_call_t *)sys_linux_rt_sigqueueinfo }, /* 178 = linux_rt_sigqueueinfo */ + { AS(linux_rt_sigsuspend_args), (sy_call_t *)sys_linux_rt_sigsuspend }, /* 179 = linux_rt_sigsuspend */ + { AS(linux_pread_args), (sy_call_t *)sys_linux_pread }, /* 180 = linux_pread */ + { AS(linux_pwrite_args), (sy_call_t *)sys_linux_pwrite }, /* 181 = linux_pwrite */ + { AS(linux_chown16_args), (sy_call_t *)sys_linux_chown16 }, /* 182 = linux_chown16 */ + { AS(linux_getcwd_args), (sy_call_t *)sys_linux_getcwd }, /* 183 = linux_getcwd */ + { 0, (sy_call_t *)sys_linux_capget }, /* 184 = linux_capget */ + { 0, (sy_call_t *)sys_linux_capset }, /* 185 = linux_capset */ + { AS(linux_sigaltstack_args), (sy_call_t *)sys_linux_sigaltstack }, /* 186 = linux_sigaltstack */ + { 0, (sy_call_t *)sys_linux_sendfile }, /* 187 = linux_sendfile */ + { 0, (sy_call_t *)sys_nosys }, /* 188 = getpmsg */ + { 0, (sy_call_t *)sys_nosys }, /* 189 = putpmsg */ + { 0, (sy_call_t *)sys_linux_vfork }, /* 190 = linux_vfork */ + { AS(linux_getrlimit_args), (sy_call_t *)sys_linux_getrlimit }, /* 191 = linux_getrlimit */ + { AS(linux_mmap2_args), (sy_call_t *)sys_linux_mmap2 }, /* 192 = linux_mmap2 */ + { AS(linux_truncate64_args), (sy_call_t *)sys_linux_truncate64 }, /* 193 = linux_truncate64 */ + { AS(linux_ftruncate64_args), (sy_call_t *)sys_linux_ftruncate64 }, /* 194 = linux_ftruncate64 */ + { AS(linux_stat64_args), (sy_call_t *)sys_linux_stat64 }, /* 195 = linux_stat64 */ + { AS(linux_lstat64_args), (sy_call_t *)sys_linux_lstat64 }, /* 196 = linux_lstat64 */ + { AS(linux_fstat64_args), (sy_call_t *)sys_linux_fstat64 }, /* 197 = linux_fstat64 */ + { AS(linux_lchown_args), (sy_call_t *)sys_linux_lchown }, /* 198 = linux_lchown */ + { 0, (sy_call_t *)sys_linux_getuid }, /* 199 = linux_getuid */ + { 0, (sy_call_t *)sys_linux_getgid }, /* 200 = linux_getgid */ + { 0, (sy_call_t *)sys_geteuid }, /* 201 = geteuid */ + { 0, (sy_call_t *)sys_getegid }, /* 202 = getegid */ + { AS(setreuid_args), (sy_call_t *)sys_setreuid }, /* 203 = setreuid */ + { AS(setregid_args), (sy_call_t *)sys_setregid }, /* 204 = setregid */ + { AS(linux_getgroups_args), (sy_call_t *)sys_linux_getgroups }, /* 205 = linux_getgroups */ + { AS(linux_setgroups_args), (sy_call_t *)sys_linux_setgroups }, /* 206 = linux_setgroups */ + { AS(fchown_args), (sy_call_t *)sys_fchown }, /* 207 = fchown */ + { AS(setresuid_args), (sy_call_t *)sys_setresuid }, /* 208 = setresuid */ + { AS(getresuid_args), (sy_call_t *)sys_getresuid }, /* 209 = getresuid */ + { AS(setresgid_args), (sy_call_t *)sys_setresgid }, /* 210 = setresgid */ + { AS(getresgid_args), (sy_call_t *)sys_getresgid }, /* 211 = getresgid */ + { AS(linux_chown_args), (sy_call_t *)sys_linux_chown }, /* 212 = linux_chown */ + { AS(setuid_args), (sy_call_t *)sys_setuid }, /* 213 = setuid */ + { AS(setgid_args), (sy_call_t *)sys_setgid }, /* 214 = setgid */ + { AS(linux_setfsuid_args), (sy_call_t *)sys_linux_setfsuid }, /* 215 = linux_setfsuid */ + { AS(linux_setfsgid_args), (sy_call_t *)sys_linux_setfsgid }, /* 216 = linux_setfsgid */ + { AS(linux_pivot_root_args), (sy_call_t *)sys_linux_pivot_root }, /* 217 = linux_pivot_root */ + { AS(linux_mincore_args), (sy_call_t *)sys_linux_mincore }, /* 218 = linux_mincore */ + { 0, (sy_call_t *)sys_linux_madvise }, /* 219 = linux_madvise */ + { AS(linux_getdents64_args), (sy_call_t *)sys_linux_getdents64 }, /* 220 = linux_getdents64 */ + { AS(linux_fcntl64_args), (sy_call_t *)sys_linux_fcntl64 }, /* 221 = linux_fcntl64 */ + { 0, (sy_call_t *)sys_nosys }, /* 222 = none */ + { 0, (sy_call_t *)sys_nosys }, /* 223 = none */ + { 0, (sy_call_t *)sys_nosys }, /* 224 = linux_gettid */ + { 0, (sy_call_t *)sys_nosys }, /* 225 = linux_readahead */ + { 0, (sy_call_t *)sys_linux_setxattr }, /* 226 = linux_setxattr */ + { 0, (sy_call_t *)sys_linux_lsetxattr }, /* 227 = linux_lsetxattr */ + { 0, (sy_call_t *)sys_linux_fsetxattr }, /* 228 = linux_fsetxattr */ + { 0, (sy_call_t *)sys_linux_getxattr }, /* 229 = linux_getxattr */ + { 0, (sy_call_t *)sys_linux_lgetxattr }, /* 230 = linux_lgetxattr */ + { 0, (sy_call_t *)sys_linux_fgetxattr }, /* 231 = linux_fgetxattr */ + { 0, (sy_call_t *)sys_linux_listxattr }, /* 232 = linux_listxattr */ + { 0, (sy_call_t *)sys_linux_llistxattr }, /* 233 = linux_llistxattr */ + { 0, (sy_call_t *)sys_linux_flistxattr }, /* 234 = linux_flistxattr */ + { 0, (sy_call_t *)sys_linux_removexattr }, /* 235 = linux_removexattr */ + { 0, (sy_call_t *)sys_linux_lremovexattr }, /* 236 = linux_lremovexattr */ + { 0, (sy_call_t *)sys_linux_fremovexattr }, /* 237 = linux_fremovexattr */ + { 0, (sy_call_t *)sys_nosys }, /* 238 = linux_tkill */ + { 0, (sy_call_t *)sys_nosys }, /* 239 = linux_sendfile64 */ + { 0, (sy_call_t *)sys_nosys }, /* 240 = linux_futex */ + { 0, (sy_call_t *)sys_nosys }, /* 241 = linux_sched_setaffinity */ + { 0, (sy_call_t *)sys_nosys }, /* 242 = linux_sched_getaffinity */ + { 0, (sy_call_t *)sys_nosys }, /* 243 = linux_set_thread_area */ + { 0, (sy_call_t *)sys_nosys }, /* 244 = linux_get_thread_area */ + { 0, (sy_call_t *)sys_nosys }, /* 245 = linux_io_setup */ + { 0, (sy_call_t *)sys_nosys }, /* 246 = linux_io_destroy */ + { 0, (sy_call_t *)sys_nosys }, /* 247 = linux_io_getevents */ + { 0, (sy_call_t *)sys_nosys }, /* 248 = linux_io_submit */ + { 0, (sy_call_t *)sys_nosys }, /* 249 = linux_io_cancel */ + { 0, (sy_call_t *)sys_linux_fadvise64 }, /* 250 = linux_fadvise64 */ + { 0, (sy_call_t *)sys_nosys }, /* 251 = */ + { AS(linux_exit_group_args), (sy_call_t *)sys_linux_exit_group }, /* 252 = linux_exit_group */ + { 0, (sy_call_t *)sys_nosys }, /* 253 = linux_lookup_dcookie */ + { 0, (sy_call_t *)sys_nosys }, /* 254 = linux_epoll_create */ + { 0, (sy_call_t *)sys_nosys }, /* 255 = linux_epoll_ctl */ + { 0, (sy_call_t *)sys_nosys }, /* 256 = linux_epoll_wait */ + { 0, (sy_call_t *)sys_nosys }, /* 257 = linux_remap_file_pages */ + { 0, (sy_call_t *)sys_nosys }, /* 258 = linux_set_tid_address */ + { 0, (sy_call_t *)sys_nosys }, /* 259 = linux_timer_create */ + { 0, (sy_call_t *)sys_nosys }, /* 260 = linux_timer_settime */ + { 0, (sy_call_t *)sys_nosys }, /* 261 = linux_timer_gettime */ + { 0, (sy_call_t *)sys_nosys }, /* 262 = linux_timer_getoverrun */ + { 0, (sy_call_t *)sys_nosys }, /* 263 = linux_timer_delete */ + { 0, (sy_call_t *)sys_nosys }, /* 264 = linux_clock_settime */ + { 0, (sy_call_t *)sys_nosys }, /* 265 = linux_clock_gettime */ + { 0, (sy_call_t *)sys_nosys }, /* 266 = linux_clock_getres */ + { 0, (sy_call_t *)sys_nosys }, /* 267 = linux_clock_nanosleep */ }; diff --git a/sys/emulation/linux/i386/linux_sysvec.c b/sys/emulation/linux/i386/linux_sysvec.c index 0697f02166..9ace4f56bf 100644 --- a/sys/emulation/linux/i386/linux_sysvec.c +++ b/sys/emulation/linux/i386/linux_sysvec.c @@ -26,7 +26,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/i386/linux/linux_sysvec.c,v 1.55.2.9 2002/01/12 11:03:30 bde Exp $ - * $DragonFly: src/sys/emulation/linux/i386/linux_sysvec.c,v 1.20 2005/12/10 16:06:20 swildner Exp $ + * $DragonFly: src/sys/emulation/linux/i386/linux_sysvec.c,v 1.21 2006/06/05 07:26:10 dillon Exp $ */ /* XXX we use functions that might not exist. */ @@ -516,7 +516,7 @@ linux_sendsig(sig_t catcher, int sig, sigset_t *mask, u_long code) * a machine fault. */ int -linux_sigreturn(struct linux_sigreturn_args *args) +sys_linux_sigreturn(struct linux_sigreturn_args *args) { struct proc *p = curproc; struct l_sigframe frame; @@ -609,7 +609,7 @@ linux_sigreturn(struct linux_sigreturn_args *args) * a machine fault. */ int -linux_rt_sigreturn(struct linux_rt_sigreturn_args *args) +sys_linux_rt_sigreturn(struct linux_rt_sigreturn_args *args) { struct proc *p = curproc; struct l_ucontext uc; diff --git a/sys/emulation/linux/i386/linux_union.h b/sys/emulation/linux/i386/linux_union.h index 90ac2d932f..5ab06624c1 100644 --- a/sys/emulation/linux/i386/linux_union.h +++ b/sys/emulation/linux/i386/linux_union.h @@ -2,7 +2,7 @@ * Union of syscall args for messaging. * * DO NOT EDIT-- this file is automatically generated. - * $DragonFly: src/sys/emulation/linux/i386/linux_union.h,v 1.11 2005/10/08 11:41:44 corecode Exp $ + * $DragonFly: src/sys/emulation/linux/i386/linux_union.h,v 1.12 2006/06/05 07:26:10 dillon Exp $ * created from DragonFly: src/sys/emulation/linux/i386/syscalls.master,v 1.8 2005/10/08 11:41:11 corecode Exp */ @@ -179,4 +179,5 @@ union sysunion { struct linux_lremovexattr_args linux_lremovexattr; struct linux_fremovexattr_args linux_fremovexattr; struct linux_fadvise64_args linux_fadvise64; + struct linux_exit_group_args linux_exit_group; }; diff --git a/sys/emulation/linux/i386/syscalls.master b/sys/emulation/linux/i386/syscalls.master index 180cf5120d..472f3c661e 100644 --- a/sys/emulation/linux/i386/syscalls.master +++ b/sys/emulation/linux/i386/syscalls.master @@ -1,4 +1,4 @@ - $DragonFly: src/sys/emulation/linux/i386/syscalls.master,v 1.8 2005/10/08 11:41:11 corecode Exp $ + $DragonFly: src/sys/emulation/linux/i386/syscalls.master,v 1.9 2006/06/05 07:26:10 dillon Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 ; $FreeBSD: src/sys/i386/linux/syscalls.master,v 1.30.2.8 2003/01/02 20:41:33 kan Exp $ @@ -39,7 +39,7 @@ ; #ifdef's, etc. may be included, and are copied to the output files. 0 UNIMPL LINUX setup -1 NOPROTO LINUX { void sys_exit(int rval); } exit sys_exit_args void +1 NOPROTO LINUX { void exit(int rval); } 2 STD LINUX { int linux_fork(void); } 3 NOPROTO LINUX { int read(int fd, char *buf, u_int nbyte); } 4 NOPROTO LINUX { int write(int fd, char *buf, u_int nbyte); } @@ -373,9 +373,9 @@ 247 UNIMPL LINUX linux_io_getevents 248 UNIMPL LINUX linux_io_submit 249 UNIMPL LINUX linux_io_cancel -250 STD LINUX { int linux_fadvise64(void); } +250 STD LINUX { int linux_fadvise64(void); } 251 UNIMPL LINUX -252 NOPROTO LINUX { void sys_exit(int rval); } exit_group sys_exit_args void +252 STD LINUX { void linux_exit_group(int rval); } 253 UNIMPL LINUX linux_lookup_dcookie 254 UNIMPL LINUX linux_epoll_create 255 UNIMPL LINUX linux_epoll_ctl diff --git a/sys/emulation/linux/linux_file.c b/sys/emulation/linux/linux_file.c index bbbdb45fb1..f26aa266eb 100644 --- a/sys/emulation/linux/linux_file.c +++ b/sys/emulation/linux/linux_file.c @@ -26,7 +26,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/compat/linux/linux_file.c,v 1.41.2.6 2003/01/06 09:19:43 fjoe Exp $ - * $DragonFly: src/sys/emulation/linux/linux_file.c,v 1.31 2006/06/03 08:06:31 dillon Exp $ + * $DragonFly: src/sys/emulation/linux/linux_file.c,v 1.32 2006/06/05 07:26:09 dillon Exp $ */ #include "opt_compat.h" @@ -59,7 +59,7 @@ #include "linux_util.h" int -linux_creat(struct linux_creat_args *args) +sys_linux_creat(struct linux_creat_args *args) { struct nlookupdata nd; char *path; @@ -82,7 +82,7 @@ linux_creat(struct linux_creat_args *args) } int -linux_open(struct linux_open_args *args) +sys_linux_open(struct linux_open_args *args) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -158,7 +158,7 @@ linux_open(struct linux_open_args *args) } int -linux_lseek(struct linux_lseek_args *args) +sys_linux_lseek(struct linux_lseek_args *args) { int error; @@ -174,7 +174,7 @@ linux_lseek(struct linux_lseek_args *args) } int -linux_llseek(struct linux_llseek_args *args) +sys_linux_llseek(struct linux_llseek_args *args) { int error; off_t off, res; @@ -194,7 +194,7 @@ linux_llseek(struct linux_llseek_args *args) } int -linux_readdir(struct linux_readdir_args *args) +sys_linux_readdir(struct linux_readdir_args *args) { struct linux_getdents_args lda; int error; @@ -203,7 +203,7 @@ linux_readdir(struct linux_readdir_args *args) lda.dent = args->dent; lda.count = 1; lda.sysmsg_result = 0; - error = linux_getdents(&lda); + error = sys_linux_getdents(&lda); args->sysmsg_result = lda.sysmsg_result; return(error); } @@ -443,7 +443,7 @@ done: } int -linux_getdents(struct linux_getdents_args *args) +sys_linux_getdents(struct linux_getdents_args *args) { #ifdef DEBUG if (ldebug(getdents)) @@ -453,7 +453,7 @@ linux_getdents(struct linux_getdents_args *args) } int -linux_getdents64(struct linux_getdents64_args *args) +sys_linux_getdents64(struct linux_getdents64_args *args) { #ifdef DEBUG if (ldebug(getdents64)) @@ -467,7 +467,7 @@ linux_getdents64(struct linux_getdents64_args *args) */ int -linux_access(struct linux_access_args *args) +sys_linux_access(struct linux_access_args *args) { struct nlookupdata nd; char *path; @@ -489,7 +489,7 @@ linux_access(struct linux_access_args *args) } int -linux_unlink(struct linux_unlink_args *args) +sys_linux_unlink(struct linux_unlink_args *args) { struct nlookupdata nd; char *path; @@ -511,7 +511,7 @@ linux_unlink(struct linux_unlink_args *args) } int -linux_chdir(struct linux_chdir_args *args) +sys_linux_chdir(struct linux_chdir_args *args) { struct nlookupdata nd; char *path; @@ -534,7 +534,7 @@ linux_chdir(struct linux_chdir_args *args) } int -linux_chmod(struct linux_chmod_args *args) +sys_linux_chmod(struct linux_chmod_args *args) { struct nlookupdata nd; char *path; @@ -556,7 +556,7 @@ linux_chmod(struct linux_chmod_args *args) } int -linux_mkdir(struct linux_mkdir_args *args) +sys_linux_mkdir(struct linux_mkdir_args *args) { struct nlookupdata nd; char *path; @@ -579,7 +579,7 @@ linux_mkdir(struct linux_mkdir_args *args) } int -linux_rmdir(struct linux_rmdir_args *args) +sys_linux_rmdir(struct linux_rmdir_args *args) { struct nlookupdata nd; char *path; @@ -601,7 +601,7 @@ linux_rmdir(struct linux_rmdir_args *args) } int -linux_rename(struct linux_rename_args *args) +sys_linux_rename(struct linux_rename_args *args) { struct nlookupdata fromnd, tond; char *from, *to; @@ -633,7 +633,7 @@ linux_rename(struct linux_rename_args *args) } int -linux_symlink(struct linux_symlink_args *args) +sys_linux_symlink(struct linux_symlink_args *args) { struct thread *td = curthread; struct nlookupdata nd; @@ -665,7 +665,7 @@ linux_symlink(struct linux_symlink_args *args) } int -linux_readlink(struct linux_readlink_args *args) +sys_linux_readlink(struct linux_readlink_args *args) { struct nlookupdata nd; char *path; @@ -690,7 +690,7 @@ linux_readlink(struct linux_readlink_args *args) } int -linux_truncate(struct linux_truncate_args *args) +sys_linux_truncate(struct linux_truncate_args *args) { struct nlookupdata nd; char *path; @@ -713,7 +713,7 @@ linux_truncate(struct linux_truncate_args *args) } int -linux_truncate64(struct linux_truncate64_args *args) +sys_linux_truncate64(struct linux_truncate64_args *args) { struct nlookupdata nd; char *path; @@ -736,7 +736,7 @@ linux_truncate64(struct linux_truncate64_args *args) } int -linux_ftruncate(struct linux_ftruncate_args *args) +sys_linux_ftruncate(struct linux_ftruncate_args *args) { int error; @@ -751,7 +751,7 @@ linux_ftruncate(struct linux_ftruncate_args *args) } int -linux_ftruncate64(struct linux_ftruncate64_args *args) +sys_linux_ftruncate64(struct linux_ftruncate64_args *args) { int error; @@ -766,7 +766,7 @@ linux_ftruncate64(struct linux_ftruncate64_args *args) } int -linux_link(struct linux_link_args *args) +sys_linux_link(struct linux_link_args *args) { struct nlookupdata nd, linknd; char *path, *link; @@ -798,7 +798,7 @@ linux_link(struct linux_link_args *args) } int -linux_fdatasync(struct linux_fdatasync_args *uap) +sys_linux_fdatasync(struct linux_fdatasync_args *uap) { struct fsync_args bsd; int error; @@ -806,13 +806,13 @@ linux_fdatasync(struct linux_fdatasync_args *uap) bsd.fd = uap->fd; bsd.sysmsg_result = 0; - error = fsync(&bsd); + error = sys_fsync(&bsd); uap->sysmsg_result = bsd.sysmsg_result; return(error); } int -linux_pread(struct linux_pread_args *uap) +sys_linux_pread(struct linux_pread_args *uap) { struct thread *td = curthread; struct uio auio; @@ -837,7 +837,7 @@ linux_pread(struct linux_pread_args *uap) } int -linux_pwrite(struct linux_pwrite_args *uap) +sys_linux_pwrite(struct linux_pwrite_args *uap) { struct thread *td = curthread; struct uio auio; @@ -863,7 +863,7 @@ linux_pwrite(struct linux_pwrite_args *uap) } int -linux_oldumount(struct linux_oldumount_args *args) +sys_linux_oldumount(struct linux_oldumount_args *args) { struct linux_umount_args args2; int error; @@ -871,13 +871,13 @@ linux_oldumount(struct linux_oldumount_args *args) args2.path = args->path; args2.flags = 0; args2.sysmsg_result = 0; - error = linux_umount(&args2); + error = sys_linux_umount(&args2); args->sysmsg_result = args2.sysmsg_result; return(error); } int -linux_umount(struct linux_umount_args *args) +sys_linux_umount(struct linux_umount_args *args) { struct unmount_args bsd; int error; @@ -886,7 +886,7 @@ linux_umount(struct linux_umount_args *args) bsd.flags = args->flags; /* XXX correct? */ bsd.sysmsg_result = 0; - error = unmount(&bsd); + error = sys_unmount(&bsd); args->sysmsg_result = bsd.sysmsg_result; return(error); } @@ -1118,7 +1118,7 @@ linux_fcntl_common(struct linux_fcntl64_args *args) } int -linux_fcntl(struct linux_fcntl_args *args) +sys_linux_fcntl(struct linux_fcntl_args *args) { struct linux_fcntl64_args args64; int error; @@ -1139,7 +1139,7 @@ linux_fcntl(struct linux_fcntl_args *args) #if defined(__i386__) int -linux_fcntl64(struct linux_fcntl64_args *args) +sys_linux_fcntl64(struct linux_fcntl64_args *args) { struct l_flock64 linux_flock; union fcntl_dat dat; @@ -1185,7 +1185,7 @@ linux_fcntl64(struct linux_fcntl64_args *args) #endif /* __i386__ */ int -linux_chown(struct linux_chown_args *args) +sys_linux_chown(struct linux_chown_args *args) { struct nlookupdata nd; char *path; @@ -1207,7 +1207,7 @@ linux_chown(struct linux_chown_args *args) } int -linux_lchown(struct linux_lchown_args *args) +sys_linux_lchown(struct linux_lchown_args *args) { struct nlookupdata nd; char *path; diff --git a/sys/emulation/linux/linux_getcwd.c b/sys/emulation/linux/linux_getcwd.c index 91db72c66b..1287707964 100644 --- a/sys/emulation/linux/linux_getcwd.c +++ b/sys/emulation/linux/linux_getcwd.c @@ -1,5 +1,5 @@ /* $FreeBSD: src/sys/compat/linux/linux_getcwd.c,v 1.2.2.3 2001/11/05 19:08:22 marcel Exp $ */ -/* $DragonFly: src/sys/emulation/linux/linux_getcwd.c,v 1.20 2005/08/22 20:21:21 joerg Exp $ */ +/* $DragonFly: src/sys/emulation/linux/linux_getcwd.c,v 1.21 2006/06/05 07:26:09 dillon Exp $ */ /* $OpenBSD: linux_getcwd.c,v 1.2 2001/05/16 12:50:21 ho Exp $ */ /* $NetBSD: vfs_getcwd.c,v 1.3.2.3 1999/07/11 10:24:09 sommerfeld Exp $ */ @@ -69,7 +69,7 @@ */ int -linux_getcwd(struct linux_getcwd_args *args) +sys_linux_getcwd(struct linux_getcwd_args *args) { int buflen; int error; diff --git a/sys/emulation/linux/linux_ioctl.c b/sys/emulation/linux/linux_ioctl.c index 1ccdcd5c29..4a2effc00d 100644 --- a/sys/emulation/linux/linux_ioctl.c +++ b/sys/emulation/linux/linux_ioctl.c @@ -27,7 +27,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/compat/linux/linux_ioctl.c,v 1.55.2.11 2003/05/01 20:16:09 anholt Exp $ - * $DragonFly: src/sys/emulation/linux/linux_ioctl.c,v 1.19 2006/05/06 02:43:11 dillon Exp $ + * $DragonFly: src/sys/emulation/linux/linux_ioctl.c,v 1.20 2006/06/05 07:26:09 dillon Exp $ */ #include @@ -1282,7 +1282,7 @@ static struct ioctl_map_handler linux_ioctl_base_handler = { */ int -linux_ioctl(struct linux_ioctl_args *args) +sys_linux_ioctl(struct linux_ioctl_args *args) { #ifdef DEBUG if (ldebug(ioctl)) diff --git a/sys/emulation/linux/linux_ipc.c b/sys/emulation/linux/linux_ipc.c index 3493e7e54f..506920712d 100644 --- a/sys/emulation/linux/linux_ipc.c +++ b/sys/emulation/linux/linux_ipc.c @@ -26,7 +26,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/compat/linux/linux_ipc.c,v 1.17.2.3 2001/11/05 19:08:22 marcel Exp $ - * $DragonFly: src/sys/emulation/linux/linux_ipc.c,v 1.7 2003/08/15 06:32:51 dillon Exp $ + * $DragonFly: src/sys/emulation/linux/linux_ipc.c,v 1.8 2006/06/05 07:26:09 dillon Exp $ */ #include @@ -189,7 +189,7 @@ linux_semop(struct linux_semop_args *args) bsd_args.semid = args->semid; bsd_args.sops = (struct sembuf *)args->tsops; bsd_args.nsops = args->nsops; - error = semop(&bsd_args); + error = sys_semop(&bsd_args); args->sysmsg_result = bsd_args.sysmsg_result; return(error); } @@ -204,7 +204,7 @@ linux_semget(struct linux_semget_args *args) bsd_args.key = args->key; bsd_args.nsems = args->nsems; bsd_args.semflg = args->semflg; - error = semget(&bsd_args); + error = sys_semget(&bsd_args); args->sysmsg_result = bsd_args.sysmsg_result; return(error); } @@ -261,7 +261,7 @@ linux_semctl(struct linux_semctl_args *args) case LINUX_IPC_STAT: bsd_args.cmd = IPC_STAT; unptr->buf = stackgap_alloc(&sg, sizeof(struct semid_ds)); - error = __semctl(&bsd_args); + error = sys___semctl(&bsd_args); if (error) return error; args->sysmsg_result = IXSEQ_TO_IPCID(bsd_args.semid, @@ -296,7 +296,7 @@ linux_semctl(struct linux_semctl_args *args) uprintf("linux: 'ipc' typ=%d not implemented\n", args->cmd); return EINVAL; } - error = __semctl(&bsd_args); + error = sys___semctl(&bsd_args); args->sysmsg_result = bsd_args.sysmsg_result; return(error); } @@ -312,7 +312,7 @@ linux_msgsnd(struct linux_msgsnd_args *args) bsd_args.msgp = args->msgp; bsd_args.msgsz = args->msgsz; bsd_args.msgflg = args->msgflg; - error = msgsnd(&bsd_args); + error = sys_msgsnd(&bsd_args); args->sysmsg_result = bsd_args.sysmsg_result; return(error); } @@ -329,7 +329,7 @@ linux_msgrcv(struct linux_msgrcv_args *args) bsd_args.msgsz = args->msgsz; bsd_args.msgtyp = 0; /* XXX - args->msgtyp; */ bsd_args.msgflg = args->msgflg; - error = msgrcv(&bsd_args); + error = sys_msgrcv(&bsd_args); args->sysmsg_result = bsd_args.sysmsg_result; return(error); } @@ -343,7 +343,7 @@ linux_msgget(struct linux_msgget_args *args) bsd_args.sysmsg_result = 0; bsd_args.key = args->key; bsd_args.msgflg = args->msgflg; - error = msgget(&bsd_args); + error = sys_msgget(&bsd_args); args->sysmsg_result = bsd_args.sysmsg_result; return(error); } @@ -358,7 +358,7 @@ linux_msgctl(struct linux_msgctl_args *args) bsd_args.msqid = args->msqid; bsd_args.cmd = args->cmd; bsd_args.buf = (struct msqid_ds *)args->buf; - error = msgctl(&bsd_args); + error = sys_msgctl(&bsd_args); args->sysmsg_result = bsd_args.sysmsg_result; return ((args->cmd == LINUX_IPC_RMID && error == EINVAL) ? 0 : error); } @@ -373,7 +373,7 @@ linux_shmat(struct linux_shmat_args *args) bsd_args.shmid = args->shmid; bsd_args.shmaddr = args->shmaddr; bsd_args.shmflg = args->shmflg; - if ((error = shmat(&bsd_args))) + if ((error = sys_shmat(&bsd_args))) return error; #ifdef __i386__ if ((error = copyout(&bsd_args.sysmsg_lresult, (caddr_t)args->raddr, sizeof(l_ulong)))) @@ -393,7 +393,7 @@ linux_shmdt(struct linux_shmdt_args *args) bsd_args.sysmsg_result = 0; bsd_args.shmaddr = args->shmaddr; - error = shmdt(&bsd_args); + error = sys_shmdt(&bsd_args); args->sysmsg_result = bsd_args.sysmsg_result; return(error); } @@ -408,7 +408,7 @@ linux_shmget(struct linux_shmget_args *args) bsd_args.key = args->key; bsd_args.size = args->size; bsd_args.shmflg = args->shmflg; - error = shmget(&bsd_args); + error = sys_shmget(&bsd_args); args->sysmsg_result = bsd_args.sysmsg_result; return(error); } @@ -427,7 +427,7 @@ linux_shmctl(struct linux_shmctl_args *args) bsd_args.shmid = args->shmid; bsd_args.cmd = IPC_STAT; bsd_args.buf = (struct shmid_ds*)stackgap_alloc(&sg, sizeof(struct shmid_ds)); - if ((error = shmctl(&bsd_args))) + if ((error = sys_shmctl(&bsd_args))) return error; bsd_to_linux_shmid_ds(bsd_args.buf, &linux_shmid); args->sysmsg_result = bsd_args.sysmsg_result; @@ -464,7 +464,7 @@ linux_shmctl(struct linux_shmctl_args *args) uprintf("linux: 'ipc' typ=%d not implemented\n", args->cmd); return EINVAL; } - error = shmctl(&bsd_args); + error = sys_shmctl(&bsd_args); args->sysmsg_result = bsd_args.sysmsg_result; return(error); } diff --git a/sys/emulation/linux/linux_misc.c b/sys/emulation/linux/linux_misc.c index 353ebfb29b..8aba969d56 100644 --- a/sys/emulation/linux/linux_misc.c +++ b/sys/emulation/linux/linux_misc.c @@ -26,7 +26,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/compat/linux/linux_misc.c,v 1.85.2.9 2002/09/24 08:11:41 mdodd Exp $ - * $DragonFly: src/sys/emulation/linux/linux_misc.c,v 1.27 2006/05/06 02:43:11 dillon Exp $ + * $DragonFly: src/sys/emulation/linux/linux_misc.c,v 1.28 2006/06/05 07:26:09 dillon Exp $ */ #include "opt_compat.h" @@ -105,7 +105,7 @@ struct l_sysinfo { }; int -linux_sysinfo(struct linux_sysinfo_args *args) +sys_linux_sysinfo(struct linux_sysinfo_args *args) { struct l_sysinfo sysinfo; vm_object_t object; @@ -159,7 +159,7 @@ linux_sysinfo(struct linux_sysinfo_args *args) } int -linux_alarm(struct linux_alarm_args *args) +sys_linux_alarm(struct linux_alarm_args *args) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -202,7 +202,7 @@ linux_alarm(struct linux_alarm_args *args) } int -linux_brk(struct linux_brk_args *args) +sys_linux_brk(struct linux_brk_args *args) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -221,7 +221,7 @@ linux_brk(struct linux_brk_args *args) bsd_args.sysmsg_result = 0; bsd_args.nsize = (char *) new; bsd_args.sysmsg_result = 0; - if (((caddr_t)new > vm->vm_daddr) && !obreak(&bsd_args)) + if (((caddr_t)new > vm->vm_daddr) && !sys_obreak(&bsd_args)) args->sysmsg_result = (long)new; else args->sysmsg_result = (long)old; @@ -230,7 +230,7 @@ linux_brk(struct linux_brk_args *args) } int -linux_uselib(struct linux_uselib_args *args) +sys_linux_uselib(struct linux_uselib_args *args) { struct thread *td = curthread; struct proc *p; @@ -461,7 +461,7 @@ cleanup: } int -linux_select(struct linux_select_args *args) +sys_linux_select(struct linux_select_args *args) { struct select_args bsa; struct timeval tv0, tv1, utv, *tvp; @@ -519,7 +519,7 @@ linux_select(struct linux_select_args *args) microtime(&tv0); } - error = select(&bsa); + error = sys_select(&bsa); args->sysmsg_result = bsa.sysmsg_result; #ifdef DEBUG if (ldebug(select)) @@ -569,7 +569,7 @@ select_out: } int -linux_mremap(struct linux_mremap_args *args) +sys_linux_mremap(struct linux_mremap_args *args) { struct munmap_args bsd_args; int error = 0; @@ -594,7 +594,7 @@ linux_mremap(struct linux_mremap_args *args) bsd_args.sysmsg_result = 0; bsd_args.addr = (caddr_t)(args->addr + args->new_len); bsd_args.len = args->old_len - args->new_len; - error = munmap(&bsd_args); + error = sys_munmap(&bsd_args); } args->sysmsg_resultp = error ? NULL : (void *)args->addr; @@ -606,7 +606,7 @@ linux_mremap(struct linux_mremap_args *args) #define LINUX_MS_SYNC 0x0004 int -linux_msync(struct linux_msync_args *args) +sys_linux_msync(struct linux_msync_args *args) { struct msync_args bsd_args; int error; @@ -616,13 +616,13 @@ linux_msync(struct linux_msync_args *args) bsd_args.flags = args->fl & ~LINUX_MS_SYNC; bsd_args.sysmsg_result = 0; - error = msync(&bsd_args); + error = sys_msync(&bsd_args); args->sysmsg_result = bsd_args.sysmsg_result; return(error); } int -linux_time(struct linux_time_args *args) +sys_linux_time(struct linux_time_args *args) { struct timeval tv; l_time_t tm; @@ -653,7 +653,7 @@ struct l_times_argv { #define CONVTCK(r) (r.tv_sec * CLK_TCK + r.tv_usec / (1000000 / CLK_TCK)) int -linux_times(struct linux_times_args *args) +sys_linux_times(struct linux_times_args *args) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -685,7 +685,7 @@ linux_times(struct linux_times_args *args) } int -linux_newuname(struct linux_newuname_args *args) +sys_linux_newuname(struct linux_newuname_args *args) { struct thread *td = curthread; struct l_new_utsname utsname; @@ -717,7 +717,7 @@ struct l_utimbuf { }; int -linux_utime(struct linux_utime_args *args) +sys_linux_utime(struct linux_utime_args *args) { struct timeval tv[2]; struct l_utimbuf lut; @@ -755,7 +755,7 @@ cleanup: #define __WCLONE 0x80000000 int -linux_waitpid(struct linux_waitpid_args *args) +sys_linux_waitpid(struct linux_waitpid_args *args) { int error, options, status; @@ -787,7 +787,7 @@ linux_waitpid(struct linux_waitpid_args *args) } int -linux_wait4(struct linux_wait4_args *args) +sys_linux_wait4(struct linux_wait4_args *args) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -830,7 +830,7 @@ linux_wait4(struct linux_wait4_args *args) } int -linux_mknod(struct linux_mknod_args *args) +sys_linux_mknod(struct linux_mknod_args *args) { struct nlookupdata nd; char *path; @@ -862,7 +862,7 @@ linux_mknod(struct linux_mknod_args *args) * UGH! This is just about the dumbest idea I've ever heard!! */ int -linux_personality(struct linux_personality_args *args) +sys_linux_personality(struct linux_personality_args *args) { #ifdef DEBUG if (ldebug(personality)) @@ -880,7 +880,7 @@ linux_personality(struct linux_personality_args *args) * Wrappers for get/setitimer for debugging.. */ int -linux_setitimer(struct linux_setitimer_args *args) +sys_linux_setitimer(struct linux_setitimer_args *args) { struct setitimer_args bsa; struct itimerval foo; @@ -907,13 +907,13 @@ linux_setitimer(struct linux_setitimer_args *args) } #endif } - error = setitimer(&bsa); + error = sys_setitimer(&bsa); args->sysmsg_result = bsa.sysmsg_result; return(error); } int -linux_getitimer(struct linux_getitimer_args *args) +sys_linux_getitimer(struct linux_getitimer_args *args) { struct getitimer_args bsa; int error; @@ -924,13 +924,13 @@ linux_getitimer(struct linux_getitimer_args *args) bsa.which = args->which; bsa.itv = (struct itimerval *)args->itv; bsa.sysmsg_result = 0; - error = getitimer(&bsa); + error = sys_getitimer(&bsa); args->sysmsg_result = bsa.sysmsg_result; return(error); } int -linux_nice(struct linux_nice_args *args) +sys_linux_nice(struct linux_nice_args *args) { struct setpriority_args bsd_args; int error; @@ -939,13 +939,13 @@ linux_nice(struct linux_nice_args *args) bsd_args.who = 0; /* current process */ bsd_args.prio = args->inc; bsd_args.sysmsg_result = 0; - error = setpriority(&bsd_args); + error = sys_setpriority(&bsd_args); args->sysmsg_result = bsd_args.sysmsg_result; return(error); } int -linux_setgroups(struct linux_setgroups_args *args) +sys_linux_setgroups(struct linux_setgroups_args *args) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -997,7 +997,7 @@ linux_setgroups(struct linux_setgroups_args *args) } int -linux_getgroups(struct linux_getgroups_args *args) +sys_linux_getgroups(struct linux_getgroups_args *args) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -1041,7 +1041,7 @@ linux_getgroups(struct linux_getgroups_args *args) } int -linux_setrlimit(struct linux_setrlimit_args *args) +sys_linux_setrlimit(struct linux_setrlimit_args *args) { struct l_rlimit linux_rlim; struct rlimit rlim; @@ -1071,7 +1071,7 @@ linux_setrlimit(struct linux_setrlimit_args *args) } int -linux_old_getrlimit(struct linux_old_getrlimit_args *args) +sys_linux_old_getrlimit(struct linux_old_getrlimit_args *args) { struct l_rlimit linux_rlim; struct rlimit rlim; @@ -1104,7 +1104,7 @@ linux_old_getrlimit(struct linux_old_getrlimit_args *args) } int -linux_getrlimit(struct linux_getrlimit_args *args) +sys_linux_getrlimit(struct linux_getrlimit_args *args) { struct l_rlimit linux_rlim; struct rlimit rlim; @@ -1133,7 +1133,7 @@ linux_getrlimit(struct linux_getrlimit_args *args) } int -linux_sched_setscheduler(struct linux_sched_setscheduler_args *args) +sys_linux_sched_setscheduler(struct linux_sched_setscheduler_args *args) { struct sched_setscheduler_args bsd; int error; @@ -1162,13 +1162,13 @@ linux_sched_setscheduler(struct linux_sched_setscheduler_args *args) bsd.param = (struct sched_param *)args->param; bsd.sysmsg_result = 0; - error = sched_setscheduler(&bsd); + error = sys_sched_setscheduler(&bsd); args->sysmsg_result = bsd.sysmsg_result; return(error); } int -linux_sched_getscheduler(struct linux_sched_getscheduler_args *args) +sys_linux_sched_getscheduler(struct linux_sched_getscheduler_args *args) { struct sched_getscheduler_args bsd; int error; @@ -1180,7 +1180,7 @@ linux_sched_getscheduler(struct linux_sched_getscheduler_args *args) bsd.sysmsg_result = 0; bsd.pid = args->pid; - error = sched_getscheduler(&bsd); + error = sys_sched_getscheduler(&bsd); args->sysmsg_result = bsd.sysmsg_result; switch (args->sysmsg_result) { @@ -1198,7 +1198,7 @@ linux_sched_getscheduler(struct linux_sched_getscheduler_args *args) } int -linux_sched_get_priority_max(struct linux_sched_get_priority_max_args *args) +sys_linux_sched_get_priority_max(struct linux_sched_get_priority_max_args *args) { struct sched_get_priority_max_args bsd; int error; @@ -1223,13 +1223,13 @@ linux_sched_get_priority_max(struct linux_sched_get_priority_max_args *args) } bsd.sysmsg_result = 0; - error = sched_get_priority_max(&bsd); + error = sys_sched_get_priority_max(&bsd); args->sysmsg_result = bsd.sysmsg_result; return(error); } int -linux_sched_get_priority_min(struct linux_sched_get_priority_min_args *args) +sys_linux_sched_get_priority_min(struct linux_sched_get_priority_min_args *args) { struct sched_get_priority_min_args bsd; int error; @@ -1254,7 +1254,7 @@ linux_sched_get_priority_min(struct linux_sched_get_priority_min_args *args) } bsd.sysmsg_result = 0; - error = sched_get_priority_min(&bsd); + error = sys_sched_get_priority_min(&bsd); args->sysmsg_result = bsd.sysmsg_result; return(error); } @@ -1264,7 +1264,7 @@ linux_sched_get_priority_min(struct linux_sched_get_priority_min_args *args) #define REBOOT_HALT 0xcdef0123 int -linux_reboot(struct linux_reboot_args *args) +sys_linux_reboot(struct linux_reboot_args *args) { struct reboot_args bsd_args; int error; @@ -1278,7 +1278,7 @@ linux_reboot(struct linux_reboot_args *args) bsd_args.opt = (args->cmd == REBOOT_HALT) ? RB_HALT : 0; bsd_args.sysmsg_result = 0; - error = reboot(&bsd_args); + error = sys_reboot(&bsd_args); args->sysmsg_result = bsd_args.sysmsg_result; return(error); } @@ -1296,7 +1296,7 @@ linux_reboot(struct linux_reboot_args *args) */ int -linux_getpid(struct linux_getpid_args *args) +sys_linux_getpid(struct linux_getpid_args *args) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -1308,7 +1308,7 @@ linux_getpid(struct linux_getpid_args *args) } int -linux_getgid(struct linux_getgid_args *args) +sys_linux_getgid(struct linux_getgid_args *args) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -1320,7 +1320,7 @@ linux_getgid(struct linux_getgid_args *args) } int -linux_getuid(struct linux_getuid_args *args) +sys_linux_getuid(struct linux_getuid_args *args) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -1332,14 +1332,14 @@ linux_getuid(struct linux_getuid_args *args) } int -linux_getsid(struct linux_getsid_args *args) +sys_linux_getsid(struct linux_getsid_args *args) { struct getsid_args bsd; int error; bsd.sysmsg_result = 0; bsd.pid = args->pid; - error = getsid(&bsd); + error = sys_getsid(&bsd); args->sysmsg_result = bsd.sysmsg_result; return(error); } diff --git a/sys/emulation/linux/linux_signal.c b/sys/emulation/linux/linux_signal.c index 7a0fd9790b..cd1e903a55 100644 --- a/sys/emulation/linux/linux_signal.c +++ b/sys/emulation/linux/linux_signal.c @@ -26,7 +26,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/compat/linux/linux_signal.c,v 1.23.2.3 2001/11/05 19:08:23 marcel Exp $ - * $DragonFly: src/sys/emulation/linux/linux_signal.c,v 1.10 2005/04/22 02:09:15 swildner Exp $ + * $DragonFly: src/sys/emulation/linux/linux_signal.c,v 1.11 2006/06/05 07:26:09 dillon Exp $ */ #include @@ -124,7 +124,7 @@ bsd_to_linux_sigaction(struct sigaction *bsa, l_sigaction_t *lsa) } int -linux_signal(struct linux_signal_args *args) +sys_linux_signal(struct linux_signal_args *args) { l_sigaction_t linux_nsa, linux_osa; struct sigaction nsa, osa; @@ -153,7 +153,7 @@ linux_signal(struct linux_signal_args *args) } int -linux_rt_sigaction(struct linux_rt_sigaction_args *args) +sys_linux_rt_sigaction(struct linux_rt_sigaction_args *args) { l_sigaction_t linux_nsa, linux_osa; struct sigaction nsa, osa; @@ -207,7 +207,7 @@ linux_to_bsd_sigprocmask(int how) } int -linux_sigprocmask(struct linux_sigprocmask_args *args) +sys_linux_sigprocmask(struct linux_sigprocmask_args *args) { l_osigset_t mask; l_sigset_t linux_set, linux_oset; @@ -241,7 +241,7 @@ linux_sigprocmask(struct linux_sigprocmask_args *args) } int -linux_rt_sigprocmask(struct linux_rt_sigprocmask_args *args) +sys_linux_rt_sigprocmask(struct linux_rt_sigprocmask_args *args) { l_sigset_t linux_set, linux_oset; sigset_t set, oset; @@ -277,7 +277,7 @@ linux_rt_sigprocmask(struct linux_rt_sigprocmask_args *args) } int -linux_sgetmask(struct linux_sgetmask_args *args) +sys_linux_sgetmask(struct linux_sgetmask_args *args) { struct proc *p = curproc; l_sigset_t mask; @@ -293,7 +293,7 @@ linux_sgetmask(struct linux_sgetmask_args *args) } int -linux_ssetmask(struct linux_ssetmask_args *args) +sys_linux_ssetmask(struct linux_ssetmask_args *args) { struct proc *p = curproc; l_sigset_t lset; @@ -315,7 +315,7 @@ linux_ssetmask(struct linux_ssetmask_args *args) } int -linux_sigpending(struct linux_sigpending_args *args) +sys_linux_sigpending(struct linux_sigpending_args *args) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -341,7 +341,7 @@ linux_sigpending(struct linux_sigpending_args *args) } int -linux_kill(struct linux_kill_args *args) +sys_linux_kill(struct linux_kill_args *args) { int error, sig; diff --git a/sys/emulation/linux/linux_socket.c b/sys/emulation/linux/linux_socket.c index 6c9180ba97..e0a6e5046d 100644 --- a/sys/emulation/linux/linux_socket.c +++ b/sys/emulation/linux/linux_socket.c @@ -26,7 +26,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/compat/linux/linux_socket.c,v 1.19.2.8 2001/11/07 20:33:55 marcel Exp $ - * $DragonFly: src/sys/emulation/linux/linux_socket.c,v 1.23 2006/06/04 11:29:38 swildner Exp $ + * $DragonFly: src/sys/emulation/linux/linux_socket.c,v 1.24 2006/06/05 07:26:09 dillon Exp $ */ #include @@ -1150,7 +1150,7 @@ linux_getsockopt(struct linux_getsockopt_args *args, int *res) } int -linux_socketcall(struct linux_socketcall_args *args) +sys_linux_socketcall(struct linux_socketcall_args *args) { void *arg = (void *)args->args; diff --git a/sys/emulation/linux/linux_stats.c b/sys/emulation/linux/linux_stats.c index b089c0599d..6dbd561d9a 100644 --- a/sys/emulation/linux/linux_stats.c +++ b/sys/emulation/linux/linux_stats.c @@ -26,7 +26,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/compat/linux/linux_stats.c,v 1.22.2.3 2001/11/05 19:08:23 marcel Exp $ - * $DragonFly: src/sys/emulation/linux/linux_stats.c,v 1.19 2006/05/24 03:23:30 dillon Exp $ + * $DragonFly: src/sys/emulation/linux/linux_stats.c,v 1.20 2006/06/05 07:26:09 dillon Exp $ */ #include @@ -93,7 +93,7 @@ newstat_copyout(struct stat *buf, void *ubuf) } int -linux_newstat(struct linux_newstat_args *args) +sys_linux_newstat(struct linux_newstat_args *args) { struct stat buf; struct nlookupdata nd; @@ -119,7 +119,7 @@ linux_newstat(struct linux_newstat_args *args) } int -linux_newlstat(struct linux_newlstat_args *args) +sys_linux_newlstat(struct linux_newlstat_args *args) { struct stat sb; struct nlookupdata nd; @@ -145,7 +145,7 @@ linux_newlstat(struct linux_newlstat_args *args) } int -linux_newfstat(struct linux_newfstat_args *args) +sys_linux_newfstat(struct linux_newfstat_args *args) { struct stat buf; int error; @@ -232,7 +232,7 @@ statfs_copyout(struct statfs *statfs, struct l_statfs_buf *buf, l_int namelen) } int -linux_statfs(struct linux_statfs_args *args) +sys_linux_statfs(struct linux_statfs_args *args) { struct statfs statfs; struct nlookupdata nd; @@ -263,7 +263,7 @@ linux_statfs(struct linux_statfs_args *args) } int -linux_fstatfs(struct linux_fstatfs_args *args) +sys_linux_fstatfs(struct linux_fstatfs_args *args) { struct proc *p = curthread->td_proc; struct file *fp; @@ -294,7 +294,7 @@ struct l_ustat }; int -linux_ustat(struct linux_ustat_args *args) +sys_linux_ustat(struct linux_ustat_args *args) { struct l_ustat lu; dev_t dev; @@ -372,7 +372,7 @@ stat64_copyout(struct stat *buf, void *ubuf) } int -linux_stat64(struct linux_stat64_args *args) +sys_linux_stat64(struct linux_stat64_args *args) { struct nlookupdata nd; struct stat buf; @@ -398,7 +398,7 @@ linux_stat64(struct linux_stat64_args *args) } int -linux_lstat64(struct linux_lstat64_args *args) +sys_linux_lstat64(struct linux_lstat64_args *args) { struct nlookupdata nd; struct stat sb; @@ -424,7 +424,7 @@ linux_lstat64(struct linux_lstat64_args *args) } int -linux_fstat64(struct linux_fstat64_args *args) +sys_linux_fstat64(struct linux_fstat64_args *args) { struct stat buf; int error; diff --git a/sys/emulation/linux/linux_sysctl.c b/sys/emulation/linux/linux_sysctl.c index 2cd94c24a0..cd041e53a4 100644 --- a/sys/emulation/linux/linux_sysctl.c +++ b/sys/emulation/linux/linux_sysctl.c @@ -26,7 +26,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/compat/linux/linux_sysctl.c,v 1.2.2.1 2001/10/21 03:57:35 marcel Exp $ - * $DragonFly: src/sys/emulation/linux/linux_sysctl.c,v 1.6 2003/11/14 01:32:45 daver Exp $ + * $DragonFly: src/sys/emulation/linux/linux_sysctl.c,v 1.7 2006/06/05 07:26:09 dillon Exp $ */ #include "opt_compat.h" @@ -76,7 +76,7 @@ handle_string(struct l___sysctl_args *la, char *value) } int -linux_sysctl(struct linux_sysctl_args *args) +sys_linux_sysctl(struct linux_sysctl_args *args) { struct l___sysctl_args la; l_int *mib; diff --git a/sys/emulation/linux/linux_uid16.c b/sys/emulation/linux/linux_uid16.c index bc53800ed9..f41d35c2bd 100644 --- a/sys/emulation/linux/linux_uid16.c +++ b/sys/emulation/linux/linux_uid16.c @@ -24,7 +24,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/compat/linux/linux_uid16.c,v 1.4.2.1 2001/10/21 03:57:35 marcel Exp $ - * $DragonFly: src/sys/emulation/linux/linux_uid16.c,v 1.10 2004/11/12 00:09:18 dillon Exp $ + * $DragonFly: src/sys/emulation/linux/linux_uid16.c,v 1.11 2006/06/05 07:26:09 dillon Exp $ */ #include "opt_compat.h" @@ -49,7 +49,7 @@ DUMMY(getresgid16); #define CAST_NOCHG(x) ((x == 0xFFFF) ? -1 : x) int -linux_chown16(struct linux_chown16_args *args) +sys_linux_chown16(struct linux_chown16_args *args) { struct nlookupdata nd; char *path; @@ -74,7 +74,7 @@ linux_chown16(struct linux_chown16_args *args) } int -linux_lchown16(struct linux_lchown16_args *args) +sys_linux_lchown16(struct linux_lchown16_args *args) { struct nlookupdata nd; char *path; @@ -99,7 +99,7 @@ linux_lchown16(struct linux_lchown16_args *args) } int -linux_setgroups16(struct linux_setgroups16_args *args) +sys_linux_setgroups16(struct linux_setgroups16_args *args) { struct proc *p = curproc; struct ucred *newcred, *oldcred; @@ -153,7 +153,7 @@ linux_setgroups16(struct linux_setgroups16_args *args) } int -linux_getgroups16(struct linux_getgroups16_args *args) +sys_linux_getgroups16(struct linux_getgroups16_args *args) { struct proc *p = curproc; struct ucred *cred; @@ -211,7 +211,7 @@ linux_getgroups16(struct linux_getgroups16_args *args) */ int -linux_getgid16(struct linux_getgid16_args *args) +sys_linux_getgid16(struct linux_getgid16_args *args) { struct proc *p = curproc; @@ -220,7 +220,7 @@ linux_getgid16(struct linux_getgid16_args *args) } int -linux_getuid16(struct linux_getuid16_args *args) +sys_linux_getuid16(struct linux_getuid16_args *args) { struct proc *p = curproc; @@ -229,33 +229,33 @@ linux_getuid16(struct linux_getuid16_args *args) } int -linux_getegid16(struct linux_getegid16_args *args) +sys_linux_getegid16(struct linux_getegid16_args *args) { struct getegid_args bsd; int error; bsd.sysmsg_result = 0; - error = getegid(&bsd); + error = sys_getegid(&bsd); args->sysmsg_result = bsd.sysmsg_result; return(error); } int -linux_geteuid16(struct linux_geteuid16_args *args) +sys_linux_geteuid16(struct linux_geteuid16_args *args) { struct geteuid_args bsd; int error; bsd.sysmsg_result = 0; - error = geteuid(&bsd); + error = sys_geteuid(&bsd); args->sysmsg_result = bsd.sysmsg_result; return(error); } int -linux_setgid16(struct linux_setgid16_args *args) +sys_linux_setgid16(struct linux_setgid16_args *args) { struct setgid_args bsd; int error; @@ -263,13 +263,13 @@ linux_setgid16(struct linux_setgid16_args *args) bsd.gid = args->gid; bsd.sysmsg_result = 0; - error = setgid(&bsd); + error = sys_setgid(&bsd); args->sysmsg_result = bsd.sysmsg_result; return(error); } int -linux_setuid16(struct linux_setuid16_args *args) +sys_linux_setuid16(struct linux_setuid16_args *args) { struct setuid_args bsd; int error; @@ -277,13 +277,13 @@ linux_setuid16(struct linux_setuid16_args *args) bsd.uid = args->uid; bsd.sysmsg_result = 0; - error = setuid(&bsd); + error = sys_setuid(&bsd); args->sysmsg_result = bsd.sysmsg_result; return(error); } int -linux_setregid16(struct linux_setregid16_args *args) +sys_linux_setregid16(struct linux_setregid16_args *args) { struct setregid_args bsd; int error; @@ -292,13 +292,13 @@ linux_setregid16(struct linux_setregid16_args *args) bsd.egid = CAST_NOCHG(args->egid); bsd.sysmsg_result = 0; - error = setregid(&bsd); + error = sys_setregid(&bsd); args->sysmsg_result = bsd.sysmsg_result; return(error); } int -linux_setreuid16(struct linux_setreuid16_args *args) +sys_linux_setreuid16(struct linux_setreuid16_args *args) { struct setreuid_args bsd; int error; @@ -307,13 +307,13 @@ linux_setreuid16(struct linux_setreuid16_args *args) bsd.euid = CAST_NOCHG(args->euid); bsd.sysmsg_result = 0; - error = setreuid(&bsd); + error = sys_setreuid(&bsd); args->sysmsg_result = bsd.sysmsg_result; return(error); } int -linux_setresgid16(struct linux_setresgid16_args *args) +sys_linux_setresgid16(struct linux_setresgid16_args *args) { struct setresgid_args bsd; int error; @@ -323,13 +323,13 @@ linux_setresgid16(struct linux_setresgid16_args *args) bsd.sgid = CAST_NOCHG(args->sgid); bsd.sysmsg_result = 0; - error = setresgid(&bsd); + error = sys_setresgid(&bsd); args->sysmsg_result = bsd.sysmsg_result; return(error); } int -linux_setresuid16(struct linux_setresuid16_args *args) +sys_linux_setresuid16(struct linux_setresuid16_args *args) { struct setresuid_args bsd; int error; @@ -339,7 +339,7 @@ linux_setresuid16(struct linux_setresuid16_args *args) bsd.suid = CAST_NOCHG(args->suid); bsd.sysmsg_result = 0; - error = setresuid(&bsd); + error = sys_setresuid(&bsd); args->sysmsg_result = bsd.sysmsg_result; return(error); } diff --git a/sys/emulation/linux/linux_util.h b/sys/emulation/linux/linux_util.h index 5143cf42d9..8981c7b8f9 100644 --- a/sys/emulation/linux/linux_util.h +++ b/sys/emulation/linux/linux_util.h @@ -29,7 +29,7 @@ * from: svr4_util.h,v 1.5 1994/11/18 02:54:31 christos Exp * from: linux_util.h,v 1.2 1995/03/05 23:23:50 fvdl Exp * $FreeBSD: src/sys/compat/linux/linux_util.h,v 1.12.2.2 2000/11/02 23:31:28 obrien Exp $ - * $DragonFly: src/sys/emulation/linux/linux_util.h,v 1.8 2006/05/11 08:23:20 swildner Exp $ + * $DragonFly: src/sys/emulation/linux/linux_util.h,v 1.9 2006/06/05 07:26:09 dillon Exp $ */ /* @@ -89,7 +89,7 @@ stackgap_alloc(caddr_t *sgp, size_t sz) #define DUMMY(s) \ int \ -linux_ ## s(struct linux_ ## s ## _args *args) \ +sys_linux_ ## s(struct linux_ ## s ## _args *args) \ { \ return (unsupported_msg(#s)); \ } \ diff --git a/sys/emulation/posix4/p1003_1b.c b/sys/emulation/posix4/p1003_1b.c index a596cbb9c5..99272badfb 100644 --- a/sys/emulation/posix4/p1003_1b.c +++ b/sys/emulation/posix4/p1003_1b.c @@ -30,7 +30,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/posix4/p1003_1b.c,v 1.5.2.2 2003/03/25 06:13:35 rwatson Exp $ - * $DragonFly: src/sys/emulation/posix4/Attic/p1003_1b.c,v 1.7 2003/11/27 19:11:17 dillon Exp $ + * $DragonFly: src/sys/emulation/posix4/Attic/p1003_1b.c,v 1.8 2006/06/05 07:26:10 dillon Exp $ */ /* p1003_1b: Real Time common code. @@ -169,7 +169,7 @@ static int sched_attach(void) } int -sched_setparam(struct sched_setparam_args *uap) +sys_sched_setparam(struct sched_setparam_args *uap) { struct proc *p = curproc; int e; @@ -185,7 +185,7 @@ sched_setparam(struct sched_setparam_args *uap) } int -sched_getparam(struct sched_getparam_args *uap) +sys_sched_getparam(struct sched_getparam_args *uap) { struct proc *p = curproc; struct proc *targetp; @@ -209,7 +209,7 @@ sched_getparam(struct sched_getparam_args *uap) } int -sched_setscheduler(struct sched_setscheduler_args *uap) +sys_sched_setscheduler(struct sched_setscheduler_args *uap) { struct proc *p = curproc; int e; @@ -225,7 +225,7 @@ sched_setscheduler(struct sched_setscheduler_args *uap) } int -sched_getscheduler(struct sched_getscheduler_args *uap) +sys_sched_getscheduler(struct sched_getscheduler_args *uap) { struct proc *p = curproc; struct proc *targetp; @@ -245,25 +245,25 @@ sched_getscheduler(struct sched_getscheduler_args *uap) } int -sched_yield(struct sched_yield_args *uap) +sys_sched_yield(struct sched_yield_args *uap) { return ksched_yield(&uap->sysmsg_result, ksched); } int -sched_get_priority_max(struct sched_get_priority_max_args *uap) +sys_sched_get_priority_max(struct sched_get_priority_max_args *uap) { return ksched_get_priority_max(&uap->sysmsg_result, ksched, uap->policy); } int -sched_get_priority_min(struct sched_get_priority_min_args *uap) +sys_sched_get_priority_min(struct sched_get_priority_min_args *uap) { return ksched_get_priority_min(&uap->sysmsg_result, ksched, uap->policy); } int -sched_rr_get_interval(struct sched_rr_get_interval_args *uap) +sys_sched_rr_get_interval(struct sched_rr_get_interval_args *uap) { int e; struct proc *p = curproc; diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index 5663a7ae9d..f0e8897218 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -36,7 +36,7 @@ * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 * $FreeBSD: src/sys/i386/i386/machdep.c,v 1.385.2.30 2003/05/31 08:48:05 alc Exp $ - * $DragonFly: src/sys/i386/i386/Attic/machdep.c,v 1.92 2006/06/05 00:32:37 davidxu Exp $ + * $DragonFly: src/sys/i386/i386/Attic/machdep.c,v 1.93 2006/06/05 07:26:10 dillon Exp $ */ #include "use_apm.h" @@ -543,7 +543,7 @@ sendsig(catcher, sig, mask, code) #define CS_SECURE(cs) (ISPL(cs) == SEL_UPL) int -sigreturn(struct sigreturn_args *uap) +sys_sigreturn(struct sigreturn_args *uap) { struct lwp *lp = curthread->td_lwp; struct trapframe *regs; diff --git a/sys/i386/i386/sys_machdep.c b/sys/i386/i386/sys_machdep.c index d47e366de7..1e65d769c6 100644 --- a/sys/i386/i386/sys_machdep.c +++ b/sys/i386/i386/sys_machdep.c @@ -32,7 +32,7 @@ * * from: @(#)sys_machdep.c 5.5 (Berkeley) 1/19/91 * $FreeBSD: src/sys/i386/i386/sys_machdep.c,v 1.47.2.3 2002/10/07 17:20:00 jhb Exp $ - * $DragonFly: src/sys/i386/i386/Attic/sys_machdep.c,v 1.22 2006/02/28 18:30:22 dillon Exp $ + * $DragonFly: src/sys/i386/i386/Attic/sys_machdep.c,v 1.23 2006/06/05 07:26:10 dillon Exp $ * */ @@ -81,7 +81,7 @@ int i386_extend_pcb(struct lwp *); */ int -sysarch(struct sysarch_args *uap) +sys_sysarch(struct sysarch_args *uap) { struct lwp *lp = curthread->td_lwp; int error = 0; diff --git a/sys/i386/i386/tls.c b/sys/i386/i386/tls.c index e930aabe64..b981e699af 100644 --- a/sys/i386/i386/tls.c +++ b/sys/i386/i386/tls.c @@ -31,7 +31,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/i386/i386/Attic/tls.c,v 1.3 2005/11/04 08:57:27 dillon Exp $ + * $DragonFly: src/sys/i386/i386/Attic/tls.c,v 1.4 2006/06/05 07:26:10 dillon Exp $ */ #include @@ -66,7 +66,7 @@ * (struct tls_info *info, int infosize, int which) */ int -sys_set_tls_area(struct sys_set_tls_area_args *uap) +sys_sys_set_tls_area(struct sys_set_tls_area_args *uap) { struct tls_info info; struct segment_descriptor *desc; @@ -158,7 +158,7 @@ sys_set_tls_area(struct sys_set_tls_area_args *uap) * (struct tls_info *info, int infosize, int which) */ int -sys_get_tls_area(struct sys_get_tls_area_args *uap) +sys_sys_get_tls_area(struct sys_get_tls_area_args *uap) { struct tls_info info; struct segment_descriptor *desc; diff --git a/sys/kern/imgact_resident.c b/sys/kern/imgact_resident.c index ae90b6d292..81b24da28b 100644 --- a/sys/kern/imgact_resident.c +++ b/sys/kern/imgact_resident.c @@ -31,7 +31,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/kern/imgact_resident.c,v 1.11 2006/05/06 02:43:12 dillon Exp $ + * $DragonFly: src/sys/kern/imgact_resident.c,v 1.12 2006/06/05 07:26:10 dillon Exp $ */ #include @@ -187,7 +187,7 @@ exec_resident_imgact(struct image_params *imgp) * to use the snapshot directly rather then load & relocate a new copy. */ int -exec_sys_register(struct exec_sys_register_args *uap) +sys_exec_sys_register(struct exec_sys_register_args *uap) { struct vmresident *vmres; struct vnode *vp; @@ -225,7 +225,7 @@ exec_sys_register(struct exec_sys_register_args *uap) * unregisters everything. */ int -exec_sys_unregister(struct exec_sys_unregister_args *uap) +sys_exec_sys_unregister(struct exec_sys_unregister_args *uap) { struct vmresident *vmres; struct proc *p; diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 46b665aff5..9e720abcbd 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -40,7 +40,7 @@ * * @(#)init_main.c 8.9 (Berkeley) 1/21/94 * $FreeBSD: src/sys/kern/init_main.c,v 1.134.2.8 2003/06/06 20:21:32 tegge Exp $ - * $DragonFly: src/sys/kern/init_main.c,v 1.56 2006/05/29 03:57:20 dillon Exp $ + * $DragonFly: src/sys/kern/init_main.c,v 1.57 2006/06/05 07:26:10 dillon Exp $ */ #include "opt_init_path.h" @@ -555,7 +555,7 @@ start_init(void *dummy) * MP lock will migrate with us though so we still have to * release it. */ - if ((error = execve(&args)) == 0) { + if ((error = sys_execve(&args)) == 0) { rel_mplock(); lp->lwp_proc->p_usched->acquire_curproc(lp); return; diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c index 99e50ad4ed..263eddb658 100644 --- a/sys/kern/init_sysent.c +++ b/sys/kern/init_sysent.c @@ -2,8 +2,8 @@ * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * $DragonFly: src/sys/kern/init_sysent.c,v 1.38 2006/06/05 00:35:05 davidxu Exp $ - * created from DragonFly: src/sys/kern/syscalls.master,v 1.36 2006/05/27 20:17:16 dillon Exp + * $DragonFly: src/sys/kern/init_sysent.c,v 1.39 2006/06/05 07:26:10 dillon Exp $ + * created from DragonFly: src/sys/kern/syscalls.master,v 1.37 2006/06/05 00:33:36 davidxu Exp */ #include "opt_compat.h" @@ -19,501 +19,501 @@ #define AS(name) ((sizeof(struct name) - sizeof(struct sysmsg) - sizeof(union usrmsg)) / sizeof(register_t)) #ifdef COMPAT_43 -#define compat(n, name) n, (sy_call_t *)__CONCAT(o,name) +#define compat(n, name) n, (sy_call_t *)__CONCAT(sys_,__CONCAT(o,name)) #else -#define compat(n, name) 0, (sy_call_t *)nosys +#define compat(n, name) 0, (sy_call_t *)sys_nosys #endif #ifdef COMPAT_DF12 -#define compatdf12(n, name) n, (sy_call_t *)__CONCAT(dfbsd12_,name) +#define compatdf12(n, name) n, (sy_call_t *)__CONCAT(sys_,__CONCAT(dfbsd12_,name)) #else -#define compatdf12(n, name) 0, (sy_call_t *)nosys +#define compatdf12(n, name) 0, (sy_call_t *)sys_nosys #endif /* The casts are bogus but will do for now. */ struct sysent sysent[] = { #ifdef COMPAT_43 #endif - { 0, (sy_call_t *)nosys }, /* 0 = syscall */ - { AS(sys_exit_args), (sy_call_t *)sys_exit }, /* 1 = exit */ - { 0, (sy_call_t *)fork }, /* 2 = fork */ - { SYF_MPSAFE | AS(read_args), (sy_call_t *)read }, /* 3 = read */ - { SYF_MPSAFE | AS(write_args), (sy_call_t *)write }, /* 4 = write */ - { AS(open_args), (sy_call_t *)open }, /* 5 = open */ - { SYF_MPSAFE | AS(close_args), (sy_call_t *)close }, /* 6 = close */ - { AS(wait_args), (sy_call_t *)wait4 }, /* 7 = wait4 */ + { 0, (sy_call_t *)sys_nosys }, /* 0 = syscall */ + { AS(exit_args), (sy_call_t *)sys_exit }, /* 1 = exit */ + { 0, (sy_call_t *)sys_fork }, /* 2 = fork */ + { SYF_MPSAFE | AS(read_args), (sy_call_t *)sys_read }, /* 3 = read */ + { SYF_MPSAFE | AS(write_args), (sy_call_t *)sys_write }, /* 4 = write */ + { AS(open_args), (sy_call_t *)sys_open }, /* 5 = open */ + { SYF_MPSAFE | AS(close_args), (sy_call_t *)sys_close }, /* 6 = close */ + { AS(wait_args), (sy_call_t *)sys_wait4 }, /* 7 = wait4 */ { compat(AS(ocreat_args),creat) }, /* 8 = old creat */ - { AS(link_args), (sy_call_t *)link }, /* 9 = link */ - { AS(unlink_args), (sy_call_t *)unlink }, /* 10 = unlink */ - { 0, (sy_call_t *)nosys }, /* 11 = obsolete execv */ - { AS(chdir_args), (sy_call_t *)chdir }, /* 12 = chdir */ - { AS(fchdir_args), (sy_call_t *)fchdir }, /* 13 = fchdir */ - { AS(mknod_args), (sy_call_t *)mknod }, /* 14 = mknod */ - { AS(chmod_args), (sy_call_t *)chmod }, /* 15 = chmod */ - { AS(chown_args), (sy_call_t *)chown }, /* 16 = chown */ - { AS(obreak_args), (sy_call_t *)obreak }, /* 17 = break */ - { AS(getfsstat_args), (sy_call_t *)getfsstat }, /* 18 = getfsstat */ + { AS(link_args), (sy_call_t *)sys_link }, /* 9 = link */ + { AS(unlink_args), (sy_call_t *)sys_unlink }, /* 10 = unlink */ + { 0, (sy_call_t *)sys_nosys }, /* 11 = obsolete execv */ + { AS(chdir_args), (sy_call_t *)sys_chdir }, /* 12 = chdir */ + { AS(fchdir_args), (sy_call_t *)sys_fchdir }, /* 13 = fchdir */ + { AS(mknod_args), (sy_call_t *)sys_mknod }, /* 14 = mknod */ + { AS(chmod_args), (sy_call_t *)sys_chmod }, /* 15 = chmod */ + { AS(chown_args), (sy_call_t *)sys_chown }, /* 16 = chown */ + { AS(obreak_args), (sy_call_t *)sys_obreak }, /* 17 = break */ + { AS(getfsstat_args), (sy_call_t *)sys_getfsstat }, /* 18 = getfsstat */ { compat(AS(olseek_args),lseek) }, /* 19 = old lseek */ - { 0, (sy_call_t *)getpid }, /* 20 = getpid */ - { AS(mount_args), (sy_call_t *)mount }, /* 21 = mount */ - { AS(unmount_args), (sy_call_t *)unmount }, /* 22 = unmount */ - { AS(setuid_args), (sy_call_t *)setuid }, /* 23 = setuid */ - { SYF_MPSAFE | 0, (sy_call_t *)getuid }, /* 24 = getuid */ - { SYF_MPSAFE | 0, (sy_call_t *)geteuid }, /* 25 = geteuid */ - { AS(ptrace_args), (sy_call_t *)ptrace }, /* 26 = ptrace */ - { AS(recvmsg_args), (sy_call_t *)recvmsg }, /* 27 = recvmsg */ - { AS(sendmsg_args), (sy_call_t *)sendmsg }, /* 28 = sendmsg */ - { AS(recvfrom_args), (sy_call_t *)recvfrom }, /* 29 = recvfrom */ - { AS(accept_args), (sy_call_t *)accept }, /* 30 = accept */ - { AS(getpeername_args), (sy_call_t *)getpeername }, /* 31 = getpeername */ - { AS(getsockname_args), (sy_call_t *)getsockname }, /* 32 = getsockname */ - { AS(access_args), (sy_call_t *)access }, /* 33 = access */ - { AS(chflags_args), (sy_call_t *)chflags }, /* 34 = chflags */ - { AS(fchflags_args), (sy_call_t *)fchflags }, /* 35 = fchflags */ - { 0, (sy_call_t *)sync }, /* 36 = sync */ - { AS(kill_args), (sy_call_t *)kill }, /* 37 = kill */ + { 0, (sy_call_t *)sys_getpid }, /* 20 = getpid */ + { AS(mount_args), (sy_call_t *)sys_mount }, /* 21 = mount */ + { AS(unmount_args), (sy_call_t *)sys_unmount }, /* 22 = unmount */ + { AS(setuid_args), (sy_call_t *)sys_setuid }, /* 23 = setuid */ + { SYF_MPSAFE | 0, (sy_call_t *)sys_getuid }, /* 24 = getuid */ + { SYF_MPSAFE | 0, (sy_call_t *)sys_geteuid }, /* 25 = geteuid */ + { AS(ptrace_args), (sy_call_t *)sys_ptrace }, /* 26 = ptrace */ + { AS(recvmsg_args), (sy_call_t *)sys_recvmsg }, /* 27 = recvmsg */ + { AS(sendmsg_args), (sy_call_t *)sys_sendmsg }, /* 28 = sendmsg */ + { AS(recvfrom_args), (sy_call_t *)sys_recvfrom }, /* 29 = recvfrom */ + { AS(accept_args), (sy_call_t *)sys_accept }, /* 30 = accept */ + { AS(getpeername_args), (sy_call_t *)sys_getpeername }, /* 31 = getpeername */ + { AS(getsockname_args), (sy_call_t *)sys_getsockname }, /* 32 = getsockname */ + { AS(access_args), (sy_call_t *)sys_access }, /* 33 = access */ + { AS(chflags_args), (sy_call_t *)sys_chflags }, /* 34 = chflags */ + { AS(fchflags_args), (sy_call_t *)sys_fchflags }, /* 35 = fchflags */ + { 0, (sy_call_t *)sys_sync }, /* 36 = sync */ + { AS(kill_args), (sy_call_t *)sys_kill }, /* 37 = kill */ { compat(AS(ostat_args),stat) }, /* 38 = old stat */ - { 0, (sy_call_t *)getppid }, /* 39 = getppid */ + { 0, (sy_call_t *)sys_getppid }, /* 39 = getppid */ { compat(AS(olstat_args),lstat) }, /* 40 = old lstat */ - { SYF_MPSAFE | AS(dup_args), (sy_call_t *)dup }, /* 41 = dup */ - { 0, (sy_call_t *)pipe }, /* 42 = pipe */ - { 0, (sy_call_t *)getegid }, /* 43 = getegid */ - { AS(profil_args), (sy_call_t *)profil }, /* 44 = profil */ - { AS(ktrace_args), (sy_call_t *)ktrace }, /* 45 = ktrace */ - { 0, (sy_call_t *)nosys }, /* 46 = obsolete freebsd3_sigaction */ - { SYF_MPSAFE | 0, (sy_call_t *)getgid }, /* 47 = getgid */ - { 0, (sy_call_t *)nosys }, /* 48 = obsolete freebsd3_sigprocmask */ - { AS(getlogin_args), (sy_call_t *)getlogin }, /* 49 = getlogin */ - { AS(setlogin_args), (sy_call_t *)setlogin }, /* 50 = setlogin */ - { AS(acct_args), (sy_call_t *)acct }, /* 51 = acct */ - { 0, (sy_call_t *)nosys }, /* 52 = obsolete freebsd3_sigpending */ - { AS(sigaltstack_args), (sy_call_t *)sigaltstack }, /* 53 = sigaltstack */ - { AS(ioctl_args), (sy_call_t *)ioctl }, /* 54 = ioctl */ - { AS(reboot_args), (sy_call_t *)reboot }, /* 55 = reboot */ - { AS(revoke_args), (sy_call_t *)revoke }, /* 56 = revoke */ - { AS(symlink_args), (sy_call_t *)symlink }, /* 57 = symlink */ - { AS(readlink_args), (sy_call_t *)readlink }, /* 58 = readlink */ - { AS(execve_args), (sy_call_t *)execve }, /* 59 = execve */ - { SYF_MPSAFE | AS(umask_args), (sy_call_t *)umask }, /* 60 = umask */ - { AS(chroot_args), (sy_call_t *)chroot }, /* 61 = chroot */ + { SYF_MPSAFE | AS(dup_args), (sy_call_t *)sys_dup }, /* 41 = dup */ + { 0, (sy_call_t *)sys_pipe }, /* 42 = pipe */ + { 0, (sy_call_t *)sys_getegid }, /* 43 = getegid */ + { AS(profil_args), (sy_call_t *)sys_profil }, /* 44 = profil */ + { AS(ktrace_args), (sy_call_t *)sys_ktrace }, /* 45 = ktrace */ + { 0, (sy_call_t *)sys_nosys }, /* 46 = obsolete freebsd3_sigaction */ + { SYF_MPSAFE | 0, (sy_call_t *)sys_getgid }, /* 47 = getgid */ + { 0, (sy_call_t *)sys_nosys }, /* 48 = obsolete freebsd3_sigprocmask */ + { AS(getlogin_args), (sy_call_t *)sys_getlogin }, /* 49 = getlogin */ + { AS(setlogin_args), (sy_call_t *)sys_setlogin }, /* 50 = setlogin */ + { AS(acct_args), (sy_call_t *)sys_acct }, /* 51 = acct */ + { 0, (sy_call_t *)sys_nosys }, /* 52 = obsolete freebsd3_sigpending */ + { AS(sigaltstack_args), (sy_call_t *)sys_sigaltstack }, /* 53 = sigaltstack */ + { AS(ioctl_args), (sy_call_t *)sys_ioctl }, /* 54 = ioctl */ + { AS(reboot_args), (sy_call_t *)sys_reboot }, /* 55 = reboot */ + { AS(revoke_args), (sy_call_t *)sys_revoke }, /* 56 = revoke */ + { AS(symlink_args), (sy_call_t *)sys_symlink }, /* 57 = symlink */ + { AS(readlink_args), (sy_call_t *)sys_readlink }, /* 58 = readlink */ + { AS(execve_args), (sy_call_t *)sys_execve }, /* 59 = execve */ + { SYF_MPSAFE | AS(umask_args), (sy_call_t *)sys_umask }, /* 60 = umask */ + { AS(chroot_args), (sy_call_t *)sys_chroot }, /* 61 = chroot */ { compat(AS(ofstat_args),fstat) }, /* 62 = old fstat */ { compat(AS(getkerninfo_args),getkerninfo) }, /* 63 = old getkerninfo */ { compat(0,getpagesize) }, /* 64 = old getpagesize */ - { AS(msync_args), (sy_call_t *)msync }, /* 65 = msync */ - { 0, (sy_call_t *)vfork }, /* 66 = vfork */ - { 0, (sy_call_t *)nosys }, /* 67 = obsolete vread */ - { 0, (sy_call_t *)nosys }, /* 68 = obsolete vwrite */ - { AS(sbrk_args), (sy_call_t *)sbrk }, /* 69 = sbrk */ - { AS(sstk_args), (sy_call_t *)sstk }, /* 70 = sstk */ + { AS(msync_args), (sy_call_t *)sys_msync }, /* 65 = msync */ + { 0, (sy_call_t *)sys_vfork }, /* 66 = vfork */ + { 0, (sy_call_t *)sys_nosys }, /* 67 = obsolete vread */ + { 0, (sy_call_t *)sys_nosys }, /* 68 = obsolete vwrite */ + { AS(sbrk_args), (sy_call_t *)sys_sbrk }, /* 69 = sbrk */ + { AS(sstk_args), (sy_call_t *)sys_sstk }, /* 70 = sstk */ { compat(AS(ommap_args),mmap) }, /* 71 = old mmap */ - { AS(ovadvise_args), (sy_call_t *)ovadvise }, /* 72 = vadvise */ - { AS(munmap_args), (sy_call_t *)munmap }, /* 73 = munmap */ - { AS(mprotect_args), (sy_call_t *)mprotect }, /* 74 = mprotect */ - { AS(madvise_args), (sy_call_t *)madvise }, /* 75 = madvise */ - { 0, (sy_call_t *)nosys }, /* 76 = obsolete vhangup */ - { 0, (sy_call_t *)nosys }, /* 77 = obsolete vlimit */ - { AS(mincore_args), (sy_call_t *)mincore }, /* 78 = mincore */ - { AS(getgroups_args), (sy_call_t *)getgroups }, /* 79 = getgroups */ - { AS(setgroups_args), (sy_call_t *)setgroups }, /* 80 = setgroups */ - { SYF_MPSAFE | 0, (sy_call_t *)getpgrp }, /* 81 = getpgrp */ - { AS(setpgid_args), (sy_call_t *)setpgid }, /* 82 = setpgid */ - { AS(setitimer_args), (sy_call_t *)setitimer }, /* 83 = setitimer */ + { AS(ovadvise_args), (sy_call_t *)sys_ovadvise }, /* 72 = vadvise */ + { AS(munmap_args), (sy_call_t *)sys_munmap }, /* 73 = munmap */ + { AS(mprotect_args), (sy_call_t *)sys_mprotect }, /* 74 = mprotect */ + { AS(madvise_args), (sy_call_t *)sys_madvise }, /* 75 = madvise */ + { 0, (sy_call_t *)sys_nosys }, /* 76 = obsolete vhangup */ + { 0, (sy_call_t *)sys_nosys }, /* 77 = obsolete vlimit */ + { AS(mincore_args), (sy_call_t *)sys_mincore }, /* 78 = mincore */ + { AS(getgroups_args), (sy_call_t *)sys_getgroups }, /* 79 = getgroups */ + { AS(setgroups_args), (sy_call_t *)sys_setgroups }, /* 80 = setgroups */ + { SYF_MPSAFE | 0, (sy_call_t *)sys_getpgrp }, /* 81 = getpgrp */ + { AS(setpgid_args), (sy_call_t *)sys_setpgid }, /* 82 = setpgid */ + { AS(setitimer_args), (sy_call_t *)sys_setitimer }, /* 83 = setitimer */ { compat(0,wait) }, /* 84 = old wait */ - { AS(swapon_args), (sy_call_t *)swapon }, /* 85 = swapon */ - { AS(getitimer_args), (sy_call_t *)getitimer }, /* 86 = getitimer */ + { AS(swapon_args), (sy_call_t *)sys_swapon }, /* 85 = swapon */ + { AS(getitimer_args), (sy_call_t *)sys_getitimer }, /* 86 = getitimer */ { compat(AS(gethostname_args),gethostname) }, /* 87 = old gethostname */ { compat(AS(sethostname_args),sethostname) }, /* 88 = old sethostname */ - { SYF_MPSAFE | 0, (sy_call_t *)getdtablesize }, /* 89 = getdtablesize */ - { SYF_MPSAFE | AS(dup2_args), (sy_call_t *)dup2 }, /* 90 = dup2 */ - { 0, (sy_call_t *)nosys }, /* 91 = getdopt */ - { SYF_MPSAFE | AS(fcntl_args), (sy_call_t *)fcntl }, /* 92 = fcntl */ - { AS(select_args), (sy_call_t *)select }, /* 93 = select */ - { 0, (sy_call_t *)nosys }, /* 94 = setdopt */ - { AS(fsync_args), (sy_call_t *)fsync }, /* 95 = fsync */ - { AS(setpriority_args), (sy_call_t *)setpriority }, /* 96 = setpriority */ - { AS(socket_args), (sy_call_t *)socket }, /* 97 = socket */ - { AS(connect_args), (sy_call_t *)connect }, /* 98 = connect */ + { SYF_MPSAFE | 0, (sy_call_t *)sys_getdtablesize }, /* 89 = getdtablesize */ + { SYF_MPSAFE | AS(dup2_args), (sy_call_t *)sys_dup2 }, /* 90 = dup2 */ + { 0, (sy_call_t *)sys_nosys }, /* 91 = getdopt */ + { SYF_MPSAFE | AS(fcntl_args), (sy_call_t *)sys_fcntl }, /* 92 = fcntl */ + { AS(select_args), (sy_call_t *)sys_select }, /* 93 = select */ + { 0, (sy_call_t *)sys_nosys }, /* 94 = setdopt */ + { AS(fsync_args), (sy_call_t *)sys_fsync }, /* 95 = fsync */ + { AS(setpriority_args), (sy_call_t *)sys_setpriority }, /* 96 = setpriority */ + { AS(socket_args), (sy_call_t *)sys_socket }, /* 97 = socket */ + { AS(connect_args), (sy_call_t *)sys_connect }, /* 98 = connect */ { compat(AS(accept_args),accept) }, /* 99 = old accept */ - { AS(getpriority_args), (sy_call_t *)getpriority }, /* 100 = getpriority */ + { AS(getpriority_args), (sy_call_t *)sys_getpriority }, /* 100 = getpriority */ { compat(AS(osend_args),send) }, /* 101 = old send */ { compat(AS(orecv_args),recv) }, /* 102 = old recv */ - { 0, (sy_call_t *)nosys }, /* 103 = obsolete freebsd3_sigreturn */ - { AS(bind_args), (sy_call_t *)bind }, /* 104 = bind */ - { AS(setsockopt_args), (sy_call_t *)setsockopt }, /* 105 = setsockopt */ - { AS(listen_args), (sy_call_t *)listen }, /* 106 = listen */ - { 0, (sy_call_t *)nosys }, /* 107 = obsolete vtimes */ + { 0, (sy_call_t *)sys_nosys }, /* 103 = obsolete freebsd3_sigreturn */ + { AS(bind_args), (sy_call_t *)sys_bind }, /* 104 = bind */ + { AS(setsockopt_args), (sy_call_t *)sys_setsockopt }, /* 105 = setsockopt */ + { AS(listen_args), (sy_call_t *)sys_listen }, /* 106 = listen */ + { 0, (sy_call_t *)sys_nosys }, /* 107 = obsolete vtimes */ { compat(AS(osigvec_args),sigvec) }, /* 108 = old sigvec */ { compat(AS(osigblock_args),sigblock) }, /* 109 = old sigblock */ { compat(AS(osigsetmask_args),sigsetmask) }, /* 110 = old sigsetmask */ - { 0, (sy_call_t *)nosys }, /* 111 = obsolete freebsd3_sigsuspend */ + { 0, (sy_call_t *)sys_nosys }, /* 111 = obsolete freebsd3_sigsuspend */ { compat(AS(osigstack_args),sigstack) }, /* 112 = old sigstack */ { compat(AS(orecvmsg_args),recvmsg) }, /* 113 = old recvmsg */ { compat(AS(osendmsg_args),sendmsg) }, /* 114 = old sendmsg */ - { 0, (sy_call_t *)nosys }, /* 115 = obsolete vtrace */ - { SYF_MPSAFE | AS(gettimeofday_args), (sy_call_t *)gettimeofday }, /* 116 = gettimeofday */ - { AS(getrusage_args), (sy_call_t *)getrusage }, /* 117 = getrusage */ - { AS(getsockopt_args), (sy_call_t *)getsockopt }, /* 118 = getsockopt */ - { 0, (sy_call_t *)nosys }, /* 119 = resuba */ - { SYF_MPSAFE | AS(readv_args), (sy_call_t *)readv }, /* 120 = readv */ - { SYF_MPSAFE | AS(writev_args), (sy_call_t *)writev }, /* 121 = writev */ - { AS(settimeofday_args), (sy_call_t *)settimeofday }, /* 122 = settimeofday */ - { AS(fchown_args), (sy_call_t *)fchown }, /* 123 = fchown */ - { AS(fchmod_args), (sy_call_t *)fchmod }, /* 124 = fchmod */ + { 0, (sy_call_t *)sys_nosys }, /* 115 = obsolete vtrace */ + { SYF_MPSAFE | AS(gettimeofday_args), (sy_call_t *)sys_gettimeofday }, /* 116 = gettimeofday */ + { AS(getrusage_args), (sy_call_t *)sys_getrusage }, /* 117 = getrusage */ + { AS(getsockopt_args), (sy_call_t *)sys_getsockopt }, /* 118 = getsockopt */ + { 0, (sy_call_t *)sys_nosys }, /* 119 = resuba */ + { SYF_MPSAFE | AS(readv_args), (sy_call_t *)sys_readv }, /* 120 = readv */ + { SYF_MPSAFE | AS(writev_args), (sy_call_t *)sys_writev }, /* 121 = writev */ + { AS(settimeofday_args), (sy_call_t *)sys_settimeofday }, /* 122 = settimeofday */ + { AS(fchown_args), (sy_call_t *)sys_fchown }, /* 123 = fchown */ + { AS(fchmod_args), (sy_call_t *)sys_fchmod }, /* 124 = fchmod */ { compat(AS(recvfrom_args),recvfrom) }, /* 125 = old recvfrom */ - { AS(setreuid_args), (sy_call_t *)setreuid }, /* 126 = setreuid */ - { AS(setregid_args), (sy_call_t *)setregid }, /* 127 = setregid */ - { AS(rename_args), (sy_call_t *)rename }, /* 128 = rename */ + { AS(setreuid_args), (sy_call_t *)sys_setreuid }, /* 126 = setreuid */ + { AS(setregid_args), (sy_call_t *)sys_setregid }, /* 127 = setregid */ + { AS(rename_args), (sy_call_t *)sys_rename }, /* 128 = rename */ { compat(AS(otruncate_args),truncate) }, /* 129 = old truncate */ { compat(AS(oftruncate_args),ftruncate) }, /* 130 = old ftruncate */ - { AS(flock_args), (sy_call_t *)flock }, /* 131 = flock */ - { AS(mkfifo_args), (sy_call_t *)mkfifo }, /* 132 = mkfifo */ - { AS(sendto_args), (sy_call_t *)sendto }, /* 133 = sendto */ - { AS(shutdown_args), (sy_call_t *)shutdown }, /* 134 = shutdown */ - { AS(socketpair_args), (sy_call_t *)socketpair }, /* 135 = socketpair */ - { AS(mkdir_args), (sy_call_t *)mkdir }, /* 136 = mkdir */ - { AS(rmdir_args), (sy_call_t *)rmdir }, /* 137 = rmdir */ - { AS(utimes_args), (sy_call_t *)utimes }, /* 138 = utimes */ - { 0, (sy_call_t *)nosys }, /* 139 = obsolete 4.2 sigreturn */ - { AS(adjtime_args), (sy_call_t *)adjtime }, /* 140 = adjtime */ + { AS(flock_args), (sy_call_t *)sys_flock }, /* 131 = flock */ + { AS(mkfifo_args), (sy_call_t *)sys_mkfifo }, /* 132 = mkfifo */ + { AS(sendto_args), (sy_call_t *)sys_sendto }, /* 133 = sendto */ + { AS(shutdown_args), (sy_call_t *)sys_shutdown }, /* 134 = shutdown */ + { AS(socketpair_args), (sy_call_t *)sys_socketpair }, /* 135 = socketpair */ + { AS(mkdir_args), (sy_call_t *)sys_mkdir }, /* 136 = mkdir */ + { AS(rmdir_args), (sy_call_t *)sys_rmdir }, /* 137 = rmdir */ + { AS(utimes_args), (sy_call_t *)sys_utimes }, /* 138 = utimes */ + { 0, (sy_call_t *)sys_nosys }, /* 139 = obsolete 4.2 sigreturn */ + { AS(adjtime_args), (sy_call_t *)sys_adjtime }, /* 140 = adjtime */ { compat(AS(ogetpeername_args),getpeername) }, /* 141 = old getpeername */ { compat(0,gethostid) }, /* 142 = old gethostid */ { compat(AS(osethostid_args),sethostid) }, /* 143 = old sethostid */ { compat(SYF_MPSAFE | AS(ogetrlimit_args),getrlimit) }, /* 144 = old getrlimit */ { compat(SYF_MPSAFE | AS(osetrlimit_args),setrlimit) }, /* 145 = old setrlimit */ { compat(AS(okillpg_args),killpg) }, /* 146 = old killpg */ - { 0, (sy_call_t *)setsid }, /* 147 = setsid */ - { AS(quotactl_args), (sy_call_t *)quotactl }, /* 148 = quotactl */ + { 0, (sy_call_t *)sys_setsid }, /* 147 = setsid */ + { AS(quotactl_args), (sy_call_t *)sys_quotactl }, /* 148 = quotactl */ { compat(0,quota) }, /* 149 = old quota */ { compat(AS(getsockname_args),getsockname) }, /* 150 = old getsockname */ - { 0, (sy_call_t *)nosys }, /* 151 = sem_lock */ - { 0, (sy_call_t *)nosys }, /* 152 = sem_wakeup */ - { 0, (sy_call_t *)nosys }, /* 153 = asyncdaemon */ - { 0, (sy_call_t *)nosys }, /* 154 = nosys */ - { AS(nfssvc_args), (sy_call_t *)nosys }, /* 155 = nfssvc */ + { 0, (sy_call_t *)sys_nosys }, /* 151 = sem_lock */ + { 0, (sy_call_t *)sys_nosys }, /* 152 = sem_wakeup */ + { 0, (sy_call_t *)sys_nosys }, /* 153 = asyncdaemon */ + { 0, (sy_call_t *)sys_nosys }, /* 154 = nosys */ + { AS(nfssvc_args), (sy_call_t *)sys_nosys }, /* 155 = nfssvc */ { compat(AS(ogetdirentries_args),getdirentries) }, /* 156 = old getdirentries */ - { AS(statfs_args), (sy_call_t *)statfs }, /* 157 = statfs */ - { AS(fstatfs_args), (sy_call_t *)fstatfs }, /* 158 = fstatfs */ - { 0, (sy_call_t *)nosys }, /* 159 = nosys */ - { 0, (sy_call_t *)nosys }, /* 160 = nosys */ - { AS(getfh_args), (sy_call_t *)getfh }, /* 161 = getfh */ - { AS(getdomainname_args), (sy_call_t *)getdomainname }, /* 162 = getdomainname */ - { AS(setdomainname_args), (sy_call_t *)setdomainname }, /* 163 = setdomainname */ - { AS(uname_args), (sy_call_t *)uname }, /* 164 = uname */ - { AS(sysarch_args), (sy_call_t *)sysarch }, /* 165 = sysarch */ - { AS(rtprio_args), (sy_call_t *)rtprio }, /* 166 = rtprio */ - { 0, (sy_call_t *)nosys }, /* 167 = nosys */ - { 0, (sy_call_t *)nosys }, /* 168 = nosys */ - { AS(semsys_args), (sy_call_t *)semsys }, /* 169 = semsys */ - { AS(msgsys_args), (sy_call_t *)msgsys }, /* 170 = msgsys */ - { AS(shmsys_args), (sy_call_t *)shmsys }, /* 171 = shmsys */ - { 0, (sy_call_t *)nosys }, /* 172 = nosys */ - { SYF_MPSAFE | AS(pread_args), (sy_call_t *)pread }, /* 173 = pread */ - { SYF_MPSAFE | AS(pwrite_args), (sy_call_t *)pwrite }, /* 174 = pwrite */ - { 0, (sy_call_t *)nosys }, /* 175 = nosys */ - { AS(ntp_adjtime_args), (sy_call_t *)ntp_adjtime }, /* 176 = ntp_adjtime */ - { 0, (sy_call_t *)nosys }, /* 177 = sfork */ - { 0, (sy_call_t *)nosys }, /* 178 = getdescriptor */ - { 0, (sy_call_t *)nosys }, /* 179 = setdescriptor */ - { 0, (sy_call_t *)nosys }, /* 180 = nosys */ - { AS(setgid_args), (sy_call_t *)setgid }, /* 181 = setgid */ - { AS(setegid_args), (sy_call_t *)setegid }, /* 182 = setegid */ - { AS(seteuid_args), (sy_call_t *)seteuid }, /* 183 = seteuid */ - { 0, (sy_call_t *)nosys }, /* 184 = lfs_bmapv */ - { 0, (sy_call_t *)nosys }, /* 185 = lfs_markv */ - { 0, (sy_call_t *)nosys }, /* 186 = lfs_segclean */ - { 0, (sy_call_t *)nosys }, /* 187 = lfs_segwait */ + { AS(statfs_args), (sy_call_t *)sys_statfs }, /* 157 = statfs */ + { AS(fstatfs_args), (sy_call_t *)sys_fstatfs }, /* 158 = fstatfs */ + { 0, (sy_call_t *)sys_nosys }, /* 159 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 160 = nosys */ + { AS(getfh_args), (sy_call_t *)sys_getfh }, /* 161 = getfh */ + { AS(getdomainname_args), (sy_call_t *)sys_getdomainname }, /* 162 = getdomainname */ + { AS(setdomainname_args), (sy_call_t *)sys_setdomainname }, /* 163 = setdomainname */ + { AS(uname_args), (sy_call_t *)sys_uname }, /* 164 = uname */ + { AS(sysarch_args), (sy_call_t *)sys_sysarch }, /* 165 = sysarch */ + { AS(rtprio_args), (sy_call_t *)sys_rtprio }, /* 166 = rtprio */ + { 0, (sy_call_t *)sys_nosys }, /* 167 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 168 = nosys */ + { AS(semsys_args), (sy_call_t *)sys_semsys }, /* 169 = semsys */ + { AS(msgsys_args), (sy_call_t *)sys_msgsys }, /* 170 = msgsys */ + { AS(shmsys_args), (sy_call_t *)sys_shmsys }, /* 171 = shmsys */ + { 0, (sy_call_t *)sys_nosys }, /* 172 = nosys */ + { SYF_MPSAFE | AS(pread_args), (sy_call_t *)sys_pread }, /* 173 = pread */ + { SYF_MPSAFE | AS(pwrite_args), (sy_call_t *)sys_pwrite }, /* 174 = pwrite */ + { 0, (sy_call_t *)sys_nosys }, /* 175 = nosys */ + { AS(ntp_adjtime_args), (sy_call_t *)sys_ntp_adjtime }, /* 176 = ntp_adjtime */ + { 0, (sy_call_t *)sys_nosys }, /* 177 = sfork */ + { 0, (sy_call_t *)sys_nosys }, /* 178 = getdescriptor */ + { 0, (sy_call_t *)sys_nosys }, /* 179 = setdescriptor */ + { 0, (sy_call_t *)sys_nosys }, /* 180 = nosys */ + { AS(setgid_args), (sy_call_t *)sys_setgid }, /* 181 = setgid */ + { AS(setegid_args), (sy_call_t *)sys_setegid }, /* 182 = setegid */ + { AS(seteuid_args), (sy_call_t *)sys_seteuid }, /* 183 = seteuid */ + { 0, (sy_call_t *)sys_nosys }, /* 184 = lfs_bmapv */ + { 0, (sy_call_t *)sys_nosys }, /* 185 = lfs_markv */ + { 0, (sy_call_t *)sys_nosys }, /* 186 = lfs_segclean */ + { 0, (sy_call_t *)sys_nosys }, /* 187 = lfs_segwait */ { compatdf12(AS(dfbsd12_stat_args),stat) }, /* 188 = old stat */ { compatdf12(AS(dfbsd12_fstat_args),fstat) }, /* 189 = old fstat */ { compatdf12(AS(dfbsd12_lstat_args),lstat) }, /* 190 = old lstat */ - { AS(pathconf_args), (sy_call_t *)pathconf }, /* 191 = pathconf */ - { AS(fpathconf_args), (sy_call_t *)fpathconf }, /* 192 = fpathconf */ - { 0, (sy_call_t *)nosys }, /* 193 = nosys */ - { AS(__getrlimit_args), (sy_call_t *)getrlimit }, /* 194 = getrlimit */ - { AS(__setrlimit_args), (sy_call_t *)setrlimit }, /* 195 = setrlimit */ + { AS(pathconf_args), (sy_call_t *)sys_pathconf }, /* 191 = pathconf */ + { AS(fpathconf_args), (sy_call_t *)sys_fpathconf }, /* 192 = fpathconf */ + { 0, (sy_call_t *)sys_nosys }, /* 193 = nosys */ + { AS(__getrlimit_args), (sy_call_t *)sys_getrlimit }, /* 194 = getrlimit */ + { AS(__setrlimit_args), (sy_call_t *)sys_setrlimit }, /* 195 = setrlimit */ { compatdf12(AS(dfbsd12_getdirentries_args),getdirentries) }, /* 196 = old getdirentries */ - { AS(mmap_args), (sy_call_t *)mmap }, /* 197 = mmap */ - { 0, (sy_call_t *)nosys }, /* 198 = __syscall */ - { AS(lseek_args), (sy_call_t *)lseek }, /* 199 = lseek */ - { AS(truncate_args), (sy_call_t *)truncate }, /* 200 = truncate */ - { AS(ftruncate_args), (sy_call_t *)ftruncate }, /* 201 = ftruncate */ - { AS(sysctl_args), (sy_call_t *)__sysctl }, /* 202 = __sysctl */ - { AS(mlock_args), (sy_call_t *)mlock }, /* 203 = mlock */ - { AS(munlock_args), (sy_call_t *)munlock }, /* 204 = munlock */ - { AS(undelete_args), (sy_call_t *)undelete }, /* 205 = undelete */ - { AS(futimes_args), (sy_call_t *)futimes }, /* 206 = futimes */ - { AS(getpgid_args), (sy_call_t *)getpgid }, /* 207 = getpgid */ - { 0, (sy_call_t *)nosys }, /* 208 = newreboot */ - { AS(poll_args), (sy_call_t *)poll }, /* 209 = poll */ - { AS(nosys_args), (sy_call_t *)lkmnosys }, /* 210 = lkmnosys */ - { AS(nosys_args), (sy_call_t *)lkmnosys }, /* 211 = lkmnosys */ - { AS(nosys_args), (sy_call_t *)lkmnosys }, /* 212 = lkmnosys */ - { AS(nosys_args), (sy_call_t *)lkmnosys }, /* 213 = lkmnosys */ - { AS(nosys_args), (sy_call_t *)lkmnosys }, /* 214 = lkmnosys */ - { AS(nosys_args), (sy_call_t *)lkmnosys }, /* 215 = lkmnosys */ - { AS(nosys_args), (sy_call_t *)lkmnosys }, /* 216 = lkmnosys */ - { AS(nosys_args), (sy_call_t *)lkmnosys }, /* 217 = lkmnosys */ - { AS(nosys_args), (sy_call_t *)lkmnosys }, /* 218 = lkmnosys */ - { AS(nosys_args), (sy_call_t *)lkmnosys }, /* 219 = lkmnosys */ - { AS(__semctl_args), (sy_call_t *)__semctl }, /* 220 = __semctl */ - { AS(semget_args), (sy_call_t *)semget }, /* 221 = semget */ - { AS(semop_args), (sy_call_t *)semop }, /* 222 = semop */ - { 0, (sy_call_t *)nosys }, /* 223 = semconfig */ - { AS(msgctl_args), (sy_call_t *)msgctl }, /* 224 = msgctl */ - { AS(msgget_args), (sy_call_t *)msgget }, /* 225 = msgget */ - { AS(msgsnd_args), (sy_call_t *)msgsnd }, /* 226 = msgsnd */ - { AS(msgrcv_args), (sy_call_t *)msgrcv }, /* 227 = msgrcv */ - { AS(shmat_args), (sy_call_t *)shmat }, /* 228 = shmat */ - { AS(shmctl_args), (sy_call_t *)shmctl }, /* 229 = shmctl */ - { AS(shmdt_args), (sy_call_t *)shmdt }, /* 230 = shmdt */ - { AS(shmget_args), (sy_call_t *)shmget }, /* 231 = shmget */ - { AS(clock_gettime_args), (sy_call_t *)clock_gettime }, /* 232 = clock_gettime */ - { AS(clock_settime_args), (sy_call_t *)clock_settime }, /* 233 = clock_settime */ - { AS(clock_getres_args), (sy_call_t *)clock_getres }, /* 234 = clock_getres */ - { 0, (sy_call_t *)nosys }, /* 235 = timer_create */ - { 0, (sy_call_t *)nosys }, /* 236 = timer_delete */ - { 0, (sy_call_t *)nosys }, /* 237 = timer_settime */ - { 0, (sy_call_t *)nosys }, /* 238 = timer_gettime */ - { 0, (sy_call_t *)nosys }, /* 239 = timer_getoverrun */ - { AS(nanosleep_args), (sy_call_t *)nanosleep }, /* 240 = nanosleep */ - { 0, (sy_call_t *)nosys }, /* 241 = nosys */ - { 0, (sy_call_t *)nosys }, /* 242 = nosys */ - { 0, (sy_call_t *)nosys }, /* 243 = nosys */ - { 0, (sy_call_t *)nosys }, /* 244 = nosys */ - { 0, (sy_call_t *)nosys }, /* 245 = nosys */ - { 0, (sy_call_t *)nosys }, /* 246 = nosys */ - { 0, (sy_call_t *)nosys }, /* 247 = nosys */ - { 0, (sy_call_t *)nosys }, /* 248 = nosys */ - { 0, (sy_call_t *)nosys }, /* 249 = nosys */ - { AS(minherit_args), (sy_call_t *)minherit }, /* 250 = minherit */ - { AS(rfork_args), (sy_call_t *)rfork }, /* 251 = rfork */ - { AS(openbsd_poll_args), (sy_call_t *)openbsd_poll }, /* 252 = openbsd_poll */ - { 0, (sy_call_t *)issetugid }, /* 253 = issetugid */ - { AS(lchown_args), (sy_call_t *)lchown }, /* 254 = lchown */ - { 0, (sy_call_t *)nosys }, /* 255 = nosys */ - { 0, (sy_call_t *)nosys }, /* 256 = nosys */ - { 0, (sy_call_t *)nosys }, /* 257 = nosys */ - { 0, (sy_call_t *)nosys }, /* 258 = nosys */ - { 0, (sy_call_t *)nosys }, /* 259 = nosys */ - { 0, (sy_call_t *)nosys }, /* 260 = nosys */ - { 0, (sy_call_t *)nosys }, /* 261 = nosys */ - { 0, (sy_call_t *)nosys }, /* 262 = nosys */ - { 0, (sy_call_t *)nosys }, /* 263 = nosys */ - { 0, (sy_call_t *)nosys }, /* 264 = nosys */ - { 0, (sy_call_t *)nosys }, /* 265 = nosys */ - { 0, (sy_call_t *)nosys }, /* 266 = nosys */ - { 0, (sy_call_t *)nosys }, /* 267 = nosys */ - { 0, (sy_call_t *)nosys }, /* 268 = nosys */ - { 0, (sy_call_t *)nosys }, /* 269 = nosys */ - { 0, (sy_call_t *)nosys }, /* 270 = nosys */ - { 0, (sy_call_t *)nosys }, /* 271 = nosys */ + { AS(mmap_args), (sy_call_t *)sys_mmap }, /* 197 = mmap */ + { 0, (sy_call_t *)sys_nosys }, /* 198 = __syscall */ + { AS(lseek_args), (sy_call_t *)sys_lseek }, /* 199 = lseek */ + { AS(truncate_args), (sy_call_t *)sys_truncate }, /* 200 = truncate */ + { AS(ftruncate_args), (sy_call_t *)sys_ftruncate }, /* 201 = ftruncate */ + { AS(sysctl_args), (sy_call_t *)sys___sysctl }, /* 202 = __sysctl */ + { AS(mlock_args), (sy_call_t *)sys_mlock }, /* 203 = mlock */ + { AS(munlock_args), (sy_call_t *)sys_munlock }, /* 204 = munlock */ + { AS(undelete_args), (sy_call_t *)sys_undelete }, /* 205 = undelete */ + { AS(futimes_args), (sy_call_t *)sys_futimes }, /* 206 = futimes */ + { AS(getpgid_args), (sy_call_t *)sys_getpgid }, /* 207 = getpgid */ + { 0, (sy_call_t *)sys_nosys }, /* 208 = newreboot */ + { AS(poll_args), (sy_call_t *)sys_poll }, /* 209 = poll */ + { AS(nosys_args), (sy_call_t *)sys_lkmnosys }, /* 210 = lkmnosys */ + { AS(nosys_args), (sy_call_t *)sys_lkmnosys }, /* 211 = lkmnosys */ + { AS(nosys_args), (sy_call_t *)sys_lkmnosys }, /* 212 = lkmnosys */ + { AS(nosys_args), (sy_call_t *)sys_lkmnosys }, /* 213 = lkmnosys */ + { AS(nosys_args), (sy_call_t *)sys_lkmnosys }, /* 214 = lkmnosys */ + { AS(nosys_args), (sy_call_t *)sys_lkmnosys }, /* 215 = lkmnosys */ + { AS(nosys_args), (sy_call_t *)sys_lkmnosys }, /* 216 = lkmnosys */ + { AS(nosys_args), (sy_call_t *)sys_lkmnosys }, /* 217 = lkmnosys */ + { AS(nosys_args), (sy_call_t *)sys_lkmnosys }, /* 218 = lkmnosys */ + { AS(nosys_args), (sy_call_t *)sys_lkmnosys }, /* 219 = lkmnosys */ + { AS(__semctl_args), (sy_call_t *)sys___semctl }, /* 220 = __semctl */ + { AS(semget_args), (sy_call_t *)sys_semget }, /* 221 = semget */ + { AS(semop_args), (sy_call_t *)sys_semop }, /* 222 = semop */ + { 0, (sy_call_t *)sys_nosys }, /* 223 = semconfig */ + { AS(msgctl_args), (sy_call_t *)sys_msgctl }, /* 224 = msgctl */ + { AS(msgget_args), (sy_call_t *)sys_msgget }, /* 225 = msgget */ + { AS(msgsnd_args), (sy_call_t *)sys_msgsnd }, /* 226 = msgsnd */ + { AS(msgrcv_args), (sy_call_t *)sys_msgrcv }, /* 227 = msgrcv */ + { AS(shmat_args), (sy_call_t *)sys_shmat }, /* 228 = shmat */ + { AS(shmctl_args), (sy_call_t *)sys_shmctl }, /* 229 = shmctl */ + { AS(shmdt_args), (sy_call_t *)sys_shmdt }, /* 230 = shmdt */ + { AS(shmget_args), (sy_call_t *)sys_shmget }, /* 231 = shmget */ + { AS(clock_gettime_args), (sy_call_t *)sys_clock_gettime }, /* 232 = clock_gettime */ + { AS(clock_settime_args), (sy_call_t *)sys_clock_settime }, /* 233 = clock_settime */ + { AS(clock_getres_args), (sy_call_t *)sys_clock_getres }, /* 234 = clock_getres */ + { 0, (sy_call_t *)sys_nosys }, /* 235 = timer_create */ + { 0, (sy_call_t *)sys_nosys }, /* 236 = timer_delete */ + { 0, (sy_call_t *)sys_nosys }, /* 237 = timer_settime */ + { 0, (sy_call_t *)sys_nosys }, /* 238 = timer_gettime */ + { 0, (sy_call_t *)sys_nosys }, /* 239 = timer_getoverrun */ + { AS(nanosleep_args), (sy_call_t *)sys_nanosleep }, /* 240 = nanosleep */ + { 0, (sy_call_t *)sys_nosys }, /* 241 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 242 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 243 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 244 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 245 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 246 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 247 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 248 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 249 = nosys */ + { AS(minherit_args), (sy_call_t *)sys_minherit }, /* 250 = minherit */ + { AS(rfork_args), (sy_call_t *)sys_rfork }, /* 251 = rfork */ + { AS(openbsd_poll_args), (sy_call_t *)sys_openbsd_poll }, /* 252 = openbsd_poll */ + { 0, (sy_call_t *)sys_issetugid }, /* 253 = issetugid */ + { AS(lchown_args), (sy_call_t *)sys_lchown }, /* 254 = lchown */ + { 0, (sy_call_t *)sys_nosys }, /* 255 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 256 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 257 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 258 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 259 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 260 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 261 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 262 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 263 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 264 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 265 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 266 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 267 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 268 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 269 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 270 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 271 = nosys */ { compatdf12(AS(dfbsd12_getdents_args),getdents) }, /* 272 = old getdents */ - { 0, (sy_call_t *)nosys }, /* 273 = nosys */ - { AS(lchmod_args), (sy_call_t *)lchmod }, /* 274 = lchmod */ - { AS(lchown_args), (sy_call_t *)lchown }, /* 275 = netbsd_lchown */ - { AS(lutimes_args), (sy_call_t *)lutimes }, /* 276 = lutimes */ - { AS(msync_args), (sy_call_t *)msync }, /* 277 = netbsd_msync */ - { 0, (sy_call_t *)nosys }, /* 278 = obsolete { */ - { 0, (sy_call_t *)nosys }, /* 279 = obsolete { */ - { 0, (sy_call_t *)nosys }, /* 280 = obsolete { */ - { 0, (sy_call_t *)nosys }, /* 281 = nosys */ - { 0, (sy_call_t *)nosys }, /* 282 = nosys */ - { 0, (sy_call_t *)nosys }, /* 283 = nosys */ - { 0, (sy_call_t *)nosys }, /* 284 = nosys */ - { 0, (sy_call_t *)nosys }, /* 285 = nosys */ - { 0, (sy_call_t *)nosys }, /* 286 = nosys */ - { 0, (sy_call_t *)nosys }, /* 287 = nosys */ - { 0, (sy_call_t *)nosys }, /* 288 = nosys */ - { SYF_MPSAFE | AS(preadv_args), (sy_call_t *)preadv }, /* 289 = preadv */ - { SYF_MPSAFE | AS(pwritev_args), (sy_call_t *)pwritev }, /* 290 = pwritev */ - { 0, (sy_call_t *)nosys }, /* 291 = nosys */ - { 0, (sy_call_t *)nosys }, /* 292 = nosys */ - { 0, (sy_call_t *)nosys }, /* 293 = nosys */ - { 0, (sy_call_t *)nosys }, /* 294 = nosys */ - { 0, (sy_call_t *)nosys }, /* 295 = nosys */ - { 0, (sy_call_t *)nosys }, /* 296 = nosys */ - { AS(fhstatfs_args), (sy_call_t *)fhstatfs }, /* 297 = fhstatfs */ - { AS(fhopen_args), (sy_call_t *)fhopen }, /* 298 = fhopen */ + { 0, (sy_call_t *)sys_nosys }, /* 273 = nosys */ + { AS(lchmod_args), (sy_call_t *)sys_lchmod }, /* 274 = lchmod */ + { AS(lchown_args), (sy_call_t *)sys_lchown }, /* 275 = netbsd_lchown */ + { AS(lutimes_args), (sy_call_t *)sys_lutimes }, /* 276 = lutimes */ + { AS(msync_args), (sy_call_t *)sys_msync }, /* 277 = netbsd_msync */ + { 0, (sy_call_t *)sys_nosys }, /* 278 = obsolete { */ + { 0, (sy_call_t *)sys_nosys }, /* 279 = obsolete { */ + { 0, (sy_call_t *)sys_nosys }, /* 280 = obsolete { */ + { 0, (sy_call_t *)sys_nosys }, /* 281 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 282 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 283 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 284 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 285 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 286 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 287 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 288 = nosys */ + { SYF_MPSAFE | AS(preadv_args), (sy_call_t *)sys_preadv }, /* 289 = preadv */ + { SYF_MPSAFE | AS(pwritev_args), (sy_call_t *)sys_pwritev }, /* 290 = pwritev */ + { 0, (sy_call_t *)sys_nosys }, /* 291 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 292 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 293 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 294 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 295 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 296 = nosys */ + { AS(fhstatfs_args), (sy_call_t *)sys_fhstatfs }, /* 297 = fhstatfs */ + { AS(fhopen_args), (sy_call_t *)sys_fhopen }, /* 298 = fhopen */ { compatdf12(AS(dfbsd12_fhstat_args),fhstat) }, /* 299 = old fhstat */ - { AS(modnext_args), (sy_call_t *)modnext }, /* 300 = modnext */ - { AS(modstat_args), (sy_call_t *)modstat }, /* 301 = modstat */ - { AS(modfnext_args), (sy_call_t *)modfnext }, /* 302 = modfnext */ - { AS(modfind_args), (sy_call_t *)modfind }, /* 303 = modfind */ - { AS(kldload_args), (sy_call_t *)kldload }, /* 304 = kldload */ - { AS(kldunload_args), (sy_call_t *)kldunload }, /* 305 = kldunload */ - { AS(kldfind_args), (sy_call_t *)kldfind }, /* 306 = kldfind */ - { AS(kldnext_args), (sy_call_t *)kldnext }, /* 307 = kldnext */ - { AS(kldstat_args), (sy_call_t *)kldstat }, /* 308 = kldstat */ - { AS(kldfirstmod_args), (sy_call_t *)kldfirstmod }, /* 309 = kldfirstmod */ - { AS(getsid_args), (sy_call_t *)getsid }, /* 310 = getsid */ - { AS(setresuid_args), (sy_call_t *)setresuid }, /* 311 = setresuid */ - { AS(setresgid_args), (sy_call_t *)setresgid }, /* 312 = setresgid */ - { 0, (sy_call_t *)nosys }, /* 313 = obsolete signanosleep */ - { AS(aio_return_args), (sy_call_t *)aio_return }, /* 314 = aio_return */ - { AS(aio_suspend_args), (sy_call_t *)aio_suspend }, /* 315 = aio_suspend */ - { AS(aio_cancel_args), (sy_call_t *)aio_cancel }, /* 316 = aio_cancel */ - { AS(aio_error_args), (sy_call_t *)aio_error }, /* 317 = aio_error */ - { AS(aio_read_args), (sy_call_t *)aio_read }, /* 318 = aio_read */ - { AS(aio_write_args), (sy_call_t *)aio_write }, /* 319 = aio_write */ - { AS(lio_listio_args), (sy_call_t *)lio_listio }, /* 320 = lio_listio */ - { 0, (sy_call_t *)yield }, /* 321 = yield */ - { AS(thr_sleep_args), (sy_call_t *)thr_sleep }, /* 322 = thr_sleep */ - { AS(thr_wakeup_args), (sy_call_t *)thr_wakeup }, /* 323 = thr_wakeup */ - { AS(mlockall_args), (sy_call_t *)mlockall }, /* 324 = mlockall */ - { 0, (sy_call_t *)munlockall }, /* 325 = munlockall */ - { AS(__getcwd_args), (sy_call_t *)__getcwd }, /* 326 = __getcwd */ - { AS(sched_setparam_args), (sy_call_t *)sched_setparam }, /* 327 = sched_setparam */ - { AS(sched_getparam_args), (sy_call_t *)sched_getparam }, /* 328 = sched_getparam */ - { AS(sched_setscheduler_args), (sy_call_t *)sched_setscheduler }, /* 329 = sched_setscheduler */ - { AS(sched_getscheduler_args), (sy_call_t *)sched_getscheduler }, /* 330 = sched_getscheduler */ - { 0, (sy_call_t *)sched_yield }, /* 331 = sched_yield */ - { AS(sched_get_priority_max_args), (sy_call_t *)sched_get_priority_max }, /* 332 = sched_get_priority_max */ - { AS(sched_get_priority_min_args), (sy_call_t *)sched_get_priority_min }, /* 333 = sched_get_priority_min */ - { AS(sched_rr_get_interval_args), (sy_call_t *)sched_rr_get_interval }, /* 334 = sched_rr_get_interval */ - { AS(utrace_args), (sy_call_t *)utrace }, /* 335 = utrace */ - { 0, (sy_call_t *)nosys }, /* 336 = obsolete freebsd4_sendfile */ - { AS(kldsym_args), (sy_call_t *)kldsym }, /* 337 = kldsym */ - { AS(jail_args), (sy_call_t *)jail }, /* 338 = jail */ - { 0, (sy_call_t *)nosys }, /* 339 = pioctl */ - { SYF_MPSAFE | AS(sigprocmask_args), (sy_call_t *)sigprocmask }, /* 340 = sigprocmask */ - { AS(sigsuspend_args), (sy_call_t *)sigsuspend }, /* 341 = sigsuspend */ - { AS(sigaction_args), (sy_call_t *)sigaction }, /* 342 = sigaction */ - { AS(sigpending_args), (sy_call_t *)sigpending }, /* 343 = sigpending */ - { AS(sigreturn_args), (sy_call_t *)sigreturn }, /* 344 = sigreturn */ - { AS(sigtimedwait_args), (sy_call_t *)sigtimedwait }, /* 345 = sigtimedwait */ - { AS(sigwaitinfo_args), (sy_call_t *)sigwaitinfo }, /* 346 = sigwaitinfo */ - { AS(__acl_get_file_args), (sy_call_t *)__acl_get_file }, /* 347 = __acl_get_file */ - { AS(__acl_set_file_args), (sy_call_t *)__acl_set_file }, /* 348 = __acl_set_file */ - { AS(__acl_get_fd_args), (sy_call_t *)__acl_get_fd }, /* 349 = __acl_get_fd */ - { AS(__acl_set_fd_args), (sy_call_t *)__acl_set_fd }, /* 350 = __acl_set_fd */ - { AS(__acl_delete_file_args), (sy_call_t *)__acl_delete_file }, /* 351 = __acl_delete_file */ - { AS(__acl_delete_fd_args), (sy_call_t *)__acl_delete_fd }, /* 352 = __acl_delete_fd */ - { AS(__acl_aclcheck_file_args), (sy_call_t *)__acl_aclcheck_file }, /* 353 = __acl_aclcheck_file */ - { AS(__acl_aclcheck_fd_args), (sy_call_t *)__acl_aclcheck_fd }, /* 354 = __acl_aclcheck_fd */ - { AS(extattrctl_args), (sy_call_t *)extattrctl }, /* 355 = extattrctl */ - { AS(extattr_set_file_args), (sy_call_t *)extattr_set_file }, /* 356 = extattr_set_file */ - { AS(extattr_get_file_args), (sy_call_t *)extattr_get_file }, /* 357 = extattr_get_file */ - { AS(extattr_delete_file_args), (sy_call_t *)extattr_delete_file }, /* 358 = extattr_delete_file */ - { AS(aio_waitcomplete_args), (sy_call_t *)aio_waitcomplete }, /* 359 = aio_waitcomplete */ - { AS(getresuid_args), (sy_call_t *)getresuid }, /* 360 = getresuid */ - { AS(getresgid_args), (sy_call_t *)getresgid }, /* 361 = getresgid */ - { 0, (sy_call_t *)kqueue }, /* 362 = kqueue */ - { AS(kevent_args), (sy_call_t *)kevent }, /* 363 = kevent */ - { AS(sctp_peeloff_args), (sy_call_t *)sctp_peeloff }, /* 364 = sctp_peeloff */ - { 0, (sy_call_t *)nosys }, /* 365 = nosys */ - { 0, (sy_call_t *)nosys }, /* 366 = nosys */ - { 0, (sy_call_t *)nosys }, /* 367 = nosys */ - { 0, (sy_call_t *)nosys }, /* 368 = nosys */ - { 0, (sy_call_t *)nosys }, /* 369 = nosys */ - { 0, (sy_call_t *)nosys }, /* 370 = nosys */ - { 0, (sy_call_t *)nosys }, /* 371 = nosys */ - { 0, (sy_call_t *)nosys }, /* 372 = nosys */ - { 0, (sy_call_t *)nosys }, /* 373 = nosys */ - { 0, (sy_call_t *)nosys }, /* 374 = nosys */ - { 0, (sy_call_t *)nosys }, /* 375 = nosys */ - { 0, (sy_call_t *)nosys }, /* 376 = nosys */ - { 0, (sy_call_t *)nosys }, /* 377 = nosys */ - { 0, (sy_call_t *)nosys }, /* 378 = nosys */ - { 0, (sy_call_t *)nosys }, /* 379 = nosys */ - { 0, (sy_call_t *)nosys }, /* 380 = nosys */ - { 0, (sy_call_t *)nosys }, /* 381 = nosys */ - { 0, (sy_call_t *)nosys }, /* 382 = nosys */ - { 0, (sy_call_t *)nosys }, /* 383 = nosys */ - { 0, (sy_call_t *)nosys }, /* 384 = nosys */ - { 0, (sy_call_t *)nosys }, /* 385 = nosys */ - { 0, (sy_call_t *)nosys }, /* 386 = nosys */ - { 0, (sy_call_t *)nosys }, /* 387 = nosys */ - { 0, (sy_call_t *)nosys }, /* 388 = nosys */ - { 0, (sy_call_t *)nosys }, /* 389 = nosys */ - { 0, (sy_call_t *)nosys }, /* 390 = nosys */ - { 0, (sy_call_t *)nosys }, /* 391 = nosys */ - { 0, (sy_call_t *)nosys }, /* 392 = nosys */ - { AS(sendfile_args), (sy_call_t *)sendfile }, /* 393 = sendfile */ - { 0, (sy_call_t *)nosys }, /* 394 = nosys */ - { 0, (sy_call_t *)nosys }, /* 395 = nosys */ - { 0, (sy_call_t *)nosys }, /* 396 = nosys */ - { 0, (sy_call_t *)nosys }, /* 397 = nosys */ - { 0, (sy_call_t *)nosys }, /* 398 = nosys */ - { 0, (sy_call_t *)nosys }, /* 399 = nosys */ - { 0, (sy_call_t *)nosys }, /* 400 = nosys */ - { 0, (sy_call_t *)nosys }, /* 401 = nosys */ - { 0, (sy_call_t *)nosys }, /* 402 = nosys */ - { 0, (sy_call_t *)nosys }, /* 403 = nosys */ - { 0, (sy_call_t *)nosys }, /* 404 = nosys */ - { 0, (sy_call_t *)nosys }, /* 405 = nosys */ - { 0, (sy_call_t *)nosys }, /* 406 = nosys */ - { 0, (sy_call_t *)nosys }, /* 407 = nosys */ - { 0, (sy_call_t *)nosys }, /* 408 = nosys */ - { 0, (sy_call_t *)nosys }, /* 409 = nosys */ - { 0, (sy_call_t *)nosys }, /* 410 = nosys */ - { 0, (sy_call_t *)nosys }, /* 411 = nosys */ - { 0, (sy_call_t *)nosys }, /* 412 = nosys */ - { 0, (sy_call_t *)nosys }, /* 413 = nosys */ - { 0, (sy_call_t *)nosys }, /* 414 = nosys */ - { 0, (sy_call_t *)nosys }, /* 415 = nosys */ - { 0, (sy_call_t *)nosys }, /* 416 = nosys */ - { 0, (sy_call_t *)nosys }, /* 417 = nosys */ - { 0, (sy_call_t *)nosys }, /* 418 = nosys */ - { 0, (sy_call_t *)nosys }, /* 419 = nosys */ - { 0, (sy_call_t *)nosys }, /* 420 = nosys */ - { 0, (sy_call_t *)nosys }, /* 421 = nosys */ - { 0, (sy_call_t *)nosys }, /* 422 = nosys */ - { 0, (sy_call_t *)nosys }, /* 423 = nosys */ - { 0, (sy_call_t *)nosys }, /* 424 = nosys */ - { 0, (sy_call_t *)nosys }, /* 425 = nosys */ - { 0, (sy_call_t *)nosys }, /* 426 = nosys */ - { 0, (sy_call_t *)nosys }, /* 427 = nosys */ - { 0, (sy_call_t *)nosys }, /* 428 = nosys */ - { 0, (sy_call_t *)nosys }, /* 429 = nosys */ - { 0, (sy_call_t *)nosys }, /* 430 = nosys */ - { 0, (sy_call_t *)nosys }, /* 431 = nosys */ - { 0, (sy_call_t *)nosys }, /* 432 = nosys */ - { 0, (sy_call_t *)nosys }, /* 433 = nosys */ - { 0, (sy_call_t *)nosys }, /* 434 = nosys */ - { 0, (sy_call_t *)nosys }, /* 435 = nosys */ - { 0, (sy_call_t *)nosys }, /* 436 = nosys */ - { 0, (sy_call_t *)nosys }, /* 437 = nosys */ - { 0, (sy_call_t *)nosys }, /* 438 = nosys */ - { 0, (sy_call_t *)nosys }, /* 439 = nosys */ - { 0, (sy_call_t *)nosys }, /* 440 = nosys */ - { 0, (sy_call_t *)nosys }, /* 441 = nosys */ - { 0, (sy_call_t *)nosys }, /* 442 = nosys */ - { 0, (sy_call_t *)nosys }, /* 443 = nosys */ - { 0, (sy_call_t *)nosys }, /* 444 = nosys */ - { 0, (sy_call_t *)nosys }, /* 445 = nosys */ - { 0, (sy_call_t *)nosys }, /* 446 = nosys */ - { 0, (sy_call_t *)nosys }, /* 447 = nosys */ - { 0, (sy_call_t *)nosys }, /* 448 = nosys */ - { 0, (sy_call_t *)nosys }, /* 449 = nosys */ - { AS(varsym_set_args), (sy_call_t *)varsym_set }, /* 450 = varsym_set */ - { AS(varsym_get_args), (sy_call_t *)varsym_get }, /* 451 = varsym_get */ - { AS(varsym_list_args), (sy_call_t *)varsym_list }, /* 452 = varsym_list */ - { AS(upc_register_args), (sy_call_t *)upc_register }, /* 453 = upc_register */ - { AS(upc_control_args), (sy_call_t *)upc_control }, /* 454 = upc_control */ - { AS(caps_sys_service_args), (sy_call_t *)caps_sys_service }, /* 455 = caps_sys_service */ - { AS(caps_sys_client_args), (sy_call_t *)caps_sys_client }, /* 456 = caps_sys_client */ - { AS(caps_sys_close_args), (sy_call_t *)caps_sys_close }, /* 457 = caps_sys_close */ - { AS(caps_sys_put_args), (sy_call_t *)caps_sys_put }, /* 458 = caps_sys_put */ - { AS(caps_sys_reply_args), (sy_call_t *)caps_sys_reply }, /* 459 = caps_sys_reply */ - { AS(caps_sys_get_args), (sy_call_t *)caps_sys_get }, /* 460 = caps_sys_get */ - { AS(caps_sys_wait_args), (sy_call_t *)caps_sys_wait }, /* 461 = caps_sys_wait */ - { AS(caps_sys_abort_args), (sy_call_t *)caps_sys_abort }, /* 462 = caps_sys_abort */ - { AS(caps_sys_getgen_args), (sy_call_t *)caps_sys_getgen }, /* 463 = caps_sys_getgen */ - { AS(caps_sys_setgen_args), (sy_call_t *)caps_sys_setgen }, /* 464 = caps_sys_setgen */ - { AS(exec_sys_register_args), (sy_call_t *)exec_sys_register }, /* 465 = exec_sys_register */ - { AS(exec_sys_unregister_args), (sy_call_t *)exec_sys_unregister }, /* 466 = exec_sys_unregister */ - { AS(sys_checkpoint_args), (sy_call_t *)sys_checkpoint }, /* 467 = sys_checkpoint */ - { AS(mountctl_args), (sy_call_t *)mountctl }, /* 468 = mountctl */ - { AS(umtx_sleep_args), (sy_call_t *)umtx_sleep }, /* 469 = umtx_sleep */ - { AS(umtx_wakeup_args), (sy_call_t *)umtx_wakeup }, /* 470 = umtx_wakeup */ - { AS(jail_attach_args), (sy_call_t *)jail_attach }, /* 471 = jail_attach */ - { AS(sys_set_tls_area_args), (sy_call_t *)sys_set_tls_area }, /* 472 = sys_set_tls_area */ - { AS(sys_get_tls_area_args), (sy_call_t *)sys_get_tls_area }, /* 473 = sys_get_tls_area */ - { SYF_MPSAFE | AS(closefrom_args), (sy_call_t *)closefrom }, /* 474 = closefrom */ - { AS(stat_args), (sy_call_t *)stat }, /* 475 = stat */ - { AS(fstat_args), (sy_call_t *)fstat }, /* 476 = fstat */ - { AS(lstat_args), (sy_call_t *)lstat }, /* 477 = lstat */ - { AS(fhstat_args), (sy_call_t *)fhstat }, /* 478 = fhstat */ - { AS(getdirentries_args), (sy_call_t *)getdirentries }, /* 479 = getdirentries */ - { AS(getdents_args), (sy_call_t *)getdents }, /* 480 = getdents */ - { AS(usched_set_args), (sy_call_t *)usched_set }, /* 481 = usched_set */ + { AS(modnext_args), (sy_call_t *)sys_modnext }, /* 300 = modnext */ + { AS(modstat_args), (sy_call_t *)sys_modstat }, /* 301 = modstat */ + { AS(modfnext_args), (sy_call_t *)sys_modfnext }, /* 302 = modfnext */ + { AS(modfind_args), (sy_call_t *)sys_modfind }, /* 303 = modfind */ + { AS(kldload_args), (sy_call_t *)sys_kldload }, /* 304 = kldload */ + { AS(kldunload_args), (sy_call_t *)sys_kldunload }, /* 305 = kldunload */ + { AS(kldfind_args), (sy_call_t *)sys_kldfind }, /* 306 = kldfind */ + { AS(kldnext_args), (sy_call_t *)sys_kldnext }, /* 307 = kldnext */ + { AS(kldstat_args), (sy_call_t *)sys_kldstat }, /* 308 = kldstat */ + { AS(kldfirstmod_args), (sy_call_t *)sys_kldfirstmod }, /* 309 = kldfirstmod */ + { AS(getsid_args), (sy_call_t *)sys_getsid }, /* 310 = getsid */ + { AS(setresuid_args), (sy_call_t *)sys_setresuid }, /* 311 = setresuid */ + { AS(setresgid_args), (sy_call_t *)sys_setresgid }, /* 312 = setresgid */ + { 0, (sy_call_t *)sys_nosys }, /* 313 = obsolete signanosleep */ + { AS(aio_return_args), (sy_call_t *)sys_aio_return }, /* 314 = aio_return */ + { AS(aio_suspend_args), (sy_call_t *)sys_aio_suspend }, /* 315 = aio_suspend */ + { AS(aio_cancel_args), (sy_call_t *)sys_aio_cancel }, /* 316 = aio_cancel */ + { AS(aio_error_args), (sy_call_t *)sys_aio_error }, /* 317 = aio_error */ + { AS(aio_read_args), (sy_call_t *)sys_aio_read }, /* 318 = aio_read */ + { AS(aio_write_args), (sy_call_t *)sys_aio_write }, /* 319 = aio_write */ + { AS(lio_listio_args), (sy_call_t *)sys_lio_listio }, /* 320 = lio_listio */ + { 0, (sy_call_t *)sys_yield }, /* 321 = yield */ + { AS(thr_sleep_args), (sy_call_t *)sys_thr_sleep }, /* 322 = thr_sleep */ + { AS(thr_wakeup_args), (sy_call_t *)sys_thr_wakeup }, /* 323 = thr_wakeup */ + { AS(mlockall_args), (sy_call_t *)sys_mlockall }, /* 324 = mlockall */ + { 0, (sy_call_t *)sys_munlockall }, /* 325 = munlockall */ + { AS(__getcwd_args), (sy_call_t *)sys___getcwd }, /* 326 = __getcwd */ + { AS(sched_setparam_args), (sy_call_t *)sys_sched_setparam }, /* 327 = sched_setparam */ + { AS(sched_getparam_args), (sy_call_t *)sys_sched_getparam }, /* 328 = sched_getparam */ + { AS(sched_setscheduler_args), (sy_call_t *)sys_sched_setscheduler }, /* 329 = sched_setscheduler */ + { AS(sched_getscheduler_args), (sy_call_t *)sys_sched_getscheduler }, /* 330 = sched_getscheduler */ + { 0, (sy_call_t *)sys_sched_yield }, /* 331 = sched_yield */ + { AS(sched_get_priority_max_args), (sy_call_t *)sys_sched_get_priority_max }, /* 332 = sched_get_priority_max */ + { AS(sched_get_priority_min_args), (sy_call_t *)sys_sched_get_priority_min }, /* 333 = sched_get_priority_min */ + { AS(sched_rr_get_interval_args), (sy_call_t *)sys_sched_rr_get_interval }, /* 334 = sched_rr_get_interval */ + { AS(utrace_args), (sy_call_t *)sys_utrace }, /* 335 = utrace */ + { 0, (sy_call_t *)sys_nosys }, /* 336 = obsolete freebsd4_sendfile */ + { AS(kldsym_args), (sy_call_t *)sys_kldsym }, /* 337 = kldsym */ + { AS(jail_args), (sy_call_t *)sys_jail }, /* 338 = jail */ + { 0, (sy_call_t *)sys_nosys }, /* 339 = pioctl */ + { SYF_MPSAFE | AS(sigprocmask_args), (sy_call_t *)sys_sigprocmask }, /* 340 = sigprocmask */ + { AS(sigsuspend_args), (sy_call_t *)sys_sigsuspend }, /* 341 = sigsuspend */ + { AS(sigaction_args), (sy_call_t *)sys_sigaction }, /* 342 = sigaction */ + { AS(sigpending_args), (sy_call_t *)sys_sigpending }, /* 343 = sigpending */ + { AS(sigreturn_args), (sy_call_t *)sys_sigreturn }, /* 344 = sigreturn */ + { AS(sigtimedwait_args), (sy_call_t *)sys_sigtimedwait }, /* 345 = sigtimedwait */ + { AS(sigwaitinfo_args), (sy_call_t *)sys_sigwaitinfo }, /* 346 = sigwaitinfo */ + { AS(__acl_get_file_args), (sy_call_t *)sys___acl_get_file }, /* 347 = __acl_get_file */ + { AS(__acl_set_file_args), (sy_call_t *)sys___acl_set_file }, /* 348 = __acl_set_file */ + { AS(__acl_get_fd_args), (sy_call_t *)sys___acl_get_fd }, /* 349 = __acl_get_fd */ + { AS(__acl_set_fd_args), (sy_call_t *)sys___acl_set_fd }, /* 350 = __acl_set_fd */ + { AS(__acl_delete_file_args), (sy_call_t *)sys___acl_delete_file }, /* 351 = __acl_delete_file */ + { AS(__acl_delete_fd_args), (sy_call_t *)sys___acl_delete_fd }, /* 352 = __acl_delete_fd */ + { AS(__acl_aclcheck_file_args), (sy_call_t *)sys___acl_aclcheck_file }, /* 353 = __acl_aclcheck_file */ + { AS(__acl_aclcheck_fd_args), (sy_call_t *)sys___acl_aclcheck_fd }, /* 354 = __acl_aclcheck_fd */ + { AS(extattrctl_args), (sy_call_t *)sys_extattrctl }, /* 355 = extattrctl */ + { AS(extattr_set_file_args), (sy_call_t *)sys_extattr_set_file }, /* 356 = extattr_set_file */ + { AS(extattr_get_file_args), (sy_call_t *)sys_extattr_get_file }, /* 357 = extattr_get_file */ + { AS(extattr_delete_file_args), (sy_call_t *)sys_extattr_delete_file }, /* 358 = extattr_delete_file */ + { AS(aio_waitcomplete_args), (sy_call_t *)sys_aio_waitcomplete }, /* 359 = aio_waitcomplete */ + { AS(getresuid_args), (sy_call_t *)sys_getresuid }, /* 360 = getresuid */ + { AS(getresgid_args), (sy_call_t *)sys_getresgid }, /* 361 = getresgid */ + { 0, (sy_call_t *)sys_kqueue }, /* 362 = kqueue */ + { AS(kevent_args), (sy_call_t *)sys_kevent }, /* 363 = kevent */ + { AS(sctp_peeloff_args), (sy_call_t *)sys_sctp_peeloff }, /* 364 = sctp_peeloff */ + { 0, (sy_call_t *)sys_nosys }, /* 365 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 366 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 367 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 368 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 369 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 370 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 371 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 372 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 373 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 374 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 375 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 376 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 377 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 378 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 379 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 380 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 381 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 382 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 383 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 384 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 385 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 386 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 387 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 388 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 389 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 390 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 391 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 392 = nosys */ + { AS(sendfile_args), (sy_call_t *)sys_sendfile }, /* 393 = sendfile */ + { 0, (sy_call_t *)sys_nosys }, /* 394 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 395 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 396 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 397 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 398 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 399 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 400 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 401 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 402 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 403 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 404 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 405 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 406 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 407 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 408 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 409 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 410 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 411 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 412 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 413 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 414 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 415 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 416 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 417 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 418 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 419 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 420 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 421 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 422 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 423 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 424 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 425 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 426 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 427 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 428 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 429 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 430 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 431 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 432 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 433 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 434 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 435 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 436 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 437 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 438 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 439 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 440 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 441 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 442 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 443 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 444 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 445 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 446 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 447 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 448 = nosys */ + { 0, (sy_call_t *)sys_nosys }, /* 449 = nosys */ + { AS(varsym_set_args), (sy_call_t *)sys_varsym_set }, /* 450 = varsym_set */ + { AS(varsym_get_args), (sy_call_t *)sys_varsym_get }, /* 451 = varsym_get */ + { AS(varsym_list_args), (sy_call_t *)sys_varsym_list }, /* 452 = varsym_list */ + { AS(upc_register_args), (sy_call_t *)sys_upc_register }, /* 453 = upc_register */ + { AS(upc_control_args), (sy_call_t *)sys_upc_control }, /* 454 = upc_control */ + { AS(caps_sys_service_args), (sy_call_t *)sys_caps_sys_service }, /* 455 = caps_sys_service */ + { AS(caps_sys_client_args), (sy_call_t *)sys_caps_sys_client }, /* 456 = caps_sys_client */ + { AS(caps_sys_close_args), (sy_call_t *)sys_caps_sys_close }, /* 457 = caps_sys_close */ + { AS(caps_sys_put_args), (sy_call_t *)sys_caps_sys_put }, /* 458 = caps_sys_put */ + { AS(caps_sys_reply_args), (sy_call_t *)sys_caps_sys_reply }, /* 459 = caps_sys_reply */ + { AS(caps_sys_get_args), (sy_call_t *)sys_caps_sys_get }, /* 460 = caps_sys_get */ + { AS(caps_sys_wait_args), (sy_call_t *)sys_caps_sys_wait }, /* 461 = caps_sys_wait */ + { AS(caps_sys_abort_args), (sy_call_t *)sys_caps_sys_abort }, /* 462 = caps_sys_abort */ + { AS(caps_sys_getgen_args), (sy_call_t *)sys_caps_sys_getgen }, /* 463 = caps_sys_getgen */ + { AS(caps_sys_setgen_args), (sy_call_t *)sys_caps_sys_setgen }, /* 464 = caps_sys_setgen */ + { AS(exec_sys_register_args), (sy_call_t *)sys_exec_sys_register }, /* 465 = exec_sys_register */ + { AS(exec_sys_unregister_args), (sy_call_t *)sys_exec_sys_unregister }, /* 466 = exec_sys_unregister */ + { AS(sys_checkpoint_args), (sy_call_t *)sys_sys_checkpoint }, /* 467 = sys_checkpoint */ + { AS(mountctl_args), (sy_call_t *)sys_mountctl }, /* 468 = mountctl */ + { AS(umtx_sleep_args), (sy_call_t *)sys_umtx_sleep }, /* 469 = umtx_sleep */ + { AS(umtx_wakeup_args), (sy_call_t *)sys_umtx_wakeup }, /* 470 = umtx_wakeup */ + { AS(jail_attach_args), (sy_call_t *)sys_jail_attach }, /* 471 = jail_attach */ + { AS(sys_set_tls_area_args), (sy_call_t *)sys_sys_set_tls_area }, /* 472 = sys_set_tls_area */ + { AS(sys_get_tls_area_args), (sy_call_t *)sys_sys_get_tls_area }, /* 473 = sys_get_tls_area */ + { SYF_MPSAFE | AS(closefrom_args), (sy_call_t *)sys_closefrom }, /* 474 = closefrom */ + { AS(stat_args), (sy_call_t *)sys_stat }, /* 475 = stat */ + { AS(fstat_args), (sy_call_t *)sys_fstat }, /* 476 = fstat */ + { AS(lstat_args), (sy_call_t *)sys_lstat }, /* 477 = lstat */ + { AS(fhstat_args), (sy_call_t *)sys_fhstat }, /* 478 = fhstat */ + { AS(getdirentries_args), (sy_call_t *)sys_getdirentries }, /* 479 = getdirentries */ + { AS(getdents_args), (sy_call_t *)sys_getdents }, /* 480 = getdents */ + { AS(usched_set_args), (sy_call_t *)sys_usched_set }, /* 481 = usched_set */ }; diff --git a/sys/kern/kern_acct.c b/sys/kern/kern_acct.c index f914d2e297..40b0bdfc54 100644 --- a/sys/kern/kern_acct.c +++ b/sys/kern/kern_acct.c @@ -38,7 +38,7 @@ * * @(#)kern_acct.c 8.1 (Berkeley) 6/14/93 * $FreeBSD: src/sys/kern/kern_acct.c,v 1.23.2.1 2002/07/24 18:33:55 johan Exp $ - * $DragonFly: src/sys/kern/kern_acct.c,v 1.24 2006/05/23 20:35:10 dillon Exp $ + * $DragonFly: src/sys/kern/kern_acct.c,v 1.25 2006/06/05 07:26:10 dillon Exp $ */ #include @@ -119,7 +119,7 @@ SYSINIT(acct, SI_SUB_DRIVERS, SI_ORDER_ANY, acct_init, NULL); * acct(char *path) */ int -acct(struct acct_args *uap) +sys_acct(struct acct_args *uap) { struct thread *td = curthread; struct nlookupdata nd; diff --git a/sys/kern/kern_acl.c b/sys/kern/kern_acl.c index 6fb5c045c0..5700c3e158 100644 --- a/sys/kern/kern_acl.c +++ b/sys/kern/kern_acl.c @@ -24,7 +24,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/kern/kern_acl.c,v 1.2.2.1 2000/07/28 18:48:16 rwatson Exp $ - * $DragonFly: src/sys/kern/kern_acl.c,v 1.13 2006/05/24 03:23:31 dillon Exp $ + * $DragonFly: src/sys/kern/kern_acl.c,v 1.14 2006/06/05 07:26:10 dillon Exp $ */ /* @@ -152,7 +152,7 @@ vacl_aclcheck(struct vnode *vp, acl_type_t type, struct acl *aclp) * Given a file path, get an ACL for it */ int -__acl_get_file(struct __acl_get_file_args *uap) +sys___acl_get_file(struct __acl_get_file_args *uap) { struct nlookupdata nd; struct vnode *vp; @@ -176,7 +176,7 @@ __acl_get_file(struct __acl_get_file_args *uap) * Given a file path, set an ACL for it */ int -__acl_set_file(struct __acl_set_file_args *uap) +sys___acl_set_file(struct __acl_set_file_args *uap) { struct nlookupdata nd; struct vnode *vp; @@ -200,7 +200,7 @@ __acl_set_file(struct __acl_set_file_args *uap) * Given a file descriptor, get an ACL for it */ int -__acl_get_fd(struct __acl_get_fd_args *uap) +sys___acl_get_fd(struct __acl_get_fd_args *uap) { struct thread *td = curthread; struct file *fp; @@ -218,7 +218,7 @@ __acl_get_fd(struct __acl_get_fd_args *uap) * Given a file descriptor, set an ACL for it */ int -__acl_set_fd(struct __acl_set_fd_args *uap) +sys___acl_set_fd(struct __acl_set_fd_args *uap) { struct thread *td = curthread; struct file *fp; @@ -236,7 +236,7 @@ __acl_set_fd(struct __acl_set_fd_args *uap) * Given a file path, delete an ACL from it. */ int -__acl_delete_file(struct __acl_delete_file_args *uap) +sys___acl_delete_file(struct __acl_delete_file_args *uap) { struct nlookupdata nd; struct vnode *vp; @@ -261,7 +261,7 @@ __acl_delete_file(struct __acl_delete_file_args *uap) * Given a file path, delete an ACL from it. */ int -__acl_delete_fd(struct __acl_delete_fd_args *uap) +sys___acl_delete_fd(struct __acl_delete_fd_args *uap) { struct thread *td = curthread; struct file *fp; @@ -279,7 +279,7 @@ __acl_delete_fd(struct __acl_delete_fd_args *uap) * Given a file path, check an ACL for it */ int -__acl_aclcheck_file(struct __acl_aclcheck_file_args *uap) +sys___acl_aclcheck_file(struct __acl_aclcheck_file_args *uap) { struct nlookupdata nd; struct vnode *vp; @@ -304,7 +304,7 @@ __acl_aclcheck_file(struct __acl_aclcheck_file_args *uap) * Given a file descriptor, check an ACL for it */ int -__acl_aclcheck_fd(struct __acl_aclcheck_fd_args *uap) +sys___acl_aclcheck_fd(struct __acl_aclcheck_fd_args *uap) { struct thread *td = curthread; struct file *fp; diff --git a/sys/kern/kern_checkpoint.c b/sys/kern/kern_checkpoint.c index ce102fc461..8efbaf2e64 100644 --- a/sys/kern/kern_checkpoint.c +++ b/sys/kern/kern_checkpoint.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/kern/kern_checkpoint.c,v 1.8 2006/05/22 21:21:21 dillon Exp $ + * $DragonFly: src/sys/kern/kern_checkpoint.c,v 1.9 2006/06/05 07:26:10 dillon Exp $ */ #include @@ -682,7 +682,7 @@ ckpt_freeze_proc (struct proc *p, struct file *fp) } int -sys_checkpoint(struct sys_checkpoint_args *uap) +sys_sys_checkpoint(struct sys_checkpoint_args *uap) { int error = 0; struct proc *p = curthread->td_proc; diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 8f0a20111d..918b86bfc0 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -70,7 +70,7 @@ * * @(#)kern_descrip.c 8.6 (Berkeley) 4/19/94 * $FreeBSD: src/sys/kern/kern_descrip.c,v 1.81.2.19 2004/02/28 00:43:31 tegge Exp $ - * $DragonFly: src/sys/kern/kern_descrip.c,v 1.66 2006/05/27 01:57:41 dillon Exp $ + * $DragonFly: src/sys/kern/kern_descrip.c,v 1.67 2006/06/05 07:26:10 dillon Exp $ */ #include "opt_compat.h" @@ -182,7 +182,7 @@ fdfixup_locked(struct filedesc *fdp, int fd) * MPSAFE */ int -getdtablesize(struct getdtablesize_args *uap) +sys_getdtablesize(struct getdtablesize_args *uap) { struct proc *p = curproc; struct plimit *limit = p->p_limit; @@ -203,7 +203,7 @@ getdtablesize(struct getdtablesize_args *uap) * MPSAFE */ int -dup2(struct dup2_args *uap) +sys_dup2(struct dup2_args *uap) { int error; @@ -218,7 +218,7 @@ dup2(struct dup2_args *uap) * MPSAFE */ int -dup(struct dup_args *uap) +sys_dup(struct dup_args *uap) { int error; @@ -399,7 +399,7 @@ kern_fcntl(int fd, int cmd, union fcntl_dat *dat, struct ucred *cred) * MPSAFE */ int -fcntl(struct fcntl_args *uap) +sys_fcntl(struct fcntl_args *uap) { union fcntl_dat dat; int error; @@ -749,7 +749,7 @@ fgetown(struct sigio *sigio) * MPSAFE */ int -closefrom(struct closefrom_args *uap) +sys_closefrom(struct closefrom_args *uap) { return(kern_closefrom(uap->fd)); } @@ -798,7 +798,7 @@ kern_closefrom(int fd) * MPSAFE */ int -close(struct close_args *uap) +sys_close(struct close_args *uap) { return(kern_close(uap->fd)); } @@ -883,7 +883,7 @@ kern_shutdown(int fd, int how) } int -shutdown(struct shutdown_args *uap) +sys_shutdown(struct shutdown_args *uap) { int error; @@ -914,7 +914,7 @@ kern_fstat(int fd, struct stat *ub) * Return status information about a file descriptor. */ int -fstat(struct fstat_args *uap) +sys_fstat(struct fstat_args *uap) { struct stat st; int error; @@ -931,7 +931,7 @@ fstat(struct fstat_args *uap) */ /* ARGSUSED */ int -fpathconf(struct fpathconf_args *uap) +sys_fpathconf(struct fpathconf_args *uap) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -2165,7 +2165,7 @@ fdrop(struct file *fp) * the entire file (l_whence = SEEK_SET, l_start = 0, l_len = 0). */ int -flock(struct flock_args *uap) +sys_flock(struct flock_args *uap) { struct proc *p = curproc; struct file *fp; diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c index 736f6ddcdb..c850e147d6 100644 --- a/sys/kern/kern_event.c +++ b/sys/kern/kern_event.c @@ -24,7 +24,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/kern/kern_event.c,v 1.2.2.10 2004/04/04 07:03:14 cperciva Exp $ - * $DragonFly: src/sys/kern/kern_event.c,v 1.26 2006/05/26 15:55:12 dillon Exp $ + * $DragonFly: src/sys/kern/kern_event.c,v 1.27 2006/06/05 07:26:10 dillon Exp $ */ #include @@ -371,7 +371,7 @@ filt_timer(struct knote *kn, long hint) } int -kqueue(struct kqueue_args *uap) +sys_kqueue(struct kqueue_args *uap) { struct proc *p = curproc; struct filedesc *fdp = p->p_fd; @@ -398,7 +398,7 @@ kqueue(struct kqueue_args *uap) } int -kevent(struct kevent_args *uap) +sys_kevent(struct kevent_args *uap) { struct thread *td = curthread; struct proc *p = td->td_proc; diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 48fb593bd2..f33fa9d63f 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -24,7 +24,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/kern/kern_exec.c,v 1.107.2.15 2002/07/30 15:40:46 nectar Exp $ - * $DragonFly: src/sys/kern/kern_exec.c,v 1.39 2006/05/17 20:20:49 dillon Exp $ + * $DragonFly: src/sys/kern/kern_exec.c,v 1.40 2006/06/05 07:26:10 dillon Exp $ */ #include @@ -487,7 +487,7 @@ exec_fail: * execve() system call. */ int -execve(struct execve_args *uap) +sys_execve(struct execve_args *uap) { struct nlookupdata nd; struct image_args args; diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index c13cfd824b..6b88f5381d 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -37,7 +37,7 @@ * * @(#)kern_exit.c 8.7 (Berkeley) 2/12/94 * $FreeBSD: src/sys/kern/kern_exit.c,v 1.92.2.11 2003/01/13 22:51:16 dillon Exp $ - * $DragonFly: src/sys/kern/kern_exit.c,v 1.56 2006/05/24 17:44:02 dillon Exp $ + * $DragonFly: src/sys/kern/kern_exit.c,v 1.57 2006/06/05 07:26:10 dillon Exp $ */ #include "opt_compat.h" @@ -98,8 +98,8 @@ static struct exit_list_head exit_list = TAILQ_HEAD_INITIALIZER(exit_list); * * SYS_EXIT_ARGS(int rval) */ -void -sys_exit(struct sys_exit_args *uap) +int +sys_exit(struct exit_args *uap) { exit1(W_EXITCODE(uap->rval, 0)); /* NOTREACHED */ @@ -143,7 +143,7 @@ exit1(int rv) * The interface for kill is better * than the internal signal */ - kill(&killArgs); + sys_kill(&killArgs); nq = q; q = q->p_peers; } @@ -397,7 +397,7 @@ exit1(int rv) } int -wait4(struct wait_args *uap) +sys_wait4(struct wait_args *uap) { struct rusage rusage; int error, status; diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index a450e8db49..fcbbe367b7 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -37,7 +37,7 @@ * * @(#)kern_fork.c 8.6 (Berkeley) 4/8/94 * $FreeBSD: src/sys/kern/kern_fork.c,v 1.72.2.14 2003/06/26 04:15:10 silby Exp $ - * $DragonFly: src/sys/kern/kern_fork.c,v 1.51 2006/06/05 00:32:37 davidxu Exp $ + * $DragonFly: src/sys/kern/kern_fork.c,v 1.52 2006/06/05 07:26:10 dillon Exp $ */ #include "opt_ktrace.h" @@ -87,7 +87,7 @@ int forksleep; /* Place for fork1() to sleep on. */ /* ARGSUSED */ int -fork(struct fork_args *uap) +sys_fork(struct fork_args *uap) { struct lwp *lp = curthread->td_lwp; struct proc *p2; @@ -104,7 +104,7 @@ fork(struct fork_args *uap) /* ARGSUSED */ int -vfork(struct vfork_args *uap) +sys_vfork(struct vfork_args *uap) { struct lwp *lp = curthread->td_lwp; struct proc *p2; @@ -131,7 +131,7 @@ vfork(struct vfork_args *uap) * rfork { int flags } */ int -rfork(struct rfork_args *uap) +sys_rfork(struct rfork_args *uap) { struct lwp *lp = curthread->td_lwp; struct proc *p2; diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c index 5adea7d586..198f5b3da2 100644 --- a/sys/kern/kern_jail.c +++ b/sys/kern/kern_jail.c @@ -7,7 +7,7 @@ * ---------------------------------------------------------------------------- * * $FreeBSD: src/sys/kern/kern_jail.c,v 1.6.2.3 2001/08/17 01:00:26 rwatson Exp $ - * $DragonFly: src/sys/kern/kern_jail.c,v 1.10 2006/05/06 02:43:12 dillon Exp $ + * $DragonFly: src/sys/kern/kern_jail.c,v 1.11 2006/06/05 07:26:10 dillon Exp $ * */ @@ -91,7 +91,7 @@ kern_jail_attach(int jid) * jail_args(syscallarg(struct jail *) jail) */ int -jail(struct jail_args *uap) +sys_jail(struct jail_args *uap) { struct prison *pr, *tpr; struct jail j; @@ -163,7 +163,7 @@ bail: * int jail_attach(int jid); */ int -jail_attach(struct jail_attach_args *uap) +sys_jail_attach(struct jail_attach_args *uap) { struct thread *td = curthread; int error; diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c index 8e39da7585..bdd21c8125 100644 --- a/sys/kern/kern_ktrace.c +++ b/sys/kern/kern_ktrace.c @@ -32,7 +32,7 @@ * * @(#)kern_ktrace.c 8.2 (Berkeley) 9/23/93 * $FreeBSD: src/sys/kern/kern_ktrace.c,v 1.35.2.6 2002/07/05 22:36:38 darrenr Exp $ - * $DragonFly: src/sys/kern/kern_ktrace.c,v 1.26 2006/05/25 04:17:09 dillon Exp $ + * $DragonFly: src/sys/kern/kern_ktrace.c,v 1.27 2006/06/05 07:26:10 dillon Exp $ */ #include "opt_ktrace.h" @@ -221,7 +221,7 @@ static int ktrace_clear_callback(struct proc *p, void *data); #endif int -ktrace(struct ktrace_args *uap) +sys_ktrace(struct ktrace_args *uap) { #ifdef KTRACE struct ktrace_clear_info info; @@ -359,7 +359,7 @@ ktrace_clear_callback(struct proc *p, void *data) */ /* ARGSUSED */ int -utrace(struct utrace_args *uap) +sys_utrace(struct utrace_args *uap) { #ifdef KTRACE struct ktr_header *kth; diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c index 846d447faa..40399c429e 100644 --- a/sys/kern/kern_linker.c +++ b/sys/kern/kern_linker.c @@ -24,7 +24,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/kern/kern_linker.c,v 1.41.2.3 2001/11/21 17:50:35 luigi Exp $ - * $DragonFly: src/sys/kern/kern_linker.c,v 1.27 2006/05/05 20:15:01 dillon Exp $ + * $DragonFly: src/sys/kern/kern_linker.c,v 1.28 2006/06/05 07:26:10 dillon Exp $ */ #include "opt_ddb.h" @@ -699,7 +699,7 @@ linker_ddb_symbol_values(c_linker_sym_t sym, linker_symval_t *symval) */ int -kldload(struct kldload_args *uap) +sys_kldload(struct kldload_args *uap) { struct thread *td = curthread; char* filename = NULL, *modulename; @@ -742,7 +742,7 @@ out: } int -kldunload(struct kldunload_args *uap) +sys_kldunload(struct kldunload_args *uap) { struct thread *td = curthread; linker_file_t lf; @@ -774,7 +774,7 @@ out: } int -kldfind(struct kldfind_args *uap) +sys_kldfind(struct kldfind_args *uap) { char *filename = NULL, *modulename; linker_file_t lf; @@ -803,7 +803,7 @@ out: } int -kldnext(struct kldnext_args *uap) +sys_kldnext(struct kldnext_args *uap) { linker_file_t lf; int error = 0; @@ -829,7 +829,7 @@ kldnext(struct kldnext_args *uap) } int -kldstat(struct kldstat_args *uap) +sys_kldstat(struct kldstat_args *uap) { linker_file_t lf; int error = 0; @@ -876,7 +876,7 @@ out: } int -kldfirstmod(struct kldfirstmod_args *uap) +sys_kldfirstmod(struct kldfirstmod_args *uap) { linker_file_t lf; int error = 0; @@ -894,7 +894,7 @@ kldfirstmod(struct kldfirstmod_args *uap) } int -kldsym(struct kldsym_args *uap) +sys_kldsym(struct kldsym_args *uap) { char *symstr = NULL; c_linker_sym_t sym; diff --git a/sys/kern/kern_module.c b/sys/kern/kern_module.c index bd73858ffc..c1d23ba8ac 100644 --- a/sys/kern/kern_module.c +++ b/sys/kern/kern_module.c @@ -24,7 +24,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/kern/kern_module.c,v 1.21 1999/11/08 06:53:30 peter Exp $ - * $DragonFly: src/sys/kern/kern_module.c,v 1.9 2005/03/29 00:35:55 drhodus Exp $ + * $DragonFly: src/sys/kern/kern_module.c,v 1.10 2006/06/05 07:26:10 dillon Exp $ */ #include @@ -240,7 +240,7 @@ module_setspecific(module_t mod, modspecific_t *datap) * Syscalls. */ int -modnext(struct modnext_args *uap) +sys_modnext(struct modnext_args *uap) { module_t mod; @@ -266,7 +266,7 @@ modnext(struct modnext_args *uap) } int -modfnext(struct modfnext_args *uap) +sys_modfnext(struct modfnext_args *uap) { module_t mod; @@ -291,7 +291,7 @@ struct module_stat_v1 { }; int -modstat(struct modstat_args *uap) +sys_modstat(struct modstat_args *uap) { module_t mod; int error = 0; @@ -342,7 +342,7 @@ out: } int -modfind(struct modfind_args *uap) +sys_modfind(struct modfind_args *uap) { int error = 0; char name[MAXMODNAME]; diff --git a/sys/kern/kern_ntptime.c b/sys/kern/kern_ntptime.c index 1db7052aed..303be1ea88 100644 --- a/sys/kern/kern_ntptime.c +++ b/sys/kern/kern_ntptime.c @@ -29,7 +29,7 @@ * confusing and/or plain wrong in that context. * * $FreeBSD: src/sys/kern/kern_ntptime.c,v 1.32.2.2 2001/04/22 11:19:46 jhay Exp $ - * $DragonFly: src/sys/kern/kern_ntptime.c,v 1.11 2005/04/23 20:34:32 dillon Exp $ + * $DragonFly: src/sys/kern/kern_ntptime.c,v 1.12 2006/06/05 07:26:10 dillon Exp $ */ #include "opt_ntp.h" @@ -266,7 +266,7 @@ SYSCTL_OPAQUE(_kern_ntp_pll, OID_AUTO, time_freq, CTLFLAG_RD, &time_freq, sizeof * the time constant and to set the TAI offset. */ int -ntp_adjtime(struct ntp_adjtime_args *uap) +sys_ntp_adjtime(struct ntp_adjtime_args *uap) { struct thread *td = curthread; struct timex ntv; /* temporary structure */ diff --git a/sys/kern/kern_p1003_1b.c b/sys/kern/kern_p1003_1b.c index 596cff002d..b6f2207c24 100644 --- a/sys/kern/kern_p1003_1b.c +++ b/sys/kern/kern_p1003_1b.c @@ -30,7 +30,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/posix4/p1003_1b.c,v 1.5.2.2 2003/03/25 06:13:35 rwatson Exp $ - * $DragonFly: src/sys/kern/kern_p1003_1b.c,v 1.7 2003/11/27 19:11:17 dillon Exp $ + * $DragonFly: src/sys/kern/kern_p1003_1b.c,v 1.8 2006/06/05 07:26:10 dillon Exp $ */ /* p1003_1b: Real Time common code. @@ -169,7 +169,7 @@ static int sched_attach(void) } int -sched_setparam(struct sched_setparam_args *uap) +sys_sched_setparam(struct sched_setparam_args *uap) { struct proc *p = curproc; int e; @@ -185,7 +185,7 @@ sched_setparam(struct sched_setparam_args *uap) } int -sched_getparam(struct sched_getparam_args *uap) +sys_sched_getparam(struct sched_getparam_args *uap) { struct proc *p = curproc; struct proc *targetp; @@ -209,7 +209,7 @@ sched_getparam(struct sched_getparam_args *uap) } int -sched_setscheduler(struct sched_setscheduler_args *uap) +sys_sched_setscheduler(struct sched_setscheduler_args *uap) { struct proc *p = curproc; int e; @@ -225,7 +225,7 @@ sched_setscheduler(struct sched_setscheduler_args *uap) } int -sched_getscheduler(struct sched_getscheduler_args *uap) +sys_sched_getscheduler(struct sched_getscheduler_args *uap) { struct proc *p = curproc; struct proc *targetp; @@ -245,25 +245,25 @@ sched_getscheduler(struct sched_getscheduler_args *uap) } int -sched_yield(struct sched_yield_args *uap) +sys_sched_yield(struct sched_yield_args *uap) { return ksched_yield(&uap->sysmsg_result, ksched); } int -sched_get_priority_max(struct sched_get_priority_max_args *uap) +sys_sched_get_priority_max(struct sched_get_priority_max_args *uap) { return ksched_get_priority_max(&uap->sysmsg_result, ksched, uap->policy); } int -sched_get_priority_min(struct sched_get_priority_min_args *uap) +sys_sched_get_priority_min(struct sched_get_priority_min_args *uap) { return ksched_get_priority_min(&uap->sysmsg_result, ksched, uap->policy); } int -sched_rr_get_interval(struct sched_rr_get_interval_args *uap) +sys_sched_rr_get_interval(struct sched_rr_get_interval_args *uap) { int e; struct proc *p = curproc; diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index a7d527357b..42002ad09f 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -37,7 +37,7 @@ * * @(#)kern_prot.c 8.6 (Berkeley) 1/21/94 * $FreeBSD: src/sys/kern/kern_prot.c,v 1.53.2.9 2002/03/09 05:20:26 dd Exp $ - * $DragonFly: src/sys/kern/kern_prot.c,v 1.25 2006/05/26 15:55:12 dillon Exp $ + * $DragonFly: src/sys/kern/kern_prot.c,v 1.26 2006/06/05 07:26:10 dillon Exp $ */ /* @@ -70,7 +70,7 @@ static MALLOC_DEFINE(M_CRED, "cred", "credentials"); */ /* ARGSUSED */ int -getpid(struct getpid_args *uap) +sys_getpid(struct getpid_args *uap) { struct proc *p = curproc; @@ -83,7 +83,7 @@ getpid(struct getpid_args *uap) /* ARGSUSED */ int -getppid(struct getppid_args *uap) +sys_getppid(struct getppid_args *uap) { struct proc *p = curproc; @@ -97,7 +97,7 @@ getppid(struct getppid_args *uap) * MP SAFE */ int -getpgrp(struct getpgrp_args *uap) +sys_getpgrp(struct getpgrp_args *uap) { struct proc *p = curproc; @@ -109,7 +109,7 @@ getpgrp(struct getpgrp_args *uap) * Get an arbitary pid's process group id */ int -getpgid(struct getpgid_args *uap) +sys_getpgid(struct getpgid_args *uap) { struct proc *p = curproc; struct proc *pt; @@ -129,7 +129,7 @@ found: * Get an arbitary pid's session id. */ int -getsid(struct getsid_args *uap) +sys_getsid(struct getsid_args *uap) { struct proc *p = curproc; struct proc *pt; @@ -151,7 +151,7 @@ found: */ /* ARGSUSED */ int -getuid(struct getuid_args *uap) +sys_getuid(struct getuid_args *uap) { struct proc *p = curproc; @@ -167,7 +167,7 @@ getuid(struct getuid_args *uap) */ /* ARGSUSED */ int -geteuid(struct geteuid_args *uap) +sys_geteuid(struct geteuid_args *uap) { struct proc *p = curproc; @@ -180,7 +180,7 @@ geteuid(struct geteuid_args *uap) */ /* ARGSUSED */ int -getgid(struct getgid_args *uap) +sys_getgid(struct getgid_args *uap) { struct proc *p = curproc; @@ -200,7 +200,7 @@ getgid(struct getgid_args *uap) */ /* ARGSUSED */ int -getegid(struct getegid_args *uap) +sys_getegid(struct getegid_args *uap) { struct proc *p = curproc; @@ -209,7 +209,7 @@ getegid(struct getegid_args *uap) } int -getgroups(struct getgroups_args *uap) +sys_getgroups(struct getgroups_args *uap) { struct proc *p = curproc; struct ucred *cr; @@ -236,7 +236,7 @@ getgroups(struct getgroups_args *uap) /* ARGSUSED */ int -setsid(struct setsid_args *uap) +sys_setsid(struct setsid_args *uap) { struct proc *p = curproc; @@ -264,7 +264,7 @@ setsid(struct setsid_args *uap) */ /* ARGSUSED */ int -setpgid(struct setpgid_args *uap) +sys_setpgid(struct setpgid_args *uap) { struct proc *curp = curproc; struct proc *targp; /* target process */ @@ -306,7 +306,7 @@ setpgid(struct setpgid_args *uap) /* ARGSUSED */ int -setuid(struct setuid_args *uap) +sys_setuid(struct setuid_args *uap) { struct proc *p = curproc; struct ucred *cr; @@ -391,7 +391,7 @@ setuid(struct setuid_args *uap) /* ARGSUSED */ int -seteuid(struct seteuid_args *uap) +sys_seteuid(struct seteuid_args *uap) { struct proc *p = curproc; struct ucred *cr; @@ -420,7 +420,7 @@ seteuid(struct seteuid_args *uap) /* ARGSUSED */ int -setgid(struct setgid_args *uap) +sys_setgid(struct setgid_args *uap) { struct proc *p = curproc; struct ucred *cr; @@ -500,7 +500,7 @@ setgid(struct setgid_args *uap) /* ARGSUSED */ int -setegid(struct setegid_args *uap) +sys_setegid(struct setegid_args *uap) { struct proc *p = curproc; struct ucred *cr; @@ -526,7 +526,7 @@ setegid(struct setegid_args *uap) /* ARGSUSED */ int -setgroups(struct setgroups_args *uap) +sys_setgroups(struct setgroups_args *uap) { struct proc *p = curproc; struct ucred *cr; @@ -567,7 +567,7 @@ setgroups(struct setgroups_args *uap) /* ARGSUSED */ int -setreuid(struct setreuid_args *uap) +sys_setreuid(struct setreuid_args *uap) { struct proc *p = curproc; struct ucred *cr; @@ -605,7 +605,7 @@ setreuid(struct setreuid_args *uap) /* ARGSUSED */ int -setregid(struct setregid_args *uap) +sys_setregid(struct setregid_args *uap) { struct proc *p = curproc; struct ucred *cr; @@ -650,7 +650,7 @@ setregid(struct setregid_args *uap) /* ARGSUSED */ int -setresuid(struct setresuid_args *uap) +sys_setresuid(struct setresuid_args *uap) { struct proc *p = curproc; struct ucred *cr; @@ -692,7 +692,7 @@ setresuid(struct setresuid_args *uap) /* ARGSUSED */ int -setresgid(struct setresgid_args *uap) +sys_setresgid(struct setresgid_args *uap) { struct proc *p = curproc; struct ucred *cr; @@ -732,7 +732,7 @@ setresgid(struct setresgid_args *uap) /* ARGSUSED */ int -getresuid(struct getresuid_args *uap) +sys_getresuid(struct getresuid_args *uap) { struct proc *p = curproc; struct ucred *cr = p->p_ucred; @@ -752,7 +752,7 @@ getresuid(struct getresuid_args *uap) /* ARGSUSED */ int -getresgid(struct getresgid_args *uap) +sys_getresgid(struct getresgid_args *uap) { struct proc *p = curproc; struct ucred *cr = p->p_ucred; @@ -773,7 +773,7 @@ getresgid(struct getresgid_args *uap) /* ARGSUSED */ int -issetugid(struct issetugid_args *uap) +sys_issetugid(struct issetugid_args *uap) { struct proc *p = curproc; /* @@ -1064,7 +1064,7 @@ cru2x(struct ucred *cr, struct xucred *xcr) */ /* ARGSUSED */ int -getlogin(struct getlogin_args *uap) +sys_getlogin(struct getlogin_args *uap) { struct proc *p = curproc; @@ -1079,7 +1079,7 @@ getlogin(struct getlogin_args *uap) */ /* ARGSUSED */ int -setlogin(struct setlogin_args *uap) +sys_setlogin(struct setlogin_args *uap) { struct proc *p = curproc; int error; diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index e0add34ef4..0c8cd4815c 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -37,7 +37,7 @@ * * @(#)kern_resource.c 8.5 (Berkeley) 1/21/94 * $FreeBSD: src/sys/kern/kern_resource.c,v 1.55.2.5 2001/11/03 01:41:08 ps Exp $ - * $DragonFly: src/sys/kern/kern_resource.c,v 1.27 2006/05/25 07:36:34 dillon Exp $ + * $DragonFly: src/sys/kern/kern_resource.c,v 1.28 2006/06/05 07:26:10 dillon Exp $ */ #include "opt_compat.h" @@ -84,7 +84,7 @@ struct getpriority_info { static int getpriority_callback(struct proc *p, void *data); int -getpriority(struct getpriority_args *uap) +sys_getpriority(struct getpriority_args *uap) { struct getpriority_info info; struct proc *curp = curproc; @@ -164,7 +164,7 @@ struct setpriority_info { static int setpriority_callback(struct proc *p, void *data); int -setpriority(struct setpriority_args *uap) +sys_setpriority(struct setpriority_args *uap) { struct setpriority_info info; struct proc *curp = curproc; @@ -264,7 +264,7 @@ donice(struct proc *chgp, int n) */ /* ARGSUSED */ int -rtprio(struct rtprio_args *uap) +sys_rtprio(struct rtprio_args *uap) { struct proc *curp = curproc; struct proc *p; @@ -329,7 +329,7 @@ rtprio(struct rtprio_args *uap) } int -setrlimit(struct __setrlimit_args *uap) +sys_setrlimit(struct __setrlimit_args *uap) { struct rlimit alim; int error; @@ -344,7 +344,7 @@ setrlimit(struct __setrlimit_args *uap) } int -getrlimit(struct __getrlimit_args *uap) +sys_getrlimit(struct __getrlimit_args *uap) { struct rlimit lim; int error; @@ -389,7 +389,7 @@ calcru(struct proc *p, struct timeval *up, struct timeval *sp, /* ARGSUSED */ int -getrusage(struct getrusage_args *uap) +sys_getrusage(struct getrusage_args *uap) { struct proc *p = curproc; struct rusage *rup; diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c index 55a6ef6ed0..00bb106e7e 100644 --- a/sys/kern/kern_shutdown.c +++ b/sys/kern/kern_shutdown.c @@ -37,7 +37,7 @@ * * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94 * $FreeBSD: src/sys/kern/kern_shutdown.c,v 1.72.2.12 2002/02/21 19:15:10 dillon Exp $ - * $DragonFly: src/sys/kern/kern_shutdown.c,v 1.29 2006/04/28 16:06:50 dillon Exp $ + * $DragonFly: src/sys/kern/kern_shutdown.c,v 1.30 2006/06/05 07:26:10 dillon Exp $ */ #include "opt_ddb.h" @@ -163,7 +163,7 @@ SYSINIT(shutdown_conf, SI_SUB_INTRINSIC, SI_ORDER_ANY, shutdown_conf, NULL) * The system call that results in a reboot */ int -reboot(struct reboot_args *uap) +sys_reboot(struct reboot_args *uap) { struct thread *td = curthread; int error; @@ -271,7 +271,7 @@ boot(int howto) waittime = 0; printf("\nsyncing disks... "); - sync(NULL); /* YYY was sync(&proc0, NULL). why proc0 ? */ + sys_sync(NULL); /* YYY was sync(&proc0, NULL). why proc0 ? */ /* * With soft updates, some buffers that are @@ -293,7 +293,7 @@ boot(int howto) */ if (iter > 5 && bioops.io_sync) (*bioops.io_sync)(NULL); - sync(NULL); /* YYY was sync(&proc0, NULL). why proc0 ? */ + sys_sync(NULL); /* YYY was sync(&proc0, NULL). why proc0 ? */ tsleep(boot, 0, "shutdn", hz * iter / 20 + 1); } printf("\n"); diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index e41662b0f1..9abf43bbc0 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -37,7 +37,7 @@ * * @(#)kern_sig.c 8.7 (Berkeley) 4/18/94 * $FreeBSD: src/sys/kern/kern_sig.c,v 1.72.2.17 2003/05/16 16:34:34 obrien Exp $ - * $DragonFly: src/sys/kern/kern_sig.c,v 1.49 2006/05/25 07:36:34 dillon Exp $ + * $DragonFly: src/sys/kern/kern_sig.c,v 1.50 2006/06/05 07:26:10 dillon Exp $ */ #include "opt_ktrace.h" @@ -337,7 +337,7 @@ kern_sigaction(int sig, struct sigaction *act, struct sigaction *oact) } int -sigaction(struct sigaction_args *uap) +sys_sigaction(struct sigaction_args *uap) { struct sigaction act, oact; struct sigaction *actp, *oactp; @@ -451,7 +451,7 @@ kern_sigprocmask(int how, sigset_t *set, sigset_t *oset) * sigprocmask() - MP SAFE */ int -sigprocmask(struct sigprocmask_args *uap) +sys_sigprocmask(struct sigprocmask_args *uap) { sigset_t set, oset; sigset_t *setp, *osetp; @@ -483,7 +483,7 @@ kern_sigpending(struct __sigset *set) } int -sigpending(struct sigpending_args *uap) +sys_sigpending(struct sigpending_args *uap) { sigset_t set; int error; @@ -529,7 +529,7 @@ kern_sigsuspend(struct __sigset *set) * pointer, to save a copyin. */ int -sigsuspend(struct sigsuspend_args *uap) +sys_sigsuspend(struct sigsuspend_args *uap) { sigset_t mask; int error; @@ -573,7 +573,7 @@ kern_sigaltstack(struct sigaltstack *ss, struct sigaltstack *oss) } int -sigaltstack(struct sigaltstack_args *uap) +sys_sigaltstack(struct sigaltstack_args *uap) { stack_t ss, oss; int error; @@ -689,7 +689,7 @@ kern_kill(int sig, int pid) } int -kill(struct kill_args *uap) +sys_kill(struct kill_args *uap) { int error; @@ -1169,7 +1169,7 @@ kern_sigtimedwait(sigset_t waitset, siginfo_t *info, struct timespec *timeout) } int -sigtimedwait(struct sigtimedwait_args *uap) +sys_sigtimedwait(struct sigtimedwait_args *uap) { struct timespec ts; struct timespec *timeout; @@ -1202,7 +1202,7 @@ sigtimedwait(struct sigtimedwait_args *uap) } int -sigwaitinfo(struct sigwaitinfo_args *uap) +sys_sigwaitinfo(struct sigwaitinfo_args *uap) { siginfo_t info; sigset_t set; @@ -1727,7 +1727,7 @@ out2: */ /* ARGSUSED */ int -nosys(struct nosys_args *args) +sys_nosys(struct nosys_args *args) { psignal(curproc, SIGSYS); return (EINVAL); diff --git a/sys/kern/kern_syscalls.c b/sys/kern/kern_syscalls.c index 2b020c58ef..f972692316 100644 --- a/sys/kern/kern_syscalls.c +++ b/sys/kern/kern_syscalls.c @@ -24,7 +24,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/kern/kern_syscalls.c,v 1.6 1999/10/11 15:19:10 peter Exp $ - * $DragonFly: src/sys/kern/kern_syscalls.c,v 1.3 2003/06/23 17:55:41 dillon Exp $ + * $DragonFly: src/sys/kern/kern_syscalls.c,v 1.4 2006/06/05 07:26:10 dillon Exp $ */ #include @@ -40,9 +40,9 @@ * Place holder for system call slots reserved for loadable modules. */ int -lkmnosys(struct nosys_args *args) +sys_lkmnosys(struct nosys_args *args) { - return(nosys(args)); + return(sys_nosys(args)); } int @@ -53,14 +53,14 @@ syscall_register(int *offset, struct sysent *new_sysent, int i; for (i = 1; i < SYS_MAXSYSCALL; ++i) - if (sysent[i].sy_call == (sy_call_t *)lkmnosys) + if (sysent[i].sy_call == (sy_call_t *)sys_lkmnosys) break; if (i == SYS_MAXSYSCALL) return ENFILE; *offset = i; } else if (*offset < 0 || *offset >= SYS_MAXSYSCALL) return EINVAL; - else if (sysent[*offset].sy_call != (sy_call_t *)lkmnosys) + else if (sysent[*offset].sy_call != (sy_call_t *)sys_lkmnosys) return EEXIST; *old_sysent = sysent[*offset]; diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index ec7c3604b0..952098209d 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -38,7 +38,7 @@ * * @(#)kern_sysctl.c 8.4 (Berkeley) 4/14/94 * $FreeBSD: src/sys/kern/kern_sysctl.c,v 1.92.2.9 2003/05/01 22:48:09 trhodes Exp $ - * $DragonFly: src/sys/kern/kern_sysctl.c,v 1.21 2006/05/05 20:15:01 dillon Exp $ + * $DragonFly: src/sys/kern/kern_sysctl.c,v 1.22 2006/06/05 07:26:10 dillon Exp $ */ #include @@ -1196,7 +1196,7 @@ sysctl_root(SYSCTL_HANDLER_ARGS) } int -__sysctl(struct sysctl_args *uap) +sys___sysctl(struct sysctl_args *uap) { int error, i, name[CTL_MAXNAME]; size_t j; diff --git a/sys/kern/kern_threads.c b/sys/kern/kern_threads.c index 21a24e6f5c..7adfbc1027 100644 --- a/sys/kern/kern_threads.c +++ b/sys/kern/kern_threads.c @@ -47,7 +47,7 @@ * and I certainly make no claims as to its fitness for *any* purpose. * * $FreeBSD: src/sys/kern/kern_threads.c,v 1.15 1999/08/28 00:46:15 peter Exp $ - * $DragonFly: src/sys/kern/kern_threads.c,v 1.8 2004/01/07 11:04:18 dillon Exp $ + * $DragonFly: src/sys/kern/kern_threads.c,v 1.9 2006/06/05 07:26:10 dillon Exp $ */ #include @@ -70,7 +70,7 @@ * returns time waiting in ticks. */ int -thr_sleep(struct thr_sleep_args *uap) +sys_thr_sleep(struct thr_sleep_args *uap) { struct proc *p = curproc; int sleepstart; @@ -118,7 +118,7 @@ thr_sleep(struct thr_sleep_args *uap) } int -thr_wakeup(struct thr_wakeup_args *uap) +sys_thr_wakeup(struct thr_wakeup_args *uap) { struct proc *p = curproc; struct proc *pSlave = p->p_leader; @@ -145,7 +145,7 @@ thr_wakeup(struct thr_wakeup_args *uap) * General purpose yield system call */ int -yield(struct yield_args *uap) +sys_yield(struct yield_args *uap) { uap->sysmsg_result = 0; uio_yield(); diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c index fd6d995f40..5e085e523a 100644 --- a/sys/kern/kern_time.c +++ b/sys/kern/kern_time.c @@ -32,7 +32,7 @@ * * @(#)kern_time.c 8.1 (Berkeley) 6/10/93 * $FreeBSD: src/sys/kern/kern_time.c,v 1.68.2.1 2002/10/01 08:00:41 bde Exp $ - * $DragonFly: src/sys/kern/kern_time.c,v 1.33 2006/03/27 16:18:34 dillon Exp $ + * $DragonFly: src/sys/kern/kern_time.c,v 1.34 2006/06/05 07:26:10 dillon Exp $ */ #include @@ -142,7 +142,7 @@ settime(tv) /* ARGSUSED */ int -clock_gettime(struct clock_gettime_args *uap) +sys_clock_gettime(struct clock_gettime_args *uap) { struct timespec ats; @@ -160,7 +160,7 @@ clock_gettime(struct clock_gettime_args *uap) /* ARGSUSED */ int -clock_settime(struct clock_settime_args *uap) +sys_clock_settime(struct clock_settime_args *uap) { struct thread *td = curthread; struct timeval atv; @@ -185,7 +185,7 @@ clock_settime(struct clock_settime_args *uap) } int -clock_getres(struct clock_getres_args *uap) +sys_clock_getres(struct clock_getres_args *uap) { struct timespec ts; @@ -301,7 +301,7 @@ static void nanosleep_copyout(union sysunion *sysun); /* ARGSUSED */ int -nanosleep(struct nanosleep_args *uap) +sys_nanosleep(struct nanosleep_args *uap) { int error; struct sysmsg_sleep *smsleep = &uap->sysmsg.sm.sleep; @@ -381,7 +381,7 @@ nanosleep_copyout(union sysunion *sysun) /* ARGSUSED */ int -gettimeofday(struct gettimeofday_args *uap) +sys_gettimeofday(struct gettimeofday_args *uap) { struct timeval atv; int error = 0; @@ -400,7 +400,7 @@ gettimeofday(struct gettimeofday_args *uap) /* ARGSUSED */ int -settimeofday(struct settimeofday_args *uap) +sys_settimeofday(struct settimeofday_args *uap) { struct thread *td = curthread; struct timeval atv; @@ -512,7 +512,7 @@ kern_adjfreq(int64_t rate) /* ARGSUSED */ int -adjtime(struct adjtime_args *uap) +sys_adjtime(struct adjtime_args *uap) { struct thread *td = curthread; struct timeval atv; @@ -667,7 +667,7 @@ SYSCTL_PROC(_kern_ntp, OID_AUTO, adjust, */ /* ARGSUSED */ int -getitimer(struct getitimer_args *uap) +sys_getitimer(struct getitimer_args *uap) { struct proc *p = curproc; struct timeval ctv; @@ -701,7 +701,7 @@ getitimer(struct getitimer_args *uap) /* ARGSUSED */ int -setitimer(struct setitimer_args *uap) +sys_setitimer(struct setitimer_args *uap) { struct itimerval aitv; struct timeval ctv; @@ -716,7 +716,7 @@ setitimer(struct setitimer_args *uap) sizeof(struct itimerval)))) return (error); if ((uap->itv = uap->oitv) && - (error = getitimer((struct getitimer_args *)uap))) + (error = sys_getitimer((struct getitimer_args *)uap))) return (error); if (itvp == 0) return (0); diff --git a/sys/kern/kern_umtx.c b/sys/kern/kern_umtx.c index 9be9ec17a9..1597e4b06d 100644 --- a/sys/kern/kern_umtx.c +++ b/sys/kern/kern_umtx.c @@ -31,7 +31,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/kern/kern_umtx.c,v 1.4 2005/06/03 23:57:32 dillon Exp $ + * $DragonFly: src/sys/kern/kern_umtx.c,v 1.5 2006/06/05 07:26:10 dillon Exp $ */ /* @@ -87,7 +87,7 @@ * umtx_sleep { const int *ptr, int value, int timeout } */ int -umtx_sleep(struct umtx_sleep_args *uap) +sys_umtx_sleep(struct umtx_sleep_args *uap) { int error = EBUSY; vm_paddr_t pa; @@ -130,7 +130,7 @@ umtx_sleep(struct umtx_sleep_args *uap) * address space. */ int -umtx_wakeup(struct umtx_wakeup_args *uap) +sys_umtx_wakeup(struct umtx_wakeup_args *uap) { vm_paddr_t pa; void *waddr; diff --git a/sys/kern/kern_upcall.c b/sys/kern/kern_upcall.c index 168feed5be..3c32d4dc84 100644 --- a/sys/kern/kern_upcall.c +++ b/sys/kern/kern_upcall.c @@ -31,7 +31,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/kern/kern_upcall.c,v 1.8 2005/10/11 09:59:56 corecode Exp $ + * $DragonFly: src/sys/kern/kern_upcall.c,v 1.9 2006/06/05 07:26:10 dillon Exp $ */ /* @@ -81,7 +81,7 @@ sigupcall_remote(void *arg) * ARGS(struct upcall *upc, upcall_func_t ctx, upcall_func_t func, void *data) */ int -upc_register(struct upc_register_args *uap) +sys_upc_register(struct upc_register_args *uap) { struct lwp *lp = curthread->td_lwp; struct vmspace *vm = curproc->p_vmspace; @@ -114,7 +114,7 @@ upc_register(struct upc_register_args *uap) * ARGS(int cmd, int upcid, void *data) */ int -upc_control(struct upc_control_args *uap) +sys_upc_control(struct upc_control_args *uap) { struct lwp *lp = curthread->td_lwp; struct lwp *targlp; diff --git a/sys/kern/kern_usched.c b/sys/kern/kern_usched.c index 7f401ba534..e683e46c40 100644 --- a/sys/kern/kern_usched.c +++ b/sys/kern/kern_usched.c @@ -31,7 +31,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/kern/kern_usched.c,v 1.4 2006/06/05 00:32:37 davidxu Exp $ + * $DragonFly: src/sys/kern/kern_usched.c,v 1.5 2006/06/05 07:26:10 dillon Exp $ */ #include @@ -150,7 +150,7 @@ usched_ctl(struct usched *usched, int action) * EINVAL - error */ int -usched_set(struct usched_set_args *uap) +sys_usched_set(struct usched_set_args *uap) { struct proc *p = curthread->td_proc; struct usched *item; /* temporaly for TAILQ processing */ diff --git a/sys/kern/kern_varsym.c b/sys/kern/kern_varsym.c index 36e6503362..8a96c77f3b 100644 --- a/sys/kern/kern_varsym.c +++ b/sys/kern/kern_varsym.c @@ -31,7 +31,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/kern/kern_varsym.c,v 1.6 2005/01/14 02:25:08 joerg Exp $ + * $DragonFly: src/sys/kern/kern_varsym.c,v 1.7 2006/06/05 07:26:10 dillon Exp $ */ /* @@ -129,7 +129,7 @@ varsymreplace(char *cp, int linklen, int maxlen) * (int level, const char *name, const char *data) */ int -varsym_set(struct varsym_set_args *uap) +sys_varsym_set(struct varsym_set_args *uap) { char name[MAXVARSYM_NAME]; char *buf; @@ -176,7 +176,7 @@ done2: * (int mask, const char *wild, char *buf, int bufsize) */ int -varsym_get(struct varsym_get_args *uap) +sys_varsym_get(struct varsym_get_args *uap) { char wild[MAXVARSYM_NAME]; varsym_t sym; @@ -208,7 +208,7 @@ done: * (int level, char *buf, int maxsize, int *marker) */ int -varsym_list(struct varsym_list_args *uap) +sys_varsym_list(struct varsym_list_args *uap) { struct varsymset *vss; struct varsyment *ve; diff --git a/sys/kern/kern_xxx.c b/sys/kern/kern_xxx.c index 91d7bd29a5..ebbed0692b 100644 --- a/sys/kern/kern_xxx.c +++ b/sys/kern/kern_xxx.c @@ -32,7 +32,7 @@ * * @(#)kern_xxx.c 8.2 (Berkeley) 11/14/93 * $FreeBSD: src/sys/kern/kern_xxx.c,v 1.31 1999/08/28 00:46:15 peter Exp $ - * $DragonFly: src/sys/kern/kern_xxx.c,v 1.9 2006/03/23 15:21:41 drhodus Exp $ + * $DragonFly: src/sys/kern/kern_xxx.c,v 1.10 2006/06/05 07:26:10 dillon Exp $ */ #include @@ -46,7 +46,7 @@ /* ARGSUSED */ /* MP SAFE */ int -uname(struct uname_args *uap) +sys_uname(struct uname_args *uap) { int name[2], rtval; size_t len; @@ -110,7 +110,7 @@ uname(struct uname_args *uap) /* ARGSUSED */ int -getdomainname(struct getdomainname_args *uap) +sys_getdomainname(struct getdomainname_args *uap) { int domainnamelen = strlen(domainname) + 1; if ((u_int)uap->len > domainnamelen + 1) @@ -120,7 +120,7 @@ getdomainname(struct getdomainname_args *uap) /* ARGSUSED */ int -setdomainname(struct setdomainname_args *uap) +sys_setdomainname(struct setdomainname_args *uap) { struct thread *td = curthread; int error, domainnamelen; diff --git a/sys/kern/lwkt_caps.c b/sys/kern/lwkt_caps.c index 648247ce2c..1bed8a9922 100644 --- a/sys/kern/lwkt_caps.c +++ b/sys/kern/lwkt_caps.c @@ -31,7 +31,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/kern/lwkt_caps.c,v 1.6 2005/03/01 23:35:13 dillon Exp $ + * $DragonFly: src/sys/kern/lwkt_caps.c,v 1.7 2006/06/05 07:26:10 dillon Exp $ */ /* @@ -573,7 +573,7 @@ caps_exit(struct thread *td) * upcid can either be an upcall or a kqueue identifier (XXX) */ int -caps_sys_service(struct caps_sys_service_args *uap) +sys_caps_sys_service(struct caps_sys_service_args *uap) { struct ucred *cred = curproc->p_ucred; char name[CAPS_MAXNAMELEN]; @@ -607,7 +607,7 @@ caps_sys_service(struct caps_sys_service_args *uap) * upcid can either be an upcall or a kqueue identifier (XXX) */ int -caps_sys_client(struct caps_sys_client_args *uap) +sys_caps_sys_client(struct caps_sys_client_args *uap) { struct ucred *cred = curproc->p_ucred; char name[CAPS_MAXNAMELEN]; @@ -632,7 +632,7 @@ caps_sys_client(struct caps_sys_client_args *uap) } int -caps_sys_close(struct caps_sys_close_args *uap) +sys_caps_sys_close(struct caps_sys_close_args *uap) { caps_kinfo_t caps; @@ -644,7 +644,7 @@ caps_sys_close(struct caps_sys_close_args *uap) } int -caps_sys_setgen(struct caps_sys_setgen_args *uap) +sys_caps_sys_setgen(struct caps_sys_setgen_args *uap) { caps_kinfo_t caps; int error; @@ -662,7 +662,7 @@ caps_sys_setgen(struct caps_sys_setgen_args *uap) } int -caps_sys_getgen(struct caps_sys_getgen_args *uap) +sys_caps_sys_getgen(struct caps_sys_getgen_args *uap) { caps_kinfo_t caps; int error; @@ -688,7 +688,7 @@ caps_sys_getgen(struct caps_sys_getgen_args *uap) * function may only be used with a client port. The message id is returned. */ int -caps_sys_put(struct caps_sys_put_args *uap) +sys_caps_sys_put(struct caps_sys_put_args *uap) { caps_kinfo_t caps; caps_kmsg_t msg; @@ -748,7 +748,7 @@ caps_sys_put(struct caps_sys_put_args *uap) * data back to the originator. */ int -caps_sys_reply(struct caps_sys_reply_args *uap) +sys_caps_sys_reply(struct caps_sys_reply_args *uap) { caps_kinfo_t caps; caps_kinfo_t rcaps; @@ -813,7 +813,7 @@ caps_sys_reply(struct caps_sys_reply_args *uap) * messages are perfectly acceptable so 0 can be legitimately returned. */ int -caps_sys_get(struct caps_sys_get_args *uap) +sys_caps_sys_get(struct caps_sys_get_args *uap) { caps_kinfo_t caps; caps_kmsg_t msg; @@ -849,7 +849,7 @@ caps_sys_get(struct caps_sys_get_args *uap) * legitimately returned. */ int -caps_sys_wait(struct caps_sys_wait_args *uap) +sys_caps_sys_wait(struct caps_sys_wait_args *uap) { caps_kinfo_t caps; caps_kmsg_t msg; @@ -949,7 +949,7 @@ caps_process_msg(caps_kinfo_t caps, caps_kmsg_t msg, struct caps_sys_get_args *u * to do. */ int -caps_sys_abort(struct caps_sys_abort_args *uap) +sys_caps_sys_abort(struct caps_sys_abort_args *uap) { uap->sysmsg_result = CAPS_ABORT_NOTIMPL; return(0); diff --git a/sys/kern/makesyscalls.sh b/sys/kern/makesyscalls.sh index 577c7d19c3..c98a14008a 100644 --- a/sys/kern/makesyscalls.sh +++ b/sys/kern/makesyscalls.sh @@ -1,7 +1,7 @@ #! /bin/sh - # @(#)makesyscalls.sh 8.1 (Berkeley) 6/10/93 # $FreeBSD: src/sys/kern/makesyscalls.sh,v 1.39.2.4 2001/10/20 09:01:24 marcel Exp $ -# $DragonFly: src/sys/kern/makesyscalls.sh,v 1.12 2005/08/02 13:03:55 joerg Exp $ +# $DragonFly: src/sys/kern/makesyscalls.sh,v 1.13 2006/06/05 07:26:10 dillon Exp $ set -e @@ -266,11 +266,11 @@ s/\$//g argalias = funcname "_args" if ($2 == "COMPAT") { argalias = "o" argalias - usefuncname = "o" funcname + usefuncname = "sys_o" funcname } if ($2 == "COMPAT_DF12") { argalias = "dfbsd12_" argalias - usefuncname = "dfbsd12_" funcname + usefuncname = "sys_dfbsd12_" funcname } } f++ @@ -351,7 +351,7 @@ s/\$//g (funcname != "nosys" || !nosys)) || \ (funcname == "lkmnosys" && !lkmnosys) || \ funcname == "lkmressys") { - printf("%s\t%s (struct %s *)", + printf("%s\tsys_%s (struct %s *)", rettype, funcname, argalias) > sysdcl printf(";\n") > sysdcl } @@ -362,11 +362,11 @@ s/\$//g printf("\t{ %s%s, (sy_call_t *)", mpsafe, argssize) > sysent column = 8 + 2 + length(mpsafe) + length(argssize) + 15 if ($2 != "NOIMPL") { - printf("%s },", funcname) > sysent - column = column + length(funcname) + 3 + printf("sys_%s },", funcname) > sysent + column = column + length(funcname) + 7 } else { - printf("%s },", "nosys") > sysent - column = column + length("nosys") + 3 + printf("sys_%s },", "nosys") > sysent + column = column + length("nosys") + 7 } align_sysent_comment(column) printf("/* %d = %s */\n", syscall, funcalias) > sysent @@ -414,7 +414,7 @@ s/\$//g printf("\tregister_t dummy;\n") > sysarg printf("};\n") > sysarg } - printf("%s\to%s (struct %s *);\n", + printf("%s\tsys_o%s (struct %s *);\n", rettype, funcname, argalias) > syscompatdcl printf("\t{ compat(%s%s,%s) },", mpsafe, argssize, funcname) > sysent @@ -458,7 +458,7 @@ s/\$//g printf("\tregister_t dummy;\n") > sysarg printf("};\n") > sysarg } - printf("%s\tdfbsd12_%s (struct %s *);\n", + printf("%s\tsys_dfbsd12_%s (struct %s *);\n", rettype, funcname, argalias) > syscompatdcldf12 printf("\t{ compatdf12(%s%s,%s) },", mpsafe, argssize, funcname) > sysent @@ -477,7 +477,7 @@ s/\$//g $2 == "LIBCOMPAT" { ncompat++ parseline() - printf("%s\to%s();\n", rettype, funcname) > syscompatdcl + printf("%s\tsys_o%s();\n", rettype, funcname) > syscompatdcl printf("\t{ compat(%s%s,%s) },", mpsafe, argssize, funcname) > sysent align_sysent_comment(8 + 9 + length(mpsafe) + \ @@ -498,8 +498,8 @@ s/\$//g next } $2 == "OBSOL" { - printf("\t{ 0, (sy_call_t *)nosys },") > sysent - align_sysent_comment(34) + printf("\t{ 0, (sy_call_t *)sys_nosys },") > sysent + align_sysent_comment(37) printf("/* %d = obsolete %s */\n", syscall, comment) > sysent printf("\t\"obs_%s\",\t\t\t/* %d = obsolete %s */\n", $4, syscall, comment) > sysnames @@ -511,7 +511,7 @@ s/\$//g next } $2 == "UNIMPL" { - printf("\t{ 0, (sy_call_t *)nosys },\t\t\t/* %d = %s */\n", + printf("\t{ 0, (sy_call_t *)sys_nosys },\t\t\t/* %d = %s */\n", syscall, comment) > sysent printf("\t\"#%d\",\t\t\t/* %d = %s */\n", syscall, syscall, comment) > sysnames @@ -529,18 +529,18 @@ s/\$//g if (ncompat != 0) { printf "#include \"opt_compat.h\"\n\n" > syssw printf "\n#ifdef %s\n", compat > sysinc - printf "#define compat(n, name) n, (sy_call_t *)__CONCAT(o,name)\n" > sysinc + printf "#define compat(n, name) n, (sy_call_t *)__CONCAT(sys_,__CONCAT(o,name))\n" > sysinc printf "#else\n" > sysinc - printf "#define compat(n, name) 0, (sy_call_t *)nosys\n" > sysinc + printf "#define compat(n, name) 0, (sy_call_t *)sys_nosys\n" > sysinc printf "#endif\n" > sysinc } if (ncompatdf12 != 0) { printf "#include \"opt_compatdf12.h\"\n\n" > syssw printf "\n#ifdef %s\n", compatdf12 > sysinc - printf "#define compatdf12(n, name) n, (sy_call_t *)__CONCAT(dfbsd12_,name)\n" > sysinc + printf "#define compatdf12(n, name) n, (sy_call_t *)__CONCAT(sys_,__CONCAT(dfbsd12_,name))\n" > sysinc printf "#else\n" > sysinc - printf "#define compatdf12(n, name) 0, (sy_call_t *)nosys\n" > sysinc + printf "#define compatdf12(n, name) 0, (sy_call_t *)sys_nosys\n" > sysinc printf "#endif\n" > sysinc } diff --git a/sys/kern/subr_prof.c b/sys/kern/subr_prof.c index 677700aadf..70e90da7f2 100644 --- a/sys/kern/subr_prof.c +++ b/sys/kern/subr_prof.c @@ -32,7 +32,7 @@ * * @(#)subr_prof.c 8.3 (Berkeley) 9/23/93 * $FreeBSD: src/sys/kern/subr_prof.c,v 1.32.2.2 2000/08/03 00:09:32 ps Exp $ - * $DragonFly: src/sys/kern/subr_prof.c,v 1.11 2005/10/08 12:24:26 corecode Exp $ + * $DragonFly: src/sys/kern/subr_prof.c,v 1.12 2006/06/05 07:26:10 dillon Exp $ */ #include @@ -345,7 +345,7 @@ SYSCTL_NODE(_kern, KERN_PROF, prof, CTLFLAG_RW, sysctl_kern_prof, ""); */ /* ARGSUSED */ int -profil(struct profil_args *uap) +sys_profil(struct profil_args *uap) { struct proc *p = curproc; struct uprof *upp; diff --git a/sys/kern/sys_generic.c b/sys/kern/sys_generic.c index 6b2163376d..d4a767a572 100644 --- a/sys/kern/sys_generic.c +++ b/sys/kern/sys_generic.c @@ -37,7 +37,7 @@ * * @(#)sys_generic.c 8.5 (Berkeley) 1/21/94 * $FreeBSD: src/sys/kern/sys_generic.c,v 1.55.2.10 2001/03/17 10:39:32 peter Exp $ - * $DragonFly: src/sys/kern/sys_generic.c,v 1.31 2006/05/27 20:17:16 dillon Exp $ + * $DragonFly: src/sys/kern/sys_generic.c,v 1.32 2006/06/05 07:26:10 dillon Exp $ */ #include "opt_ktrace.h" @@ -89,7 +89,7 @@ static int dofilewrite(int, struct file *, struct uio *, int, int *); * MPSAFE */ int -read(struct read_args *uap) +sys_read(struct read_args *uap) { struct thread *td = curthread; struct uio auio; @@ -119,7 +119,7 @@ read(struct read_args *uap) * MPSAFE */ int -pread(struct pread_args *uap) +sys_pread(struct pread_args *uap) { struct thread *td = curthread; struct uio auio; @@ -149,7 +149,7 @@ pread(struct pread_args *uap) * MPSAFE */ int -readv(struct readv_args *uap) +sys_readv(struct readv_args *uap) { struct thread *td = curthread; struct uio auio; @@ -180,7 +180,7 @@ readv(struct readv_args *uap) * MPSAFE */ int -preadv(struct preadv_args *uap) +sys_preadv(struct preadv_args *uap) { struct thread *td = curthread; struct uio auio; @@ -292,7 +292,7 @@ dofileread(int fd, struct file *fp, struct uio *auio, int flags, int *res) * MPSAFE */ int -write(struct write_args *uap) +sys_write(struct write_args *uap) { struct thread *td = curthread; struct uio auio; @@ -323,7 +323,7 @@ write(struct write_args *uap) * MPSAFE */ int -pwrite(struct pwrite_args *uap) +sys_pwrite(struct pwrite_args *uap) { struct thread *td = curthread; struct uio auio; @@ -352,7 +352,7 @@ pwrite(struct pwrite_args *uap) * MPSAFE */ int -writev(struct writev_args *uap) +sys_writev(struct writev_args *uap) { struct thread *td = curthread; struct uio auio; @@ -383,7 +383,7 @@ writev(struct writev_args *uap) * MPSAFE */ int -pwritev(struct pwritev_args *uap) +sys_pwritev(struct pwritev_args *uap) { struct thread *td = curthread; struct uio auio; @@ -501,7 +501,7 @@ dofilewrite(int fd, struct file *fp, struct uio *auio, int flags, int *res) */ /* ARGSUSED */ int -ioctl(struct ioctl_args *uap) +sys_ioctl(struct ioctl_args *uap) { return(mapped_ioctl(uap->fd, uap->com, uap->data, NULL)); } @@ -738,7 +738,7 @@ SYSCTL_INT(_kern, OID_AUTO, nselcoll, CTLFLAG_RD, &nselcoll, 0, ""); * Select system call. */ int -select(struct select_args *uap) +sys_select(struct select_args *uap) { struct proc *p = curproc; @@ -908,7 +908,7 @@ selscan(struct proc *p, fd_mask **ibits, fd_mask **obits, int nfd, int *res) * Poll system call. */ int -poll(struct poll_args *uap) +sys_poll(struct poll_args *uap) { struct pollfd *bits; struct pollfd smallbits[32]; @@ -1033,9 +1033,9 @@ pollscan(struct proc *p, struct pollfd *fds, u_int nfd, int *res) * XXX this isn't quite a true representation.. OpenBSD uses select ops. */ int -openbsd_poll(struct openbsd_poll_args *uap) +sys_openbsd_poll(struct openbsd_poll_args *uap) { - return (poll((struct poll_args *)uap)); + return (sys_poll((struct poll_args *)uap)); } /*ARGSUSED*/ diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index a3b9a4a85d..332d5024dd 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -17,7 +17,7 @@ * are met. * * $FreeBSD: src/sys/kern/sys_pipe.c,v 1.60.2.13 2002/08/05 15:05:15 des Exp $ - * $DragonFly: src/sys/kern/sys_pipe.c,v 1.37 2006/05/26 00:33:09 dillon Exp $ + * $DragonFly: src/sys/kern/sys_pipe.c,v 1.38 2006/06/05 07:26:10 dillon Exp $ */ /* @@ -197,7 +197,7 @@ static int pipespace (struct pipe *cpipe, int size); /* ARGSUSED */ int -pipe(struct pipe_args *uap) +sys_pipe(struct pipe_args *uap) { struct thread *td = curthread; struct proc *p = td->td_proc; diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index afbf92e4ff..3cbfe0cb71 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -29,7 +29,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/kern/sys_process.c,v 1.51.2.6 2003/01/08 03:06:45 kan Exp $ - * $DragonFly: src/sys/kern/sys_process.c,v 1.19 2005/11/21 21:59:50 dillon Exp $ + * $DragonFly: src/sys/kern/sys_process.c,v 1.20 2006/06/05 07:26:10 dillon Exp $ */ #include @@ -192,7 +192,7 @@ pwrite (struct proc *procp, unsigned int addr, unsigned int datum) { * Process debugging system call. */ int -ptrace(struct ptrace_args *uap) +sys_ptrace(struct ptrace_args *uap) { struct proc *p = curproc; diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c index 37c802dac5..4e9d4d993b 100644 --- a/sys/kern/syscalls.c +++ b/sys/kern/syscalls.c @@ -2,8 +2,8 @@ * System call names. * * DO NOT EDIT-- this file is automatically generated. - * $DragonFly: src/sys/kern/syscalls.c,v 1.37 2006/06/05 00:35:05 davidxu Exp $ - * created from DragonFly: src/sys/kern/syscalls.master,v 1.36 2006/05/27 20:17:16 dillon Exp + * $DragonFly: src/sys/kern/syscalls.c,v 1.38 2006/06/05 07:26:10 dillon Exp $ + * created from DragonFly: src/sys/kern/syscalls.master,v 1.37 2006/06/05 00:33:36 davidxu Exp */ char *syscallnames[] = { diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index 9d715ecaee..22c6b058d0 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -1,4 +1,4 @@ - $DragonFly: src/sys/kern/syscalls.master,v 1.37 2006/06/05 00:33:36 davidxu Exp $ + $DragonFly: src/sys/kern/syscalls.master,v 1.38 2006/06/05 07:26:10 dillon Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 ; $FreeBSD: src/sys/kern/syscalls.master,v 1.72.2.10 2002/07/12 08:22:46 alfred Exp $ @@ -46,7 +46,7 @@ ; of the current calls. 0 STD NOHIDE { int nosys(void); } syscall nosys_args int -1 STD NOHIDE { void sys_exit(int rval); } exit sys_exit_args void +1 STD NOHIDE { void exit(int rval); } 2 STD POSIX { int fork(void); } 3 MPSAFE STD POSIX { ssize_t read(int fd, void *buf, size_t nbyte); } 4 MPSAFE STD POSIX { ssize_t write(int fd, const void *buf, size_t nbyte); } diff --git a/sys/kern/sysv_msg.c b/sys/kern/sysv_msg.c index d6a25be5fc..7b22edd07b 100644 --- a/sys/kern/sysv_msg.c +++ b/sys/kern/sysv_msg.c @@ -1,5 +1,5 @@ /* $FreeBSD: src/sys/kern/sysv_msg.c,v 1.23.2.5 2002/12/31 08:54:53 maxim Exp $ */ -/* $DragonFly: src/sys/kern/sysv_msg.c,v 1.13 2004/05/26 14:12:34 hmp Exp $ */ +/* $DragonFly: src/sys/kern/sysv_msg.c,v 1.14 2006/06/05 07:26:10 dillon Exp $ */ /* * Implementation of SVID messages @@ -44,8 +44,8 @@ static void msg_freehdr (struct msg *msghdr); /* XXX casting to (sy_call_t *) is bogus, as usual. */ static sy_call_t *msgcalls[] = { - (sy_call_t *)msgctl, (sy_call_t *)msgget, - (sy_call_t *)msgsnd, (sy_call_t *)msgrcv + (sy_call_t *)sys_msgctl, (sy_call_t *)sys_msgget, + (sy_call_t *)sys_msgsnd, (sy_call_t *)sys_msgrcv }; struct msg { @@ -202,7 +202,7 @@ SYSINIT(sysv_msg, SI_SUB_SYSV_MSG, SI_ORDER_FIRST, msginit, NULL) * msgsys_args(int which, int a2, ...) (VARARGS) */ int -msgsys(struct msgsys_args *uap) +sys_msgsys(struct msgsys_args *uap) { struct proc *p = curproc; unsigned int which = (unsigned int)uap->which; @@ -241,7 +241,7 @@ msg_freehdr(struct msg *msghdr) } int -msgctl(struct msgctl_args *uap) +sys_msgctl(struct msgctl_args *uap) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -374,7 +374,7 @@ msgctl(struct msgctl_args *uap) } int -msgget(struct msgget_args *uap) +sys_msgget(struct msgget_args *uap) { struct proc *p = curproc; int msqid, eval; @@ -475,7 +475,7 @@ found: } int -msgsnd(struct msgsnd_args *uap) +sys_msgsnd(struct msgsnd_args *uap) { struct proc *p = curproc; int msqid = uap->msqid; @@ -788,7 +788,7 @@ msgsnd(struct msgsnd_args *uap) } int -msgrcv(struct msgrcv_args *uap) +sys_msgrcv(struct msgrcv_args *uap) { struct proc *p = curproc; int msqid = uap->msqid; diff --git a/sys/kern/sysv_sem.c b/sys/kern/sysv_sem.c index 14c4cdf599..7b5bd0cb2b 100644 --- a/sys/kern/sysv_sem.c +++ b/sys/kern/sysv_sem.c @@ -1,5 +1,5 @@ /* $FreeBSD: src/sys/kern/sysv_sem.c,v 1.69 2004/03/17 09:37:13 cperciva Exp $ */ -/* $DragonFly: src/sys/kern/sysv_sem.c,v 1.14 2004/05/26 14:12:34 hmp Exp $ */ +/* $DragonFly: src/sys/kern/sysv_sem.c,v 1.15 2006/06/05 07:26:10 dillon Exp $ */ /* * Implementation of SVID semaphores @@ -26,15 +26,6 @@ static MALLOC_DEFINE(M_SEM, "sem", "SVID compatible semaphores"); static void seminit (void *); -#ifndef _SYS_SYSPROTO_H_ -struct __semctl_args; -int __semctl (struct proc *p, struct __semctl_args *uap); -struct semget_args; -int semget (struct proc *p, struct semget_args *uap); -struct semop_args; -int semop (struct proc *p, struct semop_args *uap); -#endif - static struct sem_undo *semu_alloc (struct proc *p); static int semundo_adjust (struct proc *p, struct sem_undo **supptr, int semid, int semnum, int adjval); @@ -42,8 +33,8 @@ static void semundo_clear (int semid, int semnum); /* XXX casting to (sy_call_t *) is bogus, as usual. */ static sy_call_t *semcalls[] = { - (sy_call_t *)__semctl, (sy_call_t *)semget, - (sy_call_t *)semop + (sy_call_t *)sys___semctl, (sy_call_t *)sys_semget, + (sy_call_t *)sys_semop }; static int semtot = 0; @@ -203,7 +194,7 @@ SYSINIT(sysv_sem, SI_SUB_SYSV_SEM, SI_ORDER_FIRST, seminit, NULL) * semsys_args(int which, a2, a3, ...) (VARARGS) */ int -semsys(struct semsys_args *uap) +sys_semsys(struct semsys_args *uap) { struct proc *p = curproc; unsigned int which = (unsigned int)uap->which; @@ -393,7 +384,7 @@ semundo_clear(semid, semnum) */ int -__semctl(struct __semctl_args *uap) +sys___semctl(struct __semctl_args *uap) { struct proc *p = curproc; int semid = uap->semid; @@ -551,7 +542,7 @@ __semctl(struct __semctl_args *uap) } int -semget(struct semget_args *uap) +sys_semget(struct semget_args *uap) { struct proc *p = curproc; int semid, eval; @@ -659,7 +650,7 @@ found: } int -semop(struct semop_args *uap) +sys_semop(struct semop_args *uap) { struct proc *p = curproc; int semid = uap->semid; diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c index dbcbb80523..460190698a 100644 --- a/sys/kern/sysv_shm.c +++ b/sys/kern/sysv_shm.c @@ -1,5 +1,5 @@ /* $FreeBSD: src/sys/kern/sysv_shm.c,v 1.45.2.6 2002/10/22 20:45:03 fjoe Exp $ */ -/* $DragonFly: src/sys/kern/sysv_shm.c,v 1.16 2006/03/27 01:54:15 dillon Exp $ */ +/* $DragonFly: src/sys/kern/sysv_shm.c,v 1.17 2006/06/05 07:26:10 dillon Exp $ */ /* $NetBSD: sysv_shm.c,v 1.23 1994/07/04 23:25:12 glass Exp $ */ /* @@ -60,16 +60,16 @@ static MALLOC_DEFINE(M_SHM, "shm", "SVID compatible shared memory segments"); struct oshmctl_args; -static int oshmctl (struct proc *p, struct oshmctl_args *uap); +static int sys_oshmctl (struct proc *p, struct oshmctl_args *uap); static int shmget_allocate_segment (struct proc *p, struct shmget_args *uap, int mode); static int shmget_existing (struct proc *p, struct shmget_args *uap, int mode, int segnum); /* XXX casting to (sy_call_t *) is bogus, as usual. */ static sy_call_t *shmcalls[] = { - (sy_call_t *)shmat, (sy_call_t *)oshmctl, - (sy_call_t *)shmdt, (sy_call_t *)shmget, - (sy_call_t *)shmctl + (sy_call_t *)sys_shmat, (sy_call_t *)sys_oshmctl, + (sy_call_t *)sys_shmdt, (sy_call_t *)sys_shmget, + (sy_call_t *)sys_shmctl }; #define SHMSEG_FREE 0x0200 @@ -214,7 +214,7 @@ shm_delete_mapping(struct vmspace *vm, struct shmmap_state *shmmap_s) } int -shmdt(struct shmdt_args *uap) +sys_shmdt(struct shmdt_args *uap) { struct proc *p = curproc; struct shmmap_state *shmmap_s; @@ -236,7 +236,7 @@ shmdt(struct shmdt_args *uap) } int -shmat(struct shmat_args *uap) +sys_shmat(struct shmat_args *uap) { struct proc *p = curproc; int error, i, flags; @@ -335,7 +335,7 @@ struct oshmctl_args { }; static int -oshmctl(p, uap) +sys_oshmctl(p, uap) struct proc *p; struct oshmctl_args *uap; { @@ -370,7 +370,7 @@ oshmctl(p, uap) break; default: /* XXX casting to (sy_call_t *) is bogus, as usual. */ - return (shmctl((struct shmctl_args *)uap)); + return (sys_shmctl((struct shmctl_args *)uap)); } return 0; #else @@ -379,7 +379,7 @@ oshmctl(p, uap) } int -shmctl(struct shmctl_args *uap) +sys_shmctl(struct shmctl_args *uap) { struct proc *p = curproc; int error; @@ -550,7 +550,7 @@ shmget_allocate_segment(p, uap, mode) } int -shmget(struct shmget_args *uap) +sys_shmget(struct shmget_args *uap) { struct proc *p = curproc; int segnum, mode, error; @@ -578,7 +578,7 @@ shmget(struct shmget_args *uap) * shmsys_args(int which, int a2, ...) (VARARGS) */ int -shmsys(struct shmsys_args *uap) +sys_shmsys(struct shmsys_args *uap) { struct proc *p = curproc; unsigned int which = (unsigned int)uap->which; diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index 876e1dc771..fe1c924317 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -35,7 +35,7 @@ * * @(#)uipc_syscalls.c 8.4 (Berkeley) 2/21/94 * $FreeBSD: src/sys/kern/uipc_syscalls.c,v 1.65.2.17 2003/04/04 17:11:16 tegge Exp $ - * $DragonFly: src/sys/kern/uipc_syscalls.c,v 1.68 2006/05/22 21:21:21 dillon Exp $ + * $DragonFly: src/sys/kern/uipc_syscalls.c,v 1.69 2006/06/05 07:26:10 dillon Exp $ */ #include "opt_ktrace.h" @@ -130,7 +130,7 @@ kern_socket(int domain, int type, int protocol, int *res) } int -socket(struct socket_args *uap) +sys_socket(struct socket_args *uap) { int error; @@ -161,7 +161,7 @@ kern_bind(int s, struct sockaddr *sa) * bind_args(int s, caddr_t name, int namelen) */ int -bind(struct bind_args *uap) +sys_bind(struct bind_args *uap) { struct sockaddr *sa; int error; @@ -196,7 +196,7 @@ kern_listen(int s, int backlog) * listen_args(int s, int backlog) */ int -listen(struct listen_args *uap) +sys_listen(struct listen_args *uap) { int error; @@ -358,7 +358,7 @@ done: * accept_args(int s, caddr_t name, int *anamelen) */ int -accept(struct accept_args *uap) +sys_accept(struct accept_args *uap) { struct sockaddr *sa = NULL; int sa_len; @@ -459,7 +459,7 @@ done: * connect_args(int s, caddr_t name, int namelen) */ int -connect(struct connect_args *uap) +sys_connect(struct connect_args *uap) { struct sockaddr *sa; int error; @@ -535,7 +535,7 @@ free1: * socketpair(int domain, int type, int protocol, int *rsv) */ int -socketpair(struct socketpair_args *uap) +sys_socketpair(struct socketpair_args *uap) { int error, sockv[2]; @@ -607,7 +607,7 @@ done: * sendto_args(int s, caddr_t buf, size_t len, int flags, caddr_t to, int tolen) */ int -sendto(struct sendto_args *uap) +sys_sendto(struct sendto_args *uap) { struct thread *td = curthread; struct uio auio; @@ -642,7 +642,7 @@ sendto(struct sendto_args *uap) * sendmsg_args(int s, caddr_t msg, int flags) */ int -sendmsg(struct sendmsg_args *uap) +sys_sendmsg(struct sendmsg_args *uap) { struct thread *td = curthread; struct msghdr msg; @@ -777,7 +777,7 @@ done: * caddr_t from, int *fromlenaddr) */ int -recvfrom(struct recvfrom_args *uap) +sys_recvfrom(struct recvfrom_args *uap) { struct thread *td = curthread; struct uio auio; @@ -830,7 +830,7 @@ recvfrom(struct recvfrom_args *uap) * recvmsg_args(int s, struct msghdr *msg, int flags) */ int -recvmsg(struct recvmsg_args *uap) +sys_recvmsg(struct recvmsg_args *uap) { struct thread *td = curthread; struct msghdr msg; @@ -965,7 +965,7 @@ kern_setsockopt(int s, struct sockopt *sopt) * setsockopt_args(int s, int level, int name, caddr_t val, int valsize) */ int -setsockopt(struct setsockopt_args *uap) +sys_setsockopt(struct setsockopt_args *uap) { struct thread *td = curthread; struct sockopt sopt; @@ -1012,7 +1012,7 @@ kern_getsockopt(int s, struct sockopt *sopt) * getsockopt_Args(int s, int level, int name, caddr_t val, int *avalsize) */ int -getsockopt(struct getsockopt_args *uap) +sys_getsockopt(struct getsockopt_args *uap) { struct thread *td = curthread; struct sockopt sopt; @@ -1086,7 +1086,7 @@ kern_getsockname(int s, struct sockaddr **name, int *namelen) * Get socket name. */ int -getsockname(struct getsockname_args *uap) +sys_getsockname(struct getsockname_args *uap) { struct sockaddr *sa = NULL; int error, sa_len; @@ -1154,7 +1154,7 @@ kern_getpeername(int s, struct sockaddr **name, int *namelen) * Get name of peer for connected socket. */ int -getpeername(struct getpeername_args *uap) +sys_getpeername(struct getpeername_args *uap) { struct sockaddr *sa = NULL; int error, sa_len; @@ -1286,7 +1286,7 @@ freeit: * in the future. */ int -sendfile(struct sendfile_args *uap) +sys_sendfile(struct sendfile_args *uap) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -1675,7 +1675,7 @@ done0: } int -sctp_peeloff(struct sctp_peeloff_args *uap) +sys_sctp_peeloff(struct sctp_peeloff_args *uap) { #ifdef SCTP struct thread *td = curthread; diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index eac3c0191e..5adaf48295 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -14,7 +14,7 @@ * of the author. This software is distributed AS-IS. * * $FreeBSD: src/sys/kern/vfs_aio.c,v 1.70.2.28 2003/05/29 06:15:35 alc Exp $ - * $DragonFly: src/sys/kern/vfs_aio.c,v 1.27 2006/05/06 06:38:38 dillon Exp $ + * $DragonFly: src/sys/kern/vfs_aio.c,v 1.28 2006/06/05 07:26:10 dillon Exp $ */ /* @@ -1391,7 +1391,7 @@ aio_aqueue(struct aiocb *job, int type) * released. */ int -aio_return(struct aio_return_args *uap) +sys_aio_return(struct aio_return_args *uap) { #ifndef VFS_AIO return ENOSYS; @@ -1457,7 +1457,7 @@ aio_return(struct aio_return_args *uap) * Allow a process to wakeup when any of the I/O requests are completed. */ int -aio_suspend(struct aio_suspend_args *uap) +sys_aio_suspend(struct aio_suspend_args *uap) { #ifndef VFS_AIO return ENOSYS; @@ -1574,7 +1574,7 @@ aio_suspend(struct aio_suspend_args *uap) * progress. */ int -aio_cancel(struct aio_cancel_args *uap) +sys_aio_cancel(struct aio_cancel_args *uap) { #ifndef VFS_AIO return ENOSYS; @@ -1692,7 +1692,7 @@ done: * subroutine. */ int -aio_error(struct aio_error_args *uap) +sys_aio_error(struct aio_error_args *uap) { #ifndef VFS_AIO return ENOSYS; @@ -1777,7 +1777,7 @@ aio_error(struct aio_error_args *uap) /* syscall - asynchronous read from a file (REALTIME) */ int -aio_read(struct aio_read_args *uap) +sys_aio_read(struct aio_read_args *uap) { #ifndef VFS_AIO return ENOSYS; @@ -1788,7 +1788,7 @@ aio_read(struct aio_read_args *uap) /* syscall - asynchronous write to a file (REALTIME) */ int -aio_write(struct aio_write_args *uap) +sys_aio_write(struct aio_write_args *uap) { #ifndef VFS_AIO return ENOSYS; @@ -1799,7 +1799,7 @@ aio_write(struct aio_write_args *uap) /* syscall - XXX undocumented */ int -lio_listio(struct lio_listio_args *uap) +sys_lio_listio(struct lio_listio_args *uap) { #ifndef VFS_AIO return ENOSYS; @@ -2068,7 +2068,7 @@ aio_physwakeup(struct bio *bio) /* syscall - wait for the next completion of an aio request */ int -aio_waitcomplete(struct aio_waitcomplete_args *uap) +sys_aio_waitcomplete(struct aio_waitcomplete_args *uap) { #ifndef VFS_AIO return ENOSYS; diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index 29e029570f..ef0b9c820a 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -67,7 +67,7 @@ * * @(#)vfs_cache.c 8.5 (Berkeley) 3/22/95 * $FreeBSD: src/sys/kern/vfs_cache.c,v 1.42.2.6 2001/10/05 20:07:03 dillon Exp $ - * $DragonFly: src/sys/kern/vfs_cache.c,v 1.71 2006/06/04 17:33:35 dillon Exp $ + * $DragonFly: src/sys/kern/vfs_cache.c,v 1.72 2006/06/05 07:26:10 dillon Exp $ */ #include @@ -1990,7 +1990,7 @@ static u_long numcwdfail4; STATNODE(CTLFLAG_RD, numcwdfail4, &numcwdfail4); static u_long numcwdfound; STATNODE(CTLFLAG_RD, numcwdfound, &numcwdfound); int -__getcwd(struct __getcwd_args *uap) +sys___getcwd(struct __getcwd_args *uap) { int buflen; int error; diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 3e2468932e..e4f6c3f8cd 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -37,7 +37,7 @@ * * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94 * $FreeBSD: src/sys/kern/vfs_syscalls.c,v 1.151.2.18 2003/04/04 20:35:58 tegge Exp $ - * $DragonFly: src/sys/kern/vfs_syscalls.c,v 1.95 2006/06/01 06:10:50 dillon Exp $ + * $DragonFly: src/sys/kern/vfs_syscalls.c,v 1.96 2006/06/05 07:26:10 dillon Exp $ */ #include @@ -103,7 +103,7 @@ SYSCTL_INT(_vfs, OID_AUTO, usermount, CTLFLAG_RW, &usermount, 0, ""); */ /* ARGSUSED */ int -mount(struct mount_args *uap) +sys_mount(struct mount_args *uap) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -500,7 +500,7 @@ checkdirs_callback(struct proc *p, void *data) */ /* ARGSUSED */ int -unmount(struct unmount_args *uap) +sys_unmount(struct unmount_args *uap) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -664,7 +664,7 @@ static int sync_callback(struct mount *mp, void *data); /* ARGSUSED */ int -sync(struct sync_args *uap) +sys_sync(struct sync_args *uap) { mountlist_scan(sync_callback, NULL, MNTSCAN_FORWARD); #ifdef DEBUG @@ -706,7 +706,7 @@ SYSCTL_INT(_kern_prison, OID_AUTO, quotas, CTLFLAG_RW, &prison_quotas, 0, ""); */ /* ARGSUSED */ int -quotactl(struct quotactl_args *uap) +sys_quotactl(struct quotactl_args *uap) { struct nlookupdata nd; struct thread *td; @@ -743,7 +743,7 @@ quotactl(struct quotactl_args *uap) */ /* ARGSUSED */ int -mountctl(struct mountctl_args *uap) +sys_mountctl(struct mountctl_args *uap) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -894,7 +894,7 @@ kern_statfs(struct nlookupdata *nd, struct statfs *buf) * Get filesystem statistics. */ int -statfs(struct statfs_args *uap) +sys_statfs(struct statfs_args *uap) { struct nlookupdata nd; struct statfs buf; @@ -960,7 +960,7 @@ done: * Get filesystem statistics. */ int -fstatfs(struct fstatfs_args *uap) +sys_fstatfs(struct fstatfs_args *uap) { struct statfs buf; int error; @@ -992,7 +992,7 @@ static int getfsstat_callback(struct mount *, void *); /* ARGSUSED */ int -getfsstat(struct getfsstat_args *uap) +sys_getfsstat(struct getfsstat_args *uap) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -1072,7 +1072,7 @@ getfsstat_callback(struct mount *mp, void *data) */ /* ARGSUSED */ int -fchdir(struct fchdir_args *uap) +sys_fchdir(struct fchdir_args *uap) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -1167,7 +1167,7 @@ kern_chdir(struct nlookupdata *nd) * Change current working directory (``.''). */ int -chdir(struct chdir_args *uap) +sys_chdir(struct chdir_args *uap) { struct nlookupdata nd; int error; @@ -1282,7 +1282,7 @@ kern_chroot(struct namecache *ncp) */ /* ARGSUSED */ int -chroot(struct chroot_args *uap) +sys_chroot(struct chroot_args *uap) { struct thread *td = curthread; struct nlookupdata nd; @@ -1458,7 +1458,7 @@ kern_open(struct nlookupdata *nd, int oflags, int mode, int *res) * and call the device open routine if any. */ int -open(struct open_args *uap) +sys_open(struct open_args *uap) { struct nlookupdata nd; int error; @@ -1546,7 +1546,7 @@ kern_mknod(struct nlookupdata *nd, int mode, int dev) * Create a special file. */ int -mknod(struct mknod_args *uap) +sys_mknod(struct mknod_args *uap) { struct nlookupdata nd; int error; @@ -1593,7 +1593,7 @@ kern_mkfifo(struct nlookupdata *nd, int mode) * Create a named pipe. */ int -mkfifo(struct mkfifo_args *uap) +sys_mkfifo(struct mkfifo_args *uap) { struct nlookupdata nd; int error; @@ -1713,7 +1713,7 @@ kern_link(struct nlookupdata *nd, struct nlookupdata *linknd) * Make a hard file link. */ int -link(struct link_args *uap) +sys_link(struct link_args *uap) { struct nlookupdata nd, linknd; int error; @@ -1759,7 +1759,7 @@ kern_symlink(struct nlookupdata *nd, char *path, int mode) * Make a symbolic link. */ int -symlink(struct symlink_args *uap) +sys_symlink(struct symlink_args *uap) { struct thread *td = curthread; struct nlookupdata nd; @@ -1788,7 +1788,7 @@ symlink(struct symlink_args *uap) */ /* ARGSUSED */ int -undelete(struct undelete_args *uap) +sys_undelete(struct undelete_args *uap) { struct nlookupdata nd; int error; @@ -1825,7 +1825,7 @@ kern_unlink(struct nlookupdata *nd) * Delete a name from the filesystem. */ int -unlink(struct unlink_args *uap) +sys_unlink(struct unlink_args *uap) { struct nlookupdata nd; int error; @@ -1884,7 +1884,7 @@ done: * Reposition read/write file offset. */ int -lseek(struct lseek_args *uap) +sys_lseek(struct lseek_args *uap) { int error; @@ -1943,7 +1943,7 @@ retry: * Check access permissions. */ int -access(struct access_args *uap) +sys_access(struct access_args *uap) { struct nlookupdata nd; int error; @@ -1995,7 +1995,7 @@ again: * Get file status; this version follows links. */ int -stat(struct stat_args *uap) +sys_stat(struct stat_args *uap) { struct nlookupdata nd; struct stat st; @@ -2017,7 +2017,7 @@ stat(struct stat_args *uap) * Get file status; this version does not follow links. */ int -lstat(struct lstat_args *uap) +sys_lstat(struct lstat_args *uap) { struct nlookupdata nd; struct stat st; @@ -2040,7 +2040,7 @@ lstat(struct lstat_args *uap) */ /* ARGSUSED */ int -pathconf(struct pathconf_args *uap) +sys_pathconf(struct pathconf_args *uap) { struct nlookupdata nd; struct vnode *vp; @@ -2105,7 +2105,7 @@ kern_readlink(struct nlookupdata *nd, char *buf, int count, int *res) * Return target name of a symbolic link. */ int -readlink(struct readlink_args *uap) +sys_readlink(struct readlink_args *uap) { struct nlookupdata nd; int error; @@ -2157,7 +2157,7 @@ setfflags(struct vnode *vp, int flags) */ /* ARGSUSED */ int -chflags(struct chflags_args *uap) +sys_chflags(struct chflags_args *uap) { struct nlookupdata nd; struct vnode *vp; @@ -2185,7 +2185,7 @@ chflags(struct chflags_args *uap) */ /* ARGSUSED */ int -fchflags(struct fchflags_args *uap) +sys_fchflags(struct fchflags_args *uap) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -2243,7 +2243,7 @@ kern_chmod(struct nlookupdata *nd, int mode) */ /* ARGSUSED */ int -chmod(struct chmod_args *uap) +sys_chmod(struct chmod_args *uap) { struct nlookupdata nd; int error; @@ -2262,7 +2262,7 @@ chmod(struct chmod_args *uap) */ /* ARGSUSED */ int -lchmod(struct lchmod_args *uap) +sys_lchmod(struct lchmod_args *uap) { struct nlookupdata nd; int error; @@ -2281,7 +2281,7 @@ lchmod(struct lchmod_args *uap) */ /* ARGSUSED */ int -fchmod(struct fchmod_args *uap) +sys_fchmod(struct fchmod_args *uap) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -2339,7 +2339,7 @@ kern_chown(struct nlookupdata *nd, int uid, int gid) * Set ownership given a path name. */ int -chown(struct chown_args *uap) +sys_chown(struct chown_args *uap) { struct nlookupdata nd; int error; @@ -2357,7 +2357,7 @@ chown(struct chown_args *uap) * Set ownership given a path name, do not cross symlinks. */ int -lchown(struct lchown_args *uap) +sys_lchown(struct lchown_args *uap) { struct nlookupdata nd; int error; @@ -2376,7 +2376,7 @@ lchown(struct lchown_args *uap) */ /* ARGSUSED */ int -fchown(struct fchown_args *uap) +sys_fchown(struct fchown_args *uap) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -2455,7 +2455,7 @@ kern_utimes(struct nlookupdata *nd, struct timeval *tptr) * Set the access and modification times of a file. */ int -utimes(struct utimes_args *uap) +sys_utimes(struct utimes_args *uap) { struct timeval tv[2]; struct nlookupdata nd; @@ -2479,7 +2479,7 @@ utimes(struct utimes_args *uap) * Set the access and modification times of a file. */ int -lutimes(struct lutimes_args *uap) +sys_lutimes(struct lutimes_args *uap) { struct timeval tv[2]; struct nlookupdata nd; @@ -2522,7 +2522,7 @@ kern_futimes(int fd, struct timeval *tptr) * Set the access and modification times of a file. */ int -futimes(struct futimes_args *uap) +sys_futimes(struct futimes_args *uap) { struct timeval tv[2]; int error; @@ -2574,7 +2574,7 @@ kern_truncate(struct nlookupdata *nd, off_t length) * Truncate a file given its path name. */ int -truncate(struct truncate_args *uap) +sys_truncate(struct truncate_args *uap) { struct nlookupdata nd; int error; @@ -2625,7 +2625,7 @@ done: * Truncate a file given a file descriptor. */ int -ftruncate(struct ftruncate_args *uap) +sys_ftruncate(struct ftruncate_args *uap) { int error; @@ -2641,7 +2641,7 @@ ftruncate(struct ftruncate_args *uap) */ /* ARGSUSED */ int -fsync(struct fsync_args *uap) +sys_fsync(struct fsync_args *uap) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -2818,7 +2818,7 @@ kern_rename(struct nlookupdata *fromnd, struct nlookupdata *tond) * or both not be directories. If target is a directory, it must be empty. */ int -rename(struct rename_args *uap) +sys_rename(struct rename_args *uap) { struct nlookupdata fromnd, tond; int error; @@ -2871,7 +2871,7 @@ kern_mkdir(struct nlookupdata *nd, int mode) */ /* ARGSUSED */ int -mkdir(struct mkdir_args *uap) +sys_mkdir(struct mkdir_args *uap) { struct nlookupdata nd; int error; @@ -2906,7 +2906,7 @@ kern_rmdir(struct nlookupdata *nd) */ /* ARGSUSED */ int -rmdir(struct rmdir_args *uap) +sys_rmdir(struct rmdir_args *uap) { struct nlookupdata nd; int error; @@ -2993,7 +2993,7 @@ done: * Read a block of directory entries in a file system independent format. */ int -getdirentries(struct getdirentries_args *uap) +sys_getdirentries(struct getdirentries_args *uap) { long base; int error; @@ -3010,7 +3010,7 @@ getdirentries(struct getdirentries_args *uap) * getdents_args(int fd, char *buf, size_t count) */ int -getdents(struct getdents_args *uap) +sys_getdents(struct getdents_args *uap) { int error; @@ -3028,7 +3028,7 @@ getdents(struct getdents_args *uap) * MP SAFE */ int -umask(struct umask_args *uap) +sys_umask(struct umask_args *uap) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -3048,7 +3048,7 @@ umask(struct umask_args *uap) */ /* ARGSUSED */ int -revoke(struct revoke_args *uap) +sys_revoke(struct revoke_args *uap) { struct nlookupdata nd; struct vattr vattr; @@ -3090,7 +3090,7 @@ revoke(struct revoke_args *uap) * Get (NFS) file handle */ int -getfh(struct getfh_args *uap) +sys_getfh(struct getfh_args *uap) { struct thread *td = curthread; struct nlookupdata nd; @@ -3132,7 +3132,7 @@ getfh(struct getfh_args *uap) * security hole. */ int -fhopen(struct fhopen_args *uap) +sys_fhopen(struct fhopen_args *uap) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -3299,7 +3299,7 @@ bad: * fhstat_args(struct fhandle *u_fhp, struct stat *sb) */ int -fhstat(struct fhstat_args *uap) +sys_fhstat(struct fhstat_args *uap) { struct thread *td = curthread; struct stat sb; @@ -3335,7 +3335,7 @@ fhstat(struct fhstat_args *uap) * fhstatfs_args(struct fhandle *u_fhp, struct statfs *buf) */ int -fhstatfs(struct fhstatfs_args *uap) +sys_fhstatfs(struct fhstatfs_args *uap) { struct thread *td = curthread; struct proc *p = td->td_proc; @@ -3399,7 +3399,7 @@ fhstatfs(struct fhstatfs_args *uap) * Currently this is used only by UFS Extended Attributes. */ int -extattrctl(struct extattrctl_args *uap) +sys_extattrctl(struct extattrctl_args *uap) { struct nlookupdata nd; struct mount *mp; @@ -3427,7 +3427,7 @@ extattrctl(struct extattrctl_args *uap) * in VOP_SETEXTATTR(). */ int -extattr_set_file(struct extattr_set_file_args *uap) +sys_extattr_set_file(struct extattr_set_file_args *uap) { char attrname[EXTATTR_MAXNAMELEN]; struct iovec aiov[UIO_SMALLIOV]; @@ -3504,7 +3504,7 @@ done: * happens in VOP_GETEXTATTR(); */ int -extattr_get_file(struct extattr_get_file_args *uap) +sys_extattr_get_file(struct extattr_get_file_args *uap) { char attrname[EXTATTR_MAXNAMELEN]; struct iovec aiov[UIO_SMALLIOV]; @@ -3579,7 +3579,7 @@ done: * Accepts attribute name. The real work happens in VOP_SETEXTATTR(). */ int -extattr_delete_file(struct extattr_delete_file_args *uap) +sys_extattr_delete_file(struct extattr_delete_file_args *uap) { char attrname[EXTATTR_MAXNAMELEN]; struct nlookupdata nd; diff --git a/sys/netproto/ncp/ncp_mod.c b/sys/netproto/ncp/ncp_mod.c index b15799feef..fe3dab34d2 100644 --- a/sys/netproto/ncp/ncp_mod.c +++ b/sys/netproto/ncp/ncp_mod.c @@ -30,7 +30,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/netncp/ncp_mod.c,v 1.2 1999/10/12 10:36:59 bp Exp $ - * $DragonFly: src/sys/netproto/ncp/ncp_mod.c,v 1.8 2003/11/20 06:05:31 dillon Exp $ + * $DragonFly: src/sys/netproto/ncp/ncp_mod.c,v 1.9 2006/06/05 07:26:11 dillon Exp $ */ #include #include @@ -452,7 +452,7 @@ ncp_load(void) { while(1) { /* Search the table looking for an enough number of slots... */ for (scnt=0, ff = -1, i = 0; i < nsysent; i++) { - if (sysent[i].sy_call == (sy_call_t *)lkmnosys) { + if (sysent[i].sy_call == (sy_call_t *)sys_lkmnosys) { if (ff == -1) { ff = i; scnt = 1; diff --git a/sys/platform/pc32/i386/machdep.c b/sys/platform/pc32/i386/machdep.c index cb947000cb..1102959293 100644 --- a/sys/platform/pc32/i386/machdep.c +++ b/sys/platform/pc32/i386/machdep.c @@ -36,7 +36,7 @@ * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 * $FreeBSD: src/sys/i386/i386/machdep.c,v 1.385.2.30 2003/05/31 08:48:05 alc Exp $ - * $DragonFly: src/sys/platform/pc32/i386/machdep.c,v 1.92 2006/06/05 00:32:37 davidxu Exp $ + * $DragonFly: src/sys/platform/pc32/i386/machdep.c,v 1.93 2006/06/05 07:26:10 dillon Exp $ */ #include "use_apm.h" @@ -543,7 +543,7 @@ sendsig(catcher, sig, mask, code) #define CS_SECURE(cs) (ISPL(cs) == SEL_UPL) int -sigreturn(struct sigreturn_args *uap) +sys_sigreturn(struct sigreturn_args *uap) { struct lwp *lp = curthread->td_lwp; struct trapframe *regs; diff --git a/sys/platform/pc32/i386/sys_machdep.c b/sys/platform/pc32/i386/sys_machdep.c index c1f6234b98..57dc96dbfd 100644 --- a/sys/platform/pc32/i386/sys_machdep.c +++ b/sys/platform/pc32/i386/sys_machdep.c @@ -32,7 +32,7 @@ * * from: @(#)sys_machdep.c 5.5 (Berkeley) 1/19/91 * $FreeBSD: src/sys/i386/i386/sys_machdep.c,v 1.47.2.3 2002/10/07 17:20:00 jhb Exp $ - * $DragonFly: src/sys/platform/pc32/i386/sys_machdep.c,v 1.22 2006/02/28 18:30:22 dillon Exp $ + * $DragonFly: src/sys/platform/pc32/i386/sys_machdep.c,v 1.23 2006/06/05 07:26:10 dillon Exp $ * */ @@ -81,7 +81,7 @@ int i386_extend_pcb(struct lwp *); */ int -sysarch(struct sysarch_args *uap) +sys_sysarch(struct sysarch_args *uap) { struct lwp *lp = curthread->td_lwp; int error = 0; diff --git a/sys/platform/pc32/i386/tls.c b/sys/platform/pc32/i386/tls.c index 113aa41a15..331cfeeb75 100644 --- a/sys/platform/pc32/i386/tls.c +++ b/sys/platform/pc32/i386/tls.c @@ -31,7 +31,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/platform/pc32/i386/tls.c,v 1.3 2005/11/04 08:57:27 dillon Exp $ + * $DragonFly: src/sys/platform/pc32/i386/tls.c,v 1.4 2006/06/05 07:26:10 dillon Exp $ */ #include @@ -66,7 +66,7 @@ * (struct tls_info *info, int infosize, int which) */ int -sys_set_tls_area(struct sys_set_tls_area_args *uap) +sys_sys_set_tls_area(struct sys_set_tls_area_args *uap) { struct tls_info info; struct segment_descriptor *desc; @@ -158,7 +158,7 @@ sys_set_tls_area(struct sys_set_tls_area_args *uap) * (struct tls_info *info, int infosize, int which) */ int -sys_get_tls_area(struct sys_get_tls_area_args *uap) +sys_sys_get_tls_area(struct sys_get_tls_area_args *uap) { struct tls_info info; struct segment_descriptor *desc; diff --git a/sys/sys/syscall-args b/sys/sys/syscall-args index d0eee8982a..9adc3a12d9 100644 --- a/sys/sys/syscall-args +++ b/sys/sys/syscall-args @@ -1,11 +1,11 @@ # System call argument table. # DO NOT EDIT-- this file is automatically generated. -# $DragonFly: src/sys/sys/Attic/syscall-args,v 1.22 2006/06/05 00:35:05 davidxu Exp $ +# $DragonFly: src/sys/sys/Attic/syscall-args,v 1.23 2006/06/05 07:26:11 dillon Exp $ -# Created from DragonFly: src/sys/kern/syscalls.master,v 1.36 2006/05/27 20:17:16 dillon Exp +# Created from DragonFly: src/sys/kern/syscalls.master,v 1.37 2006/06/05 00:33:36 davidxu Exp int syscall nosys nosys_args -void exit sys_exit sys_exit_args int rval +int exit exit exit_args int rval int fork fork fork_args int read read read_args int fd void * buf size_t nbyte int write write write_args int fd const void * buf size_t nbyte diff --git a/sys/sys/syscall-hide.h b/sys/sys/syscall-hide.h index 7f23a02be7..4aa697bd14 100644 --- a/sys/sys/syscall-hide.h +++ b/sys/sys/syscall-hide.h @@ -2,8 +2,8 @@ * System call hiders. * * DO NOT EDIT-- this file is automatically generated. - * $DragonFly: src/sys/sys/syscall-hide.h,v 1.38 2006/06/05 00:35:05 davidxu Exp $ - * created from DragonFly: src/sys/kern/syscalls.master,v 1.36 2006/05/27 20:17:16 dillon Exp + * $DragonFly: src/sys/sys/syscall-hide.h,v 1.39 2006/06/05 07:26:11 dillon Exp $ + * created from DragonFly: src/sys/kern/syscalls.master,v 1.37 2006/06/05 00:33:36 davidxu Exp */ #ifdef COMPAT_43 diff --git a/sys/sys/syscall.h b/sys/sys/syscall.h index ba517c28d0..501f969d76 100644 --- a/sys/sys/syscall.h +++ b/sys/sys/syscall.h @@ -2,8 +2,8 @@ * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * $DragonFly: src/sys/sys/syscall.h,v 1.38 2006/06/05 00:35:05 davidxu Exp $ - * created from DragonFly: src/sys/kern/syscalls.master,v 1.36 2006/05/27 20:17:16 dillon Exp + * $DragonFly: src/sys/sys/syscall.h,v 1.39 2006/06/05 07:26:11 dillon Exp $ + * created from DragonFly: src/sys/kern/syscalls.master,v 1.37 2006/06/05 00:33:36 davidxu Exp */ #define SYS_syscall 0 diff --git a/sys/sys/syscall.mk b/sys/sys/syscall.mk index f54322045f..f54242c3ef 100644 --- a/sys/sys/syscall.mk +++ b/sys/sys/syscall.mk @@ -1,7 +1,7 @@ # DragonFly system call names. # DO NOT EDIT-- this file is automatically generated. -# $DragonFly: src/sys/sys/syscall.mk,v 1.38 2006/06/05 00:35:05 davidxu Exp $ -# created from DragonFly: src/sys/kern/syscalls.master,v 1.36 2006/05/27 20:17:16 dillon Exp +# $DragonFly: src/sys/sys/syscall.mk,v 1.39 2006/06/05 07:26:11 dillon Exp $ +# created from DragonFly: src/sys/kern/syscalls.master,v 1.37 2006/06/05 00:33:36 davidxu Exp MIASM = \ syscall.o \ exit.o \ diff --git a/sys/sys/sysproto.h b/sys/sys/sysproto.h index 55a21ae95b..3ce6bad815 100644 --- a/sys/sys/sysproto.h +++ b/sys/sys/sysproto.h @@ -2,8 +2,8 @@ * System call prototypes. * * DO NOT EDIT-- this file is automatically generated. - * $DragonFly: src/sys/sys/sysproto.h,v 1.38 2006/06/05 00:35:05 davidxu Exp $ - * created from DragonFly: src/sys/kern/syscalls.master,v 1.36 2006/05/27 20:17:16 dillon Exp + * $DragonFly: src/sys/sys/sysproto.h,v 1.39 2006/06/05 07:26:11 dillon Exp $ + * created from DragonFly: src/sys/kern/syscalls.master,v 1.37 2006/06/05 00:33:36 davidxu Exp */ #ifndef _SYS_SYSPROTO_H_ @@ -29,7 +29,7 @@ struct nosys_args { union usrmsg usrmsg; register_t dummy; }; -struct sys_exit_args { +struct exit_args { #ifdef _KERNEL struct sysmsg sysmsg; #endif @@ -2439,38 +2439,38 @@ struct ogetdirentries_args { #ifdef _KERNEL -int ocreat (struct ocreat_args *); -int olseek (struct olseek_args *); -int ostat (struct ostat_args *); -int olstat (struct olstat_args *); -int ofstat (struct ofstat_args *); -int ogetkerninfo (struct getkerninfo_args *); -int ogetpagesize (struct getpagesize_args *); -int ommap (struct ommap_args *); -int owait (struct owait_args *); -int ogethostname (struct gethostname_args *); -int osethostname (struct sethostname_args *); -int oaccept (struct accept_args *); -int osend (struct osend_args *); -int orecv (struct orecv_args *); -int osigvec (struct osigvec_args *); -int osigblock (struct osigblock_args *); -int osigsetmask (struct osigsetmask_args *); -int osigstack (struct osigstack_args *); -int orecvmsg (struct orecvmsg_args *); -int osendmsg (struct osendmsg_args *); -int orecvfrom (struct recvfrom_args *); -int otruncate (struct otruncate_args *); -int oftruncate (struct oftruncate_args *); -int ogetpeername (struct ogetpeername_args *); -int ogethostid (struct ogethostid_args *); -int osethostid (struct osethostid_args *); -int ogetrlimit (struct ogetrlimit_args *); -int osetrlimit (struct osetrlimit_args *); -int okillpg (struct okillpg_args *); -int oquota (struct oquota_args *); -int ogetsockname (struct getsockname_args *); -int ogetdirentries (struct ogetdirentries_args *); +int sys_ocreat (struct ocreat_args *); +int sys_olseek (struct olseek_args *); +int sys_ostat (struct ostat_args *); +int sys_olstat (struct olstat_args *); +int sys_ofstat (struct ofstat_args *); +int sys_ogetkerninfo (struct getkerninfo_args *); +int sys_ogetpagesize (struct getpagesize_args *); +int sys_ommap (struct ommap_args *); +int sys_owait (struct owait_args *); +int sys_ogethostname (struct gethostname_args *); +int sys_osethostname (struct sethostname_args *); +int sys_oaccept (struct accept_args *); +int sys_osend (struct osend_args *); +int sys_orecv (struct orecv_args *); +int sys_osigvec (struct osigvec_args *); +int sys_osigblock (struct osigblock_args *); +int sys_osigsetmask (struct osigsetmask_args *); +int sys_osigstack (struct osigstack_args *); +int sys_orecvmsg (struct orecvmsg_args *); +int sys_osendmsg (struct osendmsg_args *); +int sys_orecvfrom (struct recvfrom_args *); +int sys_otruncate (struct otruncate_args *); +int sys_oftruncate (struct oftruncate_args *); +int sys_ogetpeername (struct ogetpeername_args *); +int sys_ogethostid (struct ogethostid_args *); +int sys_osethostid (struct osethostid_args *); +int sys_ogetrlimit (struct ogetrlimit_args *); +int sys_osetrlimit (struct osetrlimit_args *); +int sys_okillpg (struct okillpg_args *); +int sys_oquota (struct oquota_args *); +int sys_ogetsockname (struct getsockname_args *); +int sys_ogetdirentries (struct ogetdirentries_args *); #endif /* _KERNEL */ @@ -2535,12 +2535,12 @@ struct dfbsd12_fhstat_args { #ifdef _KERNEL -int dfbsd12_stat (struct dfbsd12_stat_args *); -int dfbsd12_fstat (struct dfbsd12_fstat_args *); -int dfbsd12_lstat (struct dfbsd12_lstat_args *); -int dfbsd12_getdirentries (struct dfbsd12_getdirentries_args *); -int dfbsd12_getdents (struct dfbsd12_getdents_args *); -int dfbsd12_fhstat (struct dfbsd12_fhstat_args *); +int sys_dfbsd12_stat (struct dfbsd12_stat_args *); +int sys_dfbsd12_fstat (struct dfbsd12_fstat_args *); +int sys_dfbsd12_lstat (struct dfbsd12_lstat_args *); +int sys_dfbsd12_getdirentries (struct dfbsd12_getdirentries_args *); +int sys_dfbsd12_getdents (struct dfbsd12_getdents_args *); +int sys_dfbsd12_fhstat (struct dfbsd12_fhstat_args *); #endif /* _KERNEL */ @@ -2551,265 +2551,265 @@ int dfbsd12_fhstat (struct dfbsd12_fhstat_args *); #ifdef COMPAT_43 #endif -int nosys (struct nosys_args *); -void sys_exit (struct sys_exit_args *); -int fork (struct fork_args *); -int read (struct read_args *); -int write (struct write_args *); -int open (struct open_args *); -int close (struct close_args *); -int wait4 (struct wait_args *); -int link (struct link_args *); -int unlink (struct unlink_args *); -int chdir (struct chdir_args *); -int fchdir (struct fchdir_args *); -int mknod (struct mknod_args *); -int chmod (struct chmod_args *); -int chown (struct chown_args *); -int obreak (struct obreak_args *); -int getfsstat (struct getfsstat_args *); -int getpid (struct getpid_args *); -int mount (struct mount_args *); -int unmount (struct unmount_args *); -int setuid (struct setuid_args *); -int getuid (struct getuid_args *); -int geteuid (struct geteuid_args *); -int ptrace (struct ptrace_args *); -int recvmsg (struct recvmsg_args *); -int sendmsg (struct sendmsg_args *); -int recvfrom (struct recvfrom_args *); -int accept (struct accept_args *); -int getpeername (struct getpeername_args *); -int getsockname (struct getsockname_args *); -int access (struct access_args *); -int chflags (struct chflags_args *); -int fchflags (struct fchflags_args *); -int sync (struct sync_args *); -int kill (struct kill_args *); -int getppid (struct getppid_args *); -int dup (struct dup_args *); -int pipe (struct pipe_args *); -int getegid (struct getegid_args *); -int profil (struct profil_args *); -int ktrace (struct ktrace_args *); -int getgid (struct getgid_args *); -int getlogin (struct getlogin_args *); -int setlogin (struct setlogin_args *); -int acct (struct acct_args *); -int sigaltstack (struct sigaltstack_args *); -int ioctl (struct ioctl_args *); -int reboot (struct reboot_args *); -int revoke (struct revoke_args *); -int symlink (struct symlink_args *); -int readlink (struct readlink_args *); -int execve (struct execve_args *); -int umask (struct umask_args *); -int chroot (struct chroot_args *); -int msync (struct msync_args *); -int vfork (struct vfork_args *); -int sbrk (struct sbrk_args *); -int sstk (struct sstk_args *); -int ovadvise (struct ovadvise_args *); -int munmap (struct munmap_args *); -int mprotect (struct mprotect_args *); -int madvise (struct madvise_args *); -int mincore (struct mincore_args *); -int getgroups (struct getgroups_args *); -int setgroups (struct setgroups_args *); -int getpgrp (struct getpgrp_args *); -int setpgid (struct setpgid_args *); -int setitimer (struct setitimer_args *); -int swapon (struct swapon_args *); -int getitimer (struct getitimer_args *); -int getdtablesize (struct getdtablesize_args *); -int dup2 (struct dup2_args *); -int fcntl (struct fcntl_args *); -int select (struct select_args *); -int fsync (struct fsync_args *); -int setpriority (struct setpriority_args *); -int socket (struct socket_args *); -int connect (struct connect_args *); -int getpriority (struct getpriority_args *); -int bind (struct bind_args *); -int setsockopt (struct setsockopt_args *); -int listen (struct listen_args *); -int gettimeofday (struct gettimeofday_args *); -int getrusage (struct getrusage_args *); -int getsockopt (struct getsockopt_args *); -int readv (struct readv_args *); -int writev (struct writev_args *); -int settimeofday (struct settimeofday_args *); -int fchown (struct fchown_args *); -int fchmod (struct fchmod_args *); -int setreuid (struct setreuid_args *); -int setregid (struct setregid_args *); -int rename (struct rename_args *); -int flock (struct flock_args *); -int mkfifo (struct mkfifo_args *); -int sendto (struct sendto_args *); -int shutdown (struct shutdown_args *); -int socketpair (struct socketpair_args *); -int mkdir (struct mkdir_args *); -int rmdir (struct rmdir_args *); -int utimes (struct utimes_args *); -int adjtime (struct adjtime_args *); -int setsid (struct setsid_args *); -int quotactl (struct quotactl_args *); -int nfssvc (struct nfssvc_args *); -int statfs (struct statfs_args *); -int fstatfs (struct fstatfs_args *); -int getfh (struct getfh_args *); -int getdomainname (struct getdomainname_args *); -int setdomainname (struct setdomainname_args *); -int uname (struct uname_args *); -int sysarch (struct sysarch_args *); -int rtprio (struct rtprio_args *); -int semsys (struct semsys_args *); -int msgsys (struct msgsys_args *); -int shmsys (struct shmsys_args *); -int pread (struct pread_args *); -int pwrite (struct pwrite_args *); -int ntp_adjtime (struct ntp_adjtime_args *); -int setgid (struct setgid_args *); -int setegid (struct setegid_args *); -int seteuid (struct seteuid_args *); -int pathconf (struct pathconf_args *); -int fpathconf (struct fpathconf_args *); -int getrlimit (struct __getrlimit_args *); -int setrlimit (struct __setrlimit_args *); -int mmap (struct mmap_args *); -int lseek (struct lseek_args *); -int truncate (struct truncate_args *); -int ftruncate (struct ftruncate_args *); -int __sysctl (struct sysctl_args *); -int mlock (struct mlock_args *); -int munlock (struct munlock_args *); -int undelete (struct undelete_args *); -int futimes (struct futimes_args *); -int getpgid (struct getpgid_args *); -int poll (struct poll_args *); -int lkmnosys (struct nosys_args *); -int __semctl (struct __semctl_args *); -int semget (struct semget_args *); -int semop (struct semop_args *); -int msgctl (struct msgctl_args *); -int msgget (struct msgget_args *); -int msgsnd (struct msgsnd_args *); -int msgrcv (struct msgrcv_args *); -int shmat (struct shmat_args *); -int shmctl (struct shmctl_args *); -int shmdt (struct shmdt_args *); -int shmget (struct shmget_args *); -int clock_gettime (struct clock_gettime_args *); -int clock_settime (struct clock_settime_args *); -int clock_getres (struct clock_getres_args *); -int nanosleep (struct nanosleep_args *); -int minherit (struct minherit_args *); -int rfork (struct rfork_args *); -int openbsd_poll (struct openbsd_poll_args *); -int issetugid (struct issetugid_args *); -int lchown (struct lchown_args *); -int lchmod (struct lchmod_args *); -int lutimes (struct lutimes_args *); -int preadv (struct preadv_args *); -int pwritev (struct pwritev_args *); -int fhstatfs (struct fhstatfs_args *); -int fhopen (struct fhopen_args *); -int modnext (struct modnext_args *); -int modstat (struct modstat_args *); -int modfnext (struct modfnext_args *); -int modfind (struct modfind_args *); -int kldload (struct kldload_args *); -int kldunload (struct kldunload_args *); -int kldfind (struct kldfind_args *); -int kldnext (struct kldnext_args *); -int kldstat (struct kldstat_args *); -int kldfirstmod (struct kldfirstmod_args *); -int getsid (struct getsid_args *); -int setresuid (struct setresuid_args *); -int setresgid (struct setresgid_args *); -int aio_return (struct aio_return_args *); -int aio_suspend (struct aio_suspend_args *); -int aio_cancel (struct aio_cancel_args *); -int aio_error (struct aio_error_args *); -int aio_read (struct aio_read_args *); -int aio_write (struct aio_write_args *); -int lio_listio (struct lio_listio_args *); -int yield (struct yield_args *); -int thr_sleep (struct thr_sleep_args *); -int thr_wakeup (struct thr_wakeup_args *); -int mlockall (struct mlockall_args *); -int munlockall (struct munlockall_args *); -int __getcwd (struct __getcwd_args *); -int sched_setparam (struct sched_setparam_args *); -int sched_getparam (struct sched_getparam_args *); -int sched_setscheduler (struct sched_setscheduler_args *); -int sched_getscheduler (struct sched_getscheduler_args *); -int sched_yield (struct sched_yield_args *); -int sched_get_priority_max (struct sched_get_priority_max_args *); -int sched_get_priority_min (struct sched_get_priority_min_args *); -int sched_rr_get_interval (struct sched_rr_get_interval_args *); -int utrace (struct utrace_args *); -int kldsym (struct kldsym_args *); -int jail (struct jail_args *); -int sigprocmask (struct sigprocmask_args *); -int sigsuspend (struct sigsuspend_args *); -int sigaction (struct sigaction_args *); -int sigpending (struct sigpending_args *); -int sigreturn (struct sigreturn_args *); -int sigtimedwait (struct sigtimedwait_args *); -int sigwaitinfo (struct sigwaitinfo_args *); -int __acl_get_file (struct __acl_get_file_args *); -int __acl_set_file (struct __acl_set_file_args *); -int __acl_get_fd (struct __acl_get_fd_args *); -int __acl_set_fd (struct __acl_set_fd_args *); -int __acl_delete_file (struct __acl_delete_file_args *); -int __acl_delete_fd (struct __acl_delete_fd_args *); -int __acl_aclcheck_file (struct __acl_aclcheck_file_args *); -int __acl_aclcheck_fd (struct __acl_aclcheck_fd_args *); -int extattrctl (struct extattrctl_args *); -int extattr_set_file (struct extattr_set_file_args *); -int extattr_get_file (struct extattr_get_file_args *); -int extattr_delete_file (struct extattr_delete_file_args *); -int aio_waitcomplete (struct aio_waitcomplete_args *); -int getresuid (struct getresuid_args *); -int getresgid (struct getresgid_args *); -int kqueue (struct kqueue_args *); -int kevent (struct kevent_args *); -int sctp_peeloff (struct sctp_peeloff_args *); -int sendfile (struct sendfile_args *); -int varsym_set (struct varsym_set_args *); -int varsym_get (struct varsym_get_args *); -int varsym_list (struct varsym_list_args *); -int upc_register (struct upc_register_args *); -int upc_control (struct upc_control_args *); -int caps_sys_service (struct caps_sys_service_args *); -int caps_sys_client (struct caps_sys_client_args *); -int caps_sys_close (struct caps_sys_close_args *); -int caps_sys_put (struct caps_sys_put_args *); -int caps_sys_reply (struct caps_sys_reply_args *); -int caps_sys_get (struct caps_sys_get_args *); -int caps_sys_wait (struct caps_sys_wait_args *); -int caps_sys_abort (struct caps_sys_abort_args *); -int caps_sys_getgen (struct caps_sys_getgen_args *); -int caps_sys_setgen (struct caps_sys_setgen_args *); -int exec_sys_register (struct exec_sys_register_args *); -int exec_sys_unregister (struct exec_sys_unregister_args *); -int sys_checkpoint (struct sys_checkpoint_args *); -int mountctl (struct mountctl_args *); -int umtx_sleep (struct umtx_sleep_args *); -int umtx_wakeup (struct umtx_wakeup_args *); -int jail_attach (struct jail_attach_args *); -int sys_set_tls_area (struct sys_set_tls_area_args *); -int sys_get_tls_area (struct sys_get_tls_area_args *); -int closefrom (struct closefrom_args *); -int stat (struct stat_args *); -int fstat (struct fstat_args *); -int lstat (struct lstat_args *); -int fhstat (struct fhstat_args *); -int getdirentries (struct getdirentries_args *); -int getdents (struct getdents_args *); -int usched_set (struct usched_set_args *); +int sys_nosys (struct nosys_args *); +int sys_exit (struct exit_args *); +int sys_fork (struct fork_args *); +int sys_read (struct read_args *); +int sys_write (struct write_args *); +int sys_open (struct open_args *); +int sys_close (struct close_args *); +int sys_wait4 (struct wait_args *); +int sys_link (struct link_args *); +int sys_unlink (struct unlink_args *); +int sys_chdir (struct chdir_args *); +int sys_fchdir (struct fchdir_args *); +int sys_mknod (struct mknod_args *); +int sys_chmod (struct chmod_args *); +int sys_chown (struct chown_args *); +int sys_obreak (struct obreak_args *); +int sys_getfsstat (struct getfsstat_args *); +int sys_getpid (struct getpid_args *); +int sys_mount (struct mount_args *); +int sys_unmount (struct unmount_args *); +int sys_setuid (struct setuid_args *); +int sys_getuid (struct getuid_args *); +int sys_geteuid (struct geteuid_args *); +int sys_ptrace (struct ptrace_args *); +int sys_recvmsg (struct recvmsg_args *); +int sys_sendmsg (struct sendmsg_args *); +int sys_recvfrom (struct recvfrom_args *); +int sys_accept (struct accept_args *); +int sys_getpeername (struct getpeername_args *); +int sys_getsockname (struct getsockname_args *); +int sys_access (struct access_args *); +int sys_chflags (struct chflags_args *); +int sys_fchflags (struct fchflags_args *); +int sys_sync (struct sync_args *); +int sys_kill (struct kill_args *); +int sys_getppid (struct getppid_args *); +int sys_dup (struct dup_args *); +int sys_pipe (struct pipe_args *); +int sys_getegid (struct getegid_args *); +int sys_profil (struct profil_args *); +int sys_ktrace (struct ktrace_args *); +int sys_getgid (struct getgid_args *); +int sys_getlogin (struct getlogin_args *); +int sys_setlogin (struct setlogin_args *); +int sys_acct (struct acct_args *); +int sys_sigaltstack (struct sigaltstack_args *); +int sys_ioctl (struct ioctl_args *); +int sys_reboot (struct reboot_args *); +int sys_revoke (struct revoke_args *); +int sys_symlink (struct symlink_args *); +int sys_readlink (struct readlink_args *); +int sys_execve (struct execve_args *); +int sys_umask (struct umask_args *); +int sys_chroot (struct chroot_args *); +int sys_msync (struct msync_args *); +int sys_vfork (struct vfork_args *); +int sys_sbrk (struct sbrk_args *); +int sys_sstk (struct sstk_args *); +int sys_ovadvise (struct ovadvise_args *); +int sys_munmap (struct munmap_args *); +int sys_mprotect (struct mprotect_args *); +int sys_madvise (struct madvise_args *); +int sys_mincore (struct mincore_args *); +int sys_getgroups (struct getgroups_args *); +int sys_setgroups (struct setgroups_args *); +int sys_getpgrp (struct getpgrp_args *); +int sys_setpgid (struct setpgid_args *); +int sys_setitimer (struct setitimer_args *); +int sys_swapon (struct swapon_args *); +int sys_getitimer (struct getitimer_args *); +int sys_getdtablesize (struct getdtablesize_args *); +int sys_dup2 (struct dup2_args *); +int sys_fcntl (struct fcntl_args *); +int sys_select (struct select_args *); +int sys_fsync (struct fsync_args *); +int sys_setpriority (struct setpriority_args *); +int sys_socket (struct socket_args *); +int sys_connect (struct connect_args *); +int sys_getpriority (struct getpriority_args *); +int sys_bind (struct bind_args *); +int sys_setsockopt (struct setsockopt_args *); +int sys_listen (struct listen_args *); +int sys_gettimeofday (struct gettimeofday_args *); +int sys_getrusage (struct getrusage_args *); +int sys_getsockopt (struct getsockopt_args *); +int sys_readv (struct readv_args *); +int sys_writev (struct writev_args *); +int sys_settimeofday (struct settimeofday_args *); +int sys_fchown (struct fchown_args *); +int sys_fchmod (struct fchmod_args *); +int sys_setreuid (struct setreuid_args *); +int sys_setregid (struct setregid_args *); +int sys_rename (struct rename_args *); +int sys_flock (struct flock_args *); +int sys_mkfifo (struct mkfifo_args *); +int sys_sendto (struct sendto_args *); +int sys_shutdown (struct shutdown_args *); +int sys_socketpair (struct socketpair_args *); +int sys_mkdir (struct mkdir_args *); +int sys_rmdir (struct rmdir_args *); +int sys_utimes (struct utimes_args *); +int sys_adjtime (struct adjtime_args *); +int sys_setsid (struct setsid_args *); +int sys_quotactl (struct quotactl_args *); +int sys_nfssvc (struct nfssvc_args *); +int sys_statfs (struct statfs_args *); +int sys_fstatfs (struct fstatfs_args *); +int sys_getfh (struct getfh_args *); +int sys_getdomainname (struct getdomainname_args *); +int sys_setdomainname (struct setdomainname_args *); +int sys_uname (struct uname_args *); +int sys_sysarch (struct sysarch_args *); +int sys_rtprio (struct rtprio_args *); +int sys_semsys (struct semsys_args *); +int sys_msgsys (struct msgsys_args *); +int sys_shmsys (struct shmsys_args *); +int sys_pread (struct pread_args *); +int sys_pwrite (struct pwrite_args *); +int sys_ntp_adjtime (struct ntp_adjtime_args *); +int sys_setgid (struct setgid_args *); +int sys_setegid (struct setegid_args *); +int sys_seteuid (struct seteuid_args *); +int sys_pathconf (struct pathconf_args *); +int sys_fpathconf (struct fpathconf_args *); +int sys_getrlimit (struct __getrlimit_args *); +int sys_setrlimit (struct __setrlimit_args *); +int sys_mmap (struct mmap_args *); +int sys_lseek (struct lseek_args *); +int sys_truncate (struct truncate_args *); +int sys_ftruncate (struct ftruncate_args *); +int sys___sysctl (struct sysctl_args *); +int sys_mlock (struct mlock_args *); +int sys_munlock (struct munlock_args *); +int sys_undelete (struct undelete_args *); +int sys_futimes (struct futimes_args *); +int sys_getpgid (struct getpgid_args *); +int sys_poll (struct poll_args *); +int sys_lkmnosys (struct nosys_args *); +int sys___semctl (struct __semctl_args *); +int sys_semget (struct semget_args *); +int sys_semop (struct semop_args *); +int sys_msgctl (struct msgctl_args *); +int sys_msgget (struct msgget_args *); +int sys_msgsnd (struct msgsnd_args *); +int sys_msgrcv (struct msgrcv_args *); +int sys_shmat (struct shmat_args *); +int sys_shmctl (struct shmctl_args *); +int sys_shmdt (struct shmdt_args *); +int sys_shmget (struct shmget_args *); +int sys_clock_gettime (struct clock_gettime_args *); +int sys_clock_settime (struct clock_settime_args *); +int sys_clock_getres (struct clock_getres_args *); +int sys_nanosleep (struct nanosleep_args *); +int sys_minherit (struct minherit_args *); +int sys_rfork (struct rfork_args *); +int sys_openbsd_poll (struct openbsd_poll_args *); +int sys_issetugid (struct issetugid_args *); +int sys_lchown (struct lchown_args *); +int sys_lchmod (struct lchmod_args *); +int sys_lutimes (struct lutimes_args *); +int sys_preadv (struct preadv_args *); +int sys_pwritev (struct pwritev_args *); +int sys_fhstatfs (struct fhstatfs_args *); +int sys_fhopen (struct fhopen_args *); +int sys_modnext (struct modnext_args *); +int sys_modstat (struct modstat_args *); +int sys_modfnext (struct modfnext_args *); +int sys_modfind (struct modfind_args *); +int sys_kldload (struct kldload_args *); +int sys_kldunload (struct kldunload_args *); +int sys_kldfind (struct kldfind_args *); +int sys_kldnext (struct kldnext_args *); +int sys_kldstat (struct kldstat_args *); +int sys_kldfirstmod (struct kldfirstmod_args *); +int sys_getsid (struct getsid_args *); +int sys_setresuid (struct setresuid_args *); +int sys_setresgid (struct setresgid_args *); +int sys_aio_return (struct aio_return_args *); +int sys_aio_suspend (struct aio_suspend_args *); +int sys_aio_cancel (struct aio_cancel_args *); +int sys_aio_error (struct aio_error_args *); +int sys_aio_read (struct aio_read_args *); +int sys_aio_write (struct aio_write_args *); +int sys_lio_listio (struct lio_listio_args *); +int sys_yield (struct yield_args *); +int sys_thr_sleep (struct thr_sleep_args *); +int sys_thr_wakeup (struct thr_wakeup_args *); +int sys_mlockall (struct mlockall_args *); +int sys_munlockall (struct munlockall_args *); +int sys___getcwd (struct __getcwd_args *); +int sys_sched_setparam (struct sched_setparam_args *); +int sys_sched_getparam (struct sched_getparam_args *); +int sys_sched_setscheduler (struct sched_setscheduler_args *); +int sys_sched_getscheduler (struct sched_getscheduler_args *); +int sys_sched_yield (struct sched_yield_args *); +int sys_sched_get_priority_max (struct sched_get_priority_max_args *); +int sys_sched_get_priority_min (struct sched_get_priority_min_args *); +int sys_sched_rr_get_interval (struct sched_rr_get_interval_args *); +int sys_utrace (struct utrace_args *); +int sys_kldsym (struct kldsym_args *); +int sys_jail (struct jail_args *); +int sys_sigprocmask (struct sigprocmask_args *); +int sys_sigsuspend (struct sigsuspend_args *); +int sys_sigaction (struct sigaction_args *); +int sys_sigpending (struct sigpending_args *); +int sys_sigreturn (struct sigreturn_args *); +int sys_sigtimedwait (struct sigtimedwait_args *); +int sys_sigwaitinfo (struct sigwaitinfo_args *); +int sys___acl_get_file (struct __acl_get_file_args *); +int sys___acl_set_file (struct __acl_set_file_args *); +int sys___acl_get_fd (struct __acl_get_fd_args *); +int sys___acl_set_fd (struct __acl_set_fd_args *); +int sys___acl_delete_file (struct __acl_delete_file_args *); +int sys___acl_delete_fd (struct __acl_delete_fd_args *); +int sys___acl_aclcheck_file (struct __acl_aclcheck_file_args *); +int sys___acl_aclcheck_fd (struct __acl_aclcheck_fd_args *); +int sys_extattrctl (struct extattrctl_args *); +int sys_extattr_set_file (struct extattr_set_file_args *); +int sys_extattr_get_file (struct extattr_get_file_args *); +int sys_extattr_delete_file (struct extattr_delete_file_args *); +int sys_aio_waitcomplete (struct aio_waitcomplete_args *); +int sys_getresuid (struct getresuid_args *); +int sys_getresgid (struct getresgid_args *); +int sys_kqueue (struct kqueue_args *); +int sys_kevent (struct kevent_args *); +int sys_sctp_peeloff (struct sctp_peeloff_args *); +int sys_sendfile (struct sendfile_args *); +int sys_varsym_set (struct varsym_set_args *); +int sys_varsym_get (struct varsym_get_args *); +int sys_varsym_list (struct varsym_list_args *); +int sys_upc_register (struct upc_register_args *); +int sys_upc_control (struct upc_control_args *); +int sys_caps_sys_service (struct caps_sys_service_args *); +int sys_caps_sys_client (struct caps_sys_client_args *); +int sys_caps_sys_close (struct caps_sys_close_args *); +int sys_caps_sys_put (struct caps_sys_put_args *); +int sys_caps_sys_reply (struct caps_sys_reply_args *); +int sys_caps_sys_get (struct caps_sys_get_args *); +int sys_caps_sys_wait (struct caps_sys_wait_args *); +int sys_caps_sys_abort (struct caps_sys_abort_args *); +int sys_caps_sys_getgen (struct caps_sys_getgen_args *); +int sys_caps_sys_setgen (struct caps_sys_setgen_args *); +int sys_exec_sys_register (struct exec_sys_register_args *); +int sys_exec_sys_unregister (struct exec_sys_unregister_args *); +int sys_sys_checkpoint (struct sys_checkpoint_args *); +int sys_mountctl (struct mountctl_args *); +int sys_umtx_sleep (struct umtx_sleep_args *); +int sys_umtx_wakeup (struct umtx_wakeup_args *); +int sys_jail_attach (struct jail_attach_args *); +int sys_sys_set_tls_area (struct sys_set_tls_area_args *); +int sys_sys_get_tls_area (struct sys_get_tls_area_args *); +int sys_closefrom (struct closefrom_args *); +int sys_stat (struct stat_args *); +int sys_fstat (struct fstat_args *); +int sys_lstat (struct lstat_args *); +int sys_fhstat (struct fhstat_args *); +int sys_getdirentries (struct getdirentries_args *); +int sys_getdents (struct getdents_args *); +int sys_usched_set (struct usched_set_args *); #endif /* !_SYS_SYSPROTO_H_ */ #undef PAD_ diff --git a/sys/sys/sysunion.h b/sys/sys/sysunion.h index eec50ec673..b00f63df6d 100644 --- a/sys/sys/sysunion.h +++ b/sys/sys/sysunion.h @@ -2,8 +2,8 @@ * Union of syscall args for messaging. * * DO NOT EDIT-- this file is automatically generated. - * $DragonFly: src/sys/sys/sysunion.h,v 1.35 2006/06/05 00:35:05 davidxu Exp $ - * created from DragonFly: src/sys/kern/syscalls.master,v 1.36 2006/05/27 20:17:16 dillon Exp + * $DragonFly: src/sys/sys/sysunion.h,v 1.36 2006/06/05 07:26:11 dillon Exp $ + * created from DragonFly: src/sys/kern/syscalls.master,v 1.37 2006/06/05 00:33:36 davidxu Exp */ union sysunion { @@ -14,7 +14,7 @@ union sysunion { #ifdef COMPAT_43 #endif struct nosys_args nosys; - struct sys_exit_args sys_exit; + struct exit_args exit; struct fork_args fork; struct read_args read; struct write_args write; @@ -22,7 +22,7 @@ union sysunion { struct close_args close; struct wait_args wait4; #ifdef COMPAT_43 - struct ocreat_args ocreat; + struct ocreat_args sys_ocreat; #endif struct link_args link; struct unlink_args unlink; @@ -34,7 +34,7 @@ union sysunion { struct obreak_args obreak; struct getfsstat_args getfsstat; #ifdef COMPAT_43 - struct olseek_args olseek; + struct olseek_args sys_olseek; #endif struct getpid_args getpid; struct mount_args mount; @@ -55,11 +55,11 @@ union sysunion { struct sync_args sync; struct kill_args kill; #ifdef COMPAT_43 - struct ostat_args ostat; + struct ostat_args sys_ostat; #endif struct getppid_args getppid; #ifdef COMPAT_43 - struct olstat_args olstat; + struct olstat_args sys_olstat; #endif struct dup_args dup; struct pipe_args pipe; @@ -80,7 +80,7 @@ union sysunion { struct umask_args umask; struct chroot_args chroot; #ifdef COMPAT_43 - struct ofstat_args ofstat; + struct ofstat_args sys_ofstat; #endif #ifdef COMPAT_43 struct getkerninfo_args getkerninfo; @@ -91,7 +91,7 @@ union sysunion { struct sbrk_args sbrk; struct sstk_args sstk; #ifdef COMPAT_43 - struct ommap_args ommap; + struct ommap_args sys_ommap; #endif struct ovadvise_args ovadvise; struct munmap_args munmap; @@ -103,7 +103,7 @@ union sysunion { struct getpgrp_args getpgrp; struct setpgid_args setpgid; struct setitimer_args setitimer; - struct owait_args owait; + struct owait_args sys_owait; struct swapon_args swapon; struct getitimer_args getitimer; #ifdef COMPAT_43 @@ -122,31 +122,31 @@ union sysunion { struct connect_args connect; struct getpriority_args getpriority; #ifdef COMPAT_43 - struct osend_args osend; + struct osend_args sys_osend; #endif #ifdef COMPAT_43 - struct orecv_args orecv; + struct orecv_args sys_orecv; #endif struct bind_args bind; struct setsockopt_args setsockopt; struct listen_args listen; #ifdef COMPAT_43 - struct osigvec_args osigvec; + struct osigvec_args sys_osigvec; #endif #ifdef COMPAT_43 - struct osigblock_args osigblock; + struct osigblock_args sys_osigblock; #endif #ifdef COMPAT_43 - struct osigsetmask_args osigsetmask; + struct osigsetmask_args sys_osigsetmask; #endif #ifdef COMPAT_43 - struct osigstack_args osigstack; + struct osigstack_args sys_osigstack; #endif #ifdef COMPAT_43 - struct orecvmsg_args orecvmsg; + struct orecvmsg_args sys_orecvmsg; #endif #ifdef COMPAT_43 - struct osendmsg_args osendmsg; + struct osendmsg_args sys_osendmsg; #endif struct gettimeofday_args gettimeofday; struct getrusage_args getrusage; @@ -160,10 +160,10 @@ union sysunion { struct setregid_args setregid; struct rename_args rename; #ifdef COMPAT_43 - struct otruncate_args otruncate; + struct otruncate_args sys_otruncate; #endif #ifdef COMPAT_43 - struct oftruncate_args oftruncate; + struct oftruncate_args sys_oftruncate; #endif struct flock_args flock; struct mkfifo_args mkfifo; @@ -175,27 +175,27 @@ union sysunion { struct utimes_args utimes; struct adjtime_args adjtime; #ifdef COMPAT_43 - struct ogetpeername_args ogetpeername; + struct ogetpeername_args sys_ogetpeername; #endif - struct ogethostid_args ogethostid; + struct ogethostid_args sys_ogethostid; #ifdef COMPAT_43 - struct osethostid_args osethostid; + struct osethostid_args sys_osethostid; #endif #ifdef COMPAT_43 - struct ogetrlimit_args ogetrlimit; + struct ogetrlimit_args sys_ogetrlimit; #endif #ifdef COMPAT_43 - struct osetrlimit_args osetrlimit; + struct osetrlimit_args sys_osetrlimit; #endif #ifdef COMPAT_43 - struct okillpg_args okillpg; + struct okillpg_args sys_okillpg; #endif struct setsid_args setsid; struct quotactl_args quotactl; - struct oquota_args oquota; + struct oquota_args sys_oquota; struct nfssvc_args nfssvc; #ifdef COMPAT_43 - struct ogetdirentries_args ogetdirentries; + struct ogetdirentries_args sys_ogetdirentries; #endif struct statfs_args statfs; struct fstatfs_args fstatfs; @@ -215,20 +215,20 @@ union sysunion { struct setegid_args setegid; struct seteuid_args seteuid; #ifdef COMPAT_DF12 - struct dfbsd12_stat_args dfbsd12_stat; + struct dfbsd12_stat_args sys_dfbsd12_stat; #endif #ifdef COMPAT_DF12 - struct dfbsd12_fstat_args dfbsd12_fstat; + struct dfbsd12_fstat_args sys_dfbsd12_fstat; #endif #ifdef COMPAT_DF12 - struct dfbsd12_lstat_args dfbsd12_lstat; + struct dfbsd12_lstat_args sys_dfbsd12_lstat; #endif struct pathconf_args pathconf; struct fpathconf_args fpathconf; struct __getrlimit_args getrlimit; struct __setrlimit_args setrlimit; #ifdef COMPAT_DF12 - struct dfbsd12_getdirentries_args dfbsd12_getdirentries; + struct dfbsd12_getdirentries_args sys_dfbsd12_getdirentries; #endif struct mmap_args mmap; struct lseek_args lseek; @@ -262,7 +262,7 @@ union sysunion { struct issetugid_args issetugid; struct lchown_args lchown; #ifdef COMPAT_DF12 - struct dfbsd12_getdents_args dfbsd12_getdents; + struct dfbsd12_getdents_args sys_dfbsd12_getdents; #endif struct lchmod_args lchmod; struct lutimes_args lutimes; @@ -271,7 +271,7 @@ union sysunion { struct fhstatfs_args fhstatfs; struct fhopen_args fhopen; #ifdef COMPAT_DF12 - struct dfbsd12_fhstat_args dfbsd12_fhstat; + struct dfbsd12_fhstat_args sys_dfbsd12_fhstat; #endif struct modnext_args modnext; struct modstat_args modstat; diff --git a/sys/vfs/mfs/mfs_vnops.c b/sys/vfs/mfs/mfs_vnops.c index 17b467e121..3f3558dd32 100644 --- a/sys/vfs/mfs/mfs_vnops.c +++ b/sys/vfs/mfs/mfs_vnops.c @@ -32,7 +32,7 @@ * * @(#)mfs_vnops.c 8.11 (Berkeley) 5/22/95 * $FreeBSD: src/sys/ufs/mfs/mfs_vnops.c,v 1.47.2.1 2001/05/22 02:06:43 bp Exp $ - * $DragonFly: src/sys/vfs/mfs/mfs_vnops.c,v 1.27 2006/05/06 02:43:14 dillon Exp $ + * $DragonFly: src/sys/vfs/mfs/mfs_vnops.c,v 1.28 2006/06/05 07:26:11 dillon Exp $ */ #include @@ -269,7 +269,7 @@ mfs_doio(struct bio *bio, struct mfsnode *mfsp) uap.addr = base; uap.len = bytes; uap.behav = MADV_FREE; - madvise(&uap); + sys_madvise(&uap); } } bp->b_error = 0; diff --git a/sys/vfs/nfs/nfs_subs.c b/sys/vfs/nfs/nfs_subs.c index 3cf56095aa..8242b1a43e 100644 --- a/sys/vfs/nfs/nfs_subs.c +++ b/sys/vfs/nfs/nfs_subs.c @@ -35,7 +35,7 @@ * * @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95 * $FreeBSD: /repoman/r/ncvs/src/sys/nfsclient/nfs_subs.c,v 1.128 2004/04/14 23:23:55 peadar Exp $ - * $DragonFly: src/sys/vfs/nfs/nfs_subs.c,v 1.39 2006/06/01 06:10:57 dillon Exp $ + * $DragonFly: src/sys/vfs/nfs/nfs_subs.c,v 1.40 2006/06/05 07:26:11 dillon Exp $ */ /* @@ -549,7 +549,7 @@ extern struct nfsnodehashhead *nfsnodehashtbl; extern u_long nfsnodehash; struct nfssvc_args; -extern int nfssvc(struct proc *, struct nfssvc_args *, int *); +extern int sys_nfssvc(struct proc *, struct nfssvc_args *, int *); LIST_HEAD(nfsnodehashhead, nfsnode); @@ -1076,7 +1076,7 @@ nfs_init(struct vfsconf *vfsp) nfs_prev_nfssvc_sy_narg = sysent[SYS_nfssvc].sy_narg; sysent[SYS_nfssvc].sy_narg = 2; nfs_prev_nfssvc_sy_call = sysent[SYS_nfssvc].sy_call; - sysent[SYS_nfssvc].sy_call = (sy_call_t *)nfssvc; + sysent[SYS_nfssvc].sy_call = (sy_call_t *)sys_nfssvc; nfs_pbuf_freecnt = nswbuf / 2 + 1; diff --git a/sys/vfs/nfs/nfs_syscalls.c b/sys/vfs/nfs/nfs_syscalls.c index 8ded24529d..607ab3c8c5 100644 --- a/sys/vfs/nfs/nfs_syscalls.c +++ b/sys/vfs/nfs/nfs_syscalls.c @@ -35,7 +35,7 @@ * * @(#)nfs_syscalls.c 8.5 (Berkeley) 3/30/95 * $FreeBSD: src/sys/nfs/nfs_syscalls.c,v 1.58.2.1 2000/11/26 02:30:06 dillon Exp $ - * $DragonFly: src/sys/vfs/nfs/nfs_syscalls.c,v 1.24 2006/05/06 06:38:39 dillon Exp $ + * $DragonFly: src/sys/vfs/nfs/nfs_syscalls.c,v 1.25 2006/06/05 07:26:11 dillon Exp $ */ #include @@ -131,7 +131,7 @@ SYSCTL_INT(_vfs_nfs, OID_AUTO, soreserve, CTLFLAG_RW, &nfs_soreserve, 0, ""); * - remains in the kernel as an nfsiod */ int -nfssvc(struct nfssvc_args *uap) +sys_nfssvc(struct nfssvc_args *uap) { #ifndef NFS_NOSERVER struct nlookupdata nd; diff --git a/sys/vfs/portal/portal_vnops.c b/sys/vfs/portal/portal_vnops.c index 6525d7fe10..cba4b4ba2b 100644 --- a/sys/vfs/portal/portal_vnops.c +++ b/sys/vfs/portal/portal_vnops.c @@ -36,7 +36,7 @@ * @(#)portal_vnops.c 8.14 (Berkeley) 5/21/95 * * $FreeBSD: src/sys/miscfs/portal/portal_vnops.c,v 1.38 1999/12/21 06:29:00 chris Exp $ - * $DragonFly: src/sys/vfs/portal/portal_vnops.c,v 1.27 2006/05/06 02:43:14 dillon Exp $ + * $DragonFly: src/sys/vfs/portal/portal_vnops.c,v 1.28 2006/06/05 07:26:11 dillon Exp $ */ /* @@ -88,7 +88,7 @@ portal_closefd(struct thread *td, int fd) struct close_args ua; ua.fd = fd; - error = close(&ua); + error = sys_close(&ua); /* * We should never get an error, and there isn't anything * we could do if we got one, so just print a message. diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c index c0904e9c4c..97b274d4c0 100644 --- a/sys/vm/vm_mmap.c +++ b/sys/vm/vm_mmap.c @@ -39,7 +39,7 @@ * * @(#)vm_mmap.c 8.4 (Berkeley) 1/12/94 * $FreeBSD: src/sys/vm/vm_mmap.c,v 1.108.2.6 2002/07/02 20:06:19 dillon Exp $ - * $DragonFly: src/sys/vm/vm_mmap.c,v 1.29 2006/05/19 07:33:46 dillon Exp $ + * $DragonFly: src/sys/vm/vm_mmap.c,v 1.30 2006/06/05 07:26:11 dillon Exp $ */ /* @@ -105,7 +105,7 @@ vmmapentry_rsrc_init(void *dummy) /* ARGSUSED */ int -sbrk(struct sbrk_args *uap) +sys_sbrk(struct sbrk_args *uap) { /* Not yet implemented */ return (EOPNOTSUPP); @@ -116,7 +116,7 @@ sbrk(struct sbrk_args *uap) */ /* ARGSUSED */ int -sstk(struct sstk_args *uap) +sys_sstk(struct sstk_args *uap) { /* Not yet implemented */ return (EOPNOTSUPP); @@ -378,7 +378,7 @@ done: } int -mmap(struct mmap_args *uap) +sys_mmap(struct mmap_args *uap) { int error; @@ -392,7 +392,7 @@ mmap(struct mmap_args *uap) * msync_args(void *addr, int len, int flags) */ int -msync(struct msync_args *uap) +sys_msync(struct msync_args *uap) { struct proc *p = curproc; vm_offset_t addr; @@ -460,7 +460,7 @@ msync(struct msync_args *uap) * munmap_args(void *addr, size_t len) */ int -munmap(struct munmap_args *uap) +sys_munmap(struct munmap_args *uap) { struct proc *p = curproc; vm_offset_t addr; @@ -505,7 +505,7 @@ munmap(struct munmap_args *uap) * mprotect_args(const void *addr, size_t len, int prot) */ int -mprotect(struct mprotect_args *uap) +sys_mprotect(struct mprotect_args *uap) { struct proc *p = curproc; vm_offset_t addr; @@ -541,7 +541,7 @@ mprotect(struct mprotect_args *uap) * minherit_args(void *addr, size_t len, int inherit) */ int -minherit(struct minherit_args *uap) +sys_minherit(struct minherit_args *uap) { struct proc *p = curproc; vm_offset_t addr; @@ -574,7 +574,7 @@ minherit(struct minherit_args *uap) */ /* ARGSUSED */ int -madvise(struct madvise_args *uap) +sys_madvise(struct madvise_args *uap) { struct proc *p = curproc; vm_offset_t start, end; @@ -615,7 +615,7 @@ madvise(struct madvise_args *uap) */ /* ARGSUSED */ int -mincore(struct mincore_args *uap) +sys_mincore(struct mincore_args *uap) { struct proc *p = curproc; vm_offset_t addr, first_addr; @@ -806,7 +806,7 @@ RestartScan: * mlock_args(const void *addr, size_t len) */ int -mlock(struct mlock_args *uap) +sys_mlock(struct mlock_args *uap) { vm_offset_t addr; vm_size_t size, pageoff; @@ -846,7 +846,7 @@ mlock(struct mlock_args *uap) * mlockall_args(int how) */ int -mlockall(struct mlockall_args *uap) +sys_mlockall(struct mlockall_args *uap) { return 0; } @@ -855,7 +855,7 @@ mlockall(struct mlockall_args *uap) * munlockall_args(void) */ int -munlockall(struct munlockall_args *uap) +sys_munlockall(struct munlockall_args *uap) { return 0; } @@ -864,7 +864,7 @@ munlockall(struct munlockall_args *uap) * munlock_args(const void *addr, size_t len) */ int -munlock(struct munlock_args *uap) +sys_munlock(struct munlock_args *uap) { struct thread *td = curthread; struct proc *p = td->td_proc; diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c index 6429383437..22c3d425ab 100644 --- a/sys/vm/vm_swap.c +++ b/sys/vm/vm_swap.c @@ -32,7 +32,7 @@ * * @(#)vm_swap.c 8.5 (Berkeley) 2/17/94 * $FreeBSD: src/sys/vm/vm_swap.c,v 1.96.2.2 2001/10/14 18:46:47 iedowse Exp $ - * $DragonFly: src/sys/vm/vm_swap.c,v 1.25 2006/05/06 02:43:15 dillon Exp $ + * $DragonFly: src/sys/vm/vm_swap.c,v 1.26 2006/06/05 07:26:11 dillon Exp $ */ #include "opt_swap.h" @@ -173,7 +173,7 @@ VNODEOP_SET(swapdev_vnodeop_opv_desc); */ /* ARGSUSED */ int -swapon(struct swapon_args *uap) +sys_swapon(struct swapon_args *uap) { struct thread *td = curthread; struct vattr attr; diff --git a/sys/vm/vm_unix.c b/sys/vm/vm_unix.c index b056b59da8..5df81cba70 100644 --- a/sys/vm/vm_unix.c +++ b/sys/vm/vm_unix.c @@ -39,7 +39,7 @@ * * @(#)vm_unix.c 8.1 (Berkeley) 6/11/93 * $FreeBSD: src/sys/vm/vm_unix.c,v 1.24.2.2 2002/07/02 20:06:19 dillon Exp $ - * $DragonFly: src/sys/vm/vm_unix.c,v 1.4 2003/11/14 20:54:07 daver Exp $ + * $DragonFly: src/sys/vm/vm_unix.c,v 1.5 2006/06/05 07:26:11 dillon Exp $ */ /* @@ -61,7 +61,7 @@ */ /* ARGSUSED */ int -obreak(struct obreak_args *uap) +sys_obreak(struct obreak_args *uap) { struct proc *p = curproc; struct vmspace *vm = p->p_vmspace; -- 2.41.0