github.com/afumu/libc@v0.0.6/limits/limits_windows_386.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_windows_386.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  	CHAR_BIT                                        = 8                    // limits.h:64:1:
    19  	CHAR_MAX                                        = 127                  // limits.h:99:1:
    20  	CHAR_MIN                                        = -128                 // limits.h:97:1:
    21  	DUMMYSTRUCTNAME                                 = 0                    // _mingw.h:519:1:
    22  	DUMMYSTRUCTNAME1                                = 0                    // _mingw.h:520:1:
    23  	DUMMYSTRUCTNAME2                                = 0                    // _mingw.h:521:1:
    24  	DUMMYSTRUCTNAME3                                = 0                    // _mingw.h:522:1:
    25  	DUMMYSTRUCTNAME4                                = 0                    // _mingw.h:523:1:
    26  	DUMMYSTRUCTNAME5                                = 0                    // _mingw.h:524:1:
    27  	DUMMYUNIONNAME                                  = 0                    // _mingw.h:497:1:
    28  	DUMMYUNIONNAME1                                 = 0                    // _mingw.h:498:1:
    29  	DUMMYUNIONNAME2                                 = 0                    // _mingw.h:499:1:
    30  	DUMMYUNIONNAME3                                 = 0                    // _mingw.h:500:1:
    31  	DUMMYUNIONNAME4                                 = 0                    // _mingw.h:501:1:
    32  	DUMMYUNIONNAME5                                 = 0                    // _mingw.h:502:1:
    33  	DUMMYUNIONNAME6                                 = 0                    // _mingw.h:503:1:
    34  	DUMMYUNIONNAME7                                 = 0                    // _mingw.h:504:1:
    35  	DUMMYUNIONNAME8                                 = 0                    // _mingw.h:505:1:
    36  	DUMMYUNIONNAME9                                 = 0                    // _mingw.h:506:1:
    37  	INT_MAX                                         = 2147483647           // limits.h:120:1:
    38  	INT_MIN                                         = -2147483648          // limits.h:118:1:
    39  	LLONG_MAX                                       = 9223372036854775807  // limits.h:142:1:
    40  	LLONG_MIN                                       = -9223372036854775808 // limits.h:140:1:
    41  	LONG_LONG_MAX                                   = 9223372036854775807  // limits.h:154:1:
    42  	LONG_LONG_MIN                                   = -9223372036854775808 // limits.h:152:1:
    43  	LONG_MAX                                        = 2147483647           // limits.h:131:1:
    44  	LONG_MIN                                        = -2147483648          // limits.h:129:1:
    45  	MB_LEN_MAX                                      = 5                    // limits.h:35:1:
    46  	MINGW_DDK_H                                     = 0                    // _mingw_ddk.h:2:1:
    47  	MINGW_HAS_DDK_H                                 = 1                    // _mingw_ddk.h:4:1:
    48  	MINGW_HAS_SECURE_API                            = 1                    // _mingw.h:602:1:
    49  	MINGW_SDK_INIT                                  = 0                    // _mingw.h:598:1:
    50  	PATH_MAX                                        = 260                  // limits.h:20:1:
    51  	SCHAR_MAX                                       = 127                  // limits.h:75:1:
    52  	SCHAR_MIN                                       = -128                 // limits.h:73:1:
    53  	SHRT_MAX                                        = 32767                // limits.h:106:1:
    54  	SHRT_MIN                                        = -32768               // limits.h:104:1:
    55  	SIZE_MAX                                        = 4294967295           // limits.h:78:1:
    56  	SSIZE_MAX                                       = 2147483647           // limits.h:86:1:
    57  	UCHAR_MAX                                       = 255                  // limits.h:82:1:
    58  	UINT_MAX                                        = 4294967295           // limits.h:124:1:
    59  	ULLONG_MAX                                      = 18446744073709551615 // limits.h:146:1:
    60  	ULONG_LONG_MAX                                  = 18446744073709551615 // limits.h:158:1:
    61  	ULONG_MAX                                       = 4294967295           // limits.h:135:1:
    62  	UNALIGNED                                       = 0                    // _mingw.h:384:1:
    63  	USE___UUIDOF                                    = 0                    // _mingw.h:77:1:
    64  	USHRT_MAX                                       = 65535                // limits.h:113:1:
    65  	WIN32                                           = 1                    // <predefined>:258:1:
    66  	WINNT                                           = 1                    // <predefined>:306:1:
    67  	X_AGLOBAL                                       = 0                    // _mingw.h:346:1:
    68  	X_ANONYMOUS_STRUCT                              = 0                    // _mingw.h:474:1:
    69  	X_ANONYMOUS_UNION                               = 0                    // _mingw.h:473:1:
    70  	X_ARGMAX                                        = 100                  // _mingw.h:402:1:
    71  	X_CONST_RETURN                                  = 0                    // _mingw.h:377:1:
    72  	X_CRTNOALIAS                                    = 0                    // corecrt.h:29:1:
    73  	X_CRTRESTRICT                                   = 0                    // corecrt.h:33:1:
    74  	X_CRT_ALTERNATIVE_IMPORTED                      = 0                    // _mingw.h:313:1:
    75  	X_CRT_MANAGED_HEAP_DEPRECATE                    = 0                    // _mingw.h:361:1:
    76  	X_CRT_PACKING                                   = 8                    // corecrt.h:14:1:
    77  	X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES          = 0                    // _mingw_secapi.h:34:1:
    78  	X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY   = 0                    // _mingw_secapi.h:35:1:
    79  	X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES        = 0                    // _mingw_secapi.h:36:1:
    80  	X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT  = 0                    // _mingw_secapi.h:37:1:
    81  	X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0                    // _mingw_secapi.h:38:1:
    82  	X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP             = 0                    // corecrt.h:501:1:
    83  	X_DLL                                           = 0                    // _mingw.h:326:1:
    84  	X_ERRCODE_DEFINED                               = 0                    // corecrt.h:117:1:
    85  	X_FILE_OFFSET_BITS                              = 64                   // <builtin>:25:1:
    86  	X_GCC_LIMITS_H_                                 = 0                    // limits.h:30:1:
    87  	X_I16_MAX                                       = 32767                // limits.h:54:1:
    88  	X_I16_MIN                                       = -32768               // limits.h:53:1:
    89  	X_I32_MAX                                       = 2147483647           // limits.h:58:1:
    90  	X_I32_MIN                                       = -2147483648          // limits.h:57:1:
    91  	X_I64_MAX                                       = 9223372036854775807  // limits.h:71:1:
    92  	X_I64_MIN                                       = -9223372036854775808 // limits.h:70:1:
    93  	X_I8_MAX                                        = 127                  // limits.h:50:1:
    94  	X_I8_MIN                                        = -128                 // limits.h:49:1:
    95  	X_ILP32                                         = 1                    // <predefined>:211:1:
    96  	X_INC_CORECRT                                   = 0                    // corecrt.h:8:1:
    97  	X_INC_CRTDEFS                                   = 0                    // crtdefs.h:8:1:
    98  	X_INC_CRTDEFS_MACRO                             = 0                    // _mingw_mac.h:8:1:
    99  	X_INC_LIMITS                                    = 0                    // limits.h:9:1:
   100  	X_INC_MINGW_SECAPI                              = 0                    // _mingw_secapi.h:8:1:
   101  	X_INC_VADEFS                                    = 0                    // vadefs.h:7:1:
   102  	X_INC__MINGW_H                                  = 0                    // _mingw.h:8:1:
   103  	X_INT128_DEFINED                                = 0                    // _mingw.h:237:1:
   104  	X_INTEGRAL_MAX_BITS                             = 64                   // <predefined>:320:1:
   105  	X_INTPTR_T_DEFINED                              = 0                    // corecrt.h:62:1:
   106  	X_LIMITS_H___                                   = 0                    // limits.h:60:1:
   107  	X_MT                                            = 0                    // _mingw.h:330:1:
   108  	X_M_IX86                                        = 600                  // _mingw_mac.h:54:1:
   109  	X_PGLOBAL                                       = 0                    // _mingw.h:342:1:
   110  	X_PTRDIFF_T_                                    = 0                    // corecrt.h:90:1:
   111  	X_PTRDIFF_T_DEFINED                             = 0                    // corecrt.h:88:1:
   112  	X_RSIZE_T_DEFINED                               = 0                    // corecrt.h:58:1:
   113  	X_SECURECRT_FILL_BUFFER_PATTERN                 = 0xFD                 // _mingw.h:349:1:
   114  	X_SIZE_T_DEFINED                                = 0                    // corecrt.h:37:1:
   115  	X_SSIZE_T_DEFINED                               = 0                    // corecrt.h:47:1:
   116  	X_TAGLC_ID_DEFINED                              = 0                    // corecrt.h:447:1:
   117  	X_THREADLOCALEINFO                              = 0                    // corecrt.h:456:1:
   118  	X_TIME32_T_DEFINED                              = 0                    // corecrt.h:122:1:
   119  	X_TIME64_T_DEFINED                              = 0                    // corecrt.h:127:1:
   120  	X_TIME_T_DEFINED                                = 0                    // corecrt.h:139:1:
   121  	X_UI16_MAX                                      = 0xffff               // limits.h:55:1:
   122  	X_UI32_MAX                                      = 0xffffffff           // limits.h:59:1:
   123  	X_UI64_MAX                                      = 0xffffffffffffffff   // limits.h:72:1:
   124  	X_UI8_MAX                                       = 0xff                 // limits.h:51:1:
   125  	X_UINTPTR_T_DEFINED                             = 0                    // corecrt.h:75:1:
   126  	X_USE_32BIT_TIME_T                              = 0                    // _mingw.h:372:1:
   127  	X_VA_LIST_DEFINED                               = 0                    // <builtin>:55:1:
   128  	X_W64                                           = 0                    // _mingw.h:296:1:
   129  	X_WCHAR_T_DEFINED                               = 0                    // corecrt.h:101:1:
   130  	X_WCTYPE_T_DEFINED                              = 0                    // corecrt.h:108:1:
   131  	X_WIN32                                         = 1                    // <predefined>:164:1:
   132  	X_WIN32_WINNT                                   = 0x502                // _mingw.h:233:1:
   133  	X_WINT_T                                        = 0                    // corecrt.h:110:1:
   134  	X_X86_                                          = 1                    // <predefined>:169:1:
   135  	I386                                            = 1                    // <predefined>:171:1:
   136  )
   137  
   138  type Ptrdiff_t = int32 /* <builtin>:3:26 */
   139  
   140  type Size_t = uint32 /* <builtin>:9:23 */
   141  
   142  type Wchar_t = uint16 /* <builtin>:15:24 */
   143  
   144  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
   145  type X__float128 = float64        /* <builtin>:47:21 */
   146  
   147  type Va_list = X__builtin_va_list /* <builtin>:50:27 */
   148  
   149  // Copyright (C) 1992-2020 Free Software Foundation, Inc.
   150  //
   151  // This file is part of GCC.
   152  //
   153  // GCC is free software; you can redistribute it and/or modify it under
   154  // the terms of the GNU General Public License as published by the Free
   155  // Software Foundation; either version 3, or (at your option) any later
   156  // version.
   157  //
   158  // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
   159  // WARRANTY; without even the implied warranty of MERCHANTABILITY or
   160  // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
   161  // for more details.
   162  //
   163  // Under Section 7 of GPL version 3, you are granted additional
   164  // permissions described in the GCC Runtime Library Exception, version
   165  // 3.1, as published by the Free Software Foundation.
   166  //
   167  // You should have received a copy of the GNU General Public License and
   168  // a copy of the GCC Runtime Library Exception along with this program;
   169  // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
   170  // <http://www.gnu.org/licenses/>.
   171  
   172  // This administrivia gets added to the beginning of limits.h
   173  //    if the system has its own version of limits.h.
   174  
   175  // We use _GCC_LIMITS_H_ because we want this not to match
   176  //    any macros that the system's limits.h uses for its own purposes.
   177  
   178  // Use "..." so that we find syslimits.h only in this same directory.
   179  // syslimits.h stands for the system's own limits.h file.
   180  //    If we can use it ok unmodified, then we install this text.
   181  //    If fixincludes fixes it, then the fixed version is installed
   182  //    instead of this text.
   183  
   184  // *
   185  // This file has no copyright assigned and is placed in the Public Domain.
   186  // This file is part of the mingw-w64 runtime package.
   187  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   188  // *
   189  // This file has no copyright assigned and is placed in the Public Domain.
   190  // This file is part of the mingw-w64 runtime package.
   191  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   192  
   193  // *
   194  // This file has no copyright assigned and is placed in the Public Domain.
   195  // This file is part of the mingw-w64 runtime package.
   196  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   197  
   198  // *
   199  // This file has no copyright assigned and is placed in the Public Domain.
   200  // This file is part of the mingw-w64 runtime package.
   201  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   202  
   203  // *
   204  // This file has no copyright assigned and is placed in the Public Domain.
   205  // This file is part of the mingw-w64 runtime package.
   206  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   207  
   208  // This macro holds an monotonic increasing value, which indicates
   209  //    a specific fix/patch is present on trunk.  This value isn't related to
   210  //    minor/major version-macros.  It is increased on demand, if a big
   211  //    fix was applied to trunk.  This macro gets just increased on trunk.  For
   212  //    other branches its value won't be modified.
   213  
   214  // mingw.org's version macros: these make gcc to define
   215  //    MINGW32_SUPPORTS_MT_EH and to use the _CRT_MT global
   216  //    and the __mingwthr_key_dtor() function from the MinGW
   217  //    CRT in its private gthr-win32.h header.
   218  
   219  // Set VC specific compiler target macros.
   220  
   221  // For x86 we have always to prefix by underscore.
   222  
   223  // Special case nameless struct/union.
   224  
   225  // MinGW-w64 has some additional C99 printf/scanf feature support.
   226  //    So we add some helper macros to ease recognition of them.
   227  
   228  // If _FORTIFY_SOURCE is enabled, some inline functions may use
   229  //    __builtin_va_arg_pack().  GCC may report an error if the address
   230  //    of such a function is used.  Set _FORTIFY_VA_ARG=0 in this case.
   231  
   232  // Enable workaround for ABI incompatibility on affected platforms
   233  
   234  // *
   235  // This file has no copyright assigned and is placed in the Public Domain.
   236  // This file is part of the mingw-w64 runtime package.
   237  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   238  
   239  // http://msdn.microsoft.com/en-us/library/ms175759%28v=VS.100%29.aspx
   240  // Templates won't work in C, will break if secure API is not enabled, disabled
   241  
   242  // https://blogs.msdn.com/b/sdl/archive/2010/02/16/vc-2010-and-memcpy.aspx?Redirected=true
   243  // fallback on default implementation if we can't know the size of the destination
   244  
   245  // Include _cygwin.h if we're building a Cygwin application.
   246  
   247  // Target specific macro replacement for type "long".  In the Windows API,
   248  //    the type long is always 32 bit, even if the target is 64 bit (LLP64).
   249  //    On 64 bit Cygwin, the type long is 64 bit (LP64).  So, to get the right
   250  //    sized definitions and declarations, all usage of type long in the Windows
   251  //    headers have to be replaced by the below defined macro __LONG32.
   252  
   253  // C/C++ specific language defines.
   254  
   255  // Note the extern. This is needed to work around GCC's
   256  // limitations in handling dllimport attribute.
   257  
   258  // Attribute `nonnull' was valid as of gcc 3.3.  We don't use GCC's
   259  //    variadiac macro facility, because variadic macros cause syntax
   260  //    errors with  --traditional-cpp.
   261  
   262  //  High byte is the major version, low byte is the minor.
   263  
   264  // *
   265  // This file has no copyright assigned and is placed in the Public Domain.
   266  // This file is part of the mingw-w64 runtime package.
   267  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   268  
   269  // *
   270  // This file has no copyright assigned and is placed in the Public Domain.
   271  // This file is part of the mingw-w64 runtime package.
   272  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   273  
   274  // for backward compatibility
   275  
   276  type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
   277  
   278  type Ssize_t = int32 /* corecrt.h:52:13 */
   279  
   280  type Rsize_t = Size_t /* corecrt.h:57:16 */
   281  
   282  type Intptr_t = int32 /* corecrt.h:69:13 */
   283  
   284  type Uintptr_t = uint32 /* corecrt.h:82:22 */
   285  
   286  type Wint_t = uint16   /* corecrt.h:111:24 */
   287  type Wctype_t = uint16 /* corecrt.h:112:24 */
   288  
   289  type Errno_t = int32 /* corecrt.h:118:13 */
   290  
   291  type X__time32_t = int32 /* corecrt.h:123:14 */
   292  
   293  type X__time64_t = int64 /* corecrt.h:128:35 */
   294  
   295  type Time_t = X__time32_t /* corecrt.h:141:20 */
   296  
   297  type Threadlocaleinfostruct = struct {
   298  	Frefcount      int32
   299  	Flc_codepage   uint32
   300  	Flc_collate_cp uint32
   301  	Flc_handle     [6]uint32
   302  	Flc_id         [6]LC_ID
   303  	Flc_category   [6]struct {
   304  		Flocale    uintptr
   305  		Fwlocale   uintptr
   306  		Frefcount  uintptr
   307  		Fwrefcount uintptr
   308  	}
   309  	Flc_clike            int32
   310  	Fmb_cur_max          int32
   311  	Flconv_intl_refcount uintptr
   312  	Flconv_num_refcount  uintptr
   313  	Flconv_mon_refcount  uintptr
   314  	Flconv               uintptr
   315  	Fctype1_refcount     uintptr
   316  	Fctype1              uintptr
   317  	Fpctype              uintptr
   318  	Fpclmap              uintptr
   319  	Fpcumap              uintptr
   320  	Flc_time_curr        uintptr
   321  } /* corecrt.h:435:1 */
   322  
   323  type Pthreadlocinfo = uintptr /* corecrt.h:437:39 */
   324  type Pthreadmbcinfo = uintptr /* corecrt.h:438:36 */
   325  
   326  type Localeinfo_struct = struct {
   327  	Flocinfo Pthreadlocinfo
   328  	Fmbcinfo Pthreadmbcinfo
   329  } /* corecrt.h:441:9 */
   330  
   331  type X_locale_tstruct = Localeinfo_struct /* corecrt.h:444:3 */
   332  type X_locale_t = uintptr                 /* corecrt.h:444:19 */
   333  
   334  type TagLC_ID = struct {
   335  	FwLanguage uint16
   336  	FwCountry  uint16
   337  	FwCodePage uint16
   338  } /* corecrt.h:435:1 */
   339  
   340  type LC_ID = TagLC_ID  /* corecrt.h:452:3 */
   341  type LPLC_ID = uintptr /* corecrt.h:452:9 */
   342  
   343  type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
   344  
   345  // File system limits
   346  //
   347  // NOTE: Apparently the actual size of PATH_MAX is 260, but a space is
   348  //       required for the NUL. TODO: Test?
   349  // NOTE: PATH_MAX is the POSIX equivalent for Microsoft's MAX_PATH; the two
   350  //       are semantically identical, with a limit of 259 characters for the
   351  //       path name, plus one for a terminating NUL, for a total of 260.
   352  
   353  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   354  //
   355  // This file is part of GCC.
   356  //
   357  // GCC is free software; you can redistribute it and/or modify it under
   358  // the terms of the GNU General Public License as published by the Free
   359  // Software Foundation; either version 3, or (at your option) any later
   360  // version.
   361  //
   362  // GCC is distributed in the hope that it will be useful, but WITHOUT ANY
   363  // WARRANTY; without even the implied warranty of MERCHANTABILITY or
   364  // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
   365  // for more details.
   366  //
   367  // Under Section 7 of GPL version 3, you are granted additional
   368  // permissions described in the GCC Runtime Library Exception, version
   369  // 3.1, as published by the Free Software Foundation.
   370  //
   371  // You should have received a copy of the GNU General Public License and
   372  // a copy of the GCC Runtime Library Exception along with this program;
   373  // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
   374  // <http://www.gnu.org/licenses/>.
   375  
   376  // Number of bits in a `char'.
   377  
   378  // Maximum length of a multibyte character.
   379  
   380  // Minimum and maximum values a `signed char' can hold.
   381  
   382  // Maximum value an `unsigned char' can hold.  (Minimum is 0).
   383  
   384  // Minimum and maximum values a `char' can hold.
   385  
   386  // Minimum and maximum values a `signed short int' can hold.
   387  
   388  // Maximum value an `unsigned short int' can hold.  (Minimum is 0).
   389  
   390  // Minimum and maximum values a `signed int' can hold.
   391  
   392  // Maximum value an `unsigned int' can hold.  (Minimum is 0).
   393  
   394  // Minimum and maximum values a `signed long int' can hold.
   395  //    (Same as `int').
   396  
   397  // Maximum value an `unsigned long int' can hold.  (Minimum is 0).
   398  
   399  // Minimum and maximum values a `signed long long int' can hold.
   400  
   401  // Maximum value an `unsigned long long int' can hold.  (Minimum is 0).
   402  
   403  // Minimum and maximum values a `signed long long int' can hold.
   404  
   405  // Maximum value an `unsigned long long int' can hold.  (Minimum is 0).
   406  
   407  // This administrivia gets added to the end of limits.h
   408  //    if the system has its own version of limits.h.
   409  
   410  var _ int8 /* gen.c:2:13: */