Print this page




  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24  * Copyright (c) 2015, Joyent, Inc.  All rights reserved.
  25  * Copyright 2020 Oxide Computer Company
  26  */
  27 
  28 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  29 /*        All Rights Reserved   */
  30 
  31 /* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. */
  32 



  33 #include <stdio.h>
  34 #include <stdlib.h>
  35 #include <fcntl.h>
  36 #include <unistd.h>
  37 #include <string.h>
  38 #include <signal.h>
  39 #include <sys/types.h>
  40 #include <libproc.h>
  41 #include <sys/aio.h>
  42 #include <sys/port_impl.h>
  43 #include "ramdata.h"
  44 #include "systable.h"
  45 #include "print.h"
  46 #include "proto.h"
  47 
  48 /*
  49  * Tables of information about system calls - read-only data.
  50  */
  51 
  52 const   char *const     errcode[] = {   /* error code names */


1701         "DECnet",       /* 12 */
1702         "DLI",          /* 13 */
1703         "LAT",          /* 14 */
1704         "HYLINK",       /* 15 */
1705         "APPLETALK",    /* 16 */
1706         "NIT",          /* 17 */
1707         "802",          /* 18 */
1708         "OSI",          /* 19 */
1709         "X25",          /* 20 */
1710         "OSINET",       /* 21 */
1711         "GOSIP",        /* 22 */
1712         "IPX",          /* 23 */
1713         "ROUTE",        /* 24 */
1714         "LINK",         /* 25 */
1715         "INET6",        /* 26 */
1716         "KEY",          /* 27 */
1717         "NCA",          /* 28 */
1718         "POLICY",       /* 29 */
1719         "RDS",          /* 30 */
1720         "TRILL",        /* 31 */
1721         "PACKET"        /* 32 */

1722 };
1723 #if MAX_AFCODES != 33
1724 #error Need to update address-family table
1725 #endif
1726 
1727 
1728 const char * const socktype_codes[] = {         /* cf socket.h */
1729         NULL,
1730         "SOCK_DGRAM",           /* 1 */
1731         "SOCK_STREAM",          /* 2 */
1732         NULL,
1733         "SOCK_RAW",             /* 4 */
1734         "SOCK_RDM",             /* 5 */
1735         "SOCK_SEQPACKET"        /* 6 */
1736 };
1737 #if MAX_SOCKTYPES != 7
1738 #error Need to update socket-type table
1739 #endif


  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24  * Copyright (c) 2015, Joyent, Inc.  All rights reserved.
  25  * Copyright 2020 Oxide Computer Company
  26  */
  27 
  28 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  29 /*        All Rights Reserved   */
  30 
  31 /* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. */
  32 
  33 /*
  34  * Copyright (c) 2014, Joyent, Inc. All rights reserved.
  35  */
  36 #include <stdio.h>
  37 #include <stdlib.h>
  38 #include <fcntl.h>
  39 #include <unistd.h>
  40 #include <string.h>
  41 #include <signal.h>
  42 #include <sys/types.h>
  43 #include <libproc.h>
  44 #include <sys/aio.h>
  45 #include <sys/port_impl.h>
  46 #include "ramdata.h"
  47 #include "systable.h"
  48 #include "print.h"
  49 #include "proto.h"
  50 
  51 /*
  52  * Tables of information about system calls - read-only data.
  53  */
  54 
  55 const   char *const     errcode[] = {   /* error code names */


1704         "DECnet",       /* 12 */
1705         "DLI",          /* 13 */
1706         "LAT",          /* 14 */
1707         "HYLINK",       /* 15 */
1708         "APPLETALK",    /* 16 */
1709         "NIT",          /* 17 */
1710         "802",          /* 18 */
1711         "OSI",          /* 19 */
1712         "X25",          /* 20 */
1713         "OSINET",       /* 21 */
1714         "GOSIP",        /* 22 */
1715         "IPX",          /* 23 */
1716         "ROUTE",        /* 24 */
1717         "LINK",         /* 25 */
1718         "INET6",        /* 26 */
1719         "KEY",          /* 27 */
1720         "NCA",          /* 28 */
1721         "POLICY",       /* 29 */
1722         "RDS",          /* 30 */
1723         "TRILL",        /* 31 */
1724         "PACKET",       /* 32 */
1725         "LX_NETLINK"    /* 33 */
1726 };
1727 #if MAX_AFCODES != 34
1728 #error Need to update address-family table
1729 #endif
1730 
1731 
1732 const char * const socktype_codes[] = {         /* cf socket.h */
1733         NULL,
1734         "SOCK_DGRAM",           /* 1 */
1735         "SOCK_STREAM",          /* 2 */
1736         NULL,
1737         "SOCK_RAW",             /* 4 */
1738         "SOCK_RDM",             /* 5 */
1739         "SOCK_SEQPACKET"        /* 6 */
1740 };
1741 #if MAX_SOCKTYPES != 7
1742 #error Need to update socket-type table
1743 #endif