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