Module Name: src Committed By: pooka Date: Wed Mar 3 11:07:17 UTC 2010
Modified Files: src/sys/compat/sunos: sunos_misc.c syscalls.master Log Message: One more overcomplex ENOSYS bites the dust. To generate a diff of this commit: cvs rdiff -u -r1.166 -r1.167 src/sys/compat/sunos/sunos_misc.c cvs rdiff -u -r1.74 -r1.75 src/sys/compat/sunos/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/compat/sunos/sunos_misc.c diff -u src/sys/compat/sunos/sunos_misc.c:1.166 src/sys/compat/sunos/sunos_misc.c:1.167 --- src/sys/compat/sunos/sunos_misc.c:1.166 Wed Mar 3 08:20:39 2010 +++ src/sys/compat/sunos/sunos_misc.c Wed Mar 3 11:07:17 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: sunos_misc.c,v 1.166 2010/03/03 08:20:39 he Exp $ */ +/* $NetBSD: sunos_misc.c,v 1.167 2010/03/03 11:07:17 pooka Exp $ */ /* * Copyright (c) 1992, 1993 @@ -50,7 +50,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sunos_misc.c,v 1.166 2010/03/03 08:20:39 he Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sunos_misc.c,v 1.167 2010/03/03 11:07:17 pooka Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -719,36 +719,6 @@ } int -sunos_sys_nfssvc(struct lwp *l, const struct sunos_sys_nfssvc_args *uap, register_t *retval) -{ -#if 0 - struct proc *p = l->l_proc; - struct emul *e = p->p_emul; - struct sys_nfssvc_args outuap; - struct sockaddr sa; - int error; - void *sg = stackgap_init(p, 0); - - memset(&outuap, 0, sizeof outuap); - SCARG(&outuap, fd) = SCARG(uap, fd); - SCARG(&outuap, mskval) = stackgap_alloc(p, &sg, sizeof(sa)); - SCARG(&outuap, msklen) = sizeof(sa); - SCARG(&outuap, mtchval) = stackgap_alloc(p, &sg, sizeof(sa)); - SCARG(&outuap, mtchlen) = sizeof(sa); - - memset(&sa, 0, sizeof sa); - if (error = copyout(&sa, SCARG(&outuap, mskval), SCARG(&outuap, msklen))) - return (error); - if (error = copyout(&sa, SCARG(&outuap, mtchval), SCARG(&outuap, mtchlen))) - return (error); - - return nfssvc(l, &outuap, retval); -#else - return (ENOSYS); -#endif -} - -int sunos_sys_ustat(struct lwp *l, const struct sunos_sys_ustat_args *uap, register_t *retval) { struct sunos_ustat us; Index: src/sys/compat/sunos/syscalls.master diff -u src/sys/compat/sunos/syscalls.master:1.74 src/sys/compat/sunos/syscalls.master:1.75 --- src/sys/compat/sunos/syscalls.master:1.74 Tue Jan 13 22:27:43 2009 +++ src/sys/compat/sunos/syscalls.master Wed Mar 3 11:07:17 2010 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.74 2009/01/13 22:27:43 pooka Exp $ + $NetBSD: syscalls.master,v 1.75 2010/03/03 11:07:17 pooka Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -249,7 +249,7 @@ 153 NOARGS { int|sys||poll(struct pollfd *fds, u_int nfds, \ int timeout); } 154 UNIMPL -155 STD { int|sunos_sys||nfssvc(int fd); } +155 UNIMPL nfssvc 156 NOARGS { int|compat_12_sys||getdirentries(int fd, char *buf, \ u_int count, long *basep); } 157 STD { int|sunos_sys||statfs(const char *path, \