Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / compat / common / uipc_syscalls_30.c
blob572ab162203fb1df8f8aafcb0a71221a6984699e
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. */
5 #include <sys/cdefs.h>
6 __KERNEL_RCSID(0, "$NetBSD: uipc_syscalls_30.c,v 1.2 2007/02/09 21:55:16 ad Exp $");
8 /*
9 * System call interface to the socket abstraction.
12 #include <sys/param.h>
13 #include <sys/kernel.h>
14 #include <sys/msg.h>
15 #include <sys/sysctl.h>
16 #include <sys/mount.h>
17 #include <sys/syscallargs.h>
18 #include <sys/errno.h>
20 int
21 compat_30_sys_socket(struct lwp *l, const struct compat_30_sys_socket_args *uap, register_t *retval)
23 int error;
25 error = sys___socket30(l, (const void *)uap, retval);
26 if (error == EAFNOSUPPORT)
27 error = EPROTONOSUPPORT;
29 return (error);