fts_linux_amd64.go (85159B)
1 // Code generated by 'ccgo fts/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 fts/fts_linux_amd64.go -pkgname fts', DO NOT EDIT. 2 3 package fts 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 ACCESSPERMS = 511 // stat.h:195:1: 19 ALLPERMS = 4095 // stat.h:196:1: 20 BIG_ENDIAN = 4321 // endian.h:28:1: 21 BYTE_ORDER = 1234 // endian.h:30:1: 22 DEFFILEMODE = 438 // stat.h:197:1: 23 FD_SETSIZE = 1024 // select.h:73:1: 24 FTS_AGAIN = 1 // fts.h:139:1: 25 FTS_COMFOLLOW = 0x0001 // fts.h:68:1: 26 FTS_D = 1 // fts.h:119:1: 27 FTS_DC = 2 // fts.h:120:1: 28 FTS_DEFAULT = 3 // fts.h:121:1: 29 FTS_DNR = 4 // fts.h:122:1: 30 FTS_DONTCHDIR = 0x01 // fts.h:135:1: 31 FTS_DOT = 5 // fts.h:123:1: 32 FTS_DP = 6 // fts.h:124:1: 33 FTS_ERR = 7 // fts.h:125:1: 34 FTS_F = 8 // fts.h:126:1: 35 FTS_FOLLOW = 2 // fts.h:140:1: 36 FTS_INIT = 9 // fts.h:127:1: 37 FTS_LOGICAL = 0x0002 // fts.h:69:1: 38 FTS_NAMEONLY = 0x0100 // fts.h:78:1: 39 FTS_NOCHDIR = 0x0004 // fts.h:70:1: 40 FTS_NOINSTR = 3 // fts.h:141:1: 41 FTS_NOSTAT = 0x0008 // fts.h:71:1: 42 FTS_NS = 10 // fts.h:128:1: 43 FTS_NSOK = 11 // fts.h:129:1: 44 FTS_OPTIONMASK = 0x00ff // fts.h:76:1: 45 FTS_PHYSICAL = 0x0010 // fts.h:72:1: 46 FTS_ROOTLEVEL = 0 // fts.h:116:1: 47 FTS_ROOTPARENTLEVEL = -1 // fts.h:115:1: 48 FTS_SEEDOT = 0x0020 // fts.h:73:1: 49 FTS_SKIP = 4 // fts.h:142:1: 50 FTS_SL = 12 // fts.h:130:1: 51 FTS_SLNONE = 13 // fts.h:131:1: 52 FTS_STOP = 0x0200 // fts.h:79:1: 53 FTS_SYMFOLLOW = 0x02 // fts.h:136:1: 54 FTS_W = 14 // fts.h:132:1: 55 FTS_WHITEOUT = 0x0080 // fts.h:75:1: 56 FTS_XDEV = 0x0040 // fts.h:74:1: 57 LITTLE_ENDIAN = 1234 // endian.h:27:1: 58 PDP_ENDIAN = 3412 // endian.h:29:1: 59 S_BLKSIZE = 512 // stat.h:199:1: 60 S_IEXEC = 64 // stat.h:177:1: 61 S_IFBLK = 24576 // stat.h:107:1: 62 S_IFCHR = 8192 // stat.h:106:1: 63 S_IFDIR = 16384 // stat.h:105:1: 64 S_IFIFO = 4096 // stat.h:110:1: 65 S_IFLNK = 40960 // stat.h:113:1: 66 S_IFMT = 61440 // stat.h:104:1: 67 S_IFREG = 32768 // stat.h:108:1: 68 S_IFSOCK = 49152 // stat.h:117:1: 69 S_IREAD = 256 // stat.h:175:1: 70 S_IRGRP = 32 // stat.h:180:1: 71 S_IROTH = 4 // stat.h:186:1: 72 S_IRUSR = 256 // stat.h:168:1: 73 S_IRWXG = 56 // stat.h:184:1: 74 S_IRWXO = 7 // stat.h:190:1: 75 S_IRWXU = 448 // stat.h:172:1: 76 S_ISGID = 1024 // stat.h:161:1: 77 S_ISUID = 2048 // stat.h:160:1: 78 S_ISVTX = 512 // stat.h:165:1: 79 S_IWGRP = 16 // stat.h:181:1: 80 S_IWOTH = 2 // stat.h:187:1: 81 S_IWRITE = 128 // stat.h:176:1: 82 S_IWUSR = 128 // stat.h:169:1: 83 S_IXGRP = 8 // stat.h:182:1: 84 S_IXOTH = 1 // stat.h:188:1: 85 S_IXUSR = 64 // stat.h:170:1: 86 UTIME_NOW = 1073741823 // stat.h:206:1: 87 UTIME_OMIT = 1073741822 // stat.h:207:1: 88 X_ATFILE_SOURCE = 1 // features.h:342:1: 89 X_BITS_BYTESWAP_H = 1 // byteswap.h:24:1: 90 X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1: 91 X_BITS_ENDIAN_H = 1 // endian.h:20:1: 92 X_BITS_PTHREADTYPES_ARCH_H = 1 // pthreadtypes-arch.h:19:1: 93 X_BITS_PTHREADTYPES_COMMON_H = 1 // pthreadtypes.h:20:1: 94 X_BITS_STAT_H = 1 // stat.h:23:1: 95 X_BITS_STDINT_INTN_H = 1 // stdint-intn.h:20:1: 96 X_BITS_TIME64_H = 1 // time64.h:24:1: 97 X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: 98 X_BITS_TYPES_H = 1 // types.h:24:1: 99 X_BITS_UINTN_IDENTITY_H = 1 // uintn-identity.h:24:1: 100 X_BSD_SIZE_T_ = 0 // stddef.h:189:1: 101 X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1: 102 X_DEFAULT_SOURCE = 1 // features.h:227:1: 103 X_ENDIAN_H = 1 // endian.h:19:1: 104 X_FEATURES_H = 1 // features.h:19:1: 105 X_FILE_OFFSET_BITS = 64 // <builtin>:25:1: 106 X_FTS_H = 1 // fts.h:51:1: 107 X_GCC_SIZE_T = 0 // stddef.h:195:1: 108 X_LP64 = 1 // <predefined>:284:1: 109 X_MKNOD_VER = 0 // stat.h:390:1: 110 X_MKNOD_VER_LINUX = 0 // stat.h:41:1: 111 X_POSIX_C_SOURCE = 200809 // features.h:281:1: 112 X_POSIX_SOURCE = 1 // features.h:279:1: 113 X_RWLOCK_INTERNAL_H = 0 // struct_rwlock.h:21:1: 114 X_SIZET_ = 0 // stddef.h:196:1: 115 X_SIZE_T = 0 // stddef.h:183:1: 116 X_SIZE_T_ = 0 // stddef.h:188:1: 117 X_SIZE_T_DECLARED = 0 // stddef.h:193:1: 118 X_SIZE_T_DEFINED = 0 // stddef.h:191:1: 119 X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1: 120 X_STATBUF_ST_BLKSIZE = 0 // stat.h:172:1: 121 X_STATBUF_ST_NSEC = 0 // stat.h:175:1: 122 X_STATBUF_ST_RDEV = 0 // stat.h:173:1: 123 X_STAT_VER = 1 // stat.h:44:1: 124 X_STAT_VER_KERNEL = 0 // stat.h:37:1: 125 X_STAT_VER_LINUX = 1 // stat.h:38:1: 126 X_STDC_PREDEF_H = 1 // <predefined>:162:1: 127 X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1: 128 X_SYS_CDEFS_H = 1 // cdefs.h:19:1: 129 X_SYS_SELECT_H = 1 // select.h:22:1: 130 X_SYS_SIZE_T_H = 0 // stddef.h:184:1: 131 X_SYS_STAT_H = 1 // stat.h:23:1: 132 X_SYS_TYPES_H = 1 // types.h:23:1: 133 X_THREAD_MUTEX_INTERNAL_H = 1 // struct_mutex.h:20:1: 134 X_THREAD_SHARED_TYPES_H = 1 // thread-shared-types.h:20:1: 135 X_T_SIZE = 0 // stddef.h:186:1: 136 X_T_SIZE_ = 0 // stddef.h:185:1: 137 Linux = 1 // <predefined>:231:1: 138 Unix = 1 // <predefined>:177:1: 139 ) 140 141 type Ptrdiff_t = int64 /* <builtin>:3:26 */ 142 143 type Size_t = uint64 /* <builtin>:9:23 */ 144 145 type Wchar_t = int32 /* <builtin>:15:24 */ 146 147 type X__int128_t = struct { 148 Flo int64 149 Fhi int64 150 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128 151 type X__uint128_t = struct { 152 Flo uint64 153 Fhi uint64 154 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128 155 156 type X__builtin_va_list = uintptr /* <builtin>:46:14 */ 157 type X__float128 = float64 /* <builtin>:47:21 */ 158 159 // Copyright (C) 1991-2020 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 // POSIX Standard: 2.6 Primitive System Data Types <sys/types.h> 177 178 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 179 // This file is part of the GNU C Library. 180 // 181 // The GNU C Library is free software; you can redistribute it and/or 182 // modify it under the terms of the GNU Lesser General Public 183 // License as published by the Free Software Foundation; either 184 // version 2.1 of the License, or (at your option) any later version. 185 // 186 // The GNU C Library is distributed in the hope that it will be useful, 187 // but WITHOUT ANY WARRANTY; without even the implied warranty of 188 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 189 // Lesser General Public License for more details. 190 // 191 // You should have received a copy of the GNU Lesser General Public 192 // License along with the GNU C Library; if not, see 193 // <https://www.gnu.org/licenses/>. 194 195 // These are defined by the user (or the compiler) 196 // to specify the desired environment: 197 // 198 // __STRICT_ANSI__ ISO Standard C. 199 // _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. 200 // _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. 201 // _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. 202 // __STDC_WANT_LIB_EXT2__ 203 // Extensions to ISO C99 from TR 27431-2:2010. 204 // __STDC_WANT_IEC_60559_BFP_EXT__ 205 // Extensions to ISO C11 from TS 18661-1:2014. 206 // __STDC_WANT_IEC_60559_FUNCS_EXT__ 207 // Extensions to ISO C11 from TS 18661-4:2015. 208 // __STDC_WANT_IEC_60559_TYPES_EXT__ 209 // Extensions to ISO C11 from TS 18661-3:2015. 210 // 211 // _POSIX_SOURCE IEEE Std 1003.1. 212 // _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; 213 // if >=199309L, add IEEE Std 1003.1b-1993; 214 // if >=199506L, add IEEE Std 1003.1c-1995; 215 // if >=200112L, all of IEEE 1003.1-2004 216 // if >=200809L, all of IEEE 1003.1-2008 217 // _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if 218 // Single Unix conformance is wanted, to 600 for the 219 // sixth revision, to 700 for the seventh revision. 220 // _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. 221 // _LARGEFILE_SOURCE Some more functions for correct standard I/O. 222 // _LARGEFILE64_SOURCE Additional functionality from LFS for large files. 223 // _FILE_OFFSET_BITS=N Select default filesystem interface. 224 // _ATFILE_SOURCE Additional *at interfaces. 225 // _GNU_SOURCE All of the above, plus GNU extensions. 226 // _DEFAULT_SOURCE The default set of features (taking precedence over 227 // __STRICT_ANSI__). 228 // 229 // _FORTIFY_SOURCE Add security hardening to many library functions. 230 // Set to 1 or 2; 2 performs stricter checks than 1. 231 // 232 // _REENTRANT, _THREAD_SAFE 233 // Obsolete; equivalent to _POSIX_C_SOURCE=199506L. 234 // 235 // The `-ansi' switch to the GNU C compiler, and standards conformance 236 // options such as `-std=c99', define __STRICT_ANSI__. If none of 237 // these are defined, or if _DEFAULT_SOURCE is defined, the default is 238 // to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to 239 // 200809L, as well as enabling miscellaneous functions from BSD and 240 // SVID. If more than one of these are defined, they accumulate. For 241 // example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together 242 // give you ISO C, 1003.1, and 1003.2, but nothing else. 243 // 244 // These are defined by this file and are used by the 245 // header files to decide what to declare or define: 246 // 247 // __GLIBC_USE (F) Define things from feature set F. This is defined 248 // to 1 or 0; the subsequent macros are either defined 249 // or undefined, and those tests should be moved to 250 // __GLIBC_USE. 251 // __USE_ISOC11 Define ISO C11 things. 252 // __USE_ISOC99 Define ISO C99 things. 253 // __USE_ISOC95 Define ISO C90 AMD1 (C95) things. 254 // __USE_ISOCXX11 Define ISO C++11 things. 255 // __USE_POSIX Define IEEE Std 1003.1 things. 256 // __USE_POSIX2 Define IEEE Std 1003.2 things. 257 // __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. 258 // __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. 259 // __USE_XOPEN Define XPG things. 260 // __USE_XOPEN_EXTENDED Define X/Open Unix things. 261 // __USE_UNIX98 Define Single Unix V2 things. 262 // __USE_XOPEN2K Define XPG6 things. 263 // __USE_XOPEN2KXSI Define XPG6 XSI things. 264 // __USE_XOPEN2K8 Define XPG7 things. 265 // __USE_XOPEN2K8XSI Define XPG7 XSI things. 266 // __USE_LARGEFILE Define correct standard I/O things. 267 // __USE_LARGEFILE64 Define LFS things with separate names. 268 // __USE_FILE_OFFSET64 Define 64bit interface as default. 269 // __USE_MISC Define things from 4.3BSD or System V Unix. 270 // __USE_ATFILE Define *at interfaces and AT_* constants for them. 271 // __USE_GNU Define GNU extensions. 272 // __USE_FORTIFY_LEVEL Additional security measures used, according to level. 273 // 274 // The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are 275 // defined by this file unconditionally. `__GNU_LIBRARY__' is provided 276 // only for compatibility. All new code should use the other symbols 277 // to test for features. 278 // 279 // All macros listed above as possibly being defined by this file are 280 // explicitly undefined if they are not explicitly defined. 281 // Feature-test macros that are not defined by the user or compiler 282 // but are implied by the other feature-test macros defined (or by the 283 // lack of any definitions) are defined by the file. 284 // 285 // ISO C feature test macros depend on the definition of the macro 286 // when an affected header is included, not when the first system 287 // header is included, and so they are handled in 288 // <bits/libc-header-start.h>, which does not have a multiple include 289 // guard. Feature test macros that can be handled from the first 290 // system header included are handled here. 291 292 // Undefine everything, so we get a clean slate. 293 294 // Suppress kernel-name space pollution unless user expressedly asks 295 // for it. 296 297 // Convenience macro to test the version of gcc. 298 // Use like this: 299 // #if __GNUC_PREREQ (2,8) 300 // ... code requiring gcc 2.8 or later ... 301 // #endif 302 // Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was 303 // added in 2.0. 304 305 // Similarly for clang. Features added to GCC after version 4.2 may 306 // or may not also be available in clang, and clang's definitions of 307 // __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such 308 // features can be queried via __has_extension/__has_feature. 309 310 // Whether to use feature set F. 311 312 // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for 313 // _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not 314 // issue a warning; the expectation is that the source is being 315 // transitioned to use the new macro. 316 317 // If _GNU_SOURCE was defined by the user, turn on all the other features. 318 319 // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, 320 // define _DEFAULT_SOURCE. 321 322 // This is to enable the ISO C2X extension. 323 324 // This is to enable the ISO C11 extension. 325 326 // This is to enable the ISO C99 extension. 327 328 // This is to enable the ISO C90 Amendment 1:1995 extension. 329 330 // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE 331 // is defined, use POSIX.1-2008 (or another version depending on 332 // _XOPEN_SOURCE). 333 334 // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be 335 // defined in all multithreaded code. GNU libc has not required this 336 // for many years. We now treat them as compatibility synonyms for 337 // _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with 338 // comprehensive support for multithreaded code. Using them never 339 // lowers the selected level of POSIX conformance, only raises it. 340 341 // The function 'gets' existed in C89, but is impossible to use 342 // safely. It has been removed from ISO C11 and ISO C++14. Note: for 343 // compatibility with various implementations of <cstdio>, this test 344 // must consider only the value of __cplusplus when compiling C++. 345 346 // GNU formerly extended the scanf functions with modified format 347 // specifiers %as, %aS, and %a[...] that allocate a buffer for the 348 // input using malloc. This extension conflicts with ISO C99, which 349 // defines %a as a standalone format specifier that reads a floating- 350 // point number; moreover, POSIX.1-2008 provides the same feature 351 // using the modifier letter 'm' instead (%ms, %mS, %m[...]). 352 // 353 // We now follow C99 unless GNU extensions are active and the compiler 354 // is specifically in C89 or C++98 mode (strict or not). For 355 // instance, with GCC, -std=gnu11 will have C99-compliant scanf with 356 // or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the 357 // old extension. 358 359 // Get definitions of __STDC_* predefined macros, if the compiler has 360 // not preincluded this header automatically. 361 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 362 // This file is part of the GNU C Library. 363 // 364 // The GNU C Library is free software; you can redistribute it and/or 365 // modify it under the terms of the GNU Lesser General Public 366 // License as published by the Free Software Foundation; either 367 // version 2.1 of the License, or (at your option) any later version. 368 // 369 // The GNU C Library is distributed in the hope that it will be useful, 370 // but WITHOUT ANY WARRANTY; without even the implied warranty of 371 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 372 // Lesser General Public License for more details. 373 // 374 // You should have received a copy of the GNU Lesser General Public 375 // License along with the GNU C Library; if not, see 376 // <https://www.gnu.org/licenses/>. 377 378 // This macro indicates that the installed library is the GNU C Library. 379 // For historic reasons the value now is 6 and this will stay from now 380 // on. The use of this variable is deprecated. Use __GLIBC__ and 381 // __GLIBC_MINOR__ now (see below) when you want to test for a specific 382 // GNU C library version and use the values in <gnu/lib-names.h> to get 383 // the sonames of the shared libraries. 384 385 // Major and minor version number of the GNU C library package. Use 386 // these macros to test for features in specific releases. 387 388 // This is here only because every header file already includes this one. 389 // Copyright (C) 1992-2020 Free Software Foundation, Inc. 390 // This file is part of the GNU C Library. 391 // 392 // The GNU C Library is free software; you can redistribute it and/or 393 // modify it under the terms of the GNU Lesser General Public 394 // License as published by the Free Software Foundation; either 395 // version 2.1 of the License, or (at your option) any later version. 396 // 397 // The GNU C Library is distributed in the hope that it will be useful, 398 // but WITHOUT ANY WARRANTY; without even the implied warranty of 399 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 400 // Lesser General Public License for more details. 401 // 402 // You should have received a copy of the GNU Lesser General Public 403 // License along with the GNU C Library; if not, see 404 // <https://www.gnu.org/licenses/>. 405 406 // We are almost always included from features.h. 407 408 // The GNU libc does not support any K&R compilers or the traditional mode 409 // of ISO C compilers anymore. Check for some of the combinations not 410 // anymore supported. 411 412 // Some user header file might have defined this before. 413 414 // All functions, except those with callbacks or those that 415 // synchronize memory, are leaf functions. 416 417 // GCC can always grok prototypes. For C++ programs we add throw() 418 // to help it optimize the function calls. But this works only with 419 // gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions 420 // as non-throwing using a function attribute since programs can use 421 // the -fexceptions options for C code as well. 422 423 // Compilers that are not clang may object to 424 // #if defined __clang__ && __has_extension(...) 425 // even though they do not need to evaluate the right-hand side of the &&. 426 427 // These two macros are not used in glibc anymore. They are kept here 428 // only because some other projects expect the macros to be defined. 429 430 // For these things, GCC behaves the ANSI way normally, 431 // and the non-ANSI way under -traditional. 432 433 // This is not a typedef so `const __ptr_t' does the right thing. 434 435 // C++ needs to know that types and declarations are C, not C++. 436 437 // Fortify support. 438 439 // Support for flexible arrays. 440 // Headers that should use flexible arrays only if they're "real" 441 // (e.g. only if they won't affect sizeof()) should test 442 // #if __glibc_c99_flexarr_available. 443 444 // __asm__ ("xyz") is used throughout the headers to rename functions 445 // at the assembly language level. This is wrapped by the __REDIRECT 446 // macro, in order to support compilers that can do this some other 447 // way. When compilers don't support asm-names at all, we have to do 448 // preprocessor tricks instead (which don't have exactly the right 449 // semantics, but it's the best we can do). 450 // 451 // Example: 452 // int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); 453 454 // 455 // #elif __SOME_OTHER_COMPILER__ 456 // 457 // # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) 458 459 // GCC has various useful declarations that can be made with the 460 // `__attribute__' syntax. All of the ways we use this do fine if 461 // they are omitted for compilers that don't understand it. 462 463 // At some point during the gcc 2.96 development the `malloc' attribute 464 // for functions was introduced. We don't want to use it unconditionally 465 // (although this would be possible) since it generates warnings. 466 467 // Tell the compiler which arguments to an allocation function 468 // indicate the size of the allocation. 469 470 // At some point during the gcc 2.96 development the `pure' attribute 471 // for functions was introduced. We don't want to use it unconditionally 472 // (although this would be possible) since it generates warnings. 473 474 // This declaration tells the compiler that the value is constant. 475 476 // At some point during the gcc 3.1 development the `used' attribute 477 // for functions was introduced. We don't want to use it unconditionally 478 // (although this would be possible) since it generates warnings. 479 480 // Since version 3.2, gcc allows marking deprecated functions. 481 482 // Since version 4.5, gcc also allows one to specify the message printed 483 // when a deprecated function is used. clang claims to be gcc 4.2, but 484 // may also support this feature. 485 486 // At some point during the gcc 2.8 development the `format_arg' attribute 487 // for functions was introduced. We don't want to use it unconditionally 488 // (although this would be possible) since it generates warnings. 489 // If several `format_arg' attributes are given for the same function, in 490 // gcc-3.0 and older, all but the last one are ignored. In newer gccs, 491 // all designated arguments are considered. 492 493 // At some point during the gcc 2.97 development the `strfmon' format 494 // attribute for functions was introduced. We don't want to use it 495 // unconditionally (although this would be possible) since it 496 // generates warnings. 497 498 // The nonull function attribute allows to mark pointer parameters which 499 // must not be NULL. 500 501 // If fortification mode, we warn about unused results of certain 502 // function calls which can lead to problems. 503 504 // Forces a function to be always inlined. 505 // The Linux kernel defines __always_inline in stddef.h (283d7573), and 506 // it conflicts with this definition. Therefore undefine it first to 507 // allow either header to be included first. 508 509 // Associate error messages with the source location of the call site rather 510 // than with the source location inside the function. 511 512 // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 513 // inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ 514 // or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions 515 // older than 4.3 may define these macros and still not guarantee GNU inlining 516 // semantics. 517 // 518 // clang++ identifies itself as gcc-4.2, but has support for GNU inlining 519 // semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and 520 // __GNUC_GNU_INLINE__ macro definitions. 521 522 // GCC 4.3 and above allow passing all anonymous arguments of an 523 // __extern_always_inline function to some other vararg function. 524 525 // It is possible to compile containing GCC extensions even if GCC is 526 // run in pedantic mode if the uses are carefully marked using the 527 // `__extension__' keyword. But this is not generally available before 528 // version 2.8. 529 530 // __restrict is known in EGCS 1.2 and above. 531 532 // ISO C99 also allows to declare arrays as non-overlapping. The syntax is 533 // array_name[restrict] 534 // GCC 3.1 supports this. 535 536 // Describes a char array whose address can safely be passed as the first 537 // argument to strncpy and strncat, as the char array is not necessarily 538 // a NUL-terminated string. 539 540 // Undefine (also defined in libc-symbols.h). 541 // Copies attributes from the declaration or type referenced by 542 // the argument. 543 544 // Determine the wordsize from the preprocessor defines. 545 546 // Both x86-64 and x32 use the 64-bit system call interface. 547 // Properties of long double type. ldbl-96 version. 548 // Copyright (C) 2016-2020 Free Software Foundation, Inc. 549 // This file is part of the GNU C Library. 550 // 551 // The GNU C Library is free software; you can redistribute it and/or 552 // modify it under the terms of the GNU Lesser General Public 553 // License published by the Free Software Foundation; either 554 // version 2.1 of the License, or (at your option) any later version. 555 // 556 // The GNU C Library is distributed in the hope that it will be useful, 557 // but WITHOUT ANY WARRANTY; without even the implied warranty of 558 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 559 // Lesser General Public License for more details. 560 // 561 // You should have received a copy of the GNU Lesser General Public 562 // License along with the GNU C Library; if not, see 563 // <https://www.gnu.org/licenses/>. 564 565 // long double is distinct from double, so there is nothing to 566 // define here. 567 568 // __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is 569 // intended for use in preprocessor macros. 570 // 571 // Note: MESSAGE must be a _single_ string; concatenation of string 572 // literals is not supported. 573 574 // Generic selection (ISO C11) is a C-only feature, available in GCC 575 // since version 4.9. Previous versions do not provide generic 576 // selection, even though they might set __STDC_VERSION__ to 201112L, 577 // when in -std=c11 mode. Thus, we must check for !defined __GNUC__ 578 // when testing __STDC_VERSION__ for generic selection support. 579 // On the other hand, Clang also defines __GNUC__, so a clang-specific 580 // check is required to enable the use of generic selection. 581 582 // If we don't have __REDIRECT, prototypes will be missing if 583 // __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. 584 585 // Decide whether we can define 'extern inline' functions in headers. 586 587 // This is here only because every header file already includes this one. 588 // Get the definitions of all the appropriate `__stub_FUNCTION' symbols. 589 // <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub 590 // that will always return failure (and set errno to ENOSYS). 591 // This file is automatically generated. 592 // This file selects the right generated file of `__stub_FUNCTION' macros 593 // based on the architecture being compiled for. 594 595 // This file is automatically generated. 596 // It defines a symbol `__stub_FUNCTION' for each function 597 // in the C library which is a stub, meaning it will fail 598 // every time called, usually setting errno to ENOSYS. 599 600 // bits/types.h -- definitions of __*_t types underlying *_t types. 601 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 602 // This file is part of the GNU C Library. 603 // 604 // The GNU C Library is free software; you can redistribute it and/or 605 // modify it under the terms of the GNU Lesser General Public 606 // License as published by the Free Software Foundation; either 607 // version 2.1 of the License, or (at your option) any later version. 608 // 609 // The GNU C Library is distributed in the hope that it will be useful, 610 // but WITHOUT ANY WARRANTY; without even the implied warranty of 611 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 612 // Lesser General Public License for more details. 613 // 614 // You should have received a copy of the GNU Lesser General Public 615 // License along with the GNU C Library; if not, see 616 // <https://www.gnu.org/licenses/>. 617 618 // Never include this file directly; use <sys/types.h> instead. 619 620 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 621 // This file is part of the GNU C Library. 622 // 623 // The GNU C Library is free software; you can redistribute it and/or 624 // modify it under the terms of the GNU Lesser General Public 625 // License as published by the Free Software Foundation; either 626 // version 2.1 of the License, or (at your option) any later version. 627 // 628 // The GNU C Library is distributed in the hope that it will be useful, 629 // but WITHOUT ANY WARRANTY; without even the implied warranty of 630 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 631 // Lesser General Public License for more details. 632 // 633 // You should have received a copy of the GNU Lesser General Public 634 // License along with the GNU C Library; if not, see 635 // <https://www.gnu.org/licenses/>. 636 637 // Determine the wordsize from the preprocessor defines. 638 639 // Both x86-64 and x32 use the 64-bit system call interface. 640 // Bit size of the time_t type at glibc build time, x86-64 and x32 case. 641 // Copyright (C) 2018-2020 Free Software Foundation, Inc. 642 // This file is part of the GNU C Library. 643 // 644 // The GNU C Library is free software; you can redistribute it and/or 645 // modify it under the terms of the GNU Lesser General Public 646 // License as published by the Free Software Foundation; either 647 // version 2.1 of the License, or (at your option) any later version. 648 // 649 // The GNU C Library is distributed in the hope that it will be useful, 650 // but WITHOUT ANY WARRANTY; without even the implied warranty of 651 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 652 // Lesser General Public License for more details. 653 // 654 // You should have received a copy of the GNU Lesser General Public 655 // License along with the GNU C Library; if not, see 656 // <https://www.gnu.org/licenses/>. 657 658 // For others, time size is word size. 659 660 // Convenience types. 661 type X__u_char = uint8 /* types.h:31:23 */ 662 type X__u_short = uint16 /* types.h:32:28 */ 663 type X__u_int = uint32 /* types.h:33:22 */ 664 type X__u_long = uint64 /* types.h:34:27 */ 665 666 // Fixed-size types, underlying types depend on word size and compiler. 667 type X__int8_t = int8 /* types.h:37:21 */ 668 type X__uint8_t = uint8 /* types.h:38:23 */ 669 type X__int16_t = int16 /* types.h:39:26 */ 670 type X__uint16_t = uint16 /* types.h:40:28 */ 671 type X__int32_t = int32 /* types.h:41:20 */ 672 type X__uint32_t = uint32 /* types.h:42:22 */ 673 type X__int64_t = int64 /* types.h:44:25 */ 674 type X__uint64_t = uint64 /* types.h:45:27 */ 675 676 // Smallest types with at least a given width. 677 type X__int_least8_t = X__int8_t /* types.h:52:18 */ 678 type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ 679 type X__int_least16_t = X__int16_t /* types.h:54:19 */ 680 type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ 681 type X__int_least32_t = X__int32_t /* types.h:56:19 */ 682 type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ 683 type X__int_least64_t = X__int64_t /* types.h:58:19 */ 684 type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ 685 686 // quad_t is also 64 bits. 687 type X__quad_t = int64 /* types.h:63:18 */ 688 type X__u_quad_t = uint64 /* types.h:64:27 */ 689 690 // Largest integral types. 691 type X__intmax_t = int64 /* types.h:72:18 */ 692 type X__uintmax_t = uint64 /* types.h:73:27 */ 693 694 // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE 695 // macros for each of the OS types we define below. The definitions 696 // of those macros must use the following macros for underlying types. 697 // We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned 698 // variants of each of the following integer types on this machine. 699 // 700 // 16 -- "natural" 16-bit type (always short) 701 // 32 -- "natural" 32-bit type (always int) 702 // 64 -- "natural" 64-bit type (long or long long) 703 // LONG32 -- 32-bit type, traditionally long 704 // QUAD -- 64-bit type, traditionally long long 705 // WORD -- natural type of __WORDSIZE bits (int or long) 706 // LONGWORD -- type of __WORDSIZE bits, traditionally long 707 // 708 // We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the 709 // conventional uses of `long' or `long long' type modifiers match the 710 // types we define, even when a less-adorned type would be the same size. 711 // This matters for (somewhat) portably writing printf/scanf formats for 712 // these types, where using the appropriate l or ll format modifiers can 713 // make the typedefs and the formats match up across all GNU platforms. If 714 // we used `long' when it's 64 bits where `long long' is expected, then the 715 // compiler would warn about the formats not matching the argument types, 716 // and the programmer changing them to shut up the compiler would break the 717 // program's portability. 718 // 719 // Here we assume what is presently the case in all the GCC configurations 720 // we support: long long is always 64 bits, long is always word/address size, 721 // and int is always 32 bits. 722 723 // No need to mark the typedef with __extension__. 724 // bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. 725 // Copyright (C) 2012-2020 Free Software Foundation, Inc. 726 // This file is part of the GNU C Library. 727 // 728 // The GNU C Library is free software; you can redistribute it and/or 729 // modify it under the terms of the GNU Lesser General Public 730 // License as published by the Free Software Foundation; either 731 // version 2.1 of the License, or (at your option) any later version. 732 // 733 // The GNU C Library is distributed in the hope that it will be useful, 734 // but WITHOUT ANY WARRANTY; without even the implied warranty of 735 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 736 // Lesser General Public License for more details. 737 // 738 // You should have received a copy of the GNU Lesser General Public 739 // License along with the GNU C Library; if not, see 740 // <https://www.gnu.org/licenses/>. 741 742 // See <bits/types.h> for the meaning of these macros. This file exists so 743 // that <bits/types.h> need not vary across different GNU platforms. 744 745 // X32 kernel interface is 64-bit. 746 747 // Tell the libc code that off_t and off64_t are actually the same type 748 // for all ABI purposes, even if possibly expressed as different base types 749 // for C type-checking purposes. 750 751 // Same for ino_t and ino64_t. 752 753 // And for __rlim_t and __rlim64_t. 754 755 // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. 756 757 // Number of descriptors that can fit in an `fd_set'. 758 759 // bits/time64.h -- underlying types for __time64_t. Generic version. 760 // Copyright (C) 2018-2020 Free Software Foundation, Inc. 761 // This file is part of the GNU C Library. 762 // 763 // The GNU C Library is free software; you can redistribute it and/or 764 // modify it under the terms of the GNU Lesser General Public 765 // License as published by the Free Software Foundation; either 766 // version 2.1 of the License, or (at your option) any later version. 767 // 768 // The GNU C Library is distributed in the hope that it will be useful, 769 // but WITHOUT ANY WARRANTY; without even the implied warranty of 770 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 771 // Lesser General Public License for more details. 772 // 773 // You should have received a copy of the GNU Lesser General Public 774 // License along with the GNU C Library; if not, see 775 // <https://www.gnu.org/licenses/>. 776 777 // Define __TIME64_T_TYPE so that it is always a 64-bit type. 778 779 // If we already have 64-bit time type then use it. 780 781 type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. 782 type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. 783 type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. 784 type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. 785 type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). 786 type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. 787 type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. 788 type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. 789 type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). 790 type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. 791 type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. 792 type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. 793 type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. 794 type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). 795 type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. 796 type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. 797 type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. 798 type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. 799 800 type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. 801 type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. 802 803 // Clock ID used in clock and timer functions. 804 type X__clockid_t = int32 /* types.h:168:29 */ 805 806 // Timer ID returned by `timer_create'. 807 type X__timer_t = uintptr /* types.h:171:12 */ 808 809 // Type to represent block size. 810 type X__blksize_t = int64 /* types.h:174:29 */ 811 812 // Types from the Large File Support interface. 813 814 // Type to count number of disk blocks. 815 type X__blkcnt_t = int64 /* types.h:179:28 */ 816 type X__blkcnt64_t = int64 /* types.h:180:30 */ 817 818 // Type to count file system blocks. 819 type X__fsblkcnt_t = uint64 /* types.h:183:30 */ 820 type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ 821 822 // Type to count file system nodes. 823 type X__fsfilcnt_t = uint64 /* types.h:187:30 */ 824 type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ 825 826 // Type of miscellaneous file system fields. 827 type X__fsword_t = int64 /* types.h:191:28 */ 828 829 type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. 830 831 // Signed long type used in system calls. 832 type X__syscall_slong_t = int64 /* types.h:196:33 */ 833 // Unsigned long type used in system calls. 834 type X__syscall_ulong_t = uint64 /* types.h:198:33 */ 835 836 // These few don't really vary by system, they always correspond 837 // 838 // to one of the other defined types. 839 type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). 840 type X__caddr_t = uintptr /* types.h:203:14 */ 841 842 // Duplicates info from stdint.h but this is used in unistd.h. 843 type X__intptr_t = int64 /* types.h:206:25 */ 844 845 // Duplicate info from sys/socket.h. 846 type X__socklen_t = uint32 /* types.h:209:23 */ 847 848 // C99: An integer type that can be accessed as an atomic entity, 849 // 850 // even in the presence of asynchronous interrupts. 851 // It is not currently necessary for this to be machine-specific. 852 type X__sig_atomic_t = int32 /* types.h:214:13 */ 853 854 // Seconds since the Epoch, visible to user code when time_t is too 855 // narrow only for consistency with the old way of widening too-narrow 856 // types. User code should never use __time64_t. 857 858 type U_char = X__u_char /* types.h:33:18 */ 859 type U_short = X__u_short /* types.h:34:19 */ 860 type U_int = X__u_int /* types.h:35:17 */ 861 type U_long = X__u_long /* types.h:36:18 */ 862 type Quad_t = X__quad_t /* types.h:37:18 */ 863 type U_quad_t = X__u_quad_t /* types.h:38:20 */ 864 type Fsid_t = X__fsid_t /* types.h:39:18 */ 865 type Loff_t = X__loff_t /* types.h:42:18 */ 866 867 type Ino_t = X__ino64_t /* types.h:49:19 */ 868 869 type Dev_t = X__dev_t /* types.h:59:17 */ 870 871 type Gid_t = X__gid_t /* types.h:64:17 */ 872 873 type Mode_t = X__mode_t /* types.h:69:18 */ 874 875 type Nlink_t = X__nlink_t /* types.h:74:19 */ 876 877 type Uid_t = X__uid_t /* types.h:79:17 */ 878 879 type Off_t = X__off64_t /* types.h:87:19 */ 880 881 type Pid_t = X__pid_t /* types.h:97:17 */ 882 883 type Id_t = X__id_t /* types.h:103:16 */ 884 885 type Ssize_t = X__ssize_t /* types.h:108:19 */ 886 887 type Daddr_t = X__daddr_t /* types.h:114:19 */ 888 type Caddr_t = X__caddr_t /* types.h:115:19 */ 889 890 type Key_t = X__key_t /* types.h:121:17 */ 891 892 // bits/types.h -- definitions of __*_t types underlying *_t types. 893 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 894 // This file is part of the GNU C Library. 895 // 896 // The GNU C Library is free software; you can redistribute it and/or 897 // modify it under the terms of the GNU Lesser General Public 898 // License as published by the Free Software Foundation; either 899 // version 2.1 of the License, or (at your option) any later version. 900 // 901 // The GNU C Library is distributed in the hope that it will be useful, 902 // but WITHOUT ANY WARRANTY; without even the implied warranty of 903 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 904 // Lesser General Public License for more details. 905 // 906 // You should have received a copy of the GNU Lesser General Public 907 // License along with the GNU C Library; if not, see 908 // <https://www.gnu.org/licenses/>. 909 910 // Never include this file directly; use <sys/types.h> instead. 911 912 // Returned by `clock'. 913 type Clock_t = X__clock_t /* clock_t.h:7:19 */ 914 915 // bits/types.h -- definitions of __*_t types underlying *_t types. 916 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 917 // This file is part of the GNU C Library. 918 // 919 // The GNU C Library is free software; you can redistribute it and/or 920 // modify it under the terms of the GNU Lesser General Public 921 // License as published by the Free Software Foundation; either 922 // version 2.1 of the License, or (at your option) any later version. 923 // 924 // The GNU C Library is distributed in the hope that it will be useful, 925 // but WITHOUT ANY WARRANTY; without even the implied warranty of 926 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 927 // Lesser General Public License for more details. 928 // 929 // You should have received a copy of the GNU Lesser General Public 930 // License along with the GNU C Library; if not, see 931 // <https://www.gnu.org/licenses/>. 932 933 // Never include this file directly; use <sys/types.h> instead. 934 935 // Clock ID used in clock and timer functions. 936 type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */ 937 938 // bits/types.h -- definitions of __*_t types underlying *_t types. 939 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 940 // This file is part of the GNU C Library. 941 // 942 // The GNU C Library is free software; you can redistribute it and/or 943 // modify it under the terms of the GNU Lesser General Public 944 // License as published by the Free Software Foundation; either 945 // version 2.1 of the License, or (at your option) any later version. 946 // 947 // The GNU C Library is distributed in the hope that it will be useful, 948 // but WITHOUT ANY WARRANTY; without even the implied warranty of 949 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 950 // Lesser General Public License for more details. 951 // 952 // You should have received a copy of the GNU Lesser General Public 953 // License along with the GNU C Library; if not, see 954 // <https://www.gnu.org/licenses/>. 955 956 // Never include this file directly; use <sys/types.h> instead. 957 958 // Returned by `time'. 959 type Time_t = X__time_t /* time_t.h:7:18 */ 960 961 // bits/types.h -- definitions of __*_t types underlying *_t types. 962 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 963 // This file is part of the GNU C Library. 964 // 965 // The GNU C Library is free software; you can redistribute it and/or 966 // modify it under the terms of the GNU Lesser General Public 967 // License as published by the Free Software Foundation; either 968 // version 2.1 of the License, or (at your option) any later version. 969 // 970 // The GNU C Library is distributed in the hope that it will be useful, 971 // but WITHOUT ANY WARRANTY; without even the implied warranty of 972 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 973 // Lesser General Public License for more details. 974 // 975 // You should have received a copy of the GNU Lesser General Public 976 // License along with the GNU C Library; if not, see 977 // <https://www.gnu.org/licenses/>. 978 979 // Never include this file directly; use <sys/types.h> instead. 980 981 // Timer ID returned by `timer_create'. 982 type Timer_t = X__timer_t /* timer_t.h:7:19 */ 983 984 // Wide character type. 985 // Locale-writers should change this as necessary to 986 // be big enough to hold unique values not between 0 and 127, 987 // and not (wchar_t) -1, for each defined multibyte character. 988 989 // Define this type if we are doing the whole job, 990 // or if we want this type in particular. 991 992 // A null pointer constant. 993 994 // Old compatibility names for C types. 995 type Ulong = uint64 /* types.h:148:27 */ 996 type Ushort = uint16 /* types.h:149:28 */ 997 type Uint = uint32 /* types.h:150:22 */ 998 999 // These size-specific names are used by some of the inet code. 1000 1001 // Define intN_t types. 1002 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 1003 // This file is part of the GNU C Library. 1004 // 1005 // The GNU C Library is free software; you can redistribute it and/or 1006 // modify it under the terms of the GNU Lesser General Public 1007 // License as published by the Free Software Foundation; either 1008 // version 2.1 of the License, or (at your option) any later version. 1009 // 1010 // The GNU C Library is distributed in the hope that it will be useful, 1011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1013 // Lesser General Public License for more details. 1014 // 1015 // You should have received a copy of the GNU Lesser General Public 1016 // License along with the GNU C Library; if not, see 1017 // <https://www.gnu.org/licenses/>. 1018 1019 // bits/types.h -- definitions of __*_t types underlying *_t types. 1020 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1021 // This file is part of the GNU C Library. 1022 // 1023 // The GNU C Library is free software; you can redistribute it and/or 1024 // modify it under the terms of the GNU Lesser General Public 1025 // License as published by the Free Software Foundation; either 1026 // version 2.1 of the License, or (at your option) any later version. 1027 // 1028 // The GNU C Library is distributed in the hope that it will be useful, 1029 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1030 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1031 // Lesser General Public License for more details. 1032 // 1033 // You should have received a copy of the GNU Lesser General Public 1034 // License along with the GNU C Library; if not, see 1035 // <https://www.gnu.org/licenses/>. 1036 1037 // Never include this file directly; use <sys/types.h> instead. 1038 1039 type Int8_t = X__int8_t /* stdint-intn.h:24:18 */ 1040 type Int16_t = X__int16_t /* stdint-intn.h:25:19 */ 1041 type Int32_t = X__int32_t /* stdint-intn.h:26:19 */ 1042 type Int64_t = X__int64_t /* stdint-intn.h:27:19 */ 1043 1044 // These were defined by ISO C without the first `_'. 1045 type U_int8_t = X__uint8_t /* types.h:158:19 */ 1046 type U_int16_t = X__uint16_t /* types.h:159:20 */ 1047 type U_int32_t = X__uint32_t /* types.h:160:20 */ 1048 type U_int64_t = X__uint64_t /* types.h:161:20 */ 1049 1050 type Register_t = int32 /* types.h:164:13 */ 1051 1052 // It also defines `fd_set' and the FD_* macros for `select'. 1053 // `fd_set' type and related macros, and `select'/`pselect' declarations. 1054 // Copyright (C) 1996-2020 Free Software Foundation, Inc. 1055 // This file is part of the GNU C Library. 1056 // 1057 // The GNU C Library is free software; you can redistribute it and/or 1058 // modify it under the terms of the GNU Lesser General Public 1059 // License as published by the Free Software Foundation; either 1060 // version 2.1 of the License, or (at your option) any later version. 1061 // 1062 // The GNU C Library is distributed in the hope that it will be useful, 1063 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1064 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1065 // Lesser General Public License for more details. 1066 // 1067 // You should have received a copy of the GNU Lesser General Public 1068 // License along with the GNU C Library; if not, see 1069 // <https://www.gnu.org/licenses/>. 1070 1071 // POSIX 1003.1g: 6.2 Select from File Descriptor Sets <sys/select.h> 1072 1073 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 1074 // This file is part of the GNU C Library. 1075 // 1076 // The GNU C Library is free software; you can redistribute it and/or 1077 // modify it under the terms of the GNU Lesser General Public 1078 // License as published by the Free Software Foundation; either 1079 // version 2.1 of the License, or (at your option) any later version. 1080 // 1081 // The GNU C Library is distributed in the hope that it will be useful, 1082 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1083 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1084 // Lesser General Public License for more details. 1085 // 1086 // You should have received a copy of the GNU Lesser General Public 1087 // License along with the GNU C Library; if not, see 1088 // <https://www.gnu.org/licenses/>. 1089 1090 // Get definition of needed basic types. 1091 // bits/types.h -- definitions of __*_t types underlying *_t types. 1092 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1093 // This file is part of the GNU C Library. 1094 // 1095 // The GNU C Library is free software; you can redistribute it and/or 1096 // modify it under the terms of the GNU Lesser General Public 1097 // License as published by the Free Software Foundation; either 1098 // version 2.1 of the License, or (at your option) any later version. 1099 // 1100 // The GNU C Library is distributed in the hope that it will be useful, 1101 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1102 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1103 // Lesser General Public License for more details. 1104 // 1105 // You should have received a copy of the GNU Lesser General Public 1106 // License along with the GNU C Library; if not, see 1107 // <https://www.gnu.org/licenses/>. 1108 1109 // Never include this file directly; use <sys/types.h> instead. 1110 1111 // Get __FD_* definitions. 1112 // Copyright (C) 1997-2020 Free Software Foundation, Inc. 1113 // This file is part of the GNU C Library. 1114 // 1115 // The GNU C Library is free software; you can redistribute it and/or 1116 // modify it under the terms of the GNU Lesser General Public 1117 // License as published by the Free Software Foundation; either 1118 // version 2.1 of the License, or (at your option) any later version. 1119 // 1120 // The GNU C Library is distributed in the hope that it will be useful, 1121 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1122 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1123 // Lesser General Public License for more details. 1124 // 1125 // You should have received a copy of the GNU Lesser General Public 1126 // License along with the GNU C Library; if not, see 1127 // <https://www.gnu.org/licenses/>. 1128 1129 // Determine the wordsize from the preprocessor defines. 1130 1131 // Both x86-64 and x32 use the 64-bit system call interface. 1132 1133 // Get sigset_t. 1134 1135 type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */ 1136 1137 // A set of signals to be blocked, unblocked, or waited for. 1138 type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */ 1139 1140 // Get definition of timer specification structures. 1141 1142 // bits/types.h -- definitions of __*_t types underlying *_t types. 1143 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1144 // This file is part of the GNU C Library. 1145 // 1146 // The GNU C Library is free software; you can redistribute it and/or 1147 // modify it under the terms of the GNU Lesser General Public 1148 // License as published by the Free Software Foundation; either 1149 // version 2.1 of the License, or (at your option) any later version. 1150 // 1151 // The GNU C Library is distributed in the hope that it will be useful, 1152 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1153 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1154 // Lesser General Public License for more details. 1155 // 1156 // You should have received a copy of the GNU Lesser General Public 1157 // License along with the GNU C Library; if not, see 1158 // <https://www.gnu.org/licenses/>. 1159 1160 // Never include this file directly; use <sys/types.h> instead. 1161 1162 // A time value that is accurate to the nearest 1163 // 1164 // microsecond but also has a range of years. 1165 type Timeval = struct { 1166 Ftv_sec X__time_t 1167 Ftv_usec X__suseconds_t 1168 } /* struct_timeval.h:8:1 */ 1169 1170 // NB: Include guard matches what <linux/time.h> uses. 1171 1172 // bits/types.h -- definitions of __*_t types underlying *_t types. 1173 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1174 // This file is part of the GNU C Library. 1175 // 1176 // The GNU C Library is free software; you can redistribute it and/or 1177 // modify it under the terms of the GNU Lesser General Public 1178 // License as published by the Free Software Foundation; either 1179 // version 2.1 of the License, or (at your option) any later version. 1180 // 1181 // The GNU C Library is distributed in the hope that it will be useful, 1182 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1183 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1184 // Lesser General Public License for more details. 1185 // 1186 // You should have received a copy of the GNU Lesser General Public 1187 // License along with the GNU C Library; if not, see 1188 // <https://www.gnu.org/licenses/>. 1189 1190 // Never include this file directly; use <sys/types.h> instead. 1191 1192 // Endian macros for string.h functions 1193 // Copyright (C) 1992-2020 Free Software Foundation, Inc. 1194 // This file is part of the GNU C Library. 1195 // 1196 // The GNU C Library is free software; you can redistribute it and/or 1197 // modify it under the terms of the GNU Lesser General Public 1198 // License as published by the Free Software Foundation; either 1199 // version 2.1 of the License, or (at your option) any later version. 1200 // 1201 // The GNU C Library is distributed in the hope that it will be useful, 1202 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1203 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1204 // Lesser General Public License for more details. 1205 // 1206 // You should have received a copy of the GNU Lesser General Public 1207 // License along with the GNU C Library; if not, see 1208 // <http://www.gnu.org/licenses/>. 1209 1210 // POSIX.1b structure for a time value. This is like a `struct timeval' but 1211 // 1212 // has nanoseconds instead of microseconds. 1213 type Timespec = struct { 1214 Ftv_sec X__time_t 1215 Ftv_nsec X__syscall_slong_t 1216 } /* struct_timespec.h:10:1 */ 1217 1218 type Suseconds_t = X__suseconds_t /* select.h:43:23 */ 1219 1220 // The fd_set member is required to be an array of longs. 1221 type X__fd_mask = int64 /* select.h:49:18 */ 1222 1223 // Some versions of <linux/posix_types.h> define this macros. 1224 // It's easier to assume 8-bit bytes than to get CHAR_BIT. 1225 1226 // fd_set for select and pselect. 1227 type Fd_set = struct{ F__fds_bits [16]X__fd_mask } /* select.h:70:5 */ 1228 1229 // Maximum number of file descriptors in `fd_set'. 1230 1231 // Sometimes the fd_set member is assumed to have this type. 1232 type Fd_mask = X__fd_mask /* select.h:77:19 */ 1233 1234 // Define some inlines helping to catch common problems. 1235 1236 type Blksize_t = X__blksize_t /* types.h:185:21 */ 1237 1238 // Types from the Large File Support interface. 1239 type Blkcnt_t = X__blkcnt64_t /* types.h:205:22 */ // Type to count number of disk blocks. 1240 type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks. 1241 type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes. 1242 1243 // Now add the thread types. 1244 // Declaration of common pthread types for all architectures. 1245 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 1246 // This file is part of the GNU C Library. 1247 // 1248 // The GNU C Library is free software; you can redistribute it and/or 1249 // modify it under the terms of the GNU Lesser General Public 1250 // License as published by the Free Software Foundation; either 1251 // version 2.1 of the License, or (at your option) any later version. 1252 // 1253 // The GNU C Library is distributed in the hope that it will be useful, 1254 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1255 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1256 // Lesser General Public License for more details. 1257 // 1258 // You should have received a copy of the GNU Lesser General Public 1259 // License along with the GNU C Library; if not, see 1260 // <https://www.gnu.org/licenses/>. 1261 1262 // For internal mutex and condition variable definitions. 1263 // Common threading primitives definitions for both POSIX and C11. 1264 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 1265 // This file is part of the GNU C Library. 1266 // 1267 // The GNU C Library is free software; you can redistribute it and/or 1268 // modify it under the terms of the GNU Lesser General Public 1269 // License as published by the Free Software Foundation; either 1270 // version 2.1 of the License, or (at your option) any later version. 1271 // 1272 // The GNU C Library is distributed in the hope that it will be useful, 1273 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1274 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1275 // Lesser General Public License for more details. 1276 // 1277 // You should have received a copy of the GNU Lesser General Public 1278 // License along with the GNU C Library; if not, see 1279 // <https://www.gnu.org/licenses/>. 1280 1281 // Arch-specific definitions. Each architecture must define the following 1282 // macros to define the expected sizes of pthread data types: 1283 // 1284 // __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. 1285 // __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. 1286 // __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. 1287 // __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. 1288 // __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. 1289 // __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. 1290 // __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. 1291 // __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. 1292 // __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. 1293 // 1294 // The additional macro defines any constraint for the lock alignment 1295 // inside the thread structures: 1296 // 1297 // __LOCK_ALIGNMENT - for internal lock/futex usage. 1298 // 1299 // Same idea but for the once locking primitive: 1300 // 1301 // __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. 1302 1303 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1304 // This file is part of the GNU C Library. 1305 // 1306 // The GNU C Library is free software; you can redistribute it and/or 1307 // modify it under the terms of the GNU Lesser General Public 1308 // License as published by the Free Software Foundation; either 1309 // version 2.1 of the License, or (at your option) any later version. 1310 // 1311 // The GNU C Library is distributed in the hope that it will be useful, 1312 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1313 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1314 // Lesser General Public License for more details. 1315 // 1316 // You should have received a copy of the GNU Lesser General Public 1317 // License along with the GNU C Library; if not, see 1318 // <https://www.gnu.org/licenses/>. 1319 1320 // Determine the wordsize from the preprocessor defines. 1321 1322 // Both x86-64 and x32 use the 64-bit system call interface. 1323 1324 // Common definition of pthread_mutex_t. 1325 1326 type X__pthread_internal_list = struct { 1327 F__prev uintptr 1328 F__next uintptr 1329 } /* thread-shared-types.h:49:9 */ 1330 1331 // Type to count file system inodes. 1332 1333 // Now add the thread types. 1334 // Declaration of common pthread types for all architectures. 1335 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 1336 // This file is part of the GNU C Library. 1337 // 1338 // The GNU C Library is free software; you can redistribute it and/or 1339 // modify it under the terms of the GNU Lesser General Public 1340 // License as published by the Free Software Foundation; either 1341 // version 2.1 of the License, or (at your option) any later version. 1342 // 1343 // The GNU C Library is distributed in the hope that it will be useful, 1344 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1345 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1346 // Lesser General Public License for more details. 1347 // 1348 // You should have received a copy of the GNU Lesser General Public 1349 // License along with the GNU C Library; if not, see 1350 // <https://www.gnu.org/licenses/>. 1351 1352 // For internal mutex and condition variable definitions. 1353 // Common threading primitives definitions for both POSIX and C11. 1354 // Copyright (C) 2017-2020 Free Software Foundation, Inc. 1355 // This file is part of the GNU C Library. 1356 // 1357 // The GNU C Library is free software; you can redistribute it and/or 1358 // modify it under the terms of the GNU Lesser General Public 1359 // License as published by the Free Software Foundation; either 1360 // version 2.1 of the License, or (at your option) any later version. 1361 // 1362 // The GNU C Library is distributed in the hope that it will be useful, 1363 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1364 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1365 // Lesser General Public License for more details. 1366 // 1367 // You should have received a copy of the GNU Lesser General Public 1368 // License along with the GNU C Library; if not, see 1369 // <https://www.gnu.org/licenses/>. 1370 1371 // Arch-specific definitions. Each architecture must define the following 1372 // macros to define the expected sizes of pthread data types: 1373 // 1374 // __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. 1375 // __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. 1376 // __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. 1377 // __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. 1378 // __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. 1379 // __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. 1380 // __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. 1381 // __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. 1382 // __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. 1383 // 1384 // The additional macro defines any constraint for the lock alignment 1385 // inside the thread structures: 1386 // 1387 // __LOCK_ALIGNMENT - for internal lock/futex usage. 1388 // 1389 // Same idea but for the once locking primitive: 1390 // 1391 // __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. 1392 1393 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1394 // This file is part of the GNU C Library. 1395 // 1396 // The GNU C Library is free software; you can redistribute it and/or 1397 // modify it under the terms of the GNU Lesser General Public 1398 // License as published by the Free Software Foundation; either 1399 // version 2.1 of the License, or (at your option) any later version. 1400 // 1401 // The GNU C Library is distributed in the hope that it will be useful, 1402 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1403 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1404 // Lesser General Public License for more details. 1405 // 1406 // You should have received a copy of the GNU Lesser General Public 1407 // License along with the GNU C Library; if not, see 1408 // <https://www.gnu.org/licenses/>. 1409 1410 // Determine the wordsize from the preprocessor defines. 1411 1412 // Both x86-64 and x32 use the 64-bit system call interface. 1413 1414 // Common definition of pthread_mutex_t. 1415 1416 type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */ 1417 1418 type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */ 1419 1420 type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */ 1421 1422 // Arch-specific mutex definitions. A generic implementation is provided 1423 // by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture 1424 // can override it by defining: 1425 // 1426 // 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t 1427 // definition). It should contains at least the internal members 1428 // defined in the generic version. 1429 // 1430 // 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with 1431 // atomic operations. 1432 // 1433 // 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. 1434 // It should initialize the mutex internal flag. 1435 1436 // x86 internal mutex struct definitions. 1437 // Copyright (C) 2019-2020 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 // <http://www.gnu.org/licenses/>. 1453 1454 type X__pthread_mutex_s = struct { 1455 F__lock int32 1456 F__count uint32 1457 F__owner int32 1458 F__nusers uint32 1459 F__kind int32 1460 F__spins int16 1461 F__elision int16 1462 F__list X__pthread_list_t 1463 } /* struct_mutex.h:22:1 */ 1464 1465 // Arch-sepecific read-write lock definitions. A generic implementation is 1466 // provided by struct_rwlock.h. If required, an architecture can override it 1467 // by defining: 1468 // 1469 // 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). 1470 // It should contain at least the internal members defined in the 1471 // generic version. 1472 // 1473 // 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. 1474 // It should initialize the rwlock internal type. 1475 1476 // x86 internal rwlock struct definitions. 1477 // Copyright (C) 2019-2020 Free Software Foundation, Inc. 1478 // 1479 // This file is part of the GNU C Library. 1480 // 1481 // The GNU C Library is free software; you can redistribute it and/or 1482 // modify it under the terms of the GNU Lesser General Public 1483 // License as published by the Free Software Foundation; either 1484 // version 2.1 of the License, or (at your option) any later version. 1485 // 1486 // The GNU C Library is distributed in the hope that it will be useful, 1487 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1488 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1489 // Lesser General Public License for more details. 1490 // 1491 // You should have received a copy of the GNU Lesser General Public 1492 // License along with the GNU C Library; if not, see 1493 // <http://www.gnu.org/licenses/>. 1494 1495 type X__pthread_rwlock_arch_t = struct { 1496 F__readers uint32 1497 F__writers uint32 1498 F__wrphase_futex uint32 1499 F__writers_futex uint32 1500 F__pad3 uint32 1501 F__pad4 uint32 1502 F__cur_writer int32 1503 F__shared int32 1504 F__rwelision int8 1505 F__pad1 [7]uint8 1506 F__pad2 uint64 1507 F__flags uint32 1508 F__ccgo_pad1 [4]byte 1509 } /* struct_rwlock.h:23:1 */ 1510 1511 // Common definition of pthread_cond_t. 1512 1513 type X__pthread_cond_s = struct { 1514 F__0 struct{ F__wseq uint64 } 1515 F__8 struct{ F__g1_start uint64 } 1516 F__g_refs [2]uint32 1517 F__g_size [2]uint32 1518 F__g1_orig_size uint32 1519 F__wrefs uint32 1520 F__g_signals [2]uint32 1521 } /* thread-shared-types.h:92:1 */ 1522 1523 // Thread identifiers. The structure of the attribute type is not 1524 // 1525 // exposed on purpose. 1526 type Pthread_t = uint64 /* pthreadtypes.h:27:27 */ 1527 1528 // Data structures for mutex handling. The structure of the attribute 1529 // 1530 // type is not exposed on purpose. 1531 type Pthread_mutexattr_t = struct { 1532 F__ccgo_pad1 [0]uint32 1533 F__size [4]int8 1534 } /* pthreadtypes.h:36:3 */ 1535 1536 // Data structure for condition variable handling. The structure of 1537 // 1538 // the attribute type is not exposed on purpose. 1539 type Pthread_condattr_t = struct { 1540 F__ccgo_pad1 [0]uint32 1541 F__size [4]int8 1542 } /* pthreadtypes.h:45:3 */ 1543 1544 // Keys for thread-specific data 1545 type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ 1546 1547 // Once-only execution 1548 type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ 1549 1550 type Pthread_attr_t1 = struct { 1551 F__ccgo_pad1 [0]uint64 1552 F__size [56]int8 1553 } /* pthreadtypes.h:56:1 */ 1554 1555 type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */ 1556 1557 type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ 1558 1559 type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ 1560 1561 // Data structure for reader-writer lock variable handling. The 1562 // 1563 // structure of the attribute type is deliberately not exposed. 1564 type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */ 1565 1566 type Pthread_rwlockattr_t = struct { 1567 F__ccgo_pad1 [0]uint64 1568 F__size [8]int8 1569 } /* pthreadtypes.h:97:3 */ 1570 1571 // POSIX spinlock data type. 1572 type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ 1573 1574 // POSIX barriers data type. The structure of the type is 1575 // 1576 // deliberately not exposed. 1577 type Pthread_barrier_t = struct { 1578 F__ccgo_pad1 [0]uint64 1579 F__size [32]int8 1580 } /* pthreadtypes.h:112:3 */ 1581 1582 type Pthread_barrierattr_t = struct { 1583 F__ccgo_pad1 [0]uint32 1584 F__size [4]int8 1585 } /* pthreadtypes.h:118:3 */ 1586 1587 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 1588 // This file is part of the GNU C Library. 1589 // 1590 // The GNU C Library is free software; you can redistribute it and/or 1591 // modify it under the terms of the GNU Lesser General Public 1592 // License as published by the Free Software Foundation; either 1593 // version 2.1 of the License, or (at your option) any later version. 1594 // 1595 // The GNU C Library is distributed in the hope that it will be useful, 1596 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1597 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1598 // Lesser General Public License for more details. 1599 // 1600 // You should have received a copy of the GNU Lesser General Public 1601 // License along with the GNU C Library; if not, see 1602 // <https://www.gnu.org/licenses/>. 1603 1604 // POSIX Standard: 5.6 File Characteristics <sys/stat.h> 1605 1606 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 1607 // This file is part of the GNU C Library. 1608 // 1609 // The GNU C Library is free software; you can redistribute it and/or 1610 // modify it under the terms of the GNU Lesser General Public 1611 // License as published by the Free Software Foundation; either 1612 // version 2.1 of the License, or (at your option) any later version. 1613 // 1614 // The GNU C Library is distributed in the hope that it will be useful, 1615 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1616 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1617 // Lesser General Public License for more details. 1618 // 1619 // You should have received a copy of the GNU Lesser General Public 1620 // License along with the GNU C Library; if not, see 1621 // <https://www.gnu.org/licenses/>. 1622 1623 // bits/types.h -- definitions of __*_t types underlying *_t types. 1624 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 1625 // This file is part of the GNU C Library. 1626 // 1627 // The GNU C Library is free software; you can redistribute it and/or 1628 // modify it under the terms of the GNU Lesser General Public 1629 // License as published by the Free Software Foundation; either 1630 // version 2.1 of the License, or (at your option) any later version. 1631 // 1632 // The GNU C Library is distributed in the hope that it will be useful, 1633 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1634 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1635 // Lesser General Public License for more details. 1636 // 1637 // You should have received a copy of the GNU Lesser General Public 1638 // License along with the GNU C Library; if not, see 1639 // <https://www.gnu.org/licenses/>. 1640 1641 // Never include this file directly; use <sys/types.h> instead. 1642 1643 // NB: Include guard matches what <linux/time.h> uses. 1644 1645 // The Single Unix specification says that some more types are 1646 // available here. 1647 1648 // Copyright (C) 1999-2020 Free Software Foundation, Inc. 1649 // This file is part of the GNU C Library. 1650 // 1651 // The GNU C Library is free software; you can redistribute it and/or 1652 // modify it under the terms of the GNU Lesser General Public 1653 // License as published by the Free Software Foundation; either 1654 // version 2.1 of the License, or (at your option) any later version. 1655 // 1656 // The GNU C Library is distributed in the hope that it will be useful, 1657 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1658 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1659 // Lesser General Public License for more details. 1660 // 1661 // You should have received a copy of the GNU Lesser General Public 1662 // License along with the GNU C Library; if not, see 1663 // <https://www.gnu.org/licenses/>. 1664 1665 // Versions of the `struct stat' data structure. 1666 1667 // x86-64 versions of the `xmknod' interface. 1668 1669 type Stat = struct { 1670 Fst_dev X__dev_t 1671 Fst_ino X__ino_t 1672 Fst_nlink X__nlink_t 1673 Fst_mode X__mode_t 1674 Fst_uid X__uid_t 1675 Fst_gid X__gid_t 1676 F__pad0 int32 1677 Fst_rdev X__dev_t 1678 Fst_size X__off_t 1679 Fst_blksize X__blksize_t 1680 Fst_blocks X__blkcnt_t 1681 Fst_atim struct { 1682 Ftv_sec X__time_t 1683 Ftv_nsec X__syscall_slong_t 1684 } 1685 Fst_mtim struct { 1686 Ftv_sec X__time_t 1687 Ftv_nsec X__syscall_slong_t 1688 } 1689 Fst_ctim struct { 1690 Ftv_sec X__time_t 1691 Ftv_nsec X__syscall_slong_t 1692 } 1693 F__glibc_reserved [3]X__syscall_slong_t 1694 } /* stat.h:46:1 */ 1695 1696 // File tree traversal functions declarations. 1697 // Copyright (C) 1994-2020 Free Software Foundation, Inc. 1698 // This file is part of the GNU C Library. 1699 // 1700 // The GNU C Library is free software; you can redistribute it and/or 1701 // modify it under the terms of the GNU Lesser General Public 1702 // License as published by the Free Software Foundation; either 1703 // version 2.1 of the License, or (at your option) any later version. 1704 // 1705 // The GNU C Library is distributed in the hope that it will be useful, 1706 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1707 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1708 // Lesser General Public License for more details. 1709 // 1710 // You should have received a copy of the GNU Lesser General Public 1711 // License along with the GNU C Library; if not, see 1712 // <https://www.gnu.org/licenses/>. 1713 1714 // Copyright (c) 1989, 1993 1715 // The Regents of the University of California. All rights reserved. 1716 // 1717 // Redistribution and use in source and binary forms, with or without 1718 // modification, are permitted provided that the following conditions 1719 // are met: 1720 // 1. Redistributions of source code must retain the above copyright 1721 // notice, this list of conditions and the following disclaimer. 1722 // 2. Redistributions in binary form must reproduce the above copyright 1723 // notice, this list of conditions and the following disclaimer in the 1724 // documentation and/or other materials provided with the distribution. 1725 // 4. Neither the name of the University nor the names of its contributors 1726 // may be used to endorse or promote products derived from this software 1727 // without specific prior written permission. 1728 // 1729 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1730 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1731 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1732 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1733 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1734 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1735 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1736 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1737 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1738 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1739 // SUCH DAMAGE. 1740 // 1741 // @(#)fts.h 8.3 (Berkeley) 8/14/94 1742 1743 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 1744 // This file is part of the GNU C Library. 1745 // 1746 // The GNU C Library is free software; you can redistribute it and/or 1747 // modify it under the terms of the GNU Lesser General Public 1748 // License as published by the Free Software Foundation; either 1749 // version 2.1 of the License, or (at your option) any later version. 1750 // 1751 // The GNU C Library is distributed in the hope that it will be useful, 1752 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1753 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1754 // Lesser General Public License for more details. 1755 // 1756 // You should have received a copy of the GNU Lesser General Public 1757 // License along with the GNU C Library; if not, see 1758 // <https://www.gnu.org/licenses/>. 1759 1760 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 1761 // This file is part of the GNU C Library. 1762 // 1763 // The GNU C Library is free software; you can redistribute it and/or 1764 // modify it under the terms of the GNU Lesser General Public 1765 // License as published by the Free Software Foundation; either 1766 // version 2.1 of the License, or (at your option) any later version. 1767 // 1768 // The GNU C Library is distributed in the hope that it will be useful, 1769 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1770 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1771 // Lesser General Public License for more details. 1772 // 1773 // You should have received a copy of the GNU Lesser General Public 1774 // License along with the GNU C Library; if not, see 1775 // <https://www.gnu.org/licenses/>. 1776 1777 // POSIX Standard: 2.6 Primitive System Data Types <sys/types.h> 1778 1779 type X_ftsent = struct { 1780 Ffts_cycle uintptr 1781 Ffts_parent uintptr 1782 Ffts_link uintptr 1783 Ffts_number int64 1784 Ffts_pointer uintptr 1785 Ffts_accpath uintptr 1786 Ffts_path uintptr 1787 Ffts_errno int32 1788 Ffts_symfd int32 1789 Ffts_pathlen uint16 1790 Ffts_namelen uint16 1791 F__ccgo_pad1 [4]byte 1792 Ffts_ino Ino_t 1793 Ffts_dev Dev_t 1794 Ffts_nlink Nlink_t 1795 Ffts_level int16 1796 Ffts_info uint16 1797 Ffts_flags uint16 1798 Ffts_instr uint16 1799 Ffts_statp uintptr 1800 Ffts_name [1]int8 1801 F__ccgo_pad2 [7]byte 1802 } /* fts.h:58:2 */ 1803 1804 // File tree traversal functions declarations. 1805 // Copyright (C) 1994-2020 Free Software Foundation, Inc. 1806 // This file is part of the GNU C Library. 1807 // 1808 // The GNU C Library is free software; you can redistribute it and/or 1809 // modify it under the terms of the GNU Lesser General Public 1810 // License as published by the Free Software Foundation; either 1811 // version 2.1 of the License, or (at your option) any later version. 1812 // 1813 // The GNU C Library is distributed in the hope that it will be useful, 1814 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1815 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1816 // Lesser General Public License for more details. 1817 // 1818 // You should have received a copy of the GNU Lesser General Public 1819 // License along with the GNU C Library; if not, see 1820 // <https://www.gnu.org/licenses/>. 1821 1822 // Copyright (c) 1989, 1993 1823 // The Regents of the University of California. All rights reserved. 1824 // 1825 // Redistribution and use in source and binary forms, with or without 1826 // modification, are permitted provided that the following conditions 1827 // are met: 1828 // 1. Redistributions of source code must retain the above copyright 1829 // notice, this list of conditions and the following disclaimer. 1830 // 2. Redistributions in binary form must reproduce the above copyright 1831 // notice, this list of conditions and the following disclaimer in the 1832 // documentation and/or other materials provided with the distribution. 1833 // 4. Neither the name of the University nor the names of its contributors 1834 // may be used to endorse or promote products derived from this software 1835 // without specific prior written permission. 1836 // 1837 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1838 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1839 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1840 // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1841 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1842 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 1843 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1844 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1845 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1846 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1847 // SUCH DAMAGE. 1848 // 1849 // @(#)fts.h 8.3 (Berkeley) 8/14/94 1850 1851 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 1852 // This file is part of the GNU C Library. 1853 // 1854 // The GNU C Library is free software; you can redistribute it and/or 1855 // modify it under the terms of the GNU Lesser General Public 1856 // License as published by the Free Software Foundation; either 1857 // version 2.1 of the License, or (at your option) any later version. 1858 // 1859 // The GNU C Library is distributed in the hope that it will be useful, 1860 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1861 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1862 // Lesser General Public License for more details. 1863 // 1864 // You should have received a copy of the GNU Lesser General Public 1865 // License along with the GNU C Library; if not, see 1866 // <https://www.gnu.org/licenses/>. 1867 1868 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 1869 // This file is part of the GNU C Library. 1870 // 1871 // The GNU C Library is free software; you can redistribute it and/or 1872 // modify it under the terms of the GNU Lesser General Public 1873 // License as published by the Free Software Foundation; either 1874 // version 2.1 of the License, or (at your option) any later version. 1875 // 1876 // The GNU C Library is distributed in the hope that it will be useful, 1877 // but WITHOUT ANY WARRANTY; without even the implied warranty of 1878 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1879 // Lesser General Public License for more details. 1880 // 1881 // You should have received a copy of the GNU Lesser General Public 1882 // License along with the GNU C Library; if not, see 1883 // <https://www.gnu.org/licenses/>. 1884 1885 // POSIX Standard: 2.6 Primitive System Data Types <sys/types.h> 1886 1887 type FTS = struct { 1888 Ffts_cur uintptr 1889 Ffts_child uintptr 1890 Ffts_array uintptr 1891 Ffts_dev Dev_t 1892 Ffts_path uintptr 1893 Ffts_rfd int32 1894 Ffts_pathlen int32 1895 Ffts_nitems int32 1896 F__ccgo_pad1 [4]byte 1897 Ffts_compar uintptr 1898 Ffts_options int32 1899 F__ccgo_pad2 [4]byte 1900 } /* fts.h:81:3 */ 1901 1902 type FTSENT = X_ftsent /* fts.h:147:3 */ 1903 1904 var _ int8 /* gen.c:5:13: */