uipc_syscalls_30.c revision 1.2
1/* $NetBSD: uipc_syscalls_30.c,v 1.2 2007/02/09 21:55:16 ad 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.2 2007/02/09 21:55:16 ad 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 20int 21compat_30_sys_socket(struct lwp *l, void *v, register_t *retval) 22{ 23 int error; 24 25 error = sys___socket30(l, v, retval); 26 if (error == EAFNOSUPPORT) 27 error = EPROTONOSUPPORT; 28 29 return (error); 30} 31