1 /* $NetBSD: uipc_syscalls_30.c,v 1.2 2007/02/09 21:55:16 ad Exp $ */
3 /* written by Pavel Cahyna, 2006. Public domain. */
6 __KERNEL_RCSID(0, "$NetBSD: uipc_syscalls_30.c,v 1.2 2007/02/09 21:55:16 ad Exp $");
9 * System call interface to the socket abstraction.
12 #include <sys/param.h>
13 #include <sys/kernel.h>
15 #include <sys/sysctl.h>
16 #include <sys/mount.h>
17 #include <sys/syscallargs.h>
18 #include <sys/errno.h>
21 compat_30_sys_socket(struct lwp
*l
, const struct compat_30_sys_socket_args
*uap
, register_t
*retval
)
25 error
= sys___socket30(l
, (const void *)uap
, retval
);
26 if (error
== EAFNOSUPPORT
)
27 error
= EPROTONOSUPPORT
;