github.com/afumu/libc@v0.0.6/errno/errno_darwin_amd64.go (about)

     1  // Code generated by 'ccgo errno/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 errno/errno_darwin_amd64.go -pkgname errno', DO NOT EDIT.
     2  
     3  package errno
     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  	E2BIG                                  = 7   // errno.h:94:1:
    19  	EACCES                                 = 13  // errno.h:101:1:
    20  	EADDRINUSE                             = 48  // errno.h:161:1:
    21  	EADDRNOTAVAIL                          = 49  // errno.h:162:1:
    22  	EAFNOSUPPORT                           = 47  // errno.h:160:1:
    23  	EAGAIN                                 = 35  // errno.h:129:1:
    24  	EALREADY                               = 37  // errno.h:132:1:
    25  	EAUTH                                  = 80  // errno.h:213:1:
    26  	EBADARCH                               = 86  // errno.h:226:1:
    27  	EBADEXEC                               = 85  // errno.h:225:1:
    28  	EBADF                                  = 9   // errno.h:96:1:
    29  	EBADMACHO                              = 88  // errno.h:228:1:
    30  	EBADMSG                                = 94  // errno.h:240:1:
    31  	EBADRPC                                = 72  // errno.h:201:1:
    32  	EBUSY                                  = 16  // errno.h:106:1:
    33  	ECANCELED                              = 89  // errno.h:231:1:
    34  	ECHILD                                 = 10  // errno.h:97:1:
    35  	ECONNABORTED                           = 53  // errno.h:168:1:
    36  	ECONNREFUSED                           = 61  // errno.h:178:1:
    37  	ECONNRESET                             = 54  // errno.h:169:1:
    38  	EDEADLK                                = 11  // errno.h:98:1:
    39  	EDESTADDRREQ                           = 39  // errno.h:136:1:
    40  	EDEVERR                                = 83  // errno.h:218:1:
    41  	EDOM                                   = 33  // errno.h:125:1:
    42  	EDQUOT                                 = 69  // errno.h:195:1:
    43  	EEXIST                                 = 17  // errno.h:107:1:
    44  	EFAULT                                 = 14  // errno.h:102:1:
    45  	EFBIG                                  = 27  // errno.h:117:1:
    46  	EFTYPE                                 = 79  // errno.h:212:1:
    47  	EHOSTDOWN                              = 64  // errno.h:185:1:
    48  	EHOSTUNREACH                           = 65  // errno.h:187:1:
    49  	EIDRM                                  = 90  // errno.h:233:1:
    50  	EILSEQ                                 = 92  // errno.h:235:1:
    51  	EINPROGRESS                            = 36  // errno.h:131:1:
    52  	EINTR                                  = 4   // errno.h:91:1:
    53  	EINVAL                                 = 22  // errno.h:112:1:
    54  	EIO                                    = 5   // errno.h:92:1:
    55  	EISCONN                                = 56  // errno.h:171:1:
    56  	EISDIR                                 = 21  // errno.h:111:1:
    57  	ELAST                                  = 106 // errno.h:263:1:
    58  	ELOOP                                  = 62  // errno.h:180:1:
    59  	EMFILE                                 = 24  // errno.h:114:1:
    60  	EMLINK                                 = 31  // errno.h:121:1:
    61  	EMSGSIZE                               = 40  // errno.h:137:1:
    62  	EMULTIHOP                              = 95  // errno.h:241:1:
    63  	ENAMETOOLONG                           = 63  // errno.h:181:1:
    64  	ENEEDAUTH                              = 81  // errno.h:214:1:
    65  	ENETDOWN                               = 50  // errno.h:165:1:
    66  	ENETRESET                              = 52  // errno.h:167:1:
    67  	ENETUNREACH                            = 51  // errno.h:166:1:
    68  	ENFILE                                 = 23  // errno.h:113:1:
    69  	ENOATTR                                = 93  // errno.h:237:1:
    70  	ENOBUFS                                = 55  // errno.h:170:1:
    71  	ENODATA                                = 96  // errno.h:242:1:
    72  	ENODEV                                 = 19  // errno.h:109:1:
    73  	ENOENT                                 = 2   // errno.h:89:1:
    74  	ENOEXEC                                = 8   // errno.h:95:1:
    75  	ENOLCK                                 = 77  // errno.h:208:1:
    76  	ENOLINK                                = 97  // errno.h:243:1:
    77  	ENOMEM                                 = 12  // errno.h:100:1:
    78  	ENOMSG                                 = 91  // errno.h:234:1:
    79  	ENOPOLICY                              = 103 // errno.h:254:1:
    80  	ENOPROTOOPT                            = 42  // errno.h:139:1:
    81  	ENOSPC                                 = 28  // errno.h:118:1:
    82  	ENOSR                                  = 98  // errno.h:244:1:
    83  	ENOSTR                                 = 99  // errno.h:245:1:
    84  	ENOSYS                                 = 78  // errno.h:209:1:
    85  	ENOTBLK                                = 15  // errno.h:104:1:
    86  	ENOTCONN                               = 57  // errno.h:172:1:
    87  	ENOTDIR                                = 20  // errno.h:110:1:
    88  	ENOTEMPTY                              = 66  // errno.h:188:1:
    89  	ENOTRECOVERABLE                        = 104 // errno.h:257:1:
    90  	ENOTSOCK                               = 38  // errno.h:135:1:
    91  	ENOTSUP                                = 45  // errno.h:144:1:
    92  	ENOTTY                                 = 25  // errno.h:115:1:
    93  	ENXIO                                  = 6   // errno.h:93:1:
    94  	EOPNOTSUPP                             = 102 // errno.h:251:1:
    95  	EOVERFLOW                              = 84  // errno.h:221:1:
    96  	EOWNERDEAD                             = 105 // errno.h:258:1:
    97  	EPERM                                  = 1   // errno.h:88:1:
    98  	EPFNOSUPPORT                           = 46  // errno.h:158:1:
    99  	EPIPE                                  = 32  // errno.h:122:1:
   100  	EPROCLIM                               = 67  // errno.h:192:1:
   101  	EPROCUNAVAIL                           = 76  // errno.h:205:1:
   102  	EPROGMISMATCH                          = 75  // errno.h:204:1:
   103  	EPROGUNAVAIL                           = 74  // errno.h:203:1:
   104  	EPROTO                                 = 100 // errno.h:246:1:
   105  	EPROTONOSUPPORT                        = 43  // errno.h:140:1:
   106  	EPROTOTYPE                             = 41  // errno.h:138:1:
   107  	EPWROFF                                = 82  // errno.h:217:1:
   108  	EQFULL                                 = 106 // errno.h:262:1:
   109  	ERANGE                                 = 34  // errno.h:126:1:
   110  	EREMOTE                                = 71  // errno.h:200:1:
   111  	EROFS                                  = 30  // errno.h:120:1:
   112  	ERPCMISMATCH                           = 73  // errno.h:202:1:
   113  	ESHLIBVERS                             = 87  // errno.h:227:1:
   114  	ESHUTDOWN                              = 58  // errno.h:174:1:
   115  	ESOCKTNOSUPPORT                        = 44  // errno.h:142:1:
   116  	ESPIPE                                 = 29  // errno.h:119:1:
   117  	ESRCH                                  = 3   // errno.h:90:1:
   118  	ESTALE                                 = 70  // errno.h:198:1:
   119  	ETIME                                  = 101 // errno.h:247:1:
   120  	ETIMEDOUT                              = 60  // errno.h:177:1:
   121  	ETOOMANYREFS                           = 59  // errno.h:175:1:
   122  	ETXTBSY                                = 26  // errno.h:116:1:
   123  	EUSERS                                 = 68  // errno.h:193:1:
   124  	EWOULDBLOCK                            = 35  // errno.h:130:1:
   125  	EXDEV                                  = 18  // errno.h:108:1:
   126  	X_CDEFS_H_                             = 0   // cdefs.h:68:1:
   127  	X_DARWIN_FEATURE_64_BIT_INODE          = 1   // cdefs.h:745:1:
   128  	X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1   // cdefs.h:771:1:
   129  	X_DARWIN_FEATURE_UNIX_CONFORMANCE      = 3   // cdefs.h:779:1:
   130  	X_ERRNO_T                              = 0   // _errno_t.h:29:1:
   131  	X_FILE_OFFSET_BITS                     = 64  // <builtin>:25:1:
   132  	X_LP64                                 = 1   // <predefined>:1:1:
   133  	X_Nonnull                              = 0   // cdefs.h:243:1:
   134  	X_Null_unspecified                     = 0   // cdefs.h:246:1:
   135  	X_Nullable                             = 0   // cdefs.h:240:1:
   136  	X_SYS_ERRNO_H_                         = 0   // errno.h:70:1:
   137  )
   138  
   139  type Ptrdiff_t = int64 /* <builtin>:3:26 */
   140  
   141  type Size_t = uint64 /* <builtin>:9:23 */
   142  
   143  type Wchar_t = int32 /* <builtin>:15:24 */
   144  
   145  type X__int128_t = struct {
   146  	Flo int64
   147  	Fhi int64
   148  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
   149  type X__uint128_t = struct {
   150  	Flo uint64
   151  	Fhi uint64
   152  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
   153  
   154  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
   155  type X__float128 = float64        /* <builtin>:47:21 */
   156  
   157  var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
   158  
   159  // Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
   160  //
   161  // @APPLE_LICENSE_HEADER_START@
   162  //
   163  // This file contains Original Code and/or Modifications of Original Code
   164  // as defined in and that are subject to the Apple Public Source License
   165  // Version 2.0 (the 'License'). You may not use this file except in
   166  // compliance with the License. Please obtain a copy of the License at
   167  // http://www.opensource.apple.com/apsl/ and read it before using this
   168  // file.
   169  //
   170  // The Original Code and all software distributed under the License are
   171  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   172  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   173  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   174  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   175  // Please see the License for the specific language governing rights and
   176  // limitations under the License.
   177  //
   178  // @APPLE_LICENSE_HEADER_END@
   179  // Copyright (c) 2000-2012 Apple, Inc. All rights reserved.
   180  //
   181  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   182  //
   183  // This file contains Original Code and/or Modifications of Original Code
   184  // as defined in and that are subject to the Apple Public Source License
   185  // Version 2.0 (the 'License'). You may not use this file except in
   186  // compliance with the License. The rights granted to you under the License
   187  // may not be used to create, or enable the creation or redistribution of,
   188  // unlawful or unlicensed copies of an Apple operating system, or to
   189  // circumvent, violate, or enable the circumvention or violation of, any
   190  // terms of an Apple operating system software license agreement.
   191  //
   192  // Please obtain a copy of the License at
   193  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   194  //
   195  // The Original Code and all software distributed under the License are
   196  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   197  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   198  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   199  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   200  // Please see the License for the specific language governing rights and
   201  // limitations under the License.
   202  //
   203  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   204  // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
   205  // Copyright (c) 1982, 1986, 1989, 1993
   206  //	The Regents of the University of California.  All rights reserved.
   207  // (c) UNIX System Laboratories, Inc.
   208  // All or some portions of this file are derived from material licensed
   209  // to the University of California by American Telephone and Telegraph
   210  // Co. or Unix System Laboratories, Inc. and are reproduced herein with
   211  // the permission of UNIX System Laboratories, Inc.
   212  //
   213  // Redistribution and use in source and binary forms, with or without
   214  // modification, are permitted provided that the following conditions
   215  // are met:
   216  // 1. Redistributions of source code must retain the above copyright
   217  //    notice, this list of conditions and the following disclaimer.
   218  // 2. Redistributions in binary form must reproduce the above copyright
   219  //    notice, this list of conditions and the following disclaimer in the
   220  //    documentation and/or other materials provided with the distribution.
   221  // 3. All advertising materials mentioning features or use of this software
   222  //    must display the following acknowledgement:
   223  //	This product includes software developed by the University of
   224  //	California, Berkeley and its contributors.
   225  // 4. Neither the name of the University nor the names of its contributors
   226  //    may be used to endorse or promote products derived from this software
   227  //    without specific prior written permission.
   228  //
   229  // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   230  // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   231  // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   232  // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   233  // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   234  // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   235  // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   236  // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   237  // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   238  // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   239  // SUCH DAMAGE.
   240  //
   241  //	@(#)errno.h	8.5 (Berkeley) 1/21/94
   242  
   243  // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
   244  //
   245  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   246  //
   247  // This file contains Original Code and/or Modifications of Original Code
   248  // as defined in and that are subject to the Apple Public Source License
   249  // Version 2.0 (the 'License'). You may not use this file except in
   250  // compliance with the License. The rights granted to you under the License
   251  // may not be used to create, or enable the creation or redistribution of,
   252  // unlawful or unlicensed copies of an Apple operating system, or to
   253  // circumvent, violate, or enable the circumvention or violation of, any
   254  // terms of an Apple operating system software license agreement.
   255  //
   256  // Please obtain a copy of the License at
   257  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   258  //
   259  // The Original Code and all software distributed under the License are
   260  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   261  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   262  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   263  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   264  // Please see the License for the specific language governing rights and
   265  // limitations under the License.
   266  //
   267  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   268  // Copyright 1995 NeXT Computer, Inc. All rights reserved.
   269  // Copyright (c) 1991, 1993
   270  //	The Regents of the University of California.  All rights reserved.
   271  //
   272  // This code is derived from software contributed to Berkeley by
   273  // Berkeley Software Design, Inc.
   274  //
   275  // Redistribution and use in source and binary forms, with or without
   276  // modification, are permitted provided that the following conditions
   277  // are met:
   278  // 1. Redistributions of source code must retain the above copyright
   279  //    notice, this list of conditions and the following disclaimer.
   280  // 2. Redistributions in binary form must reproduce the above copyright
   281  //    notice, this list of conditions and the following disclaimer in the
   282  //    documentation and/or other materials provided with the distribution.
   283  // 3. All advertising materials mentioning features or use of this software
   284  //    must display the following acknowledgement:
   285  //	This product includes software developed by the University of
   286  //	California, Berkeley and its contributors.
   287  // 4. 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  //	@(#)cdefs.h	8.8 (Berkeley) 1/9/95
   304  
   305  // This SDK is designed to work with clang and specific versions of
   306  // gcc >= 4.0 with Apple's patch sets
   307  
   308  // Compatibility with compilers and environments that don't support compiler
   309  // feature checking function-like macros.
   310  
   311  // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
   312  // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
   313  // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
   314  // in between its arguments.  __CONCAT can also concatenate double-quoted
   315  // strings produced by the __STRING macro, but this only works with ANSI C.
   316  
   317  // In non-ANSI C environments, new programs will want ANSI-only C keywords
   318  // deleted from the program and old programs will want them left alone.
   319  // When using a compiler other than gcc, programs using the ANSI C keywords
   320  // const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
   321  // When using "gcc -traditional", we assume that this is the intent; if
   322  // __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
   323  
   324  // __unused denotes variables and functions that may not be used, preventing
   325  // the compiler from warning about it if not used.
   326  
   327  // __used forces variables and functions to be included even if it appears
   328  // to the compiler that they are not used (and would thust be discarded).
   329  
   330  // __cold marks code used for debugging or that is rarely taken
   331  // and tells the compiler to optimize for size and outline code.
   332  
   333  // __deprecated causes the compiler to produce a warning when encountering
   334  // code using the deprecated functionality.
   335  // __deprecated_msg() does the same, and compilers that support it will print
   336  // a message along with the deprecation warning.
   337  // This may require turning on such warning with the -Wdeprecated flag.
   338  // __deprecated_enum_msg() should be used on enums, and compilers that support
   339  // it will print the deprecation warning.
   340  // __kpi_deprecated() specifically indicates deprecation of kernel programming
   341  // interfaces in Kernel.framework used by KEXTs.
   342  
   343  // __unavailable causes the compiler to error out when encountering
   344  // code using the tagged function of variable.
   345  
   346  // Delete pseudo-keywords wherever they are not available or needed.
   347  
   348  // We use `__restrict' as a way to define the `restrict' type qualifier
   349  // without disturbing older software that is unaware of C99 keywords.
   350  
   351  // Compatibility with compilers and environments that don't support the
   352  // nullability feature.
   353  
   354  // __disable_tail_calls causes the compiler to not perform tail call
   355  // optimization inside the marked function.
   356  
   357  // __not_tail_called causes the compiler to prevent tail call optimization
   358  // on statically bound calls to the function.  It has no effect on indirect
   359  // calls.  Virtual functions, objective-c methods, and functions marked as
   360  // "always_inline" cannot be marked as __not_tail_called.
   361  
   362  // __result_use_check warns callers of a function that not using the function
   363  // return value is a bug, i.e. dismissing malloc() return value results in a
   364  // memory leak.
   365  
   366  // __swift_unavailable causes the compiler to mark a symbol as specifically
   367  // unavailable in Swift, regardless of any other availability in C.
   368  
   369  // __abortlike is the attribute to put on functions like abort() that are
   370  // typically used to mark assertions. These optimize the codegen
   371  // for outlining while still maintaining debugability.
   372  
   373  // Declaring inline functions within headers is error-prone due to differences
   374  // across various versions of the C language and extensions.  __header_inline
   375  // can be used to declare inline functions within system headers.  In cases
   376  // where you want to force inlining instead of letting the compiler make
   377  // the decision, you can use __header_always_inline.
   378  //
   379  // Be aware that using inline for functions which compilers may also provide
   380  // builtins can behave differently under various compilers.  If you intend to
   381  // provide an inline version of such a function, you may want to use a macro
   382  // instead.
   383  //
   384  // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
   385  // support c99 inline in some cases:
   386  // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
   387  
   388  // Compiler-dependent macros that bracket portions of code where the
   389  // "-Wunreachable-code" warning should be ignored. Please use sparingly.
   390  
   391  // Compiler-dependent macros to declare that functions take printf-like
   392  // or scanf-like arguments.  They are null except for versions of gcc
   393  // that are known to support the features properly.  Functions declared
   394  // with these attributes will cause compilation warnings if there is a
   395  // mismatch between the format string and subsequent function parameter
   396  // types.
   397  
   398  // Source compatibility only, ID string not emitted in object file
   399  
   400  // __alloc_size can be used to label function arguments that represent the
   401  // size of memory that the function allocates and returns. The one-argument
   402  // form labels a single argument that gives the allocation size (where the
   403  // arguments are numbered from 1):
   404  //
   405  // void	*malloc(size_t __size) __alloc_size(1);
   406  //
   407  // The two-argument form handles the case where the size is calculated as the
   408  // product of two arguments:
   409  //
   410  // void	*calloc(size_t __count, size_t __size) __alloc_size(1,2);
   411  
   412  // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
   413  //
   414  // DEFAULT	By default newly complied code will get POSIX APIs plus
   415  //		Apple API extensions in scope.
   416  //
   417  //		Most users will use this compilation environment to avoid
   418  //		behavioral differences between 32 and 64 bit code.
   419  //
   420  // LEGACY	Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
   421  //		API extensions in scope.
   422  //
   423  //		This is generally equivalent to the Tiger release compilation
   424  //		environment, except that it cannot be applied to 64 bit code;
   425  //		its use is discouraged.
   426  //
   427  //		We expect this environment to be deprecated in the future.
   428  //
   429  // STRICT	Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
   430  //		available APIs to exactly the set of APIs defined by the
   431  //		corresponding standard, based on the value defined.
   432  //
   433  //		A correct, portable definition for _POSIX_C_SOURCE is 200112L.
   434  //		A correct, portable definition for _XOPEN_SOURCE is 600L.
   435  //
   436  //		Apple API extensions are not visible in this environment,
   437  //		which can cause Apple specific code to fail to compile,
   438  //		or behave incorrectly if prototypes are not in scope or
   439  //		warnings about missing prototypes are not enabled or ignored.
   440  //
   441  // In any compilation environment, for correct symbol resolution to occur,
   442  // function prototypes must be in scope.  It is recommended that all Apple
   443  // tools users add either the "-Wall" or "-Wimplicit-function-declaration"
   444  // compiler flags to their projects to be warned when a function is being
   445  // used without a prototype in scope.
   446  
   447  // These settings are particular to each product.
   448  // Platform: MacOSX
   449  // #undef __DARWIN_ONLY_UNIX_CONFORMANCE (automatically set for 64-bit)
   450  
   451  // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
   452  // legacy code to use the old symbol, thus maintaining binary compatibility
   453  // while new code can use a standards compliant version of the same function.
   454  //
   455  // __DARWIN_ALIAS is used by itself if the function signature has not
   456  // changed, it is used along with a #ifdef check for __DARWIN_UNIX03
   457  // if the signature has changed.  Because the __LP64__ environment
   458  // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
   459  // defined, but causes __DARWIN_ALIAS to do no symbol mangling.
   460  //
   461  // As a special case, when XCode is used to target a specific version of the
   462  // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
   463  // will be defined by the compiler, with the digits representing major version
   464  // time 100 + minor version times 10 (e.g. 10.5 := 1050).  If we are targeting
   465  // pre-10.5, and it is the default compilation environment, revert the
   466  // compilation environment to pre-__DARWIN_UNIX03.
   467  
   468  // symbol suffixes used for symbol versioning
   469  
   470  // symbol versioning macros
   471  
   472  // symbol release macros
   473  // Copyright (c) 2010 Apple Inc. All rights reserved.
   474  //
   475  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   476  //
   477  // This file contains Original Code and/or Modifications of Original Code
   478  // as defined in and that are subject to the Apple Public Source License
   479  // Version 2.0 (the 'License'). You may not use this file except in
   480  // compliance with the License. The rights granted to you under the License
   481  // may not be used to create, or enable the creation or redistribution of,
   482  // unlawful or unlicensed copies of an Apple operating system, or to
   483  // circumvent, violate, or enable the circumvention or violation of, any
   484  // terms of an Apple operating system software license agreement.
   485  //
   486  // Please obtain a copy of the License at
   487  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   488  //
   489  // The Original Code and all software distributed under the License are
   490  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   491  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   492  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   493  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   494  // Please see the License for the specific language governing rights and
   495  // limitations under the License.
   496  //
   497  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   498  
   499  // POSIX.1 requires that the macros we test be defined before any standard
   500  // header file is included.  This permits us to convert values for feature
   501  // testing, as necessary, using only _POSIX_C_SOURCE.
   502  //
   503  // Here's a quick run-down of the versions:
   504  //  defined(_POSIX_SOURCE)		1003.1-1988
   505  //  _POSIX_C_SOURCE == 1L		1003.1-1990
   506  //  _POSIX_C_SOURCE == 2L		1003.2-1992 C Language Binding Option
   507  //  _POSIX_C_SOURCE == 199309L		1003.1b-1993
   508  //  _POSIX_C_SOURCE == 199506L		1003.1c-1995, 1003.1i-1995,
   509  //					and the omnibus ISO/IEC 9945-1: 1996
   510  //  _POSIX_C_SOURCE == 200112L		1003.1-2001
   511  //  _POSIX_C_SOURCE == 200809L		1003.1-2008
   512  //
   513  // In addition, the X/Open Portability Guide, which is now the Single UNIX
   514  // Specification, defines a feature-test macro which indicates the version of
   515  // that specification, and which subsumes _POSIX_C_SOURCE.
   516  
   517  // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
   518  
   519  // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
   520  
   521  // Deal with various X/Open Portability Guides and Single UNIX Spec.
   522  
   523  // Deal with all versions of POSIX.  The ordering relative to the tests above is
   524  // important.
   525  
   526  // POSIX C deprecation macros
   527  // Copyright (c) 2010 Apple Inc. All rights reserved.
   528  //
   529  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   530  //
   531  // This file contains Original Code and/or Modifications of Original Code
   532  // as defined in and that are subject to the Apple Public Source License
   533  // Version 2.0 (the 'License'). You may not use this file except in
   534  // compliance with the License. The rights granted to you under the License
   535  // may not be used to create, or enable the creation or redistribution of,
   536  // unlawful or unlicensed copies of an Apple operating system, or to
   537  // circumvent, violate, or enable the circumvention or violation of, any
   538  // terms of an Apple operating system software license agreement.
   539  //
   540  // Please obtain a copy of the License at
   541  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   542  //
   543  // The Original Code and all software distributed under the License are
   544  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   545  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   546  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   547  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   548  // Please see the License for the specific language governing rights and
   549  // limitations under the License.
   550  //
   551  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   552  
   553  // Set a single macro which will always be defined and can be used to determine
   554  // the appropriate namespace.  For POSIX, these values will correspond to
   555  // _POSIX_C_SOURCE value.  Currently there are two additional levels corresponding
   556  // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
   557  
   558  // If the developer has neither requested a strict language mode nor a version
   559  // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
   560  // of __DARWIN_C_FULL.
   561  
   562  // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
   563  // c99 still want long longs.  While not perfect, we allow long longs for
   564  // g++.
   565  
   566  // ****************************************
   567  //
   568  //  Public darwin-specific feature macros
   569  //
   570  
   571  // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
   572  // structures modified for 64-bit inodes (like struct stat) will be used.
   573  
   574  // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
   575  // be 64-bit; there is no support for 32-bit ino_t when this macro is defined
   576  // (and non-zero).  There is no struct stat64 either, as the regular
   577  // struct stat will already be the 64-bit version.
   578  
   579  // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
   580  // in 10.5 exists; no pre-10.5 variants are available.
   581  
   582  // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
   583  // are available (the legacy BSD APIs are not available)
   584  
   585  // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
   586  // and specifies the conformance level (3 is SUSv3)
   587  
   588  // This macro casts away the qualifier from the variable
   589  //
   590  // Note: use at your own risk, removing qualifiers can result in
   591  // catastrophic run-time failures.
   592  
   593  // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
   594  // used from other compilation units, but not other libraries or executables.
   595  
   596  // Architecture validation for current SDK
   597  
   598  // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
   599  //
   600  // This provides more advanced type checking on compilers supporting
   601  // the proper extensions, even in C.
   602  
   603  // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
   604  //
   605  // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
   606  //
   607  // This file contains Original Code and/or Modifications of Original Code
   608  // as defined in and that are subject to the Apple Public Source License
   609  // Version 2.0 (the 'License'). You may not use this file except in
   610  // compliance with the License. The rights granted to you under the License
   611  // may not be used to create, or enable the creation or redistribution of,
   612  // unlawful or unlicensed copies of an Apple operating system, or to
   613  // circumvent, violate, or enable the circumvention or violation of, any
   614  // terms of an Apple operating system software license agreement.
   615  //
   616  // Please obtain a copy of the License at
   617  // http://www.opensource.apple.com/apsl/ and read it before using this file.
   618  //
   619  // The Original Code and all software distributed under the License are
   620  // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   621  // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   622  // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   623  // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   624  // Please see the License for the specific language governing rights and
   625  // limitations under the License.
   626  //
   627  // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
   628  type Errno_t = int32 /* _errno_t.h:30:32 */
   629  
   630  // Error codes
   631  
   632  // 11 was EAGAIN
   633  
   634  // math software
   635  
   636  // non-blocking and interrupt i/o
   637  
   638  // ipc/network software -- argument errors
   639  
   640  // ipc/network software -- operational errors
   641  
   642  // should be rearranged
   643  
   644  // quotas & mush
   645  
   646  // Network File System
   647  
   648  // Intelligent device errors
   649  
   650  // Program loading errors
   651  
   652  // This value is only discrete when compiling __DARWIN_UNIX03, or KERNEL
   653  
   654  var _ int8 /* gen.c:2:13: */