2007-02-10 00:55:00 +03:00
|
|
|
/* $NetBSD: uipc_syscalls_30.c,v 1.2 2007/02/09 21:55:16 ad Exp $ */
|
2006-06-27 01:23:56 +04:00
|
|
|
|
|
|
|
/* written by Pavel Cahyna, 2006. Public domain. */
|
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
2007-02-10 00:55:00 +03:00
|
|
|
__KERNEL_RCSID(0, "$NetBSD: uipc_syscalls_30.c,v 1.2 2007/02/09 21:55:16 ad Exp $");
|
2006-06-27 01:23:56 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* System call interface to the socket abstraction.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/kernel.h>
|
|
|
|
#include <sys/msg.h>
|
|
|
|
#include <sys/sysctl.h>
|
|
|
|
#include <sys/mount.h>
|
|
|
|
#include <sys/syscallargs.h>
|
|
|
|
#include <sys/errno.h>
|
|
|
|
|
|
|
|
int
|
|
|
|
compat_30_sys_socket(struct lwp *l, void *v, register_t *retval)
|
|
|
|
{
|
|
|
|
int error;
|
|
|
|
|
|
|
|
error = sys___socket30(l, v, retval);
|
|
|
|
if (error == EAFNOSUPPORT)
|
|
|
|
error = EPROTONOSUPPORT;
|
|
|
|
|
|
|
|
return (error);
|
|
|
|
}
|