One more overcomplex ENOSYS bites the dust.

This commit is contained in:
pooka 2010-03-03 11:07:17 +00:00
parent cd4f4c9856
commit 7cdfc0dfea
2 changed files with 4 additions and 34 deletions

View File

@ -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>
@ -718,36 +718,6 @@ sunos_sys_open(struct lwp *l, const struct sunos_sys_open_args *uap, register_t
return ret;
}
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)
{

View File

@ -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, \