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