The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/compat/common/uipc_syscalls_30.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    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 }

Cache object: 5ef11ee9d5e7ad2d3e0821f78e147bfb


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.