github.com/afumu/libc@v0.0.6/limits/limits_netbsd_amd64.go (about)

     1  // Code generated by 'ccgo limits/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o limits/limits_netbsd_amd64.go -pkgname limits', DO NOT EDIT.
     2  
     3  package limits
     4  
     5  import (
     6  	"math"
     7  	"reflect"
     8  	"sync/atomic"
     9  	"unsafe"
    10  )
    11  
    12  var _ = math.Pi
    13  var _ reflect.Kind
    14  var _ atomic.Value
    15  var _ unsafe.Pointer
    16  
    17  const (
    18  	ARG_MAX                              = 262144               // syslimits.h:45:1:
    19  	BC_BASE_MAX                          = 2147483647           // syslimits.h:63:1:
    20  	BC_DIM_MAX                           = 65535                // syslimits.h:64:1:
    21  	BC_SCALE_MAX                         = 2147483647           // syslimits.h:65:1:
    22  	BC_STRING_MAX                        = 2147483647           // syslimits.h:66:1:
    23  	CHARCLASS_NAME_MAX                   = 14                   // limits.h:125:1:
    24  	CHAR_BIT                             = 8                    // limits.h:41:1:
    25  	CHAR_MAX                             = 127                  // limits.h:163:1:
    26  	CHAR_MIN                             = -128                 // limits.h:162:1:
    27  	CHILD_MAX                            = 160                  // syslimits.h:47:1:
    28  	COLL_WEIGHTS_MAX                     = 2                    // syslimits.h:67:1:
    29  	DBL_DIG                              = 15                   // limits.h:85:1:
    30  	EXPR_NEST_MAX                        = 32                   // syslimits.h:68:1:
    31  	FLT_DIG                              = 6                    // limits.h:89:1:
    32  	GID_MAX                              = 2147483647           // syslimits.h:49:1:
    33  	INT_MAX                              = 0x7fffffff           // limits.h:52:1:
    34  	INT_MIN                              = -2147483648          // limits.h:53:1:
    35  	IOV_MAX                              = 1024                 // syslimits.h:84:1:
    36  	LINE_MAX                             = 2048                 // syslimits.h:69:1:
    37  	LINK_MAX                             = 32767                // syslimits.h:50:1:
    38  	LLONG_MAX                            = 0x7fffffffffffffff   // limits.h:62:1:
    39  	LLONG_MIN                            = -9223372036854775808 // limits.h:63:1:
    40  	LOGIN_NAME_MAX                       = 17                   // syslimits.h:77:1:
    41  	LONG_BIT                             = 64                   // limits.h:82:1:
    42  	LONG_MAX                             = 0x7fffffffffffffff   // limits.h:56:1:
    43  	LONG_MIN                             = -9223372036854775808 // limits.h:57:1:
    44  	MAX_CANON                            = 255                  // syslimits.h:51:1:
    45  	MAX_INPUT                            = 255                  // syslimits.h:52:1:
    46  	MB_LEN_MAX                           = 32                   // limits.h:145:1:
    47  	NAME_MAX                             = 511                  // syslimits.h:53:1:
    48  	NGROUPS_MAX                          = 16                   // syslimits.h:55:1:
    49  	NL_ARGMAX                            = 9                    // limits.h:126:1:
    50  	NL_LANGMAX                           = 14                   // limits.h:127:1:
    51  	NL_MSGMAX                            = 32767                // limits.h:128:1:
    52  	NL_NMAX                              = 1                    // limits.h:129:1:
    53  	NL_SETMAX                            = 255                  // limits.h:130:1:
    54  	NL_TEXTMAX                           = 2048                 // limits.h:131:1:
    55  	NZERO                                = 20                   // syslimits.h:85:1:
    56  	OPEN_MAX                             = 128                  // syslimits.h:58:1:
    57  	PASS_MAX                             = 128                  // limits.h:123:1:
    58  	PATH_MAX                             = 1024                 // syslimits.h:60:1:
    59  	PIPE_BUF                             = 512                  // syslimits.h:61:1:
    60  	PTHREAD_DESTRUCTOR_ITERATIONS        = 4                    // limits.h:90:1:
    61  	PTHREAD_KEYS_MAX                     = 256                  // limits.h:91:1:
    62  	PTHREAD_THREADS_MAX                  = 64                   // limits.h:93:1:
    63  	QUAD_MAX                             = 0x7fffffffffffffff   // limits.h:75:1:
    64  	QUAD_MIN                             = -9223372036854775808 // limits.h:76:1:
    65  	RE_DUP_MAX                           = 255                  // syslimits.h:70:1:
    66  	SCHAR_MAX                            = 0x7f                 // limits.h:44:1:
    67  	SCHAR_MIN                            = -128                 // limits.h:45:1:
    68  	SHRT_MAX                             = 0x7fff               // limits.h:48:1:
    69  	SHRT_MIN                             = -32768               // limits.h:49:1:
    70  	SIZE_T_MAX                           = 18446744073709551615 // limits.h:72:1:
    71  	SSIZE_MAX                            = 9223372036854775807  // limits.h:68:1:
    72  	SSIZE_MIN                            = -9223372036854775808 // limits.h:71:1:
    73  	TMP_MAX                              = 308915776            // limits.h:139:1:
    74  	UCHAR_MAX                            = 0xff                 // limits.h:43:1:
    75  	UID_MAX                              = 2147483647           // syslimits.h:56:1:
    76  	UINT_MAX                             = 0xffffffff           // limits.h:51:1:
    77  	ULLONG_MAX                           = 0xffffffffffffffff   // limits.h:61:1:
    78  	ULONG_MAX                            = 0xffffffffffffffff   // limits.h:55:1:
    79  	UQUAD_MAX                            = 0xffffffffffffffff   // limits.h:74:1:
    80  	USHRT_MAX                            = 0xffff               // limits.h:47:1:
    81  	WORD_BIT                             = 32                   // limits.h:83:1:
    82  	X_FILE_OFFSET_BITS                   = 64                   // <builtin>:25:1:
    83  	X_GETGR_R_SIZE_MAX                   = 1024                 // limits.h:134:1:
    84  	X_GETPW_R_SIZE_MAX                   = 1024                 // limits.h:135:1:
    85  	X_LIMITS_H_                          = 0                    // limits.h:35:1:
    86  	X_LP64                               = 1                    // <predefined>:268:1:
    87  	X_NETBSD_SOURCE                      = 1                    // featuretest.h:70:1:
    88  	X_POSIX2_BC_BASE_MAX                 = 99                   // limits.h:103:1:
    89  	X_POSIX2_BC_DIM_MAX                  = 2048                 // limits.h:104:1:
    90  	X_POSIX2_BC_SCALE_MAX                = 99                   // limits.h:105:1:
    91  	X_POSIX2_BC_STRING_MAX               = 1000                 // limits.h:106:1:
    92  	X_POSIX2_CHARCLASS_NAME_MAX          = 14                   // limits.h:107:1:
    93  	X_POSIX2_COLL_WEIGHTS_MAX            = 2                    // limits.h:108:1:
    94  	X_POSIX2_EXPR_NEST_MAX               = 32                   // limits.h:109:1:
    95  	X_POSIX2_LINE_MAX                    = 2048                 // limits.h:110:1:
    96  	X_POSIX2_RE_DUP_MAX                  = 255                  // limits.h:111:1:
    97  	X_POSIX_AIO_LISTIO_MAX               = 2                    // limits.h:41:1:
    98  	X_POSIX_AIO_MAX                      = 1                    // limits.h:42:1:
    99  	X_POSIX_ARG_MAX                      = 4096                 // limits.h:43:1:
   100  	X_POSIX_CHILD_MAX                    = 25                   // limits.h:44:1:
   101  	X_POSIX_DELAYTIMER_MAX               = 32                   // limits.h:99:1:
   102  	X_POSIX_HOST_NAME_MAX                = 255                  // limits.h:45:1:
   103  	X_POSIX_LINK_MAX                     = 8                    // limits.h:46:1:
   104  	X_POSIX_LOGIN_NAME_MAX               = 9                    // limits.h:47:1:
   105  	X_POSIX_MAX_CANON                    = 255                  // limits.h:48:1:
   106  	X_POSIX_MAX_INPUT                    = 255                  // limits.h:49:1:
   107  	X_POSIX_MQ_OPEN_MAX                  = 8                    // limits.h:50:1:
   108  	X_POSIX_MQ_PRIO_MAX                  = 32                   // limits.h:51:1:
   109  	X_POSIX_NAME_MAX                     = 14                   // limits.h:52:1:
   110  	X_POSIX_NGROUPS_MAX                  = 8                    // limits.h:53:1:
   111  	X_POSIX_OPEN_MAX                     = 20                   // limits.h:54:1:
   112  	X_POSIX_PATH_MAX                     = 256                  // limits.h:55:1:
   113  	X_POSIX_PIPE_BUF                     = 512                  // limits.h:56:1:
   114  	X_POSIX_REALTIME_SIGNALS             = 200112               // limits.h:98:1:
   115  	X_POSIX_RE_DUP_MAX                   = 255                  // limits.h:57:1:
   116  	X_POSIX_SEM_NSEMS_MAX                = 256                  // limits.h:96:1:
   117  	X_POSIX_SIGQUEUE_MAX                 = 32                   // limits.h:97:1:
   118  	X_POSIX_SSIZE_MAX                    = 32767                // limits.h:58:1:
   119  	X_POSIX_STREAM_MAX                   = 8                    // limits.h:59:1:
   120  	X_POSIX_SYMLINK_MAX                  = 255                  // limits.h:60:1:
   121  	X_POSIX_SYMLOOP_MAX                  = 8                    // limits.h:61:1:
   122  	X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4                    // limits.h:81:1:
   123  	X_POSIX_THREAD_KEYS_MAX              = 128                  // limits.h:82:1:
   124  	X_POSIX_THREAD_THREADS_MAX           = 64                   // limits.h:83:1:
   125  	X_POSIX_TIMER_MAX                    = 32                   // limits.h:95:1:
   126  	X_POSIX_TTY_NAME_MAX                 = 9                    // limits.h:100:1:
   127  	X_POSIX_TZNAME_MAX                   = 6                    // limits.h:101:1:
   128  	X_SYS_SYSLIMITS_H_                   = 0                    // syslimits.h:35:1:
   129  	X_X86_64_LIMITS_H_                   = 0                    // limits.h:35:1:
   130  	X_XOPEN_IOV_MAX                      = 16                   // limits.h:119:1:
   131  	X_XOPEN_NAME_MAX                     = 256                  // limits.h:120:1:
   132  	X_XOPEN_PATH_MAX                     = 1024                 // limits.h:121:1:
   133  )
   134  
   135  type Ptrdiff_t = int64 /* <builtin>:3:26 */
   136  
   137  type Size_t = uint64 /* <builtin>:9:23 */
   138  
   139  type Wchar_t = int32 /* <builtin>:15:24 */
   140  
   141  type X__int128_t = struct {
   142  	Flo int64
   143  	Fhi int64
   144  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
   145  type X__uint128_t = struct {
   146  	Flo uint64
   147  	Fhi uint64
   148  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
   149  
   150  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
   151  type X__float128 = float64        /* <builtin>:47:21 */
   152  
   153  //	$NetBSD: limits.h,v 1.40 2016/08/04 06:43:43 christos Exp $
   154  
   155  // Copyright (c) 1988, 1993
   156  //	The Regents of the University of California.  All rights reserved.
   157  //
   158  // Redistribution and use in source and binary forms, with or without
   159  // modification, are permitted provided that the following conditions
   160  // are met:
   161  // 1. Redistributions of source code must retain the above copyright
   162  //    notice, this list of conditions and the following disclaimer.
   163  // 2. Redistributions in binary form must reproduce the above copyright
   164  //    notice, this list of conditions and the following disclaimer in the
   165  //    documentation and/or other materials provided with the distribution.
   166  // 3. Neither the name of the University nor the names of its contributors
   167  //    may be used to endorse or promote products derived from this software
   168  //    without specific prior written permission.
   169  //
   170  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   171  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   172  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   173  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   174  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   175  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   176  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   177  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   178  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   179  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   180  // SUCH DAMAGE.
   181  //
   182  //	@(#)limits.h	8.2 (Berkeley) 1/4/94
   183  
   184  //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
   185  
   186  // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
   187  // Public domain.
   188  //
   189  // NOTE: Do not protect this header against multiple inclusion.  Doing
   190  // so can have subtle side-effects due to header file inclusion order
   191  // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
   192  // protect each CPP macro that we want to supply.
   193  
   194  // Feature-test macros are defined by several standards, and allow an
   195  // application to specify what symbols they want the system headers to
   196  // expose, and hence what standard they want them to conform to.
   197  // There are two classes of feature-test macros.  The first class
   198  // specify complete standards, and if one of these is defined, header
   199  // files will try to conform to the relevant standard.  They are:
   200  //
   201  // ANSI macros:
   202  // _ANSI_SOURCE			ANSI C89
   203  //
   204  // POSIX macros:
   205  // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
   206  // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
   207  // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
   208  // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
   209  // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
   210  // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
   211  // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
   212  //
   213  // X/Open macros:
   214  // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
   215  // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
   216  // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
   217  // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
   218  // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
   219  // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
   220  //
   221  // NetBSD macros:
   222  // _NETBSD_SOURCE == 1		Make all NetBSD features available.
   223  //
   224  // If more than one of these "major" feature-test macros is defined,
   225  // then the set of facilities provided (and namespace used) is the
   226  // union of that specified by the relevant standards, and in case of
   227  // conflict, the earlier standard in the above list has precedence (so
   228  // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
   229  // of rename() that's used is the POSIX one).  If none of the "major"
   230  // feature-test macros is defined, _NETBSD_SOURCE is assumed.
   231  //
   232  // There are also "minor" feature-test macros, which enable extra
   233  // functionality in addition to some base standard.  They should be
   234  // defined along with one of the "major" macros.  The "minor" macros
   235  // are:
   236  //
   237  // _REENTRANT
   238  // _ISOC99_SOURCE
   239  // _ISOC11_SOURCE
   240  // _LARGEFILE_SOURCE		Large File Support
   241  //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
   242  
   243  // We have not implemented these yet
   244  //
   245  // _POSIX_THREAD_ATTR_STACKADDR
   246  // _POSIX_THREAD_ATTR_STACKSIZE
   247  // _POSIX_THREAD_CPUTIME
   248  // _POSIX_THREAD_PRIORITY_SCHEDULING
   249  // _POSIX_THREAD_PRIO_INHERIT
   250  // _POSIX_THREAD_PRIO_PROTECT
   251  // _POSIX_THREAD_PROCESS_SHARED
   252  // _POSIX_THREAD_SAFE_FUNCTIONS
   253  // _POSIX_THREAD_SPORADIC_SERVER
   254  
   255  // The following 3 are defined in
   256  // Open Group Base Specifications Issue 7
   257  
   258  // These are the correct names, defined in terms of the above
   259  // except for PTHREAD_KEYS_MAX which is bigger than standard
   260  // mandated minimum value _POSIX_THREAD_KEYS_MAX.
   261  // Not yet: PTHREAD_STACK_MIN
   262  
   263  // X/Open CAE Specifications,
   264  // adopted in IEEE Std 1003.1-2001 XSI.
   265  
   266  // IEEE Std 1003.1-2001 TSF
   267  
   268  // Always ensure that this is consistent with <stdio.h>
   269  
   270  // X/Open Extended API set 2 (a.k.a. C063)
   271  // This hides unimplemented functions from GNU configure until
   272  // we are done implementing them.
   273  
   274  //	$NetBSD: limits.h,v 1.15 2019/01/21 20:22:48 dholland Exp $
   275  
   276  // Copyright (c) 1988 The Regents of the University of California.
   277  // All rights reserved.
   278  //
   279  // Redistribution and use in source and binary forms, with or without
   280  // modification, are permitted provided that the following conditions
   281  // are met:
   282  // 1. Redistributions of source code must retain the above copyright
   283  //    notice, this list of conditions and the following disclaimer.
   284  // 2. Redistributions in binary form must reproduce the above copyright
   285  //    notice, this list of conditions and the following disclaimer in the
   286  //    documentation and/or other materials provided with the distribution.
   287  // 3. Neither the name of the University nor the names of its contributors
   288  //    may be used to endorse or promote products derived from this software
   289  //    without specific prior written permission.
   290  //
   291  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   292  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   293  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   294  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   295  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   296  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   297  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   298  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   299  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   300  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   301  // SUCH DAMAGE.
   302  //
   303  //	@(#)limits.h	7.2 (Berkeley) 6/28/90
   304  
   305  //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
   306  
   307  // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
   308  // Public domain.
   309  //
   310  // NOTE: Do not protect this header against multiple inclusion.  Doing
   311  // so can have subtle side-effects due to header file inclusion order
   312  // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
   313  // protect each CPP macro that we want to supply.
   314  
   315  // Feature-test macros are defined by several standards, and allow an
   316  // application to specify what symbols they want the system headers to
   317  // expose, and hence what standard they want them to conform to.
   318  // There are two classes of feature-test macros.  The first class
   319  // specify complete standards, and if one of these is defined, header
   320  // files will try to conform to the relevant standard.  They are:
   321  //
   322  // ANSI macros:
   323  // _ANSI_SOURCE			ANSI C89
   324  //
   325  // POSIX macros:
   326  // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
   327  // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
   328  // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
   329  // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
   330  // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
   331  // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
   332  // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
   333  //
   334  // X/Open macros:
   335  // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
   336  // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
   337  // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
   338  // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
   339  // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
   340  // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
   341  //
   342  // NetBSD macros:
   343  // _NETBSD_SOURCE == 1		Make all NetBSD features available.
   344  //
   345  // If more than one of these "major" feature-test macros is defined,
   346  // then the set of facilities provided (and namespace used) is the
   347  // union of that specified by the relevant standards, and in case of
   348  // conflict, the earlier standard in the above list has precedence (so
   349  // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
   350  // of rename() that's used is the POSIX one).  If none of the "major"
   351  // feature-test macros is defined, _NETBSD_SOURCE is assumed.
   352  //
   353  // There are also "minor" feature-test macros, which enable extra
   354  // functionality in addition to some base standard.  They should be
   355  // defined along with one of the "major" macros.  The "minor" macros
   356  // are:
   357  //
   358  // _REENTRANT
   359  // _ISOC99_SOURCE
   360  // _ISOC11_SOURCE
   361  // _LARGEFILE_SOURCE		Large File Support
   362  //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
   363  
   364  //	$NetBSD: syslimits.h,v 1.28 2015/08/21 07:19:39 uebayasi Exp $
   365  
   366  // Copyright (c) 1988, 1993
   367  //	The Regents of the University of California.  All rights reserved.
   368  //
   369  // Redistribution and use in source and binary forms, with or without
   370  // modification, are permitted provided that the following conditions
   371  // are met:
   372  // 1. Redistributions of source code must retain the above copyright
   373  //    notice, this list of conditions and the following disclaimer.
   374  // 2. Redistributions in binary form must reproduce the above copyright
   375  //    notice, this list of conditions and the following disclaimer in the
   376  //    documentation and/or other materials provided with the distribution.
   377  // 3. Neither the name of the University nor the names of its contributors
   378  //    may be used to endorse or promote products derived from this software
   379  //    without specific prior written permission.
   380  //
   381  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   382  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   383  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   384  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   385  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   386  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   387  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   388  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   389  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   390  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   391  // SUCH DAMAGE.
   392  //
   393  //	@(#)syslimits.h	8.1 (Berkeley) 6/2/93
   394  
   395  //	$NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
   396  
   397  // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
   398  // Public domain.
   399  //
   400  // NOTE: Do not protect this header against multiple inclusion.  Doing
   401  // so can have subtle side-effects due to header file inclusion order
   402  // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE.  Instead,
   403  // protect each CPP macro that we want to supply.
   404  
   405  // Feature-test macros are defined by several standards, and allow an
   406  // application to specify what symbols they want the system headers to
   407  // expose, and hence what standard they want them to conform to.
   408  // There are two classes of feature-test macros.  The first class
   409  // specify complete standards, and if one of these is defined, header
   410  // files will try to conform to the relevant standard.  They are:
   411  //
   412  // ANSI macros:
   413  // _ANSI_SOURCE			ANSI C89
   414  //
   415  // POSIX macros:
   416  // _POSIX_SOURCE == 1		IEEE Std 1003.1 (version?)
   417  // _POSIX_C_SOURCE == 1		IEEE Std 1003.1-1990
   418  // _POSIX_C_SOURCE == 2		IEEE Std 1003.2-1992
   419  // _POSIX_C_SOURCE == 199309L	IEEE Std 1003.1b-1993
   420  // _POSIX_C_SOURCE == 199506L	ISO/IEC 9945-1:1996
   421  // _POSIX_C_SOURCE == 200112L	IEEE Std 1003.1-2001
   422  // _POSIX_C_SOURCE == 200809L   IEEE Std 1003.1-2008
   423  //
   424  // X/Open macros:
   425  // _XOPEN_SOURCE		System Interfaces and Headers, Issue 4, Ver 2
   426  // _XOPEN_SOURCE_EXTENDED == 1	XSH4.2 UNIX extensions
   427  // _XOPEN_SOURCE == 500		System Interfaces and Headers, Issue 5
   428  // _XOPEN_SOURCE == 520		Networking Services (XNS), Issue 5.2
   429  // _XOPEN_SOURCE == 600		IEEE Std 1003.1-2001, XSI option
   430  // _XOPEN_SOURCE == 700		IEEE Std 1003.1-2008, XSI option
   431  //
   432  // NetBSD macros:
   433  // _NETBSD_SOURCE == 1		Make all NetBSD features available.
   434  //
   435  // If more than one of these "major" feature-test macros is defined,
   436  // then the set of facilities provided (and namespace used) is the
   437  // union of that specified by the relevant standards, and in case of
   438  // conflict, the earlier standard in the above list has precedence (so
   439  // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
   440  // of rename() that's used is the POSIX one).  If none of the "major"
   441  // feature-test macros is defined, _NETBSD_SOURCE is assumed.
   442  //
   443  // There are also "minor" feature-test macros, which enable extra
   444  // functionality in addition to some base standard.  They should be
   445  // defined along with one of the "major" macros.  The "minor" macros
   446  // are:
   447  //
   448  // _REENTRANT
   449  // _ISOC99_SOURCE
   450  // _ISOC11_SOURCE
   451  // _LARGEFILE_SOURCE		Large File Support
   452  //		<http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
   453  
   454  // kept in sync with MAXNAMLEN
   455  
   456  // IEEE Std 1003.1c-95, adopted in X/Open CAE Specification Issue 5 Version 2
   457  
   458  // X/Open CAE Specification Issue 5 Version 2
   459  
   460  var _ int8 /* gen.c:2:13: */