Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/sunos One more overcomplex ENOSYS bites the dust.
details: https://anonhg.NetBSD.org/src/rev/ce3e579aae8b
branches: trunk
changeset: 752678:ce3e579aae8b
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Mar 03 11:07:17 2010 +0000
description:
One more overcomplex ENOSYS bites the dust.
diffstat:
sys/compat/sunos/sunos_misc.c | 34 ++--------------------------------
sys/compat/sunos/syscalls.master | 4 ++--
2 files changed, 4 insertions(+), 34 deletions(-)
diffs (73 lines):
diff -r f8b466745886 -r ce3e579aae8b sys/compat/sunos/sunos_misc.c
--- a/sys/compat/sunos/sunos_misc.c Wed Mar 03 11:02:34 2010 +0000
+++ b/sys/compat/sunos/sunos_misc.c Wed Mar 03 11:07:17 2010 +0000
@@ -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;
diff -r f8b466745886 -r ce3e579aae8b sys/compat/sunos/syscalls.master
--- a/sys/compat/sunos/syscalls.master Wed Mar 03 11:02:34 2010 +0000
+++ b/sys/compat/sunos/syscalls.master Wed Mar 03 11:07:17 2010 +0000
@@ -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, \
Home |
Main Index |
Thread Index |
Old Index