github.com/afumu/libc@v0.0.6/dirent/dirent_linux_amd64.go (about) 1 // Code generated by 'ccgo dirent/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 dirent/dirent_linux_amd64.go -pkgname dirent', DO NOT EDIT. 2 3 package dirent 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 AIO_PRIO_DELTA_MAX = 20 // local_lim.h:78:1: 19 DELAYTIMER_MAX = 2147483647 // local_lim.h:84:1: 20 HOST_NAME_MAX = 64 // local_lim.h:93:1: 21 LOGIN_NAME_MAX = 256 // local_lim.h:90:1: 22 MAXNAMLEN = 255 // dirent.h:237:1: 23 MAX_CANON = 255 // limits.h:10:1: 24 MAX_INPUT = 255 // limits.h:11:1: 25 MQ_PRIO_MAX = 32768 // local_lim.h:96:1: 26 NAME_MAX = 255 // limits.h:12:1: 27 NGROUPS_MAX = 65536 // limits.h:7:1: 28 PATH_MAX = 4096 // limits.h:13:1: 29 PIPE_BUF = 4096 // limits.h:14:1: 30 PTHREAD_DESTRUCTOR_ITERATIONS = 4 // local_lim.h:69:1: 31 PTHREAD_KEYS_MAX = 1024 // local_lim.h:64:1: 32 PTHREAD_STACK_MIN = 16384 // local_lim.h:81:1: 33 RTSIG_MAX = 32 // limits.h:19:1: 34 SEM_VALUE_MAX = 2147483647 // local_lim.h:99:1: 35 TTY_NAME_MAX = 32 // local_lim.h:87:1: 36 XATTR_LIST_MAX = 65536 // limits.h:17:1: 37 XATTR_NAME_MAX = 255 // limits.h:15:1: 38 XATTR_SIZE_MAX = 65536 // limits.h:16:1: 39 X_ATFILE_SOURCE = 1 // features.h:342:1: 40 X_BITS_POSIX1_LIM_H = 1 // posix1_lim.h:25:1: 41 X_BITS_TIME64_H = 1 // time64.h:24:1: 42 X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1: 43 X_BITS_TYPES_H = 1 // types.h:24:1: 44 X_BSD_SIZE_T_ = 0 // stddef.h:189:1: 45 X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1: 46 X_DEFAULT_SOURCE = 1 // features.h:227:1: 47 X_DIRENT_H = 1 // dirent.h:23:1: 48 X_DIRENT_HAVE_D_OFF = 0 // dirent.h:51:1: 49 X_DIRENT_HAVE_D_RECLEN = 0 // dirent.h:50:1: 50 X_DIRENT_HAVE_D_TYPE = 0 // dirent.h:52:1: 51 X_DIRENT_MATCHES_DIRENT64 = 1 // dirent.h:56:1: 52 X_FEATURES_H = 1 // features.h:19:1: 53 X_FILE_OFFSET_BITS = 64 // <builtin>:25:1: 54 X_GCC_SIZE_T = 0 // stddef.h:195:1: 55 X_LINUX_LIMITS_H = 0 // limits.h:3:1: 56 X_LP64 = 1 // <predefined>:284:1: 57 X_POSIX_AIO_LISTIO_MAX = 2 // posix1_lim.h:32:1: 58 X_POSIX_AIO_MAX = 1 // posix1_lim.h:35:1: 59 X_POSIX_ARG_MAX = 4096 // posix1_lim.h:38:1: 60 X_POSIX_CHILD_MAX = 25 // posix1_lim.h:42:1: 61 X_POSIX_CLOCKRES_MIN = 20000000 // posix1_lim.h:157:1: 62 X_POSIX_C_SOURCE = 200809 // features.h:281:1: 63 X_POSIX_DELAYTIMER_MAX = 32 // posix1_lim.h:48:1: 64 X_POSIX_HOST_NAME_MAX = 255 // posix1_lim.h:52:1: 65 X_POSIX_LINK_MAX = 8 // posix1_lim.h:55:1: 66 X_POSIX_LOGIN_NAME_MAX = 9 // posix1_lim.h:58:1: 67 X_POSIX_MAX_CANON = 255 // posix1_lim.h:61:1: 68 X_POSIX_MAX_INPUT = 255 // posix1_lim.h:65:1: 69 X_POSIX_MQ_OPEN_MAX = 8 // posix1_lim.h:68:1: 70 X_POSIX_MQ_PRIO_MAX = 32 // posix1_lim.h:71:1: 71 X_POSIX_NAME_MAX = 14 // posix1_lim.h:74:1: 72 X_POSIX_NGROUPS_MAX = 8 // posix1_lim.h:78:1: 73 X_POSIX_OPEN_MAX = 20 // posix1_lim.h:85:1: 74 X_POSIX_PATH_MAX = 256 // posix1_lim.h:97:1: 75 X_POSIX_PIPE_BUF = 512 // posix1_lim.h:100:1: 76 X_POSIX_RE_DUP_MAX = 255 // posix1_lim.h:104:1: 77 X_POSIX_RTSIG_MAX = 8 // posix1_lim.h:107:1: 78 X_POSIX_SEM_NSEMS_MAX = 256 // posix1_lim.h:110:1: 79 X_POSIX_SEM_VALUE_MAX = 32767 // posix1_lim.h:113:1: 80 X_POSIX_SIGQUEUE_MAX = 32 // posix1_lim.h:116:1: 81 X_POSIX_SOURCE = 1 // features.h:279:1: 82 X_POSIX_SSIZE_MAX = 32767 // posix1_lim.h:119:1: 83 X_POSIX_STREAM_MAX = 8 // posix1_lim.h:122:1: 84 X_POSIX_SYMLINK_MAX = 255 // posix1_lim.h:125:1: 85 X_POSIX_SYMLOOP_MAX = 8 // posix1_lim.h:129:1: 86 X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 // local_lim.h:67:1: 87 X_POSIX_THREAD_KEYS_MAX = 128 // local_lim.h:62:1: 88 X_POSIX_THREAD_THREADS_MAX = 64 // local_lim.h:72:1: 89 X_POSIX_TIMER_MAX = 32 // posix1_lim.h:132:1: 90 X_POSIX_TTY_NAME_MAX = 9 // posix1_lim.h:135:1: 91 X_POSIX_TZNAME_MAX = 6 // posix1_lim.h:139:1: 92 X_SIZET_ = 0 // stddef.h:196:1: 93 X_SIZE_T = 0 // stddef.h:183:1: 94 X_SIZE_T_ = 0 // stddef.h:188:1: 95 X_SIZE_T_DECLARED = 0 // stddef.h:193:1: 96 X_SIZE_T_DEFINED = 0 // stddef.h:191:1: 97 X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1: 98 X_STDC_PREDEF_H = 1 // <predefined>:162:1: 99 X_SYS_CDEFS_H = 1 // cdefs.h:19:1: 100 X_SYS_SIZE_T_H = 0 // stddef.h:184:1: 101 X_T_SIZE = 0 // stddef.h:186:1: 102 X_T_SIZE_ = 0 // stddef.h:185:1: 103 Linux = 1 // <predefined>:231:1: 104 Unix = 1 // <predefined>:177:1: 105 ) 106 107 // Inform libc code that these two types are effectively identical. 108 109 // These macros extract size information from a `struct dirent *'. 110 // They may evaluate their argument multiple times, so it must not 111 // have side effects. Each of these may involve a relatively costly 112 // call to `strlen' on some systems, so these values should be cached. 113 // 114 // _D_EXACT_NAMLEN (DP) returns the length of DP->d_name, not including 115 // its terminating null character. 116 // 117 // _D_ALLOC_NAMLEN (DP) returns a size at least (_D_EXACT_NAMLEN (DP) + 1); 118 // that is, the allocation size needed to hold the DP->d_name string. 119 // Use this macro when you don't need the exact length, just an upper bound. 120 // This macro is less likely to require calling `strlen' than _D_EXACT_NAMLEN. 121 // 122 123 // File types for `d_type'. 124 const ( /* dirent.h:97:1: */ 125 DT_UNKNOWN = 0 126 DT_FIFO = 1 127 DT_CHR = 2 128 DT_DIR = 4 129 DT_BLK = 6 130 DT_REG = 8 131 DT_LNK = 10 132 DT_SOCK = 12 133 DT_WHT = 14 134 ) 135 136 type Ptrdiff_t = int64 /* <builtin>:3:26 */ 137 138 type Size_t = uint64 /* <builtin>:9:23 */ 139 140 type Wchar_t = int32 /* <builtin>:15:24 */ 141 142 type X__int128_t = struct { 143 Flo int64 144 Fhi int64 145 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128 146 type X__uint128_t = struct { 147 Flo uint64 148 Fhi uint64 149 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128 150 151 type X__builtin_va_list = uintptr /* <builtin>:46:14 */ 152 type X__float128 = float64 /* <builtin>:47:21 */ 153 154 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 155 // This file is part of the GNU C Library. 156 // 157 // The GNU C Library is free software; you can redistribute it and/or 158 // modify it under the terms of the GNU Lesser General Public 159 // License as published by the Free Software Foundation; either 160 // version 2.1 of the License, or (at your option) any later version. 161 // 162 // The GNU C Library is distributed in the hope that it will be useful, 163 // but WITHOUT ANY WARRANTY; without even the implied warranty of 164 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 165 // Lesser General Public License for more details. 166 // 167 // You should have received a copy of the GNU Lesser General Public 168 // License along with the GNU C Library; if not, see 169 // <https://www.gnu.org/licenses/>. 170 171 // POSIX Standard: 5.1.2 Directory Operations <dirent.h> 172 173 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 174 // This file is part of the GNU C Library. 175 // 176 // The GNU C Library is free software; you can redistribute it and/or 177 // modify it under the terms of the GNU Lesser General Public 178 // License as published by the Free Software Foundation; either 179 // version 2.1 of the License, or (at your option) any later version. 180 // 181 // The GNU C Library is distributed in the hope that it will be useful, 182 // but WITHOUT ANY WARRANTY; without even the implied warranty of 183 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 184 // Lesser General Public License for more details. 185 // 186 // You should have received a copy of the GNU Lesser General Public 187 // License along with the GNU C Library; if not, see 188 // <https://www.gnu.org/licenses/>. 189 190 // These are defined by the user (or the compiler) 191 // to specify the desired environment: 192 // 193 // __STRICT_ANSI__ ISO Standard C. 194 // _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. 195 // _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. 196 // _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. 197 // __STDC_WANT_LIB_EXT2__ 198 // Extensions to ISO C99 from TR 27431-2:2010. 199 // __STDC_WANT_IEC_60559_BFP_EXT__ 200 // Extensions to ISO C11 from TS 18661-1:2014. 201 // __STDC_WANT_IEC_60559_FUNCS_EXT__ 202 // Extensions to ISO C11 from TS 18661-4:2015. 203 // __STDC_WANT_IEC_60559_TYPES_EXT__ 204 // Extensions to ISO C11 from TS 18661-3:2015. 205 // 206 // _POSIX_SOURCE IEEE Std 1003.1. 207 // _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; 208 // if >=199309L, add IEEE Std 1003.1b-1993; 209 // if >=199506L, add IEEE Std 1003.1c-1995; 210 // if >=200112L, all of IEEE 1003.1-2004 211 // if >=200809L, all of IEEE 1003.1-2008 212 // _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if 213 // Single Unix conformance is wanted, to 600 for the 214 // sixth revision, to 700 for the seventh revision. 215 // _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. 216 // _LARGEFILE_SOURCE Some more functions for correct standard I/O. 217 // _LARGEFILE64_SOURCE Additional functionality from LFS for large files. 218 // _FILE_OFFSET_BITS=N Select default filesystem interface. 219 // _ATFILE_SOURCE Additional *at interfaces. 220 // _GNU_SOURCE All of the above, plus GNU extensions. 221 // _DEFAULT_SOURCE The default set of features (taking precedence over 222 // __STRICT_ANSI__). 223 // 224 // _FORTIFY_SOURCE Add security hardening to many library functions. 225 // Set to 1 or 2; 2 performs stricter checks than 1. 226 // 227 // _REENTRANT, _THREAD_SAFE 228 // Obsolete; equivalent to _POSIX_C_SOURCE=199506L. 229 // 230 // The `-ansi' switch to the GNU C compiler, and standards conformance 231 // options such as `-std=c99', define __STRICT_ANSI__. If none of 232 // these are defined, or if _DEFAULT_SOURCE is defined, the default is 233 // to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to 234 // 200809L, as well as enabling miscellaneous functions from BSD and 235 // SVID. If more than one of these are defined, they accumulate. For 236 // example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together 237 // give you ISO C, 1003.1, and 1003.2, but nothing else. 238 // 239 // These are defined by this file and are used by the 240 // header files to decide what to declare or define: 241 // 242 // __GLIBC_USE (F) Define things from feature set F. This is defined 243 // to 1 or 0; the subsequent macros are either defined 244 // or undefined, and those tests should be moved to 245 // __GLIBC_USE. 246 // __USE_ISOC11 Define ISO C11 things. 247 // __USE_ISOC99 Define ISO C99 things. 248 // __USE_ISOC95 Define ISO C90 AMD1 (C95) things. 249 // __USE_ISOCXX11 Define ISO C++11 things. 250 // __USE_POSIX Define IEEE Std 1003.1 things. 251 // __USE_POSIX2 Define IEEE Std 1003.2 things. 252 // __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. 253 // __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. 254 // __USE_XOPEN Define XPG things. 255 // __USE_XOPEN_EXTENDED Define X/Open Unix things. 256 // __USE_UNIX98 Define Single Unix V2 things. 257 // __USE_XOPEN2K Define XPG6 things. 258 // __USE_XOPEN2KXSI Define XPG6 XSI things. 259 // __USE_XOPEN2K8 Define XPG7 things. 260 // __USE_XOPEN2K8XSI Define XPG7 XSI things. 261 // __USE_LARGEFILE Define correct standard I/O things. 262 // __USE_LARGEFILE64 Define LFS things with separate names. 263 // __USE_FILE_OFFSET64 Define 64bit interface as default. 264 // __USE_MISC Define things from 4.3BSD or System V Unix. 265 // __USE_ATFILE Define *at interfaces and AT_* constants for them. 266 // __USE_GNU Define GNU extensions. 267 // __USE_FORTIFY_LEVEL Additional security measures used, according to level. 268 // 269 // The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are 270 // defined by this file unconditionally. `__GNU_LIBRARY__' is provided 271 // only for compatibility. All new code should use the other symbols 272 // to test for features. 273 // 274 // All macros listed above as possibly being defined by this file are 275 // explicitly undefined if they are not explicitly defined. 276 // Feature-test macros that are not defined by the user or compiler 277 // but are implied by the other feature-test macros defined (or by the 278 // lack of any definitions) are defined by the file. 279 // 280 // ISO C feature test macros depend on the definition of the macro 281 // when an affected header is included, not when the first system 282 // header is included, and so they are handled in 283 // <bits/libc-header-start.h>, which does not have a multiple include 284 // guard. Feature test macros that can be handled from the first 285 // system header included are handled here. 286 287 // Undefine everything, so we get a clean slate. 288 289 // Suppress kernel-name space pollution unless user expressedly asks 290 // for it. 291 292 // Convenience macro to test the version of gcc. 293 // Use like this: 294 // #if __GNUC_PREREQ (2,8) 295 // ... code requiring gcc 2.8 or later ... 296 // #endif 297 // Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was 298 // added in 2.0. 299 300 // Similarly for clang. Features added to GCC after version 4.2 may 301 // or may not also be available in clang, and clang's definitions of 302 // __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such 303 // features can be queried via __has_extension/__has_feature. 304 305 // Whether to use feature set F. 306 307 // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for 308 // _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not 309 // issue a warning; the expectation is that the source is being 310 // transitioned to use the new macro. 311 312 // If _GNU_SOURCE was defined by the user, turn on all the other features. 313 314 // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, 315 // define _DEFAULT_SOURCE. 316 317 // This is to enable the ISO C2X extension. 318 319 // This is to enable the ISO C11 extension. 320 321 // This is to enable the ISO C99 extension. 322 323 // This is to enable the ISO C90 Amendment 1:1995 extension. 324 325 // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE 326 // is defined, use POSIX.1-2008 (or another version depending on 327 // _XOPEN_SOURCE). 328 329 // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be 330 // defined in all multithreaded code. GNU libc has not required this 331 // for many years. We now treat them as compatibility synonyms for 332 // _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with 333 // comprehensive support for multithreaded code. Using them never 334 // lowers the selected level of POSIX conformance, only raises it. 335 336 // The function 'gets' existed in C89, but is impossible to use 337 // safely. It has been removed from ISO C11 and ISO C++14. Note: for 338 // compatibility with various implementations of <cstdio>, this test 339 // must consider only the value of __cplusplus when compiling C++. 340 341 // GNU formerly extended the scanf functions with modified format 342 // specifiers %as, %aS, and %a[...] that allocate a buffer for the 343 // input using malloc. This extension conflicts with ISO C99, which 344 // defines %a as a standalone format specifier that reads a floating- 345 // point number; moreover, POSIX.1-2008 provides the same feature 346 // using the modifier letter 'm' instead (%ms, %mS, %m[...]). 347 // 348 // We now follow C99 unless GNU extensions are active and the compiler 349 // is specifically in C89 or C++98 mode (strict or not). For 350 // instance, with GCC, -std=gnu11 will have C99-compliant scanf with 351 // or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the 352 // old extension. 353 354 // Get definitions of __STDC_* predefined macros, if the compiler has 355 // not preincluded this header automatically. 356 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 357 // This file is part of the GNU C Library. 358 // 359 // The GNU C Library is free software; you can redistribute it and/or 360 // modify it under the terms of the GNU Lesser General Public 361 // License as published by the Free Software Foundation; either 362 // version 2.1 of the License, or (at your option) any later version. 363 // 364 // The GNU C Library is distributed in the hope that it will be useful, 365 // but WITHOUT ANY WARRANTY; without even the implied warranty of 366 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 367 // Lesser General Public License for more details. 368 // 369 // You should have received a copy of the GNU Lesser General Public 370 // License along with the GNU C Library; if not, see 371 // <https://www.gnu.org/licenses/>. 372 373 // This macro indicates that the installed library is the GNU C Library. 374 // For historic reasons the value now is 6 and this will stay from now 375 // on. The use of this variable is deprecated. Use __GLIBC__ and 376 // __GLIBC_MINOR__ now (see below) when you want to test for a specific 377 // GNU C library version and use the values in <gnu/lib-names.h> to get 378 // the sonames of the shared libraries. 379 380 // Major and minor version number of the GNU C library package. Use 381 // these macros to test for features in specific releases. 382 383 // This is here only because every header file already includes this one. 384 // Copyright (C) 1992-2020 Free Software Foundation, Inc. 385 // This file is part of the GNU C Library. 386 // 387 // The GNU C Library is free software; you can redistribute it and/or 388 // modify it under the terms of the GNU Lesser General Public 389 // License as published by the Free Software Foundation; either 390 // version 2.1 of the License, or (at your option) any later version. 391 // 392 // The GNU C Library is distributed in the hope that it will be useful, 393 // but WITHOUT ANY WARRANTY; without even the implied warranty of 394 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 395 // Lesser General Public License for more details. 396 // 397 // You should have received a copy of the GNU Lesser General Public 398 // License along with the GNU C Library; if not, see 399 // <https://www.gnu.org/licenses/>. 400 401 // We are almost always included from features.h. 402 403 // The GNU libc does not support any K&R compilers or the traditional mode 404 // of ISO C compilers anymore. Check for some of the combinations not 405 // anymore supported. 406 407 // Some user header file might have defined this before. 408 409 // All functions, except those with callbacks or those that 410 // synchronize memory, are leaf functions. 411 412 // GCC can always grok prototypes. For C++ programs we add throw() 413 // to help it optimize the function calls. But this works only with 414 // gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions 415 // as non-throwing using a function attribute since programs can use 416 // the -fexceptions options for C code as well. 417 418 // Compilers that are not clang may object to 419 // #if defined __clang__ && __has_extension(...) 420 // even though they do not need to evaluate the right-hand side of the &&. 421 422 // These two macros are not used in glibc anymore. They are kept here 423 // only because some other projects expect the macros to be defined. 424 425 // For these things, GCC behaves the ANSI way normally, 426 // and the non-ANSI way under -traditional. 427 428 // This is not a typedef so `const __ptr_t' does the right thing. 429 430 // C++ needs to know that types and declarations are C, not C++. 431 432 // Fortify support. 433 434 // Support for flexible arrays. 435 // Headers that should use flexible arrays only if they're "real" 436 // (e.g. only if they won't affect sizeof()) should test 437 // #if __glibc_c99_flexarr_available. 438 439 // __asm__ ("xyz") is used throughout the headers to rename functions 440 // at the assembly language level. This is wrapped by the __REDIRECT 441 // macro, in order to support compilers that can do this some other 442 // way. When compilers don't support asm-names at all, we have to do 443 // preprocessor tricks instead (which don't have exactly the right 444 // semantics, but it's the best we can do). 445 // 446 // Example: 447 // int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); 448 449 // 450 // #elif __SOME_OTHER_COMPILER__ 451 // 452 // # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) 453 454 // GCC has various useful declarations that can be made with the 455 // `__attribute__' syntax. All of the ways we use this do fine if 456 // they are omitted for compilers that don't understand it. 457 458 // At some point during the gcc 2.96 development the `malloc' attribute 459 // for functions was introduced. We don't want to use it unconditionally 460 // (although this would be possible) since it generates warnings. 461 462 // Tell the compiler which arguments to an allocation function 463 // indicate the size of the allocation. 464 465 // At some point during the gcc 2.96 development the `pure' attribute 466 // for functions was introduced. We don't want to use it unconditionally 467 // (although this would be possible) since it generates warnings. 468 469 // This declaration tells the compiler that the value is constant. 470 471 // At some point during the gcc 3.1 development the `used' attribute 472 // for functions was introduced. We don't want to use it unconditionally 473 // (although this would be possible) since it generates warnings. 474 475 // Since version 3.2, gcc allows marking deprecated functions. 476 477 // Since version 4.5, gcc also allows one to specify the message printed 478 // when a deprecated function is used. clang claims to be gcc 4.2, but 479 // may also support this feature. 480 481 // At some point during the gcc 2.8 development the `format_arg' attribute 482 // for functions was introduced. We don't want to use it unconditionally 483 // (although this would be possible) since it generates warnings. 484 // If several `format_arg' attributes are given for the same function, in 485 // gcc-3.0 and older, all but the last one are ignored. In newer gccs, 486 // all designated arguments are considered. 487 488 // At some point during the gcc 2.97 development the `strfmon' format 489 // attribute for functions was introduced. We don't want to use it 490 // unconditionally (although this would be possible) since it 491 // generates warnings. 492 493 // The nonull function attribute allows to mark pointer parameters which 494 // must not be NULL. 495 496 // If fortification mode, we warn about unused results of certain 497 // function calls which can lead to problems. 498 499 // Forces a function to be always inlined. 500 // The Linux kernel defines __always_inline in stddef.h (283d7573), and 501 // it conflicts with this definition. Therefore undefine it first to 502 // allow either header to be included first. 503 504 // Associate error messages with the source location of the call site rather 505 // than with the source location inside the function. 506 507 // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 508 // inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ 509 // or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions 510 // older than 4.3 may define these macros and still not guarantee GNU inlining 511 // semantics. 512 // 513 // clang++ identifies itself as gcc-4.2, but has support for GNU inlining 514 // semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and 515 // __GNUC_GNU_INLINE__ macro definitions. 516 517 // GCC 4.3 and above allow passing all anonymous arguments of an 518 // __extern_always_inline function to some other vararg function. 519 520 // It is possible to compile containing GCC extensions even if GCC is 521 // run in pedantic mode if the uses are carefully marked using the 522 // `__extension__' keyword. But this is not generally available before 523 // version 2.8. 524 525 // __restrict is known in EGCS 1.2 and above. 526 527 // ISO C99 also allows to declare arrays as non-overlapping. The syntax is 528 // array_name[restrict] 529 // GCC 3.1 supports this. 530 531 // Describes a char array whose address can safely be passed as the first 532 // argument to strncpy and strncat, as the char array is not necessarily 533 // a NUL-terminated string. 534 535 // Undefine (also defined in libc-symbols.h). 536 // Copies attributes from the declaration or type referenced by 537 // the argument. 538 539 // Determine the wordsize from the preprocessor defines. 540 541 // Both x86-64 and x32 use the 64-bit system call interface. 542 // Properties of long double type. ldbl-96 version. 543 // Copyright (C) 2016-2020 Free Software Foundation, Inc. 544 // This file is part of the GNU C Library. 545 // 546 // The GNU C Library is free software; you can redistribute it and/or 547 // modify it under the terms of the GNU Lesser General Public 548 // License published by the Free Software Foundation; either 549 // version 2.1 of the License, or (at your option) any later version. 550 // 551 // The GNU C Library is distributed in the hope that it will be useful, 552 // but WITHOUT ANY WARRANTY; without even the implied warranty of 553 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 554 // Lesser General Public License for more details. 555 // 556 // You should have received a copy of the GNU Lesser General Public 557 // License along with the GNU C Library; if not, see 558 // <https://www.gnu.org/licenses/>. 559 560 // long double is distinct from double, so there is nothing to 561 // define here. 562 563 // __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is 564 // intended for use in preprocessor macros. 565 // 566 // Note: MESSAGE must be a _single_ string; concatenation of string 567 // literals is not supported. 568 569 // Generic selection (ISO C11) is a C-only feature, available in GCC 570 // since version 4.9. Previous versions do not provide generic 571 // selection, even though they might set __STDC_VERSION__ to 201112L, 572 // when in -std=c11 mode. Thus, we must check for !defined __GNUC__ 573 // when testing __STDC_VERSION__ for generic selection support. 574 // On the other hand, Clang also defines __GNUC__, so a clang-specific 575 // check is required to enable the use of generic selection. 576 577 // If we don't have __REDIRECT, prototypes will be missing if 578 // __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. 579 580 // Decide whether we can define 'extern inline' functions in headers. 581 582 // This is here only because every header file already includes this one. 583 // Get the definitions of all the appropriate `__stub_FUNCTION' symbols. 584 // <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub 585 // that will always return failure (and set errno to ENOSYS). 586 // This file is automatically generated. 587 // This file selects the right generated file of `__stub_FUNCTION' macros 588 // based on the architecture being compiled for. 589 590 // This file is automatically generated. 591 // It defines a symbol `__stub_FUNCTION' for each function 592 // in the C library which is a stub, meaning it will fail 593 // every time called, usually setting errno to ENOSYS. 594 595 // bits/types.h -- definitions of __*_t types underlying *_t types. 596 // Copyright (C) 2002-2020 Free Software Foundation, Inc. 597 // This file is part of the GNU C Library. 598 // 599 // The GNU C Library is free software; you can redistribute it and/or 600 // modify it under the terms of the GNU Lesser General Public 601 // License as published by the Free Software Foundation; either 602 // version 2.1 of the License, or (at your option) any later version. 603 // 604 // The GNU C Library is distributed in the hope that it will be useful, 605 // but WITHOUT ANY WARRANTY; without even the implied warranty of 606 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 607 // Lesser General Public License for more details. 608 // 609 // You should have received a copy of the GNU Lesser General Public 610 // License along with the GNU C Library; if not, see 611 // <https://www.gnu.org/licenses/>. 612 613 // Never include this file directly; use <sys/types.h> instead. 614 615 // Copyright (C) 1991-2020 Free Software Foundation, Inc. 616 // This file is part of the GNU C Library. 617 // 618 // The GNU C Library is free software; you can redistribute it and/or 619 // modify it under the terms of the GNU Lesser General Public 620 // License as published by the Free Software Foundation; either 621 // version 2.1 of the License, or (at your option) any later version. 622 // 623 // The GNU C Library is distributed in the hope that it will be useful, 624 // but WITHOUT ANY WARRANTY; without even the implied warranty of 625 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 626 // Lesser General Public License for more details. 627 // 628 // You should have received a copy of the GNU Lesser General Public 629 // License along with the GNU C Library; if not, see 630 // <https://www.gnu.org/licenses/>. 631 632 // Determine the wordsize from the preprocessor defines. 633 634 // Both x86-64 and x32 use the 64-bit system call interface. 635 // Bit size of the time_t type at glibc build time, x86-64 and x32 case. 636 // Copyright (C) 2018-2020 Free Software Foundation, Inc. 637 // This file is part of the GNU C Library. 638 // 639 // The GNU C Library is free software; you can redistribute it and/or 640 // modify it under the terms of the GNU Lesser General Public 641 // License as published by the Free Software Foundation; either 642 // version 2.1 of the License, or (at your option) any later version. 643 // 644 // The GNU C Library is distributed in the hope that it will be useful, 645 // but WITHOUT ANY WARRANTY; without even the implied warranty of 646 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 647 // Lesser General Public License for more details. 648 // 649 // You should have received a copy of the GNU Lesser General Public 650 // License along with the GNU C Library; if not, see 651 // <https://www.gnu.org/licenses/>. 652 653 // For others, time size is word size. 654 655 // Convenience types. 656 type X__u_char = uint8 /* types.h:31:23 */ 657 type X__u_short = uint16 /* types.h:32:28 */ 658 type X__u_int = uint32 /* types.h:33:22 */ 659 type X__u_long = uint64 /* types.h:34:27 */ 660 661 // Fixed-size types, underlying types depend on word size and compiler. 662 type X__int8_t = int8 /* types.h:37:21 */ 663 type X__uint8_t = uint8 /* types.h:38:23 */ 664 type X__int16_t = int16 /* types.h:39:26 */ 665 type X__uint16_t = uint16 /* types.h:40:28 */ 666 type X__int32_t = int32 /* types.h:41:20 */ 667 type X__uint32_t = uint32 /* types.h:42:22 */ 668 type X__int64_t = int64 /* types.h:44:25 */ 669 type X__uint64_t = uint64 /* types.h:45:27 */ 670 671 // Smallest types with at least a given width. 672 type X__int_least8_t = X__int8_t /* types.h:52:18 */ 673 type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ 674 type X__int_least16_t = X__int16_t /* types.h:54:19 */ 675 type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ 676 type X__int_least32_t = X__int32_t /* types.h:56:19 */ 677 type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ 678 type X__int_least64_t = X__int64_t /* types.h:58:19 */ 679 type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ 680 681 // quad_t is also 64 bits. 682 type X__quad_t = int64 /* types.h:63:18 */ 683 type X__u_quad_t = uint64 /* types.h:64:27 */ 684 685 // Largest integral types. 686 type X__intmax_t = int64 /* types.h:72:18 */ 687 type X__uintmax_t = uint64 /* types.h:73:27 */ 688 689 // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE 690 // macros for each of the OS types we define below. The definitions 691 // of those macros must use the following macros for underlying types. 692 // We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned 693 // variants of each of the following integer types on this machine. 694 // 695 // 16 -- "natural" 16-bit type (always short) 696 // 32 -- "natural" 32-bit type (always int) 697 // 64 -- "natural" 64-bit type (long or long long) 698 // LONG32 -- 32-bit type, traditionally long 699 // QUAD -- 64-bit type, traditionally long long 700 // WORD -- natural type of __WORDSIZE bits (int or long) 701 // LONGWORD -- type of __WORDSIZE bits, traditionally long 702 // 703 // We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the 704 // conventional uses of `long' or `long long' type modifiers match the 705 // types we define, even when a less-adorned type would be the same size. 706 // This matters for (somewhat) portably writing printf/scanf formats for 707 // these types, where using the appropriate l or ll format modifiers can 708 // make the typedefs and the formats match up across all GNU platforms. If 709 // we used `long' when it's 64 bits where `long long' is expected, then the 710 // compiler would warn about the formats not matching the argument types, 711 // and the programmer changing them to shut up the compiler would break the 712 // program's portability. 713 // 714 // Here we assume what is presently the case in all the GCC configurations 715 // we support: long long is always 64 bits, long is always word/address size, 716 // and int is always 32 bits. 717 718 // No need to mark the typedef with __extension__. 719 // bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. 720 // Copyright (C) 2012-2020 Free Software Foundation, Inc. 721 // This file is part of the GNU C Library. 722 // 723 // The GNU C Library is free software; you can redistribute it and/or 724 // modify it under the terms of the GNU Lesser General Public 725 // License as published by the Free Software Foundation; either 726 // version 2.1 of the License, or (at your option) any later version. 727 // 728 // The GNU C Library is distributed in the hope that it will be useful, 729 // but WITHOUT ANY WARRANTY; without even the implied warranty of 730 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 731 // Lesser General Public License for more details. 732 // 733 // You should have received a copy of the GNU Lesser General Public 734 // License along with the GNU C Library; if not, see 735 // <https://www.gnu.org/licenses/>. 736 737 // See <bits/types.h> for the meaning of these macros. This file exists so 738 // that <bits/types.h> need not vary across different GNU platforms. 739 740 // X32 kernel interface is 64-bit. 741 742 // Tell the libc code that off_t and off64_t are actually the same type 743 // for all ABI purposes, even if possibly expressed as different base types 744 // for C type-checking purposes. 745 746 // Same for ino_t and ino64_t. 747 748 // And for __rlim_t and __rlim64_t. 749 750 // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. 751 752 // Number of descriptors that can fit in an `fd_set'. 753 754 // bits/time64.h -- underlying types for __time64_t. Generic version. 755 // Copyright (C) 2018-2020 Free Software Foundation, Inc. 756 // This file is part of the GNU C Library. 757 // 758 // The GNU C Library is free software; you can redistribute it and/or 759 // modify it under the terms of the GNU Lesser General Public 760 // License as published by the Free Software Foundation; either 761 // version 2.1 of the License, or (at your option) any later version. 762 // 763 // The GNU C Library is distributed in the hope that it will be useful, 764 // but WITHOUT ANY WARRANTY; without even the implied warranty of 765 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 766 // Lesser General Public License for more details. 767 // 768 // You should have received a copy of the GNU Lesser General Public 769 // License along with the GNU C Library; if not, see 770 // <https://www.gnu.org/licenses/>. 771 772 // Define __TIME64_T_TYPE so that it is always a 64-bit type. 773 774 // If we already have 64-bit time type then use it. 775 776 type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. 777 type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. 778 type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. 779 type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. 780 type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). 781 type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. 782 type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. 783 type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. 784 type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). 785 type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. 786 type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. 787 type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. 788 type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. 789 type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). 790 type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. 791 type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. 792 type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. 793 type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. 794 795 type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. 796 type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. 797 798 // Clock ID used in clock and timer functions. 799 type X__clockid_t = int32 /* types.h:168:29 */ 800 801 // Timer ID returned by `timer_create'. 802 type X__timer_t = uintptr /* types.h:171:12 */ 803 804 // Type to represent block size. 805 type X__blksize_t = int64 /* types.h:174:29 */ 806 807 // Types from the Large File Support interface. 808 809 // Type to count number of disk blocks. 810 type X__blkcnt_t = int64 /* types.h:179:28 */ 811 type X__blkcnt64_t = int64 /* types.h:180:30 */ 812 813 // Type to count file system blocks. 814 type X__fsblkcnt_t = uint64 /* types.h:183:30 */ 815 type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ 816 817 // Type to count file system nodes. 818 type X__fsfilcnt_t = uint64 /* types.h:187:30 */ 819 type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ 820 821 // Type of miscellaneous file system fields. 822 type X__fsword_t = int64 /* types.h:191:28 */ 823 824 type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. 825 826 // Signed long type used in system calls. 827 type X__syscall_slong_t = int64 /* types.h:196:33 */ 828 // Unsigned long type used in system calls. 829 type X__syscall_ulong_t = uint64 /* types.h:198:33 */ 830 831 // These few don't really vary by system, they always correspond 832 // 833 // to one of the other defined types. 834 type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). 835 type X__caddr_t = uintptr /* types.h:203:14 */ 836 837 // Duplicates info from stdint.h but this is used in unistd.h. 838 type X__intptr_t = int64 /* types.h:206:25 */ 839 840 // Duplicate info from sys/socket.h. 841 type X__socklen_t = uint32 /* types.h:209:23 */ 842 843 // C99: An integer type that can be accessed as an atomic entity, 844 // 845 // even in the presence of asynchronous interrupts. 846 // It is not currently necessary for this to be machine-specific. 847 type X__sig_atomic_t = int32 /* types.h:214:13 */ 848 849 // Seconds since the Epoch, visible to user code when time_t is too 850 // narrow only for consistency with the old way of widening too-narrow 851 // types. User code should never use __time64_t. 852 853 // This file defines `struct dirent'. 854 // 855 // It defines the macro `_DIRENT_HAVE_D_NAMLEN' iff there is a `d_namlen' 856 // member that gives the length of `d_name'. 857 // 858 // It defines the macro `_DIRENT_HAVE_D_RECLEN' iff there is a `d_reclen' 859 // member that gives the size of the entire directory entry. 860 // 861 // It defines the macro `_DIRENT_HAVE_D_OFF' iff there is a `d_off' 862 // member that gives the file offset of the next directory entry. 863 // 864 // It defines the macro `_DIRENT_HAVE_D_TYPE' iff there is a `d_type' 865 // member that gives the type of the file. 866 // 867 868 // Copyright (C) 1996-2020 Free Software Foundation, Inc. 869 // This file is part of the GNU C Library. 870 // 871 // The GNU C Library is free software; you can redistribute it and/or 872 // modify it under the terms of the GNU Lesser General Public 873 // License as published by the Free Software Foundation; either 874 // version 2.1 of the License, or (at your option) any later version. 875 // 876 // The GNU C Library is distributed in the hope that it will be useful, 877 // but WITHOUT ANY WARRANTY; without even the implied warranty of 878 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 879 // Lesser General Public License for more details. 880 // 881 // You should have received a copy of the GNU Lesser General Public 882 // License along with the GNU C Library; if not, see 883 // <https://www.gnu.org/licenses/>. 884 885 type Dirent = struct { 886 Fd_ino X__ino64_t 887 Fd_off X__off64_t 888 Fd_reclen uint16 889 Fd_type uint8 890 Fd_name [256]int8 891 F__ccgo_pad1 [5]byte 892 } /* dirent.h:22:1 */ 893 894 // System-specific extensions of <dirent.h>. Linux version. 895 // Copyright (C) 2019-2020 Free Software Foundation, Inc. 896 // This file is part of the GNU C Library. 897 // 898 // The GNU C Library is free software; you can redistribute it and/or 899 // modify it under the terms of the GNU Lesser General Public 900 // License as published by the Free Software Foundation; either 901 // version 2.1 of the License, or (at your option) any later version. 902 // 903 // The GNU C Library is distributed in the hope that it will be useful, 904 // but WITHOUT ANY WARRANTY; without even the implied warranty of 905 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 906 // Lesser General Public License for more details. 907 // 908 // You should have received a copy of the GNU Lesser General Public 909 // License along with the GNU C Library; if not, see 910 // <https://www.gnu.org/licenses/>. 911 912 var _ int8 /* gen.c:2:13: */