modernc.org/libc@v1.24.1/unistd/unistd_linux_riscv64.go (about)

     1  // Code generated by 'ccgo unistd/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o unistd/unistd_linux_riscv64.go -pkgname unistd', DO NOT EDIT.
     2  
     3  package unistd
     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  	F_LOCK                             = 1
    19  	F_OK                               = 0
    20  	F_TEST                             = 3
    21  	F_TLOCK                            = 2
    22  	F_ULOCK                            = 0
    23  	L_INCR                             = 1
    24  	L_SET                              = 0
    25  	L_XTND                             = 2
    26  	R_OK                               = 4
    27  	SEEK_CUR                           = 1
    28  	SEEK_END                           = 2
    29  	SEEK_SET                           = 0
    30  	STDERR_FILENO                      = 2
    31  	STDIN_FILENO                       = 0
    32  	STDOUT_FILENO                      = 1
    33  	W_OK                               = 2
    34  	X_OK                               = 1
    35  	X_ATFILE_SOURCE                    = 1
    36  	X_BITS_POSIX_OPT_H                 = 1
    37  	X_BITS_TIME64_H                    = 1
    38  	X_BITS_TYPESIZES_H                 = 1
    39  	X_BITS_TYPES_H                     = 1
    40  	X_BSD_SIZE_T_                      = 0
    41  	X_BSD_SIZE_T_DEFINED_              = 0
    42  	X_DEFAULT_SOURCE                   = 1
    43  	X_FEATURES_H                       = 1
    44  	X_FILE_OFFSET_BITS                 = 64
    45  	X_GCC_SIZE_T                       = 0
    46  	X_GETOPT_CORE_H                    = 1
    47  	X_GETOPT_POSIX_H                   = 1
    48  	X_LFS64_ASYNCHRONOUS_IO            = 1
    49  	X_LFS64_LARGEFILE                  = 1
    50  	X_LFS64_STDIO                      = 1
    51  	X_LFS_ASYNCHRONOUS_IO              = 1
    52  	X_LFS_LARGEFILE                    = 1
    53  	X_LP64                             = 1
    54  	X_POSIX2_CHAR_TERM                 = 200809
    55  	X_POSIX2_C_BIND                    = 200809
    56  	X_POSIX2_C_DEV                     = 200809
    57  	X_POSIX2_C_VERSION                 = 200809
    58  	X_POSIX2_LOCALEDEF                 = 200809
    59  	X_POSIX2_SW_DEV                    = 200809
    60  	X_POSIX2_VERSION                   = 200809
    61  	X_POSIX_ADVISORY_INFO              = 200809
    62  	X_POSIX_ASYNCHRONOUS_IO            = 200809
    63  	X_POSIX_ASYNC_IO                   = 1
    64  	X_POSIX_BARRIERS                   = 200809
    65  	X_POSIX_CHOWN_RESTRICTED           = 0
    66  	X_POSIX_CLOCK_SELECTION            = 200809
    67  	X_POSIX_CPUTIME                    = 0
    68  	X_POSIX_C_SOURCE                   = 200809
    69  	X_POSIX_FSYNC                      = 200809
    70  	X_POSIX_IPV6                       = 200809
    71  	X_POSIX_JOB_CONTROL                = 1
    72  	X_POSIX_MAPPED_FILES               = 200809
    73  	X_POSIX_MEMLOCK                    = 200809
    74  	X_POSIX_MEMLOCK_RANGE              = 200809
    75  	X_POSIX_MEMORY_PROTECTION          = 200809
    76  	X_POSIX_MESSAGE_PASSING            = 200809
    77  	X_POSIX_MONOTONIC_CLOCK            = 0
    78  	X_POSIX_NO_TRUNC                   = 1
    79  	X_POSIX_PRIORITIZED_IO             = 200809
    80  	X_POSIX_PRIORITY_SCHEDULING        = 200809
    81  	X_POSIX_RAW_SOCKETS                = 200809
    82  	X_POSIX_READER_WRITER_LOCKS        = 200809
    83  	X_POSIX_REALTIME_SIGNALS           = 200809
    84  	X_POSIX_REENTRANT_FUNCTIONS        = 1
    85  	X_POSIX_REGEXP                     = 1
    86  	X_POSIX_SAVED_IDS                  = 1
    87  	X_POSIX_SEMAPHORES                 = 200809
    88  	X_POSIX_SHARED_MEMORY_OBJECTS      = 200809
    89  	X_POSIX_SHELL                      = 1
    90  	X_POSIX_SOURCE                     = 1
    91  	X_POSIX_SPAWN                      = 200809
    92  	X_POSIX_SPIN_LOCKS                 = 200809
    93  	X_POSIX_SPORADIC_SERVER            = -1
    94  	X_POSIX_SYNCHRONIZED_IO            = 200809
    95  	X_POSIX_THREADS                    = 200809
    96  	X_POSIX_THREAD_ATTR_STACKADDR      = 200809
    97  	X_POSIX_THREAD_ATTR_STACKSIZE      = 200809
    98  	X_POSIX_THREAD_CPUTIME             = 0
    99  	X_POSIX_THREAD_PRIORITY_SCHEDULING = 200809
   100  	X_POSIX_THREAD_PRIO_INHERIT        = 200809
   101  	X_POSIX_THREAD_PRIO_PROTECT        = 200809
   102  	X_POSIX_THREAD_PROCESS_SHARED      = 200809
   103  	X_POSIX_THREAD_ROBUST_PRIO_INHERIT = 200809
   104  	X_POSIX_THREAD_ROBUST_PRIO_PROTECT = -1
   105  	X_POSIX_THREAD_SAFE_FUNCTIONS      = 200809
   106  	X_POSIX_THREAD_SPORADIC_SERVER     = -1
   107  	X_POSIX_TIMEOUTS                   = 200809
   108  	X_POSIX_TIMERS                     = 200809
   109  	X_POSIX_TRACE                      = -1
   110  	X_POSIX_TRACE_EVENT_FILTER         = -1
   111  	X_POSIX_TRACE_INHERIT              = -1
   112  	X_POSIX_TRACE_LOG                  = -1
   113  	X_POSIX_TYPED_MEMORY_OBJECTS       = -1
   114  	X_POSIX_V6_ILP32_OFF32             = -1
   115  	X_POSIX_V6_ILP32_OFFBIG            = -1
   116  	X_POSIX_V6_LP64_OFF64              = 1
   117  	X_POSIX_V6_LPBIG_OFFBIG            = -1
   118  	X_POSIX_V7_ILP32_OFF32             = -1
   119  	X_POSIX_V7_ILP32_OFFBIG            = -1
   120  	X_POSIX_V7_LP64_OFF64              = 1
   121  	X_POSIX_V7_LPBIG_OFFBIG            = -1
   122  	X_POSIX_VDISABLE                   = 0
   123  	X_POSIX_VERSION                    = 200809
   124  	X_SIZET_                           = 0
   125  	X_SIZE_T                           = 0
   126  	X_SIZE_T_                          = 0
   127  	X_SIZE_T_DECLARED                  = 0
   128  	X_SIZE_T_DEFINED                   = 0
   129  	X_SIZE_T_DEFINED_                  = 0
   130  	X_STDC_PREDEF_H                    = 1
   131  	X_SYS_CDEFS_H                      = 1
   132  	X_SYS_SIZE_T_H                     = 0
   133  	X_T_SIZE                           = 0
   134  	X_T_SIZE_                          = 0
   135  	X_UNISTD_H                         = 1
   136  	X_XBS5_ILP32_OFF32                 = -1
   137  	X_XBS5_ILP32_OFFBIG                = -1
   138  	X_XBS5_LP64_OFF64                  = 1
   139  	X_XBS5_LPBIG_OFFBIG                = -1
   140  	X_XOPEN_ENH_I18N                   = 1
   141  	X_XOPEN_LEGACY                     = 1
   142  	X_XOPEN_REALTIME                   = 1
   143  	X_XOPEN_REALTIME_THREADS           = 1
   144  	X_XOPEN_SHM                        = 1
   145  	X_XOPEN_UNIX                       = 1
   146  	X_XOPEN_VERSION                    = 700
   147  	X_XOPEN_XCU_VERSION                = 4
   148  	X_XOPEN_XPG2                       = 1
   149  	X_XOPEN_XPG3                       = 1
   150  	X_XOPEN_XPG4                       = 1
   151  	Linux                              = 1
   152  	Unix                               = 1
   153  )
   154  
   155  // Get the `_PC_*' symbols for the NAME argument to `pathconf' and `fpathconf';
   156  //    the `_SC_*' symbols for the NAME argument to `sysconf';
   157  //    and the `_CS_*' symbols for the NAME argument to `confstr'.
   158  // `sysconf', `pathconf', and `confstr' NAME values.  Generic version.
   159  //    Copyright (C) 1993-2021 Free Software Foundation, Inc.
   160  //    This file is part of the GNU C Library.
   161  //
   162  //    The GNU C Library is free software; you can redistribute it and/or
   163  //    modify it under the terms of the GNU Lesser General Public
   164  //    License as published by the Free Software Foundation; either
   165  //    version 2.1 of the License, or (at your option) any later version.
   166  //
   167  //    The GNU C Library is distributed in the hope that it will be useful,
   168  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   169  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   170  //    Lesser General Public License for more details.
   171  //
   172  //    You should have received a copy of the GNU Lesser General Public
   173  //    License along with the GNU C Library; if not, see
   174  //    <https://www.gnu.org/licenses/>.
   175  
   176  // Values for the NAME argument to `pathconf' and `fpathconf'.
   177  const ( /* confname.h:24:1: */
   178  	X_PC_LINK_MAX           = 0
   179  	X_PC_MAX_CANON          = 1
   180  	X_PC_MAX_INPUT          = 2
   181  	X_PC_NAME_MAX           = 3
   182  	X_PC_PATH_MAX           = 4
   183  	X_PC_PIPE_BUF           = 5
   184  	X_PC_CHOWN_RESTRICTED   = 6
   185  	X_PC_NO_TRUNC           = 7
   186  	X_PC_VDISABLE           = 8
   187  	X_PC_SYNC_IO            = 9
   188  	X_PC_ASYNC_IO           = 10
   189  	X_PC_PRIO_IO            = 11
   190  	X_PC_SOCK_MAXBUF        = 12
   191  	X_PC_FILESIZEBITS       = 13
   192  	X_PC_REC_INCR_XFER_SIZE = 14
   193  	X_PC_REC_MAX_XFER_SIZE  = 15
   194  	X_PC_REC_MIN_XFER_SIZE  = 16
   195  	X_PC_REC_XFER_ALIGN     = 17
   196  	X_PC_ALLOC_SIZE_MIN     = 18
   197  	X_PC_SYMLINK_MAX        = 19
   198  	X_PC_2_SYMLINKS         = 20
   199  )
   200  
   201  // Values for the NAME argument to `confstr'.
   202  const ( /* confname.h:539:1: */
   203  	X_CS_PATH = 0 // The default search path.
   204  
   205  	X_CS_V6_WIDTH_RESTRICTED_ENVS = 1
   206  
   207  	X_CS_GNU_LIBC_VERSION       = 2
   208  	X_CS_GNU_LIBPTHREAD_VERSION = 3
   209  
   210  	X_CS_V5_WIDTH_RESTRICTED_ENVS = 4
   211  
   212  	X_CS_V7_WIDTH_RESTRICTED_ENVS = 5
   213  
   214  	X_CS_LFS_CFLAGS      = 1000
   215  	X_CS_LFS_LDFLAGS     = 1001
   216  	X_CS_LFS_LIBS        = 1002
   217  	X_CS_LFS_LINTFLAGS   = 1003
   218  	X_CS_LFS64_CFLAGS    = 1004
   219  	X_CS_LFS64_LDFLAGS   = 1005
   220  	X_CS_LFS64_LIBS      = 1006
   221  	X_CS_LFS64_LINTFLAGS = 1007
   222  
   223  	X_CS_XBS5_ILP32_OFF32_CFLAGS     = 1100
   224  	X_CS_XBS5_ILP32_OFF32_LDFLAGS    = 1101
   225  	X_CS_XBS5_ILP32_OFF32_LIBS       = 1102
   226  	X_CS_XBS5_ILP32_OFF32_LINTFLAGS  = 1103
   227  	X_CS_XBS5_ILP32_OFFBIG_CFLAGS    = 1104
   228  	X_CS_XBS5_ILP32_OFFBIG_LDFLAGS   = 1105
   229  	X_CS_XBS5_ILP32_OFFBIG_LIBS      = 1106
   230  	X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 1107
   231  	X_CS_XBS5_LP64_OFF64_CFLAGS      = 1108
   232  	X_CS_XBS5_LP64_OFF64_LDFLAGS     = 1109
   233  	X_CS_XBS5_LP64_OFF64_LIBS        = 1110
   234  	X_CS_XBS5_LP64_OFF64_LINTFLAGS   = 1111
   235  	X_CS_XBS5_LPBIG_OFFBIG_CFLAGS    = 1112
   236  	X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS   = 1113
   237  	X_CS_XBS5_LPBIG_OFFBIG_LIBS      = 1114
   238  	X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 1115
   239  
   240  	X_CS_POSIX_V6_ILP32_OFF32_CFLAGS     = 1116
   241  	X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS    = 1117
   242  	X_CS_POSIX_V6_ILP32_OFF32_LIBS       = 1118
   243  	X_CS_POSIX_V6_ILP32_OFF32_LINTFLAGS  = 1119
   244  	X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS    = 1120
   245  	X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS   = 1121
   246  	X_CS_POSIX_V6_ILP32_OFFBIG_LIBS      = 1122
   247  	X_CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123
   248  	X_CS_POSIX_V6_LP64_OFF64_CFLAGS      = 1124
   249  	X_CS_POSIX_V6_LP64_OFF64_LDFLAGS     = 1125
   250  	X_CS_POSIX_V6_LP64_OFF64_LIBS        = 1126
   251  	X_CS_POSIX_V6_LP64_OFF64_LINTFLAGS   = 1127
   252  	X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS    = 1128
   253  	X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS   = 1129
   254  	X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS      = 1130
   255  	X_CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131
   256  
   257  	X_CS_POSIX_V7_ILP32_OFF32_CFLAGS     = 1132
   258  	X_CS_POSIX_V7_ILP32_OFF32_LDFLAGS    = 1133
   259  	X_CS_POSIX_V7_ILP32_OFF32_LIBS       = 1134
   260  	X_CS_POSIX_V7_ILP32_OFF32_LINTFLAGS  = 1135
   261  	X_CS_POSIX_V7_ILP32_OFFBIG_CFLAGS    = 1136
   262  	X_CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS   = 1137
   263  	X_CS_POSIX_V7_ILP32_OFFBIG_LIBS      = 1138
   264  	X_CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139
   265  	X_CS_POSIX_V7_LP64_OFF64_CFLAGS      = 1140
   266  	X_CS_POSIX_V7_LP64_OFF64_LDFLAGS     = 1141
   267  	X_CS_POSIX_V7_LP64_OFF64_LIBS        = 1142
   268  	X_CS_POSIX_V7_LP64_OFF64_LINTFLAGS   = 1143
   269  	X_CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS    = 1144
   270  	X_CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS   = 1145
   271  	X_CS_POSIX_V7_LPBIG_OFFBIG_LIBS      = 1146
   272  	X_CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147
   273  
   274  	X_CS_V6_ENV = 1148
   275  	X_CS_V7_ENV = 1149
   276  )
   277  
   278  // Values for the argument to `sysconf'.
   279  const ( /* confname.h:71:1: */
   280  	X_SC_ARG_MAX               = 0
   281  	X_SC_CHILD_MAX             = 1
   282  	X_SC_CLK_TCK               = 2
   283  	X_SC_NGROUPS_MAX           = 3
   284  	X_SC_OPEN_MAX              = 4
   285  	X_SC_STREAM_MAX            = 5
   286  	X_SC_TZNAME_MAX            = 6
   287  	X_SC_JOB_CONTROL           = 7
   288  	X_SC_SAVED_IDS             = 8
   289  	X_SC_REALTIME_SIGNALS      = 9
   290  	X_SC_PRIORITY_SCHEDULING   = 10
   291  	X_SC_TIMERS                = 11
   292  	X_SC_ASYNCHRONOUS_IO       = 12
   293  	X_SC_PRIORITIZED_IO        = 13
   294  	X_SC_SYNCHRONIZED_IO       = 14
   295  	X_SC_FSYNC                 = 15
   296  	X_SC_MAPPED_FILES          = 16
   297  	X_SC_MEMLOCK               = 17
   298  	X_SC_MEMLOCK_RANGE         = 18
   299  	X_SC_MEMORY_PROTECTION     = 19
   300  	X_SC_MESSAGE_PASSING       = 20
   301  	X_SC_SEMAPHORES            = 21
   302  	X_SC_SHARED_MEMORY_OBJECTS = 22
   303  	X_SC_AIO_LISTIO_MAX        = 23
   304  	X_SC_AIO_MAX               = 24
   305  	X_SC_AIO_PRIO_DELTA_MAX    = 25
   306  	X_SC_DELAYTIMER_MAX        = 26
   307  	X_SC_MQ_OPEN_MAX           = 27
   308  	X_SC_MQ_PRIO_MAX           = 28
   309  	X_SC_VERSION               = 29
   310  	X_SC_PAGESIZE              = 30
   311  	X_SC_RTSIG_MAX             = 31
   312  	X_SC_SEM_NSEMS_MAX         = 32
   313  	X_SC_SEM_VALUE_MAX         = 33
   314  	X_SC_SIGQUEUE_MAX          = 34
   315  	X_SC_TIMER_MAX             = 35
   316  
   317  	// Values for the argument to `sysconf'
   318  	//        corresponding to _POSIX2_* symbols.
   319  	X_SC_BC_BASE_MAX        = 36
   320  	X_SC_BC_DIM_MAX         = 37
   321  	X_SC_BC_SCALE_MAX       = 38
   322  	X_SC_BC_STRING_MAX      = 39
   323  	X_SC_COLL_WEIGHTS_MAX   = 40
   324  	X_SC_EQUIV_CLASS_MAX    = 41
   325  	X_SC_EXPR_NEST_MAX      = 42
   326  	X_SC_LINE_MAX           = 43
   327  	X_SC_RE_DUP_MAX         = 44
   328  	X_SC_CHARCLASS_NAME_MAX = 45
   329  
   330  	X_SC_2_VERSION   = 46
   331  	X_SC_2_C_BIND    = 47
   332  	X_SC_2_C_DEV     = 48
   333  	X_SC_2_FORT_DEV  = 49
   334  	X_SC_2_FORT_RUN  = 50
   335  	X_SC_2_SW_DEV    = 51
   336  	X_SC_2_LOCALEDEF = 52
   337  
   338  	X_SC_PII                 = 53
   339  	X_SC_PII_XTI             = 54
   340  	X_SC_PII_SOCKET          = 55
   341  	X_SC_PII_INTERNET        = 56
   342  	X_SC_PII_OSI             = 57
   343  	X_SC_POLL                = 58
   344  	X_SC_SELECT              = 59
   345  	X_SC_UIO_MAXIOV          = 60
   346  	X_SC_IOV_MAX             = 60
   347  	X_SC_PII_INTERNET_STREAM = 61
   348  	X_SC_PII_INTERNET_DGRAM  = 62
   349  	X_SC_PII_OSI_COTS        = 63
   350  	X_SC_PII_OSI_CLTS        = 64
   351  	X_SC_PII_OSI_M           = 65
   352  	X_SC_T_IOV_MAX           = 66
   353  
   354  	// Values according to POSIX 1003.1c (POSIX threads).
   355  	X_SC_THREADS                      = 67
   356  	X_SC_THREAD_SAFE_FUNCTIONS        = 68
   357  	X_SC_GETGR_R_SIZE_MAX             = 69
   358  	X_SC_GETPW_R_SIZE_MAX             = 70
   359  	X_SC_LOGIN_NAME_MAX               = 71
   360  	X_SC_TTY_NAME_MAX                 = 72
   361  	X_SC_THREAD_DESTRUCTOR_ITERATIONS = 73
   362  	X_SC_THREAD_KEYS_MAX              = 74
   363  	X_SC_THREAD_STACK_MIN             = 75
   364  	X_SC_THREAD_THREADS_MAX           = 76
   365  	X_SC_THREAD_ATTR_STACKADDR        = 77
   366  	X_SC_THREAD_ATTR_STACKSIZE        = 78
   367  	X_SC_THREAD_PRIORITY_SCHEDULING   = 79
   368  	X_SC_THREAD_PRIO_INHERIT          = 80
   369  	X_SC_THREAD_PRIO_PROTECT          = 81
   370  	X_SC_THREAD_PROCESS_SHARED        = 82
   371  
   372  	X_SC_NPROCESSORS_CONF = 83
   373  	X_SC_NPROCESSORS_ONLN = 84
   374  	X_SC_PHYS_PAGES       = 85
   375  	X_SC_AVPHYS_PAGES     = 86
   376  	X_SC_ATEXIT_MAX       = 87
   377  	X_SC_PASS_MAX         = 88
   378  
   379  	X_SC_XOPEN_VERSION     = 89
   380  	X_SC_XOPEN_XCU_VERSION = 90
   381  	X_SC_XOPEN_UNIX        = 91
   382  	X_SC_XOPEN_CRYPT       = 92
   383  	X_SC_XOPEN_ENH_I18N    = 93
   384  	X_SC_XOPEN_SHM         = 94
   385  
   386  	X_SC_2_CHAR_TERM = 95
   387  	X_SC_2_C_VERSION = 96
   388  	X_SC_2_UPE       = 97
   389  
   390  	X_SC_XOPEN_XPG2 = 98
   391  	X_SC_XOPEN_XPG3 = 99
   392  	X_SC_XOPEN_XPG4 = 100
   393  
   394  	X_SC_CHAR_BIT   = 101
   395  	X_SC_CHAR_MAX   = 102
   396  	X_SC_CHAR_MIN   = 103
   397  	X_SC_INT_MAX    = 104
   398  	X_SC_INT_MIN    = 105
   399  	X_SC_LONG_BIT   = 106
   400  	X_SC_WORD_BIT   = 107
   401  	X_SC_MB_LEN_MAX = 108
   402  	X_SC_NZERO      = 109
   403  	X_SC_SSIZE_MAX  = 110
   404  	X_SC_SCHAR_MAX  = 111
   405  	X_SC_SCHAR_MIN  = 112
   406  	X_SC_SHRT_MAX   = 113
   407  	X_SC_SHRT_MIN   = 114
   408  	X_SC_UCHAR_MAX  = 115
   409  	X_SC_UINT_MAX   = 116
   410  	X_SC_ULONG_MAX  = 117
   411  	X_SC_USHRT_MAX  = 118
   412  
   413  	X_SC_NL_ARGMAX  = 119
   414  	X_SC_NL_LANGMAX = 120
   415  	X_SC_NL_MSGMAX  = 121
   416  	X_SC_NL_NMAX    = 122
   417  	X_SC_NL_SETMAX  = 123
   418  	X_SC_NL_TEXTMAX = 124
   419  
   420  	X_SC_XBS5_ILP32_OFF32  = 125
   421  	X_SC_XBS5_ILP32_OFFBIG = 126
   422  	X_SC_XBS5_LP64_OFF64   = 127
   423  	X_SC_XBS5_LPBIG_OFFBIG = 128
   424  
   425  	X_SC_XOPEN_LEGACY           = 129
   426  	X_SC_XOPEN_REALTIME         = 130
   427  	X_SC_XOPEN_REALTIME_THREADS = 131
   428  
   429  	X_SC_ADVISORY_INFO          = 132
   430  	X_SC_BARRIERS               = 133
   431  	X_SC_BASE                   = 134
   432  	X_SC_C_LANG_SUPPORT         = 135
   433  	X_SC_C_LANG_SUPPORT_R       = 136
   434  	X_SC_CLOCK_SELECTION        = 137
   435  	X_SC_CPUTIME                = 138
   436  	X_SC_THREAD_CPUTIME         = 139
   437  	X_SC_DEVICE_IO              = 140
   438  	X_SC_DEVICE_SPECIFIC        = 141
   439  	X_SC_DEVICE_SPECIFIC_R      = 142
   440  	X_SC_FD_MGMT                = 143
   441  	X_SC_FIFO                   = 144
   442  	X_SC_PIPE                   = 145
   443  	X_SC_FILE_ATTRIBUTES        = 146
   444  	X_SC_FILE_LOCKING           = 147
   445  	X_SC_FILE_SYSTEM            = 148
   446  	X_SC_MONOTONIC_CLOCK        = 149
   447  	X_SC_MULTI_PROCESS          = 150
   448  	X_SC_SINGLE_PROCESS         = 151
   449  	X_SC_NETWORKING             = 152
   450  	X_SC_READER_WRITER_LOCKS    = 153
   451  	X_SC_SPIN_LOCKS             = 154
   452  	X_SC_REGEXP                 = 155
   453  	X_SC_REGEX_VERSION          = 156
   454  	X_SC_SHELL                  = 157
   455  	X_SC_SIGNALS                = 158
   456  	X_SC_SPAWN                  = 159
   457  	X_SC_SPORADIC_SERVER        = 160
   458  	X_SC_THREAD_SPORADIC_SERVER = 161
   459  	X_SC_SYSTEM_DATABASE        = 162
   460  	X_SC_SYSTEM_DATABASE_R      = 163
   461  	X_SC_TIMEOUTS               = 164
   462  	X_SC_TYPED_MEMORY_OBJECTS   = 165
   463  	X_SC_USER_GROUPS            = 166
   464  	X_SC_USER_GROUPS_R          = 167
   465  	X_SC_2_PBS                  = 168
   466  	X_SC_2_PBS_ACCOUNTING       = 169
   467  	X_SC_2_PBS_LOCATE           = 170
   468  	X_SC_2_PBS_MESSAGE          = 171
   469  	X_SC_2_PBS_TRACK            = 172
   470  	X_SC_SYMLOOP_MAX            = 173
   471  	X_SC_STREAMS                = 174
   472  	X_SC_2_PBS_CHECKPOINT       = 175
   473  
   474  	X_SC_V6_ILP32_OFF32  = 176
   475  	X_SC_V6_ILP32_OFFBIG = 177
   476  	X_SC_V6_LP64_OFF64   = 178
   477  	X_SC_V6_LPBIG_OFFBIG = 179
   478  
   479  	X_SC_HOST_NAME_MAX      = 180
   480  	X_SC_TRACE              = 181
   481  	X_SC_TRACE_EVENT_FILTER = 182
   482  	X_SC_TRACE_INHERIT      = 183
   483  	X_SC_TRACE_LOG          = 184
   484  
   485  	X_SC_LEVEL1_ICACHE_SIZE     = 185
   486  	X_SC_LEVEL1_ICACHE_ASSOC    = 186
   487  	X_SC_LEVEL1_ICACHE_LINESIZE = 187
   488  	X_SC_LEVEL1_DCACHE_SIZE     = 188
   489  	X_SC_LEVEL1_DCACHE_ASSOC    = 189
   490  	X_SC_LEVEL1_DCACHE_LINESIZE = 190
   491  	X_SC_LEVEL2_CACHE_SIZE      = 191
   492  	X_SC_LEVEL2_CACHE_ASSOC     = 192
   493  	X_SC_LEVEL2_CACHE_LINESIZE  = 193
   494  	X_SC_LEVEL3_CACHE_SIZE      = 194
   495  	X_SC_LEVEL3_CACHE_ASSOC     = 195
   496  	X_SC_LEVEL3_CACHE_LINESIZE  = 196
   497  	X_SC_LEVEL4_CACHE_SIZE      = 197
   498  	X_SC_LEVEL4_CACHE_ASSOC     = 198
   499  	X_SC_LEVEL4_CACHE_LINESIZE  = 199
   500  	// Leave room here, maybe we need a few more cache levels some day.
   501  
   502  	X_SC_IPV6        = 235
   503  	X_SC_RAW_SOCKETS = 236
   504  
   505  	X_SC_V7_ILP32_OFF32  = 237
   506  	X_SC_V7_ILP32_OFFBIG = 238
   507  	X_SC_V7_LP64_OFF64   = 239
   508  	X_SC_V7_LPBIG_OFFBIG = 240
   509  
   510  	X_SC_SS_REPL_MAX = 241
   511  
   512  	X_SC_TRACE_EVENT_NAME_MAX = 242
   513  	X_SC_TRACE_NAME_MAX       = 243
   514  	X_SC_TRACE_SYS_MAX        = 244
   515  	X_SC_TRACE_USER_EVENT_MAX = 245
   516  
   517  	X_SC_XOPEN_STREAMS = 246
   518  
   519  	X_SC_THREAD_ROBUST_PRIO_INHERIT = 247
   520  	X_SC_THREAD_ROBUST_PRIO_PROTECT = 248
   521  
   522  	X_SC_MINSIGSTKSZ = 249
   523  
   524  	X_SC_SIGSTKSZ = 250
   525  )
   526  
   527  type Ptrdiff_t = int64 /* <builtin>:3:26 */
   528  
   529  type Size_t = uint64 /* <builtin>:9:23 */
   530  
   531  type Wchar_t = int32 /* <builtin>:15:24 */
   532  
   533  type X__int128_t = struct {
   534  	Flo int64
   535  	Fhi int64
   536  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
   537  type X__uint128_t = struct {
   538  	Flo uint64
   539  	Fhi uint64
   540  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
   541  
   542  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
   543  type X__float128 = float64        /* <builtin>:47:21 */
   544  
   545  // Copyright (C) 1991-2021 Free Software Foundation, Inc.
   546  //    This file is part of the GNU C Library.
   547  //
   548  //    The GNU C Library is free software; you can redistribute it and/or
   549  //    modify it under the terms of the GNU Lesser General Public
   550  //    License as published by the Free Software Foundation; either
   551  //    version 2.1 of the License, or (at your option) any later version.
   552  //
   553  //    The GNU C Library is distributed in the hope that it will be useful,
   554  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   555  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   556  //    Lesser General Public License for more details.
   557  //
   558  //    You should have received a copy of the GNU Lesser General Public
   559  //    License along with the GNU C Library; if not, see
   560  //    <https://www.gnu.org/licenses/>.
   561  
   562  //	POSIX Standard: 2.10 Symbolic Constants		<unistd.h>
   563  
   564  // Copyright (C) 1991-2021 Free Software Foundation, Inc.
   565  //    This file is part of the GNU C Library.
   566  //
   567  //    The GNU C Library is free software; you can redistribute it and/or
   568  //    modify it under the terms of the GNU Lesser General Public
   569  //    License as published by the Free Software Foundation; either
   570  //    version 2.1 of the License, or (at your option) any later version.
   571  //
   572  //    The GNU C Library is distributed in the hope that it will be useful,
   573  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   574  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   575  //    Lesser General Public License for more details.
   576  //
   577  //    You should have received a copy of the GNU Lesser General Public
   578  //    License along with the GNU C Library; if not, see
   579  //    <https://www.gnu.org/licenses/>.
   580  
   581  // These are defined by the user (or the compiler)
   582  //    to specify the desired environment:
   583  //
   584  //    __STRICT_ANSI__	ISO Standard C.
   585  //    _ISOC99_SOURCE	Extensions to ISO C89 from ISO C99.
   586  //    _ISOC11_SOURCE	Extensions to ISO C99 from ISO C11.
   587  //    _ISOC2X_SOURCE	Extensions to ISO C99 from ISO C2X.
   588  //    __STDC_WANT_LIB_EXT2__
   589  // 			Extensions to ISO C99 from TR 27431-2:2010.
   590  //    __STDC_WANT_IEC_60559_BFP_EXT__
   591  // 			Extensions to ISO C11 from TS 18661-1:2014.
   592  //    __STDC_WANT_IEC_60559_FUNCS_EXT__
   593  // 			Extensions to ISO C11 from TS 18661-4:2015.
   594  //    __STDC_WANT_IEC_60559_TYPES_EXT__
   595  // 			Extensions to ISO C11 from TS 18661-3:2015.
   596  //    __STDC_WANT_IEC_60559_EXT__
   597  // 			ISO C2X interfaces defined only in Annex F.
   598  //
   599  //    _POSIX_SOURCE	IEEE Std 1003.1.
   600  //    _POSIX_C_SOURCE	If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
   601  // 			if >=199309L, add IEEE Std 1003.1b-1993;
   602  // 			if >=199506L, add IEEE Std 1003.1c-1995;
   603  // 			if >=200112L, all of IEEE 1003.1-2004
   604  // 			if >=200809L, all of IEEE 1003.1-2008
   605  //    _XOPEN_SOURCE	Includes POSIX and XPG things.  Set to 500 if
   606  // 			Single Unix conformance is wanted, to 600 for the
   607  // 			sixth revision, to 700 for the seventh revision.
   608  //    _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
   609  //    _LARGEFILE_SOURCE	Some more functions for correct standard I/O.
   610  //    _LARGEFILE64_SOURCE	Additional functionality from LFS for large files.
   611  //    _FILE_OFFSET_BITS=N	Select default filesystem interface.
   612  //    _ATFILE_SOURCE	Additional *at interfaces.
   613  //    _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant)
   614  // 			MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN.
   615  //    _GNU_SOURCE		All of the above, plus GNU extensions.
   616  //    _DEFAULT_SOURCE	The default set of features (taking precedence over
   617  // 			__STRICT_ANSI__).
   618  //
   619  //    _FORTIFY_SOURCE	Add security hardening to many library functions.
   620  // 			Set to 1 or 2; 2 performs stricter checks than 1.
   621  //
   622  //    _REENTRANT, _THREAD_SAFE
   623  // 			Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
   624  //
   625  //    The `-ansi' switch to the GNU C compiler, and standards conformance
   626  //    options such as `-std=c99', define __STRICT_ANSI__.  If none of
   627  //    these are defined, or if _DEFAULT_SOURCE is defined, the default is
   628  //    to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
   629  //    200809L, as well as enabling miscellaneous functions from BSD and
   630  //    SVID.  If more than one of these are defined, they accumulate.  For
   631  //    example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
   632  //    give you ISO C, 1003.1, and 1003.2, but nothing else.
   633  //
   634  //    These are defined by this file and are used by the
   635  //    header files to decide what to declare or define:
   636  //
   637  //    __GLIBC_USE (F)	Define things from feature set F.  This is defined
   638  // 			to 1 or 0; the subsequent macros are either defined
   639  // 			or undefined, and those tests should be moved to
   640  // 			__GLIBC_USE.
   641  //    __USE_ISOC11		Define ISO C11 things.
   642  //    __USE_ISOC99		Define ISO C99 things.
   643  //    __USE_ISOC95		Define ISO C90 AMD1 (C95) things.
   644  //    __USE_ISOCXX11	Define ISO C++11 things.
   645  //    __USE_POSIX		Define IEEE Std 1003.1 things.
   646  //    __USE_POSIX2		Define IEEE Std 1003.2 things.
   647  //    __USE_POSIX199309	Define IEEE Std 1003.1, and .1b things.
   648  //    __USE_POSIX199506	Define IEEE Std 1003.1, .1b, .1c and .1i things.
   649  //    __USE_XOPEN		Define XPG things.
   650  //    __USE_XOPEN_EXTENDED	Define X/Open Unix things.
   651  //    __USE_UNIX98		Define Single Unix V2 things.
   652  //    __USE_XOPEN2K        Define XPG6 things.
   653  //    __USE_XOPEN2KXSI     Define XPG6 XSI things.
   654  //    __USE_XOPEN2K8       Define XPG7 things.
   655  //    __USE_XOPEN2K8XSI    Define XPG7 XSI things.
   656  //    __USE_LARGEFILE	Define correct standard I/O things.
   657  //    __USE_LARGEFILE64	Define LFS things with separate names.
   658  //    __USE_FILE_OFFSET64	Define 64bit interface as default.
   659  //    __USE_MISC		Define things from 4.3BSD or System V Unix.
   660  //    __USE_ATFILE		Define *at interfaces and AT_* constants for them.
   661  //    __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant)
   662  // 			MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN.
   663  //    __USE_GNU		Define GNU extensions.
   664  //    __USE_FORTIFY_LEVEL	Additional security measures used, according to level.
   665  //
   666  //    The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
   667  //    defined by this file unconditionally.  `__GNU_LIBRARY__' is provided
   668  //    only for compatibility.  All new code should use the other symbols
   669  //    to test for features.
   670  //
   671  //    All macros listed above as possibly being defined by this file are
   672  //    explicitly undefined if they are not explicitly defined.
   673  //    Feature-test macros that are not defined by the user or compiler
   674  //    but are implied by the other feature-test macros defined (or by the
   675  //    lack of any definitions) are defined by the file.
   676  //
   677  //    ISO C feature test macros depend on the definition of the macro
   678  //    when an affected header is included, not when the first system
   679  //    header is included, and so they are handled in
   680  //    <bits/libc-header-start.h>, which does not have a multiple include
   681  //    guard.  Feature test macros that can be handled from the first
   682  //    system header included are handled here.
   683  
   684  // Undefine everything, so we get a clean slate.
   685  
   686  // Suppress kernel-name space pollution unless user expressedly asks
   687  //    for it.
   688  
   689  // Convenience macro to test the version of gcc.
   690  //    Use like this:
   691  //    #if __GNUC_PREREQ (2,8)
   692  //    ... code requiring gcc 2.8 or later ...
   693  //    #endif
   694  //    Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
   695  //    added in 2.0.
   696  
   697  // Similarly for clang.  Features added to GCC after version 4.2 may
   698  //    or may not also be available in clang, and clang's definitions of
   699  //    __GNUC(_MINOR)__ are fixed at 4 and 2 respectively.  Not all such
   700  //    features can be queried via __has_extension/__has_feature.
   701  
   702  // Whether to use feature set F.
   703  
   704  // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
   705  //    _DEFAULT_SOURCE.  If _DEFAULT_SOURCE is present we do not
   706  //    issue a warning; the expectation is that the source is being
   707  //    transitioned to use the new macro.
   708  
   709  // If _GNU_SOURCE was defined by the user, turn on all the other features.
   710  
   711  // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
   712  //    define _DEFAULT_SOURCE.
   713  
   714  // This is to enable the ISO C2X extension.
   715  
   716  // This is to enable the ISO C11 extension.
   717  
   718  // This is to enable the ISO C99 extension.
   719  
   720  // This is to enable the ISO C90 Amendment 1:1995 extension.
   721  
   722  // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
   723  //    is defined, use POSIX.1-2008 (or another version depending on
   724  //    _XOPEN_SOURCE).
   725  
   726  // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
   727  //    defined in all multithreaded code.  GNU libc has not required this
   728  //    for many years.  We now treat them as compatibility synonyms for
   729  //    _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
   730  //    comprehensive support for multithreaded code.  Using them never
   731  //    lowers the selected level of POSIX conformance, only raises it.
   732  
   733  // Features part to handle 64-bit time_t support.
   734  //    Copyright (C) 2021 Free Software Foundation, Inc.
   735  //    This file is part of the GNU C Library.
   736  //
   737  //    The GNU C Library is free software; you can redistribute it and/or
   738  //    modify it under the terms of the GNU Lesser General Public
   739  //    License as published by the Free Software Foundation; either
   740  //    version 2.1 of the License, or (at your option) any later version.
   741  //
   742  //    The GNU C Library is distributed in the hope that it will be useful,
   743  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   744  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   745  //    Lesser General Public License for more details.
   746  //
   747  //    You should have received a copy of the GNU Lesser General Public
   748  //    License along with the GNU C Library; if not, see
   749  //    <https://www.gnu.org/licenses/>.
   750  
   751  // We need to know the word size in order to check the time size.
   752  // Determine the wordsize from the preprocessor defines.  RISC-V version.
   753  //    Copyright (C) 2002-2021 Free Software Foundation, Inc.
   754  //    This file is part of the GNU C Library.
   755  //
   756  //    The GNU C Library is free software; you can redistribute it and/or
   757  //    modify it under the terms of the GNU Lesser General Public
   758  //    License as published by the Free Software Foundation; either
   759  //    version 2.1 of the License, or (at your option) any later version.
   760  //
   761  //    The GNU C Library is distributed in the hope that it will be useful,
   762  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   763  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   764  //    Lesser General Public License for more details.
   765  //
   766  //    You should have received a copy of the GNU Lesser General Public
   767  //    License along with the GNU C Library.  If not, see
   768  //    <https://www.gnu.org/licenses/>.
   769  
   770  // Bit size of the time_t type at glibc build time, RISC-V case.
   771  //    Copyright (C) 2020-2021 Free Software Foundation, Inc.
   772  //    This file is part of the GNU C Library.
   773  //
   774  //    The GNU C Library is free software; you can redistribute it and/or
   775  //    modify it under the terms of the GNU Lesser General Public
   776  //    License as published by the Free Software Foundation; either
   777  //    version 2.1 of the License, or (at your option) any later version.
   778  //
   779  //    The GNU C Library is distributed in the hope that it will be useful,
   780  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   781  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   782  //    Lesser General Public License for more details.
   783  //
   784  //    You should have received a copy of the GNU Lesser General Public
   785  //    License along with the GNU C Library; if not, see
   786  //    <https://www.gnu.org/licenses/>.
   787  
   788  // Determine the wordsize from the preprocessor defines.  RISC-V version.
   789  //    Copyright (C) 2002-2021 Free Software Foundation, Inc.
   790  //    This file is part of the GNU C Library.
   791  //
   792  //    The GNU C Library is free software; you can redistribute it and/or
   793  //    modify it under the terms of the GNU Lesser General Public
   794  //    License as published by the Free Software Foundation; either
   795  //    version 2.1 of the License, or (at your option) any later version.
   796  //
   797  //    The GNU C Library is distributed in the hope that it will be useful,
   798  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   799  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   800  //    Lesser General Public License for more details.
   801  //
   802  //    You should have received a copy of the GNU Lesser General Public
   803  //    License along with the GNU C Library.  If not, see
   804  //    <https://www.gnu.org/licenses/>.
   805  
   806  // RV32 and RV64 both use 64-bit time_t
   807  
   808  // The function 'gets' existed in C89, but is impossible to use
   809  //    safely.  It has been removed from ISO C11 and ISO C++14.  Note: for
   810  //    compatibility with various implementations of <cstdio>, this test
   811  //    must consider only the value of __cplusplus when compiling C++.
   812  
   813  // GNU formerly extended the scanf functions with modified format
   814  //    specifiers %as, %aS, and %a[...] that allocate a buffer for the
   815  //    input using malloc.  This extension conflicts with ISO C99, which
   816  //    defines %a as a standalone format specifier that reads a floating-
   817  //    point number; moreover, POSIX.1-2008 provides the same feature
   818  //    using the modifier letter 'm' instead (%ms, %mS, %m[...]).
   819  //
   820  //    We now follow C99 unless GNU extensions are active and the compiler
   821  //    is specifically in C89 or C++98 mode (strict or not).  For
   822  //    instance, with GCC, -std=gnu11 will have C99-compliant scanf with
   823  //    or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
   824  //    old extension.
   825  
   826  // Get definitions of __STDC_* predefined macros, if the compiler has
   827  //    not preincluded this header automatically.
   828  // Copyright (C) 1991-2021 Free Software Foundation, Inc.
   829  //    This file is part of the GNU C Library.
   830  //
   831  //    The GNU C Library is free software; you can redistribute it and/or
   832  //    modify it under the terms of the GNU Lesser General Public
   833  //    License as published by the Free Software Foundation; either
   834  //    version 2.1 of the License, or (at your option) any later version.
   835  //
   836  //    The GNU C Library is distributed in the hope that it will be useful,
   837  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   838  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   839  //    Lesser General Public License for more details.
   840  //
   841  //    You should have received a copy of the GNU Lesser General Public
   842  //    License along with the GNU C Library; if not, see
   843  //    <https://www.gnu.org/licenses/>.
   844  
   845  // This macro indicates that the installed library is the GNU C Library.
   846  //    For historic reasons the value now is 6 and this will stay from now
   847  //    on.  The use of this variable is deprecated.  Use __GLIBC__ and
   848  //    __GLIBC_MINOR__ now (see below) when you want to test for a specific
   849  //    GNU C library version and use the values in <gnu/lib-names.h> to get
   850  //    the sonames of the shared libraries.
   851  
   852  // Major and minor version number of the GNU C library package.  Use
   853  //    these macros to test for features in specific releases.
   854  
   855  // This is here only because every header file already includes this one.
   856  // Copyright (C) 1992-2021 Free Software Foundation, Inc.
   857  //    This file is part of the GNU C Library.
   858  //
   859  //    The GNU C Library is free software; you can redistribute it and/or
   860  //    modify it under the terms of the GNU Lesser General Public
   861  //    License as published by the Free Software Foundation; either
   862  //    version 2.1 of the License, or (at your option) any later version.
   863  //
   864  //    The GNU C Library is distributed in the hope that it will be useful,
   865  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   866  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   867  //    Lesser General Public License for more details.
   868  //
   869  //    You should have received a copy of the GNU Lesser General Public
   870  //    License along with the GNU C Library; if not, see
   871  //    <https://www.gnu.org/licenses/>.
   872  
   873  // We are almost always included from features.h.
   874  
   875  // The GNU libc does not support any K&R compilers or the traditional mode
   876  //    of ISO C compilers anymore.  Check for some of the combinations not
   877  //    supported anymore.
   878  
   879  // Some user header file might have defined this before.
   880  
   881  // Compilers that lack __has_attribute may object to
   882  //        #if defined __has_attribute && __has_attribute (...)
   883  //    even though they do not need to evaluate the right-hand side of the &&.
   884  //    Similarly for __has_builtin, etc.
   885  
   886  // All functions, except those with callbacks or those that
   887  //    synchronize memory, are leaf functions.
   888  
   889  // GCC can always grok prototypes.  For C++ programs we add throw()
   890  //    to help it optimize the function calls.  But this only works with
   891  //    gcc 2.8.x and egcs.  For gcc 3.4 and up we even mark C functions
   892  //    as non-throwing using a function attribute since programs can use
   893  //    the -fexceptions options for C code as well.
   894  
   895  // These two macros are not used in glibc anymore.  They are kept here
   896  //    only because some other projects expect the macros to be defined.
   897  
   898  // For these things, GCC behaves the ANSI way normally,
   899  //    and the non-ANSI way under -traditional.
   900  
   901  // This is not a typedef so `const __ptr_t' does the right thing.
   902  
   903  // C++ needs to know that types and declarations are C, not C++.
   904  
   905  // Fortify support.
   906  
   907  // Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available.
   908  
   909  // Support for flexible arrays.
   910  //    Headers that should use flexible arrays only if they're "real"
   911  //    (e.g. only if they won't affect sizeof()) should test
   912  //    #if __glibc_c99_flexarr_available.
   913  
   914  // __asm__ ("xyz") is used throughout the headers to rename functions
   915  //    at the assembly language level.  This is wrapped by the __REDIRECT
   916  //    macro, in order to support compilers that can do this some other
   917  //    way.  When compilers don't support asm-names at all, we have to do
   918  //    preprocessor tricks instead (which don't have exactly the right
   919  //    semantics, but it's the best we can do).
   920  //
   921  //    Example:
   922  //    int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
   923  
   924  //
   925  // #elif __SOME_OTHER_COMPILER__
   926  //
   927  // # define __REDIRECT(name, proto, alias) name proto; 	_Pragma("let " #name " = " #alias)
   928  
   929  // GCC and clang have various useful declarations that can be made with
   930  //    the '__attribute__' syntax.  All of the ways we use this do fine if
   931  //    they are omitted for compilers that don't understand it.
   932  
   933  // At some point during the gcc 2.96 development the `malloc' attribute
   934  //    for functions was introduced.  We don't want to use it unconditionally
   935  //    (although this would be possible) since it generates warnings.
   936  
   937  // Tell the compiler which arguments to an allocation function
   938  //    indicate the size of the allocation.
   939  
   940  // At some point during the gcc 2.96 development the `pure' attribute
   941  //    for functions was introduced.  We don't want to use it unconditionally
   942  //    (although this would be possible) since it generates warnings.
   943  
   944  // This declaration tells the compiler that the value is constant.
   945  
   946  // At some point during the gcc 3.1 development the `used' attribute
   947  //    for functions was introduced.  We don't want to use it unconditionally
   948  //    (although this would be possible) since it generates warnings.
   949  
   950  // Since version 3.2, gcc allows marking deprecated functions.
   951  
   952  // Since version 4.5, gcc also allows one to specify the message printed
   953  //    when a deprecated function is used.  clang claims to be gcc 4.2, but
   954  //    may also support this feature.
   955  
   956  // At some point during the gcc 2.8 development the `format_arg' attribute
   957  //    for functions was introduced.  We don't want to use it unconditionally
   958  //    (although this would be possible) since it generates warnings.
   959  //    If several `format_arg' attributes are given for the same function, in
   960  //    gcc-3.0 and older, all but the last one are ignored.  In newer gccs,
   961  //    all designated arguments are considered.
   962  
   963  // At some point during the gcc 2.97 development the `strfmon' format
   964  //    attribute for functions was introduced.  We don't want to use it
   965  //    unconditionally (although this would be possible) since it
   966  //    generates warnings.
   967  
   968  // The nonnull function attribute marks pointer parameters that
   969  //    must not be NULL.
   970  
   971  // The returns_nonnull function attribute marks the return type of the function
   972  //    as always being non-null.
   973  
   974  // If fortification mode, we warn about unused results of certain
   975  //    function calls which can lead to problems.
   976  
   977  // Forces a function to be always inlined.
   978  // The Linux kernel defines __always_inline in stddef.h (283d7573), and
   979  //    it conflicts with this definition.  Therefore undefine it first to
   980  //    allow either header to be included first.
   981  
   982  // Associate error messages with the source location of the call site rather
   983  //    than with the source location inside the function.
   984  
   985  // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
   986  //    inline semantics, unless -fgnu89-inline is used.  Using __GNUC_STDC_INLINE__
   987  //    or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
   988  //    older than 4.3 may define these macros and still not guarantee GNU inlining
   989  //    semantics.
   990  //
   991  //    clang++ identifies itself as gcc-4.2, but has support for GNU inlining
   992  //    semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
   993  //    __GNUC_GNU_INLINE__ macro definitions.
   994  
   995  // GCC 4.3 and above allow passing all anonymous arguments of an
   996  //    __extern_always_inline function to some other vararg function.
   997  
   998  // It is possible to compile containing GCC extensions even if GCC is
   999  //    run in pedantic mode if the uses are carefully marked using the
  1000  //    `__extension__' keyword.  But this is not generally available before
  1001  //    version 2.8.
  1002  
  1003  // __restrict is known in EGCS 1.2 and above, and in clang.
  1004  //    It works also in C++ mode (outside of arrays), but only when spelled
  1005  //    as '__restrict', not 'restrict'.
  1006  
  1007  // ISO C99 also allows to declare arrays as non-overlapping.  The syntax is
  1008  //      array_name[restrict]
  1009  //    GCC 3.1 and clang support this.
  1010  //    This syntax is not usable in C++ mode.
  1011  
  1012  // Describes a char array whose address can safely be passed as the first
  1013  //    argument to strncpy and strncat, as the char array is not necessarily
  1014  //    a NUL-terminated string.
  1015  
  1016  // Undefine (also defined in libc-symbols.h).
  1017  // Copies attributes from the declaration or type referenced by
  1018  //    the argument.
  1019  
  1020  // The #ifndef lets Gnulib avoid including these on non-glibc
  1021  //    platforms, where the includes typically do not exist.
  1022  // Determine the wordsize from the preprocessor defines.  RISC-V version.
  1023  //    Copyright (C) 2002-2021 Free Software Foundation, Inc.
  1024  //    This file is part of the GNU C Library.
  1025  //
  1026  //    The GNU C Library is free software; you can redistribute it and/or
  1027  //    modify it under the terms of the GNU Lesser General Public
  1028  //    License as published by the Free Software Foundation; either
  1029  //    version 2.1 of the License, or (at your option) any later version.
  1030  //
  1031  //    The GNU C Library is distributed in the hope that it will be useful,
  1032  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1033  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1034  //    Lesser General Public License for more details.
  1035  //
  1036  //    You should have received a copy of the GNU Lesser General Public
  1037  //    License along with the GNU C Library.  If not, see
  1038  //    <https://www.gnu.org/licenses/>.
  1039  
  1040  // Properties of long double type.  ldbl-128 version.
  1041  //    Copyright (C) 2016-2021 Free Software Foundation, Inc.
  1042  //    This file is part of the GNU C Library.
  1043  //
  1044  //    The GNU C Library is free software; you can redistribute it and/or
  1045  //    modify it under the terms of the GNU Lesser General Public
  1046  //    License  published by the Free Software Foundation; either
  1047  //    version 2.1 of the License, or (at your option) any later version.
  1048  //
  1049  //    The GNU C Library is distributed in the hope that it will be useful,
  1050  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1051  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1052  //    Lesser General Public License for more details.
  1053  //
  1054  //    You should have received a copy of the GNU Lesser General Public
  1055  //    License along with the GNU C Library; if not, see
  1056  //    <https://www.gnu.org/licenses/>.
  1057  
  1058  // long double is distinct from double, so there is nothing to
  1059  //    define here.
  1060  
  1061  // __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
  1062  //    intended for use in preprocessor macros.
  1063  //
  1064  //    Note: MESSAGE must be a _single_ string; concatenation of string
  1065  //    literals is not supported.
  1066  
  1067  // Generic selection (ISO C11) is a C-only feature, available in GCC
  1068  //    since version 4.9.  Previous versions do not provide generic
  1069  //    selection, even though they might set __STDC_VERSION__ to 201112L,
  1070  //    when in -std=c11 mode.  Thus, we must check for !defined __GNUC__
  1071  //    when testing __STDC_VERSION__ for generic selection support.
  1072  //    On the other hand, Clang also defines __GNUC__, so a clang-specific
  1073  //    check is required to enable the use of generic selection.
  1074  
  1075  // Designates a 1-based positional argument ref-index of pointer type
  1076  //    that can be used to access size-index elements of the pointed-to
  1077  //    array according to access mode, or at least one element when
  1078  //    size-index is not provided:
  1079  //      access (access-mode, <ref-index> [, <size-index>])
  1080  
  1081  // Designates dealloc as a function to call to deallocate objects
  1082  //    allocated by the declared function.
  1083  
  1084  // Specify that a function such as setjmp or vfork may return
  1085  //    twice.
  1086  
  1087  // If we don't have __REDIRECT, prototypes will be missing if
  1088  //    __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
  1089  
  1090  // Decide whether we can define 'extern inline' functions in headers.
  1091  
  1092  // This is here only because every header file already includes this one.
  1093  //    Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
  1094  //    <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
  1095  //    that will always return failure (and set errno to ENOSYS).
  1096  // This file is automatically generated.
  1097  //    This file selects the right generated file of `__stub_FUNCTION' macros
  1098  //    based on the architecture being compiled for.
  1099  
  1100  // Determine the wordsize from the preprocessor defines.  RISC-V version.
  1101  //    Copyright (C) 2002-2021 Free Software Foundation, Inc.
  1102  //    This file is part of the GNU C Library.
  1103  //
  1104  //    The GNU C Library is free software; you can redistribute it and/or
  1105  //    modify it under the terms of the GNU Lesser General Public
  1106  //    License as published by the Free Software Foundation; either
  1107  //    version 2.1 of the License, or (at your option) any later version.
  1108  //
  1109  //    The GNU C Library is distributed in the hope that it will be useful,
  1110  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1111  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1112  //    Lesser General Public License for more details.
  1113  //
  1114  //    You should have received a copy of the GNU Lesser General Public
  1115  //    License along with the GNU C Library.  If not, see
  1116  //    <https://www.gnu.org/licenses/>.
  1117  
  1118  // This file is automatically generated.
  1119  //    It defines a symbol `__stub_FUNCTION' for each function
  1120  //    in the C library which is a stub, meaning it will fail
  1121  //    every time called, usually setting errno to ENOSYS.
  1122  
  1123  // These may be used to determine what facilities are present at compile time.
  1124  //    Their values can be obtained at run time from `sysconf'.
  1125  
  1126  // POSIX Standard approved as ISO/IEC 9945-1 as of September 2008.
  1127  
  1128  // These are not #ifdef __USE_POSIX2 because they are
  1129  //    in the theoretically application-owned namespace.
  1130  
  1131  // The utilities on GNU systems also correspond to this version.
  1132  
  1133  // The utilities on GNU systems also correspond to this version.
  1134  
  1135  // This symbol was required until the 2001 edition of POSIX.
  1136  
  1137  // If defined, the implementation supports the
  1138  //    C Language Bindings Option.
  1139  
  1140  // If defined, the implementation supports the
  1141  //    C Language Development Utilities Option.
  1142  
  1143  // If defined, the implementation supports the
  1144  //    Software Development Utilities Option.
  1145  
  1146  // If defined, the implementation supports the
  1147  //    creation of locales with the localedef utility.
  1148  
  1149  // X/Open version number to which the library conforms.  It is selectable.
  1150  
  1151  // Commands and utilities from XPG4 are available.
  1152  
  1153  // We are compatible with the old published standards as well.
  1154  
  1155  // The X/Open Unix extensions are available.
  1156  
  1157  // The enhanced internationalization capabilities according to XPG4.2
  1158  //    are present.
  1159  
  1160  // The legacy interfaces are also available.
  1161  
  1162  // Get values of POSIX options:
  1163  //
  1164  //    If these symbols are defined, the corresponding features are
  1165  //    always available.  If not, they may be available sometimes.
  1166  //    The current values can be obtained with `sysconf'.
  1167  //
  1168  //    _POSIX_JOB_CONTROL		Job control is supported.
  1169  //    _POSIX_SAVED_IDS		Processes have a saved set-user-ID
  1170  // 				and a saved set-group-ID.
  1171  //    _POSIX_REALTIME_SIGNALS	Real-time, queued signals are supported.
  1172  //    _POSIX_PRIORITY_SCHEDULING	Priority scheduling is supported.
  1173  //    _POSIX_TIMERS		POSIX.4 clocks and timers are supported.
  1174  //    _POSIX_ASYNCHRONOUS_IO	Asynchronous I/O is supported.
  1175  //    _POSIX_PRIORITIZED_IO	Prioritized asynchronous I/O is supported.
  1176  //    _POSIX_SYNCHRONIZED_IO	Synchronizing file data is supported.
  1177  //    _POSIX_FSYNC			The fsync function is present.
  1178  //    _POSIX_MAPPED_FILES		Mapping of files to memory is supported.
  1179  //    _POSIX_MEMLOCK		Locking of all memory is supported.
  1180  //    _POSIX_MEMLOCK_RANGE		Locking of ranges of memory is supported.
  1181  //    _POSIX_MEMORY_PROTECTION	Setting of memory protections is supported.
  1182  //    _POSIX_MESSAGE_PASSING	POSIX.4 message queues are supported.
  1183  //    _POSIX_SEMAPHORES		POSIX.4 counting semaphores are supported.
  1184  //    _POSIX_SHARED_MEMORY_OBJECTS	POSIX.4 shared memory objects are supported.
  1185  //    _POSIX_THREADS		POSIX.1c pthreads are supported.
  1186  //    _POSIX_THREAD_ATTR_STACKADDR	Thread stack address attribute option supported.
  1187  //    _POSIX_THREAD_ATTR_STACKSIZE	Thread stack size attribute option supported.
  1188  //    _POSIX_THREAD_SAFE_FUNCTIONS	Thread-safe functions are supported.
  1189  //    _POSIX_THREAD_PRIORITY_SCHEDULING
  1190  // 				POSIX.1c thread execution scheduling supported.
  1191  //    _POSIX_THREAD_PRIO_INHERIT	Thread priority inheritance option supported.
  1192  //    _POSIX_THREAD_PRIO_PROTECT	Thread priority protection option supported.
  1193  //    _POSIX_THREAD_PROCESS_SHARED	Process-shared synchronization supported.
  1194  //    _POSIX_PII			Protocol-independent interfaces are supported.
  1195  //    _POSIX_PII_XTI		XTI protocol-indep. interfaces are supported.
  1196  //    _POSIX_PII_SOCKET		Socket protocol-indep. interfaces are supported.
  1197  //    _POSIX_PII_INTERNET		Internet family of protocols supported.
  1198  //    _POSIX_PII_INTERNET_STREAM	Connection-mode Internet protocol supported.
  1199  //    _POSIX_PII_INTERNET_DGRAM	Connectionless Internet protocol supported.
  1200  //    _POSIX_PII_OSI		ISO/OSI family of protocols supported.
  1201  //    _POSIX_PII_OSI_COTS		Connection-mode ISO/OSI service supported.
  1202  //    _POSIX_PII_OSI_CLTS		Connectionless ISO/OSI service supported.
  1203  //    _POSIX_POLL			Implementation supports `poll' function.
  1204  //    _POSIX_SELECT		Implementation supports `select' and `pselect'.
  1205  //
  1206  //    _XOPEN_REALTIME		X/Open realtime support is available.
  1207  //    _XOPEN_REALTIME_THREADS	X/Open realtime thread support is available.
  1208  //    _XOPEN_SHM			Shared memory interface according to XPG4.2.
  1209  //
  1210  //    _XBS5_ILP32_OFF32		Implementation provides environment with 32-bit
  1211  // 				int, long, pointer, and off_t types.
  1212  //    _XBS5_ILP32_OFFBIG		Implementation provides environment with 32-bit
  1213  // 				int, long, and pointer and off_t with at least
  1214  // 				64 bits.
  1215  //    _XBS5_LP64_OFF64		Implementation provides environment with 32-bit
  1216  // 				int, and 64-bit long, pointer, and off_t types.
  1217  //    _XBS5_LPBIG_OFFBIG		Implementation provides environment with at
  1218  // 				least 32 bits int and long, pointer, and off_t
  1219  // 				with at least 64 bits.
  1220  //
  1221  //    If any of these symbols is defined as -1, the corresponding option is not
  1222  //    true for any file.  If any is defined as other than -1, the corresponding
  1223  //    option is true for all files.  If a symbol is not defined at all, the value
  1224  //    for a specific file can be obtained from `pathconf' and `fpathconf'.
  1225  //
  1226  //    _POSIX_CHOWN_RESTRICTED	Only the super user can use `chown' to change
  1227  // 				the owner of a file.  `chown' can only be used
  1228  // 				to change the group ID of a file to a group of
  1229  // 				which the calling process is a member.
  1230  //    _POSIX_NO_TRUNC		Pathname components longer than
  1231  // 				NAME_MAX generate an error.
  1232  //    _POSIX_VDISABLE		If defined, if the value of an element of the
  1233  // 				`c_cc' member of `struct termios' is
  1234  // 				_POSIX_VDISABLE, no character will have the
  1235  // 				effect associated with that element.
  1236  //    _POSIX_SYNC_IO		Synchronous I/O may be performed.
  1237  //    _POSIX_ASYNC_IO		Asynchronous I/O may be performed.
  1238  //    _POSIX_PRIO_IO		Prioritized Asynchronous I/O may be performed.
  1239  //
  1240  //    Support for the Large File Support interface is not generally available.
  1241  //    If it is available the following constants are defined to one.
  1242  //    _LFS64_LARGEFILE		Low-level I/O supports large files.
  1243  //    _LFS64_STDIO			Standard I/O supports large files.
  1244  //
  1245  
  1246  // Define POSIX options for Linux.
  1247  //    Copyright (C) 1996-2021 Free Software Foundation, Inc.
  1248  //    This file is part of the GNU C Library.
  1249  //
  1250  //    The GNU C Library is free software; you can redistribute it and/or
  1251  //    modify it under the terms of the GNU Lesser General Public License as
  1252  //    published by the Free Software Foundation; either version 2.1 of the
  1253  //    License, or (at your option) any later version.
  1254  //
  1255  //    The GNU C Library is distributed in the hope that it will be useful,
  1256  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1257  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1258  //    Lesser General Public License for more details.
  1259  //
  1260  //    You should have received a copy of the GNU Lesser General Public
  1261  //    License along with the GNU C Library; see the file COPYING.LIB.  If
  1262  //    not, see <https://www.gnu.org/licenses/>.
  1263  
  1264  // Job control is supported.
  1265  
  1266  // Processes have a saved set-user-ID and a saved set-group-ID.
  1267  
  1268  // Priority scheduling is not supported with the correct semantics,
  1269  //    but GNU/Linux applications expect that the corresponding interfaces
  1270  //    are available, even though the semantics do not meet the POSIX
  1271  //    requirements.  See glibc bug 14829.
  1272  
  1273  // Synchronizing file data is supported.
  1274  
  1275  // The fsync function is present.
  1276  
  1277  // Mapping of files to memory is supported.
  1278  
  1279  // Locking of all memory is supported.
  1280  
  1281  // Locking of ranges of memory is supported.
  1282  
  1283  // Setting of memory protections is supported.
  1284  
  1285  // Some filesystems allow all users to change file ownership.
  1286  
  1287  // `c_cc' member of 'struct termios' structure can be disabled by
  1288  //    using the value _POSIX_VDISABLE.
  1289  
  1290  // Filenames are not silently truncated.
  1291  
  1292  // X/Open realtime support is available.
  1293  
  1294  // X/Open thread realtime support is available.
  1295  
  1296  // XPG4.2 shared memory is supported.
  1297  
  1298  // Tell we have POSIX threads.
  1299  
  1300  // We have the reentrant functions described in POSIX.
  1301  
  1302  // We provide priority scheduling for threads.
  1303  
  1304  // We support user-defined stack sizes.
  1305  
  1306  // We support user-defined stacks.
  1307  
  1308  // We support priority inheritence.
  1309  
  1310  // We support priority protection, though only for non-robust
  1311  //    mutexes.
  1312  
  1313  // We support priority inheritence for robust mutexes.
  1314  
  1315  // We do not support priority protection for robust mutexes.
  1316  
  1317  // We support POSIX.1b semaphores.
  1318  
  1319  // Real-time signals are supported.
  1320  
  1321  // We support asynchronous I/O.
  1322  // Alternative name for Unix98.
  1323  // Support for prioritization is also available.
  1324  
  1325  // The LFS support in asynchronous I/O is also available.
  1326  
  1327  // The rest of the LFS is also available.
  1328  
  1329  // POSIX shared memory objects are implemented.
  1330  
  1331  // CPU-time clocks support needs to be checked at runtime.
  1332  
  1333  // Clock support in threads must be also checked at runtime.
  1334  
  1335  // GNU libc provides regular expression handling.
  1336  
  1337  // Reader/Writer locks are available.
  1338  
  1339  // We have a POSIX shell.
  1340  
  1341  // We support the Timeouts option.
  1342  
  1343  // We support spinlocks.
  1344  
  1345  // The `spawn' function family is supported.
  1346  
  1347  // We have POSIX timers.
  1348  
  1349  // The barrier functions are available.
  1350  
  1351  // POSIX message queues are available.
  1352  
  1353  // Thread process-shared synchronization is supported.
  1354  
  1355  // The monotonic clock might be available.
  1356  
  1357  // The clock selection interfaces are available.
  1358  
  1359  // Advisory information interfaces are available.
  1360  
  1361  // IPv6 support is available.
  1362  
  1363  // Raw socket support is available.
  1364  
  1365  // We have at least one terminal.
  1366  
  1367  // Neither process nor thread sporadic server interfaces is available.
  1368  
  1369  // trace.h is not available.
  1370  
  1371  // Typed memory objects are not available.
  1372  
  1373  // Get the environment definitions from Unix98.
  1374  // Copyright (C) 2020-2021 Free Software Foundation, Inc.
  1375  //    This file is part of the GNU C Library.
  1376  //
  1377  //    The GNU C Library is free software; you can redistribute it and/or
  1378  //    modify it under the terms of the GNU Lesser General Public
  1379  //    License as published by the Free Software Foundation; either
  1380  //    version 2.1 of the License, or (at your option) any later version.
  1381  //
  1382  //    The GNU C Library is distributed in the hope that it will be useful,
  1383  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1384  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1385  //    Lesser General Public License for more details.
  1386  //
  1387  //    You should have received a copy of the GNU Lesser General Public
  1388  //    License along with the GNU C Library; if not, see
  1389  //    <https://www.gnu.org/licenses/>.
  1390  
  1391  // Determine the wordsize from the preprocessor defines.  RISC-V version.
  1392  //    Copyright (C) 2002-2021 Free Software Foundation, Inc.
  1393  //    This file is part of the GNU C Library.
  1394  //
  1395  //    The GNU C Library is free software; you can redistribute it and/or
  1396  //    modify it under the terms of the GNU Lesser General Public
  1397  //    License as published by the Free Software Foundation; either
  1398  //    version 2.1 of the License, or (at your option) any later version.
  1399  //
  1400  //    The GNU C Library is distributed in the hope that it will be useful,
  1401  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1402  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1403  //    Lesser General Public License for more details.
  1404  //
  1405  //    You should have received a copy of the GNU Lesser General Public
  1406  //    License along with the GNU C Library.  If not, see
  1407  //    <https://www.gnu.org/licenses/>.
  1408  
  1409  // This header should define the following symbols under the described
  1410  //    situations.  A value `1' means that the model is always supported,
  1411  //    `-1' means it is never supported.  Undefined means it cannot be
  1412  //    statically decided.
  1413  //
  1414  //    _POSIX_V7_ILP32_OFF32   32bit int, long, pointers, and off_t type
  1415  //    _POSIX_V7_ILP32_OFFBIG  32bit int, long, and pointers and larger off_t type
  1416  //
  1417  //    _POSIX_V7_LP64_OFF32    64bit long and pointers and 32bit off_t type
  1418  //    _POSIX_V7_LPBIG_OFFBIG  64bit long and pointers and large off_t type
  1419  //
  1420  //    The macros _POSIX_V6_ILP32_OFF32, _POSIX_V6_ILP32_OFFBIG,
  1421  //    _POSIX_V6_LP64_OFF32, _POSIX_V6_LPBIG_OFFBIG, _XBS5_ILP32_OFF32,
  1422  //    _XBS5_ILP32_OFFBIG, _XBS5_LP64_OFF32, and _XBS5_LPBIG_OFFBIG were
  1423  //    used in previous versions of the Unix standard and are available
  1424  //    only for compatibility.
  1425  
  1426  // We can never provide environments with 32-bit wide pointers.
  1427  // We also have no use (for now) for an environment with bigger pointers
  1428  //    and offsets.
  1429  
  1430  // By default we have 64-bit wide `long int', pointers and `off_t'.
  1431  
  1432  // Standard file descriptors.
  1433  
  1434  // All functions that are not declared anywhere else.
  1435  
  1436  // bits/types.h -- definitions of __*_t types underlying *_t types.
  1437  //    Copyright (C) 2002-2021 Free Software Foundation, Inc.
  1438  //    This file is part of the GNU C Library.
  1439  //
  1440  //    The GNU C Library is free software; you can redistribute it and/or
  1441  //    modify it under the terms of the GNU Lesser General Public
  1442  //    License as published by the Free Software Foundation; either
  1443  //    version 2.1 of the License, or (at your option) any later version.
  1444  //
  1445  //    The GNU C Library is distributed in the hope that it will be useful,
  1446  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1447  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1448  //    Lesser General Public License for more details.
  1449  //
  1450  //    You should have received a copy of the GNU Lesser General Public
  1451  //    License along with the GNU C Library; if not, see
  1452  //    <https://www.gnu.org/licenses/>.
  1453  
  1454  // Never include this file directly; use <sys/types.h> instead.
  1455  
  1456  // Copyright (C) 1991-2021 Free Software Foundation, Inc.
  1457  //    This file is part of the GNU C Library.
  1458  //
  1459  //    The GNU C Library is free software; you can redistribute it and/or
  1460  //    modify it under the terms of the GNU Lesser General Public
  1461  //    License as published by the Free Software Foundation; either
  1462  //    version 2.1 of the License, or (at your option) any later version.
  1463  //
  1464  //    The GNU C Library is distributed in the hope that it will be useful,
  1465  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1466  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1467  //    Lesser General Public License for more details.
  1468  //
  1469  //    You should have received a copy of the GNU Lesser General Public
  1470  //    License along with the GNU C Library; if not, see
  1471  //    <https://www.gnu.org/licenses/>.
  1472  
  1473  // Determine the wordsize from the preprocessor defines.  RISC-V version.
  1474  //    Copyright (C) 2002-2021 Free Software Foundation, Inc.
  1475  //    This file is part of the GNU C Library.
  1476  //
  1477  //    The GNU C Library is free software; you can redistribute it and/or
  1478  //    modify it under the terms of the GNU Lesser General Public
  1479  //    License as published by the Free Software Foundation; either
  1480  //    version 2.1 of the License, or (at your option) any later version.
  1481  //
  1482  //    The GNU C Library is distributed in the hope that it will be useful,
  1483  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1484  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1485  //    Lesser General Public License for more details.
  1486  //
  1487  //    You should have received a copy of the GNU Lesser General Public
  1488  //    License along with the GNU C Library.  If not, see
  1489  //    <https://www.gnu.org/licenses/>.
  1490  
  1491  // Bit size of the time_t type at glibc build time, RISC-V case.
  1492  //    Copyright (C) 2020-2021 Free Software Foundation, Inc.
  1493  //    This file is part of the GNU C Library.
  1494  //
  1495  //    The GNU C Library is free software; you can redistribute it and/or
  1496  //    modify it under the terms of the GNU Lesser General Public
  1497  //    License as published by the Free Software Foundation; either
  1498  //    version 2.1 of the License, or (at your option) any later version.
  1499  //
  1500  //    The GNU C Library is distributed in the hope that it will be useful,
  1501  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1502  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1503  //    Lesser General Public License for more details.
  1504  //
  1505  //    You should have received a copy of the GNU Lesser General Public
  1506  //    License along with the GNU C Library; if not, see
  1507  //    <https://www.gnu.org/licenses/>.
  1508  
  1509  // Determine the wordsize from the preprocessor defines.  RISC-V version.
  1510  //    Copyright (C) 2002-2021 Free Software Foundation, Inc.
  1511  //    This file is part of the GNU C Library.
  1512  //
  1513  //    The GNU C Library is free software; you can redistribute it and/or
  1514  //    modify it under the terms of the GNU Lesser General Public
  1515  //    License as published by the Free Software Foundation; either
  1516  //    version 2.1 of the License, or (at your option) any later version.
  1517  //
  1518  //    The GNU C Library is distributed in the hope that it will be useful,
  1519  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1520  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1521  //    Lesser General Public License for more details.
  1522  //
  1523  //    You should have received a copy of the GNU Lesser General Public
  1524  //    License along with the GNU C Library.  If not, see
  1525  //    <https://www.gnu.org/licenses/>.
  1526  
  1527  // RV32 and RV64 both use 64-bit time_t
  1528  
  1529  // Convenience types.
  1530  type X__u_char = uint8   /* types.h:31:23 */
  1531  type X__u_short = uint16 /* types.h:32:28 */
  1532  type X__u_int = uint32   /* types.h:33:22 */
  1533  type X__u_long = uint64  /* types.h:34:27 */
  1534  
  1535  // Fixed-size types, underlying types depend on word size and compiler.
  1536  type X__int8_t = int8     /* types.h:37:21 */
  1537  type X__uint8_t = uint8   /* types.h:38:23 */
  1538  type X__int16_t = int16   /* types.h:39:26 */
  1539  type X__uint16_t = uint16 /* types.h:40:28 */
  1540  type X__int32_t = int32   /* types.h:41:20 */
  1541  type X__uint32_t = uint32 /* types.h:42:22 */
  1542  type X__int64_t = int64   /* types.h:44:25 */
  1543  type X__uint64_t = uint64 /* types.h:45:27 */
  1544  
  1545  // Smallest types with at least a given width.
  1546  type X__int_least8_t = X__int8_t     /* types.h:52:18 */
  1547  type X__uint_least8_t = X__uint8_t   /* types.h:53:19 */
  1548  type X__int_least16_t = X__int16_t   /* types.h:54:19 */
  1549  type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
  1550  type X__int_least32_t = X__int32_t   /* types.h:56:19 */
  1551  type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
  1552  type X__int_least64_t = X__int64_t   /* types.h:58:19 */
  1553  type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
  1554  
  1555  // quad_t is also 64 bits.
  1556  type X__quad_t = int64    /* types.h:63:18 */
  1557  type X__u_quad_t = uint64 /* types.h:64:27 */
  1558  
  1559  // Largest integral types.
  1560  type X__intmax_t = int64   /* types.h:72:18 */
  1561  type X__uintmax_t = uint64 /* types.h:73:27 */
  1562  
  1563  // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
  1564  //    macros for each of the OS types we define below.  The definitions
  1565  //    of those macros must use the following macros for underlying types.
  1566  //    We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
  1567  //    variants of each of the following integer types on this machine.
  1568  //
  1569  // 	16		-- "natural" 16-bit type (always short)
  1570  // 	32		-- "natural" 32-bit type (always int)
  1571  // 	64		-- "natural" 64-bit type (long or long long)
  1572  // 	LONG32		-- 32-bit type, traditionally long
  1573  // 	QUAD		-- 64-bit type, traditionally long long
  1574  // 	WORD		-- natural type of __WORDSIZE bits (int or long)
  1575  // 	LONGWORD	-- type of __WORDSIZE bits, traditionally long
  1576  //
  1577  //    We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
  1578  //    conventional uses of `long' or `long long' type modifiers match the
  1579  //    types we define, even when a less-adorned type would be the same size.
  1580  //    This matters for (somewhat) portably writing printf/scanf formats for
  1581  //    these types, where using the appropriate l or ll format modifiers can
  1582  //    make the typedefs and the formats match up across all GNU platforms.  If
  1583  //    we used `long' when it's 64 bits where `long long' is expected, then the
  1584  //    compiler would warn about the formats not matching the argument types,
  1585  //    and the programmer changing them to shut up the compiler would break the
  1586  //    program's portability.
  1587  //
  1588  //    Here we assume what is presently the case in all the GCC configurations
  1589  //    we support: long long is always 64 bits, long is always word/address size,
  1590  //    and int is always 32 bits.
  1591  
  1592  // No need to mark the typedef with __extension__.
  1593  // bits/typesizes.h -- underlying types for *_t.  For the generic Linux ABI.
  1594  //    Copyright (C) 2011-2021 Free Software Foundation, Inc.
  1595  //    This file is part of the GNU C Library.
  1596  //    Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
  1597  //
  1598  //    The GNU C Library is free software; you can redistribute it and/or
  1599  //    modify it under the terms of the GNU Lesser General Public
  1600  //    License as published by the Free Software Foundation; either
  1601  //    version 2.1 of the License, or (at your option) any later version.
  1602  //
  1603  //    The GNU C Library is distributed in the hope that it will be useful,
  1604  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1605  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1606  //    Lesser General Public License for more details.
  1607  //
  1608  //    You should have received a copy of the GNU Lesser General Public
  1609  //    License along with the GNU C Library.  If not, see
  1610  //    <https://www.gnu.org/licenses/>.
  1611  
  1612  // See <bits/types.h> for the meaning of these macros.  This file exists so
  1613  //    that <bits/types.h> need not vary across different GNU platforms.
  1614  
  1615  // Tell the libc code that off_t and off64_t are actually the same type
  1616  //    for all ABI purposes, even if possibly expressed as different base types
  1617  //    for C type-checking purposes.
  1618  
  1619  // Same for ino_t and ino64_t.
  1620  
  1621  // And for __rlim_t and __rlim64_t.
  1622  
  1623  // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
  1624  
  1625  // And for getitimer, setitimer and rusage
  1626  
  1627  // Number of descriptors that can fit in an `fd_set'.
  1628  
  1629  // bits/time64.h -- underlying types for __time64_t.  RISC-V version.
  1630  //    Copyright (C) 2020-2021 Free Software Foundation, Inc.
  1631  //    This file is part of the GNU C Library.
  1632  //
  1633  //    The GNU C Library is free software; you can redistribute it and/or
  1634  //    modify it under the terms of the GNU Lesser General Public
  1635  //    License as published by the Free Software Foundation; either
  1636  //    version 2.1 of the License, or (at your option) any later version.
  1637  //
  1638  //    The GNU C Library is distributed in the hope that it will be useful,
  1639  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1640  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1641  //    Lesser General Public License for more details.
  1642  //
  1643  //    You should have received a copy of the GNU Lesser General Public
  1644  //    License along with the GNU C Library; if not, see
  1645  //    <https://www.gnu.org/licenses/>.
  1646  
  1647  // Define __TIME64_T_TYPE so that it is always a 64-bit type.
  1648  
  1649  // If we already have 64-bit time type then use it.
  1650  
  1651  type X__dev_t = uint64                     /* types.h:145:25 */ // Type of device numbers.
  1652  type X__uid_t = uint32                     /* types.h:146:25 */ // Type of user identifications.
  1653  type X__gid_t = uint32                     /* types.h:147:25 */ // Type of group identifications.
  1654  type X__ino_t = uint64                     /* types.h:148:25 */ // Type of file serial numbers.
  1655  type X__ino64_t = uint64                   /* types.h:149:27 */ // Type of file serial numbers (LFS).
  1656  type X__mode_t = uint32                    /* types.h:150:26 */ // Type of file attribute bitmasks.
  1657  type X__nlink_t = uint32                   /* types.h:151:27 */ // Type of file link counts.
  1658  type X__off_t = int64                      /* types.h:152:25 */ // Type of file sizes and offsets.
  1659  type X__off64_t = int64                    /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
  1660  type X__pid_t = int32                      /* types.h:154:25 */ // Type of process identifications.
  1661  type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
  1662  type X__clock_t = int64                    /* types.h:156:27 */ // Type of CPU usage counts.
  1663  type X__rlim_t = uint64                    /* types.h:157:26 */ // Type for resource measurement.
  1664  type X__rlim64_t = uint64                  /* types.h:158:28 */ // Type for resource measurement (LFS).
  1665  type X__id_t = uint32                      /* types.h:159:24 */ // General type for IDs.
  1666  type X__time_t = int64                     /* types.h:160:26 */ // Seconds since the Epoch.
  1667  type X__useconds_t = uint32                /* types.h:161:30 */ // Count of microseconds.
  1668  type X__suseconds_t = int64                /* types.h:162:31 */ // Signed count of microseconds.
  1669  type X__suseconds64_t = int64              /* types.h:163:33 */
  1670  
  1671  type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address.
  1672  type X__key_t = int32   /* types.h:166:25 */ // Type of an IPC key.
  1673  
  1674  // Clock ID used in clock and timer functions.
  1675  type X__clockid_t = int32 /* types.h:169:29 */
  1676  
  1677  // Timer ID returned by `timer_create'.
  1678  type X__timer_t = uintptr /* types.h:172:12 */
  1679  
  1680  // Type to represent block size.
  1681  type X__blksize_t = int32 /* types.h:175:29 */
  1682  
  1683  // Types from the Large File Support interface.
  1684  
  1685  // Type to count number of disk blocks.
  1686  type X__blkcnt_t = int64   /* types.h:180:28 */
  1687  type X__blkcnt64_t = int64 /* types.h:181:30 */
  1688  
  1689  // Type to count file system blocks.
  1690  type X__fsblkcnt_t = uint64   /* types.h:184:30 */
  1691  type X__fsblkcnt64_t = uint64 /* types.h:185:32 */
  1692  
  1693  // Type to count file system nodes.
  1694  type X__fsfilcnt_t = uint64   /* types.h:188:30 */
  1695  type X__fsfilcnt64_t = uint64 /* types.h:189:32 */
  1696  
  1697  // Type of miscellaneous file system fields.
  1698  type X__fsword_t = int64 /* types.h:192:28 */
  1699  
  1700  type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error.
  1701  
  1702  // Signed long type used in system calls.
  1703  type X__syscall_slong_t = int64 /* types.h:197:33 */
  1704  // Unsigned long type used in system calls.
  1705  type X__syscall_ulong_t = uint64 /* types.h:199:33 */
  1706  
  1707  // These few don't really vary by system, they always correspond
  1708  //
  1709  //	to one of the other defined types.
  1710  type X__loff_t = X__off64_t /* types.h:203:19 */ // Type of file sizes and offsets (LFS).
  1711  type X__caddr_t = uintptr   /* types.h:204:14 */
  1712  
  1713  // Duplicates info from stdint.h but this is used in unistd.h.
  1714  type X__intptr_t = int64 /* types.h:207:25 */
  1715  
  1716  // Duplicate info from sys/socket.h.
  1717  type X__socklen_t = uint32 /* types.h:210:23 */
  1718  
  1719  // C99: An integer type that can be accessed as an atomic entity,
  1720  //
  1721  //	even in the presence of asynchronous interrupts.
  1722  //	It is not currently necessary for this to be machine-specific.
  1723  type X__sig_atomic_t = int32 /* types.h:215:13 */
  1724  
  1725  // Seconds since the Epoch, visible to user code when time_t is too
  1726  //    narrow only for consistency with the old way of widening too-narrow
  1727  //    types.  User code should never use __time64_t.
  1728  
  1729  type Ssize_t = X__ssize_t /* unistd.h:220:19 */
  1730  
  1731  // Wide character type.
  1732  //    Locale-writers should change this as necessary to
  1733  //    be big enough to hold unique values not between 0 and 127,
  1734  //    and not (wchar_t) -1, for each defined multibyte character.
  1735  
  1736  // Define this type if we are doing the whole job,
  1737  //    or if we want this type in particular.
  1738  
  1739  // A null pointer constant.
  1740  
  1741  // The Single Unix specification says that some more types are
  1742  //
  1743  //	available here.
  1744  type Gid_t = X__gid_t /* unistd.h:232:17 */
  1745  
  1746  type Uid_t = X__uid_t /* unistd.h:237:17 */
  1747  
  1748  type Off_t = X__off64_t /* unistd.h:245:19 */
  1749  
  1750  type Useconds_t = X__useconds_t /* unistd.h:255:22 */
  1751  
  1752  type Pid_t = X__pid_t /* unistd.h:260:17 */
  1753  
  1754  type Intptr_t = X__intptr_t /* unistd.h:267:20 */
  1755  
  1756  type Socklen_t = X__socklen_t /* unistd.h:274:21 */
  1757  
  1758  // Define some macros helping to catch buffer overflows.
  1759  
  1760  // System-specific extensions.
  1761  // System-specific extensions of <unistd.h>, Linux version.
  1762  //    Copyright (C) 2019-2021 Free Software Foundation, Inc.
  1763  //    This file is part of the GNU C Library.
  1764  //
  1765  //    The GNU C Library is free software; you can redistribute it and/or
  1766  //    modify it under the terms of the GNU Lesser General Public
  1767  //    License as published by the Free Software Foundation; either
  1768  //    version 2.1 of the License, or (at your option) any later version.
  1769  //
  1770  //    The GNU C Library is distributed in the hope that it will be useful,
  1771  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  1772  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1773  //    Lesser General Public License for more details.
  1774  //
  1775  //    You should have received a copy of the GNU Lesser General Public
  1776  //    License along with the GNU C Library; if not, see
  1777  //    <https://www.gnu.org/licenses/>.
  1778  
  1779  var _ uint8 /* gen.c:2:13: */