| 1 | /* $NetBSD: uipc_syscalls_30.c,v 1.3 2007/12/20 23:02:45 dsl Exp $ */ |
|---|---|
| 2 | |
| 3 | /* written by Pavel Cahyna, 2006. Public domain. */ |
| 4 | |
| 5 | #include <sys/cdefs.h> |
| 6 | __KERNEL_RCSID(0, "$NetBSD: uipc_syscalls_30.c,v 1.3 2007/12/20 23:02:45 dsl Exp $"); |
| 7 | |
| 8 | /* |
| 9 | * System call interface to the socket abstraction. |
| 10 | */ |
| 11 | |
| 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> |
| 19 | |
| 20 | int |
| 21 | compat_30_sys_socket(struct lwp *l, const struct compat_30_sys_socket_args *uap, register_t *retval) |
| 22 | { |
| 23 | int error; |
| 24 | |
| 25 | error = sys___socket30(l, (const void *)uap, retval); |
| 26 | if (error == EAFNOSUPPORT) |
| 27 | error = EPROTONOSUPPORT; |
| 28 | |
| 29 | return (error); |
| 30 | } |
| 31 |