| 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 -o fts/fts_linux_s390x.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 |
| 19 | ALLPERMS = 4095 |
| 20 | BIG_ENDIAN = 4321 |
| 21 | BYTE_ORDER = 4321 |
| 22 | DEFFILEMODE = 438 |
| 23 | FD_SETSIZE = 1024 |
| 24 | FTS_AGAIN = 1 |
| 25 | FTS_COMFOLLOW = 0x0001 |
| 26 | FTS_D = 1 |
| 27 | FTS_DC = 2 |
| 28 | FTS_DEFAULT = 3 |
| 29 | FTS_DNR = 4 |
| 30 | FTS_DONTCHDIR = 0x01 |
| 31 | FTS_DOT = 5 |
| 32 | FTS_DP = 6 |
| 33 | FTS_ERR = 7 |
| 34 | FTS_F = 8 |
| 35 | FTS_FOLLOW = 2 |
| 36 | FTS_INIT = 9 |
| 37 | FTS_LOGICAL = 0x0002 |
| 38 | FTS_NAMEONLY = 0x0100 |
| 39 | FTS_NOCHDIR = 0x0004 |
| 40 | FTS_NOINSTR = 3 |
| 41 | FTS_NOSTAT = 0x0008 |
| 42 | FTS_NS = 10 |
| 43 | FTS_NSOK = 11 |
| 44 | FTS_OPTIONMASK = 0x00ff |
| 45 | FTS_PHYSICAL = 0x0010 |
| 46 | FTS_ROOTLEVEL = 0 |
| 47 | FTS_ROOTPARENTLEVEL = -1 |
| 48 | FTS_SEEDOT = 0x0020 |
| 49 | FTS_SKIP = 4 |
| 50 | FTS_SL = 12 |
| 51 | FTS_SLNONE = 13 |
| 52 | FTS_STOP = 0x0200 |
| 53 | FTS_SYMFOLLOW = 0x02 |
| 54 | FTS_W = 14 |
| 55 | FTS_WHITEOUT = 0x0080 |
| 56 | FTS_XDEV = 0x0040 |
| 57 | LITTLE_ENDIAN = 1234 |
| 58 | PDP_ENDIAN = 3412 |
| 59 | S_BLKSIZE = 512 |
| 60 | S_IEXEC = 64 |
| 61 | S_IFBLK = 24576 |
| 62 | S_IFCHR = 8192 |
| 63 | S_IFDIR = 16384 |
| 64 | S_IFIFO = 4096 |
| 65 | S_IFLNK = 40960 |
| 66 | S_IFMT = 61440 |
| 67 | S_IFREG = 32768 |
| 68 | S_IFSOCK = 49152 |
| 69 | S_IREAD = 256 |
| 70 | S_IRGRP = 32 |
| 71 | S_IROTH = 4 |
| 72 | S_IRUSR = 256 |
| 73 | S_IRWXG = 56 |
| 74 | S_IRWXO = 7 |
| 75 | S_IRWXU = 448 |
| 76 | S_ISGID = 1024 |
| 77 | S_ISUID = 2048 |
| 78 | S_ISVTX = 512 |
| 79 | S_IWGRP = 16 |
| 80 | S_IWOTH = 2 |
| 81 | S_IWRITE = 128 |
| 82 | S_IWUSR = 128 |
| 83 | S_IXGRP = 8 |
| 84 | S_IXOTH = 1 |
| 85 | S_IXUSR = 64 |
| 86 | UTIME_NOW = 1073741823 |
| 87 | UTIME_OMIT = 1073741822 |
| 88 | X_ATFILE_SOURCE = 1 |
| 89 | X_BITS_BYTESWAP_H = 1 |
| 90 | X_BITS_ENDIANNESS_H = 1 |
| 91 | X_BITS_ENDIAN_H = 1 |
| 92 | X_BITS_PTHREADTYPES_ARCH_H = 1 |
| 93 | X_BITS_PTHREADTYPES_COMMON_H = 1 |
| 94 | X_BITS_STAT_H = 1 |
| 95 | X_BITS_STDINT_INTN_H = 1 |
| 96 | X_BITS_TIME64_H = 1 |
| 97 | X_BITS_TYPESIZES_H = 1 |
| 98 | X_BITS_TYPES_H = 1 |
| 99 | X_BITS_UINTN_IDENTITY_H = 1 |
| 100 | X_BSD_SIZE_T_ = 0 |
| 101 | X_BSD_SIZE_T_DEFINED_ = 0 |
| 102 | X_DEFAULT_SOURCE = 1 |
| 103 | X_ENDIAN_H = 1 |
| 104 | X_FEATURES_H = 1 |
| 105 | X_FILE_OFFSET_BITS = 64 |
| 106 | X_FTS_H = 1 |
| 107 | X_GCC_SIZE_T = 0 |
| 108 | X_LP64 = 1 |
| 109 | X_MKNOD_VER = 0 |
| 110 | X_MKNOD_VER_LINUX = 0 |
| 111 | X_POSIX_C_SOURCE = 200809 |
| 112 | X_POSIX_SOURCE = 1 |
| 113 | X_RWLOCK_INTERNAL_H = 0 |
| 114 | X_SIZET_ = 0 |
| 115 | X_SIZE_T = 0 |
| 116 | X_SIZE_T_ = 0 |
| 117 | X_SIZE_T_DECLARED = 0 |
| 118 | X_SIZE_T_DEFINED = 0 |
| 119 | X_SIZE_T_DEFINED_ = 0 |
| 120 | X_STATBUF_ST_BLKSIZE = 0 |
| 121 | X_STATBUF_ST_NSEC = 0 |
| 122 | X_STATBUF_ST_RDEV = 0 |
| 123 | X_STAT_VER = 1 |
| 124 | X_STAT_VER_KERNEL = 0 |
| 125 | X_STAT_VER_LINUX = 1 |
| 126 | X_STDC_PREDEF_H = 1 |
| 127 | X_STRUCT_TIMESPEC = 1 |
| 128 | X_SYS_CDEFS_H = 1 |
| 129 | X_SYS_SELECT_H = 1 |
| 130 | X_SYS_SIZE_T_H = 0 |
| 131 | X_SYS_STAT_H = 1 |
| 132 | X_SYS_TYPES_H = 1 |
| 133 | X_THREAD_MUTEX_INTERNAL_H = 1 |
| 134 | X_THREAD_SHARED_TYPES_H = 1 |
| 135 | X_T_SIZE = 0 |
| 136 | X_T_SIZE_ = 0 |
| 137 | Linux = 1 |
| 138 | Unix = 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 | // Properties of long double type. ldbl-opt version. |
| 547 | // Copyright (C) 2016-2020 Free Software Foundation, Inc. |
| 548 | // This file is part of the GNU C Library. |
| 549 | // |
| 550 | // The GNU C Library is free software; you can redistribute it and/or |
| 551 | // modify it under the terms of the GNU Lesser General Public |
| 552 | // License published by the Free Software Foundation; either |
| 553 | // version 2.1 of the License, or (at your option) any later version. |
| 554 | // |
| 555 | // The GNU C Library is distributed in the hope that it will be useful, |
| 556 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 557 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 558 | // Lesser General Public License for more details. |
| 559 | // |
| 560 | // You should have received a copy of the GNU Lesser General Public |
| 561 | // License along with the GNU C Library; if not, see |
| 562 | // <https://www.gnu.org/licenses/>. |
| 563 | |
| 564 | // __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is |
| 565 | // intended for use in preprocessor macros. |
| 566 | // |
| 567 | // Note: MESSAGE must be a _single_ string; concatenation of string |
| 568 | // literals is not supported. |
| 569 | |
| 570 | // Generic selection (ISO C11) is a C-only feature, available in GCC |
| 571 | // since version 4.9. Previous versions do not provide generic |
| 572 | // selection, even though they might set __STDC_VERSION__ to 201112L, |
| 573 | // when in -std=c11 mode. Thus, we must check for !defined __GNUC__ |
| 574 | // when testing __STDC_VERSION__ for generic selection support. |
| 575 | // On the other hand, Clang also defines __GNUC__, so a clang-specific |
| 576 | // check is required to enable the use of generic selection. |
| 577 | |
| 578 | // If we don't have __REDIRECT, prototypes will be missing if |
| 579 | // __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. |
| 580 | |
| 581 | // Decide whether we can define 'extern inline' functions in headers. |
| 582 | |
| 583 | // This is here only because every header file already includes this one. |
| 584 | // Get the definitions of all the appropriate `__stub_FUNCTION' symbols. |
| 585 | // <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub |
| 586 | // that will always return failure (and set errno to ENOSYS). |
| 587 | // This file is automatically generated. |
| 588 | // This file selects the right generated file of `__stub_FUNCTION' macros |
| 589 | // based on the architecture being compiled for. |
| 590 | |
| 591 | // Determine the wordsize from the preprocessor defines. |
| 592 | |
| 593 | // This file is automatically generated. |
| 594 | // It defines a symbol `__stub_FUNCTION' for each function |
| 595 | // in the C library which is a stub, meaning it will fail |
| 596 | // every time called, usually setting errno to ENOSYS. |
| 597 | |
| 598 | // bits/types.h -- definitions of __*_t types underlying *_t types. |
| 599 | // Copyright (C) 2002-2020 Free Software Foundation, Inc. |
| 600 | // This file is part of the GNU C Library. |
| 601 | // |
| 602 | // The GNU C Library is free software; you can redistribute it and/or |
| 603 | // modify it under the terms of the GNU Lesser General Public |
| 604 | // License as published by the Free Software Foundation; either |
| 605 | // version 2.1 of the License, or (at your option) any later version. |
| 606 | // |
| 607 | // The GNU C Library is distributed in the hope that it will be useful, |
| 608 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 609 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 610 | // Lesser General Public License for more details. |
| 611 | // |
| 612 | // You should have received a copy of the GNU Lesser General Public |
| 613 | // License along with the GNU C Library; if not, see |
| 614 | // <https://www.gnu.org/licenses/>. |
| 615 | |
| 616 | // Never include this file directly; use <sys/types.h> instead. |
| 617 | |
| 618 | // Copyright (C) 1991-2020 Free Software Foundation, Inc. |
| 619 | // This file is part of the GNU C Library. |
| 620 | // |
| 621 | // The GNU C Library is free software; you can redistribute it and/or |
| 622 | // modify it under the terms of the GNU Lesser General Public |
| 623 | // License as published by the Free Software Foundation; either |
| 624 | // version 2.1 of the License, or (at your option) any later version. |
| 625 | // |
| 626 | // The GNU C Library is distributed in the hope that it will be useful, |
| 627 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 628 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 629 | // Lesser General Public License for more details. |
| 630 | // |
| 631 | // You should have received a copy of the GNU Lesser General Public |
| 632 | // License along with the GNU C Library; if not, see |
| 633 | // <https://www.gnu.org/licenses/>. |
| 634 | |
| 635 | // Determine the wordsize from the preprocessor defines. |
| 636 | |
| 637 | // Bit size of the time_t type at glibc build time, general case. |
| 638 | // Copyright (C) 2018-2020 Free Software Foundation, Inc. |
| 639 | // This file is part of the GNU C Library. |
| 640 | // |
| 641 | // The GNU C Library is free software; you can redistribute it and/or |
| 642 | // modify it under the terms of the GNU Lesser General Public |
| 643 | // License as published by the Free Software Foundation; either |
| 644 | // version 2.1 of the License, or (at your option) any later version. |
| 645 | // |
| 646 | // The GNU C Library is distributed in the hope that it will be useful, |
| 647 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 648 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 649 | // Lesser General Public License for more details. |
| 650 | // |
| 651 | // You should have received a copy of the GNU Lesser General Public |
| 652 | // License along with the GNU C Library; if not, see |
| 653 | // <https://www.gnu.org/licenses/>. |
| 654 | |
| 655 | // Determine the wordsize from the preprocessor defines. |
| 656 | |
| 657 | // Size in bits of the 'time_t' type of the default ABI. |
| 658 | |
| 659 | // Convenience types. |
| 660 | type X__u_char = uint8 /* types.h:31:23 */ |
| 661 | type X__u_short = uint16 /* types.h:32:28 */ |
| 662 | type X__u_int = uint32 /* types.h:33:22 */ |
| 663 | type X__u_long = uint64 /* types.h:34:27 */ |
| 664 | |
| 665 | // Fixed-size types, underlying types depend on word size and compiler. |
| 666 | type X__int8_t = int8 /* types.h:37:21 */ |
| 667 | type X__uint8_t = uint8 /* types.h:38:23 */ |
| 668 | type X__int16_t = int16 /* types.h:39:26 */ |
| 669 | type X__uint16_t = uint16 /* types.h:40:28 */ |
| 670 | type X__int32_t = int32 /* types.h:41:20 */ |
| 671 | type X__uint32_t = uint32 /* types.h:42:22 */ |
| 672 | type X__int64_t = int64 /* types.h:44:25 */ |
| 673 | type X__uint64_t = uint64 /* types.h:45:27 */ |
| 674 | |
| 675 | // Smallest types with at least a given width. |
| 676 | type X__int_least8_t = X__int8_t /* types.h:52:18 */ |
| 677 | type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ |
| 678 | type X__int_least16_t = X__int16_t /* types.h:54:19 */ |
| 679 | type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ |
| 680 | type X__int_least32_t = X__int32_t /* types.h:56:19 */ |
| 681 | type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ |
| 682 | type X__int_least64_t = X__int64_t /* types.h:58:19 */ |
| 683 | type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ |
| 684 | |
| 685 | // quad_t is also 64 bits. |
| 686 | type X__quad_t = int64 /* types.h:63:18 */ |
| 687 | type X__u_quad_t = uint64 /* types.h:64:27 */ |
| 688 | |
| 689 | // Largest integral types. |
| 690 | type X__intmax_t = int64 /* types.h:72:18 */ |
| 691 | type X__uintmax_t = uint64 /* types.h:73:27 */ |
| 692 | |
| 693 | // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE |
| 694 | // macros for each of the OS types we define below. The definitions |
| 695 | // of those macros must use the following macros for underlying types. |
| 696 | // We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned |
| 697 | // variants of each of the following integer types on this machine. |
| 698 | // |
| 699 | // 16 -- "natural" 16-bit type (always short) |
| 700 | // 32 -- "natural" 32-bit type (always int) |
| 701 | // 64 -- "natural" 64-bit type (long or long long) |
| 702 | // LONG32 -- 32-bit type, traditionally long |
| 703 | // QUAD -- 64-bit type, traditionally long long |
| 704 | // WORD -- natural type of __WORDSIZE bits (int or long) |
| 705 | // LONGWORD -- type of __WORDSIZE bits, traditionally long |
| 706 | // |
| 707 | // We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the |
| 708 | // conventional uses of `long' or `long long' type modifiers match the |
| 709 | // types we define, even when a less-adorned type would be the same size. |
| 710 | // This matters for (somewhat) portably writing printf/scanf formats for |
| 711 | // these types, where using the appropriate l or ll format modifiers can |
| 712 | // make the typedefs and the formats match up across all GNU platforms. If |
| 713 | // we used `long' when it's 64 bits where `long long' is expected, then the |
| 714 | // compiler would warn about the formats not matching the argument types, |
| 715 | // and the programmer changing them to shut up the compiler would break the |
| 716 | // program's portability. |
| 717 | // |
| 718 | // Here we assume what is presently the case in all the GCC configurations |
| 719 | // we support: long long is always 64 bits, long is always word/address size, |
| 720 | // and int is always 32 bits. |
| 721 | |
| 722 | // No need to mark the typedef with __extension__. |
| 723 | // bits/typesizes.h -- underlying types for *_t. Linux/s390 version. |
| 724 | // Copyright (C) 2003-2020 Free Software Foundation, Inc. |
| 725 | // This file is part of the GNU C Library. |
| 726 | // |
| 727 | // The GNU C Library is free software; you can redistribute it and/or |
| 728 | // modify it under the terms of the GNU Lesser General Public |
| 729 | // License as published by the Free Software Foundation; either |
| 730 | // version 2.1 of the License, or (at your option) any later version. |
| 731 | // |
| 732 | // The GNU C Library is distributed in the hope that it will be useful, |
| 733 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 734 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 735 | // Lesser General Public License for more details. |
| 736 | // |
| 737 | // You should have received a copy of the GNU Lesser General Public |
| 738 | // License along with the GNU C Library; if not, see |
| 739 | // <https://www.gnu.org/licenses/>. |
| 740 | |
| 741 | // See <bits/types.h> for the meaning of these macros. This file exists so |
| 742 | // that <bits/types.h> need not vary across different GNU platforms. |
| 743 | |
| 744 | // size_t is unsigned long int on s390 -m31. |
| 745 | |
| 746 | // Tell the libc code that off_t and off64_t are actually the same type |
| 747 | // for all ABI purposes, even if possibly expressed as different base types |
| 748 | // for C type-checking purposes. |
| 749 | |
| 750 | // Same for ino_t and ino64_t. |
| 751 | |
| 752 | // And for __rlim_t and __rlim64_t. |
| 753 | |
| 754 | // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. |
| 755 | |
| 756 | // Number of descriptors that can fit in an `fd_set'. |
| 757 | |
| 758 | // bits/time64.h -- underlying types for __time64_t. Generic version. |
| 759 | // Copyright (C) 2018-2020 Free Software Foundation, Inc. |
| 760 | // This file is part of the GNU C Library. |
| 761 | // |
| 762 | // The GNU C Library is free software; you can redistribute it and/or |
| 763 | // modify it under the terms of the GNU Lesser General Public |
| 764 | // License as published by the Free Software Foundation; either |
| 765 | // version 2.1 of the License, or (at your option) any later version. |
| 766 | // |
| 767 | // The GNU C Library is distributed in the hope that it will be useful, |
| 768 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 769 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 770 | // Lesser General Public License for more details. |
| 771 | // |
| 772 | // You should have received a copy of the GNU Lesser General Public |
| 773 | // License along with the GNU C Library; if not, see |
| 774 | // <https://www.gnu.org/licenses/>. |
| 775 | |
| 776 | // Define __TIME64_T_TYPE so that it is always a 64-bit type. |
| 777 | |
| 778 | // If we already have 64-bit time type then use it. |
| 779 | |
| 780 | type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. |
| 781 | type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. |
| 782 | type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. |
| 783 | type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. |
| 784 | type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). |
| 785 | type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. |
| 786 | type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts. |
| 787 | type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. |
| 788 | type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). |
| 789 | type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. |
| 790 | type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. |
| 791 | type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. |
| 792 | type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. |
| 793 | type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). |
| 794 | type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. |
| 795 | type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. |
| 796 | type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. |
| 797 | type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. |
| 798 | |
| 799 | type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. |
| 800 | type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. |
| 801 | |
| 802 | // Clock ID used in clock and timer functions. |
| 803 | type X__clockid_t = int32 /* types.h:168:29 */ |
| 804 | |
| 805 | // Timer ID returned by `timer_create'. |
| 806 | type X__timer_t = uintptr /* types.h:171:12 */ |
| 807 | |
| 808 | // Type to represent block size. |
| 809 | type X__blksize_t = int64 /* types.h:174:29 */ |
| 810 | |
| 811 | // Types from the Large File Support interface. |
| 812 | |
| 813 | // Type to count number of disk blocks. |
| 814 | type X__blkcnt_t = int64 /* types.h:179:28 */ |
| 815 | type X__blkcnt64_t = int64 /* types.h:180:30 */ |
| 816 | |
| 817 | // Type to count file system blocks. |
| 818 | type X__fsblkcnt_t = uint64 /* types.h:183:30 */ |
| 819 | type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ |
| 820 | |
| 821 | // Type to count file system nodes. |
| 822 | type X__fsfilcnt_t = uint64 /* types.h:187:30 */ |
| 823 | type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ |
| 824 | |
| 825 | // Type of miscellaneous file system fields. |
| 826 | type X__fsword_t = int64 /* types.h:191:28 */ |
| 827 | |
| 828 | type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. |
| 829 | |
| 830 | // Signed long type used in system calls. |
| 831 | type X__syscall_slong_t = int64 /* types.h:196:33 */ |
| 832 | // Unsigned long type used in system calls. |
| 833 | type X__syscall_ulong_t = uint64 /* types.h:198:33 */ |
| 834 | |
| 835 | // These few don't really vary by system, they always correspond |
| 836 | // |
| 837 | // to one of the other defined types. |
| 838 | type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). |
| 839 | type X__caddr_t = uintptr /* types.h:203:14 */ |
| 840 | |
| 841 | // Duplicates info from stdint.h but this is used in unistd.h. |
| 842 | type X__intptr_t = int64 /* types.h:206:25 */ |
| 843 | |
| 844 | // Duplicate info from sys/socket.h. |
| 845 | type X__socklen_t = uint32 /* types.h:209:23 */ |
| 846 | |
| 847 | // C99: An integer type that can be accessed as an atomic entity, |
| 848 | // |
| 849 | // even in the presence of asynchronous interrupts. |
| 850 | // It is not currently necessary for this to be machine-specific. |
| 851 | type X__sig_atomic_t = int32 /* types.h:214:13 */ |
| 852 | |
| 853 | // Seconds since the Epoch, visible to user code when time_t is too |
| 854 | // narrow only for consistency with the old way of widening too-narrow |
| 855 | // types. User code should never use __time64_t. |
| 856 | |
| 857 | type U_char = X__u_char /* types.h:33:18 */ |
| 858 | type U_short = X__u_short /* types.h:34:19 */ |
| 859 | type U_int = X__u_int /* types.h:35:17 */ |
| 860 | type U_long = X__u_long /* types.h:36:18 */ |
| 861 | type Quad_t = X__quad_t /* types.h:37:18 */ |
| 862 | type U_quad_t = X__u_quad_t /* types.h:38:20 */ |
| 863 | type Fsid_t = X__fsid_t /* types.h:39:18 */ |
| 864 | type Loff_t = X__loff_t /* types.h:42:18 */ |
| 865 | |
| 866 | type Ino_t = X__ino64_t /* types.h:49:19 */ |
| 867 | |
| 868 | type Dev_t = X__dev_t /* types.h:59:17 */ |
| 869 | |
| 870 | type Gid_t = X__gid_t /* types.h:64:17 */ |
| 871 | |
| 872 | type Mode_t = X__mode_t /* types.h:69:18 */ |
| 873 | |
| 874 | type Nlink_t = X__nlink_t /* types.h:74:19 */ |
| 875 | |
| 876 | type Uid_t = X__uid_t /* types.h:79:17 */ |
| 877 | |
| 878 | type Off_t = X__off64_t /* types.h:87:19 */ |
| 879 | |
| 880 | type Pid_t = X__pid_t /* types.h:97:17 */ |
| 881 | |
| 882 | type Id_t = X__id_t /* types.h:103:16 */ |
| 883 | |
| 884 | type Ssize_t = X__ssize_t /* types.h:108:19 */ |
| 885 | |
| 886 | type Daddr_t = X__daddr_t /* types.h:114:19 */ |
| 887 | type Caddr_t = X__caddr_t /* types.h:115:19 */ |
| 888 | |
| 889 | type Key_t = X__key_t /* types.h:121:17 */ |
| 890 | |
| 891 | // bits/types.h -- definitions of __*_t types underlying *_t types. |
| 892 | // Copyright (C) 2002-2020 Free Software Foundation, Inc. |
| 893 | // This file is part of the GNU C Library. |
| 894 | // |
| 895 | // The GNU C Library is free software; you can redistribute it and/or |
| 896 | // modify it under the terms of the GNU Lesser General Public |
| 897 | // License as published by the Free Software Foundation; either |
| 898 | // version 2.1 of the License, or (at your option) any later version. |
| 899 | // |
| 900 | // The GNU C Library is distributed in the hope that it will be useful, |
| 901 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 902 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 903 | // Lesser General Public License for more details. |
| 904 | // |
| 905 | // You should have received a copy of the GNU Lesser General Public |
| 906 | // License along with the GNU C Library; if not, see |
| 907 | // <https://www.gnu.org/licenses/>. |
| 908 | |
| 909 | // Never include this file directly; use <sys/types.h> instead. |
| 910 | |
| 911 | // Returned by `clock'. |
| 912 | type Clock_t = X__clock_t /* clock_t.h:7:19 */ |
| 913 | |
| 914 | // bits/types.h -- definitions of __*_t types underlying *_t types. |
| 915 | // Copyright (C) 2002-2020 Free Software Foundation, Inc. |
| 916 | // This file is part of the GNU C Library. |
| 917 | // |
| 918 | // The GNU C Library is free software; you can redistribute it and/or |
| 919 | // modify it under the terms of the GNU Lesser General Public |
| 920 | // License as published by the Free Software Foundation; either |
| 921 | // version 2.1 of the License, or (at your option) any later version. |
| 922 | // |
| 923 | // The GNU C Library is distributed in the hope that it will be useful, |
| 924 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 925 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 926 | // Lesser General Public License for more details. |
| 927 | // |
| 928 | // You should have received a copy of the GNU Lesser General Public |
| 929 | // License along with the GNU C Library; if not, see |
| 930 | // <https://www.gnu.org/licenses/>. |
| 931 | |
| 932 | // Never include this file directly; use <sys/types.h> instead. |
| 933 | |
| 934 | // Clock ID used in clock and timer functions. |
| 935 | type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */ |
| 936 | |
| 937 | // bits/types.h -- definitions of __*_t types underlying *_t types. |
| 938 | // Copyright (C) 2002-2020 Free Software Foundation, Inc. |
| 939 | // This file is part of the GNU C Library. |
| 940 | // |
| 941 | // The GNU C Library is free software; you can redistribute it and/or |
| 942 | // modify it under the terms of the GNU Lesser General Public |
| 943 | // License as published by the Free Software Foundation; either |
| 944 | // version 2.1 of the License, or (at your option) any later version. |
| 945 | // |
| 946 | // The GNU C Library is distributed in the hope that it will be useful, |
| 947 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 948 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 949 | // Lesser General Public License for more details. |
| 950 | // |
| 951 | // You should have received a copy of the GNU Lesser General Public |
| 952 | // License along with the GNU C Library; if not, see |
| 953 | // <https://www.gnu.org/licenses/>. |
| 954 | |
| 955 | // Never include this file directly; use <sys/types.h> instead. |
| 956 | |
| 957 | // Returned by `time'. |
| 958 | type Time_t = X__time_t /* time_t.h:7:18 */ |
| 959 | |
| 960 | // bits/types.h -- definitions of __*_t types underlying *_t types. |
| 961 | // Copyright (C) 2002-2020 Free Software Foundation, Inc. |
| 962 | // This file is part of the GNU C Library. |
| 963 | // |
| 964 | // The GNU C Library is free software; you can redistribute it and/or |
| 965 | // modify it under the terms of the GNU Lesser General Public |
| 966 | // License as published by the Free Software Foundation; either |
| 967 | // version 2.1 of the License, or (at your option) any later version. |
| 968 | // |
| 969 | // The GNU C Library is distributed in the hope that it will be useful, |
| 970 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 971 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 972 | // Lesser General Public License for more details. |
| 973 | // |
| 974 | // You should have received a copy of the GNU Lesser General Public |
| 975 | // License along with the GNU C Library; if not, see |
| 976 | // <https://www.gnu.org/licenses/>. |
| 977 | |
| 978 | // Never include this file directly; use <sys/types.h> instead. |
| 979 | |
| 980 | // Timer ID returned by `timer_create'. |
| 981 | type Timer_t = X__timer_t /* timer_t.h:7:19 */ |
| 982 | |
| 983 | // Wide character type. |
| 984 | // Locale-writers should change this as necessary to |
| 985 | // be big enough to hold unique values not between 0 and 127, |
| 986 | // and not (wchar_t) -1, for each defined multibyte character. |
| 987 | |
| 988 | // Define this type if we are doing the whole job, |
| 989 | // or if we want this type in particular. |
| 990 | |
| 991 | // A null pointer constant. |
| 992 | |
| 993 | // Old compatibility names for C types. |
| 994 | type Ulong = uint64 /* types.h:148:27 */ |
| 995 | type Ushort = uint16 /* types.h:149:28 */ |
| 996 | type Uint = uint32 /* types.h:150:22 */ |
| 997 | |
| 998 | // These size-specific names are used by some of the inet code. |
| 999 | |
| 1000 | // Define intN_t types. |
| 1001 | // Copyright (C) 2017-2020 Free Software Foundation, Inc. |
| 1002 | // This file is part of the GNU C Library. |
| 1003 | // |
| 1004 | // The GNU C Library is free software; you can redistribute it and/or |
| 1005 | // modify it under the terms of the GNU Lesser General Public |
| 1006 | // License as published by the Free Software Foundation; either |
| 1007 | // version 2.1 of the License, or (at your option) any later version. |
| 1008 | // |
| 1009 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1010 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1011 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1012 | // Lesser General Public License for more details. |
| 1013 | // |
| 1014 | // You should have received a copy of the GNU Lesser General Public |
| 1015 | // License along with the GNU C Library; if not, see |
| 1016 | // <https://www.gnu.org/licenses/>. |
| 1017 | |
| 1018 | // bits/types.h -- definitions of __*_t types underlying *_t types. |
| 1019 | // Copyright (C) 2002-2020 Free Software Foundation, Inc. |
| 1020 | // This file is part of the GNU C Library. |
| 1021 | // |
| 1022 | // The GNU C Library is free software; you can redistribute it and/or |
| 1023 | // modify it under the terms of the GNU Lesser General Public |
| 1024 | // License as published by the Free Software Foundation; either |
| 1025 | // version 2.1 of the License, or (at your option) any later version. |
| 1026 | // |
| 1027 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1028 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1029 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1030 | // Lesser General Public License for more details. |
| 1031 | // |
| 1032 | // You should have received a copy of the GNU Lesser General Public |
| 1033 | // License along with the GNU C Library; if not, see |
| 1034 | // <https://www.gnu.org/licenses/>. |
| 1035 | |
| 1036 | // Never include this file directly; use <sys/types.h> instead. |
| 1037 | |
| 1038 | type Int8_t = X__int8_t /* stdint-intn.h:24:18 */ |
| 1039 | type Int16_t = X__int16_t /* stdint-intn.h:25:19 */ |
| 1040 | type Int32_t = X__int32_t /* stdint-intn.h:26:19 */ |
| 1041 | type Int64_t = X__int64_t /* stdint-intn.h:27:19 */ |
| 1042 | |
| 1043 | // These were defined by ISO C without the first `_'. |
| 1044 | type U_int8_t = X__uint8_t /* types.h:158:19 */ |
| 1045 | type U_int16_t = X__uint16_t /* types.h:159:20 */ |
| 1046 | type U_int32_t = X__uint32_t /* types.h:160:20 */ |
| 1047 | type U_int64_t = X__uint64_t /* types.h:161:20 */ |
| 1048 | |
| 1049 | type Register_t = int32 /* types.h:164:13 */ |
| 1050 | |
| 1051 | // It also defines `fd_set' and the FD_* macros for `select'. |
| 1052 | // `fd_set' type and related macros, and `select'/`pselect' declarations. |
| 1053 | // Copyright (C) 1996-2020 Free Software Foundation, Inc. |
| 1054 | // This file is part of the GNU C Library. |
| 1055 | // |
| 1056 | // The GNU C Library is free software; you can redistribute it and/or |
| 1057 | // modify it under the terms of the GNU Lesser General Public |
| 1058 | // License as published by the Free Software Foundation; either |
| 1059 | // version 2.1 of the License, or (at your option) any later version. |
| 1060 | // |
| 1061 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1062 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1063 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1064 | // Lesser General Public License for more details. |
| 1065 | // |
| 1066 | // You should have received a copy of the GNU Lesser General Public |
| 1067 | // License along with the GNU C Library; if not, see |
| 1068 | // <https://www.gnu.org/licenses/>. |
| 1069 | |
| 1070 | // POSIX 1003.1g: 6.2 Select from File Descriptor Sets <sys/select.h> |
| 1071 | |
| 1072 | // Copyright (C) 1991-2020 Free Software Foundation, Inc. |
| 1073 | // This file is part of the GNU C Library. |
| 1074 | // |
| 1075 | // The GNU C Library is free software; you can redistribute it and/or |
| 1076 | // modify it under the terms of the GNU Lesser General Public |
| 1077 | // License as published by the Free Software Foundation; either |
| 1078 | // version 2.1 of the License, or (at your option) any later version. |
| 1079 | // |
| 1080 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1081 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1082 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1083 | // Lesser General Public License for more details. |
| 1084 | // |
| 1085 | // You should have received a copy of the GNU Lesser General Public |
| 1086 | // License along with the GNU C Library; if not, see |
| 1087 | // <https://www.gnu.org/licenses/>. |
| 1088 | |
| 1089 | // Get definition of needed basic types. |
| 1090 | // bits/types.h -- definitions of __*_t types underlying *_t types. |
| 1091 | // Copyright (C) 2002-2020 Free Software Foundation, Inc. |
| 1092 | // This file is part of the GNU C Library. |
| 1093 | // |
| 1094 | // The GNU C Library is free software; you can redistribute it and/or |
| 1095 | // modify it under the terms of the GNU Lesser General Public |
| 1096 | // License as published by the Free Software Foundation; either |
| 1097 | // version 2.1 of the License, or (at your option) any later version. |
| 1098 | // |
| 1099 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1100 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1101 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1102 | // Lesser General Public License for more details. |
| 1103 | // |
| 1104 | // You should have received a copy of the GNU Lesser General Public |
| 1105 | // License along with the GNU C Library; if not, see |
| 1106 | // <https://www.gnu.org/licenses/>. |
| 1107 | |
| 1108 | // Never include this file directly; use <sys/types.h> instead. |
| 1109 | |
| 1110 | // Get __FD_* definitions. |
| 1111 | // Copyright (C) 1997-2020 Free Software Foundation, Inc. |
| 1112 | // This file is part of the GNU C Library. |
| 1113 | // |
| 1114 | // The GNU C Library is free software; you can redistribute it and/or |
| 1115 | // modify it under the terms of the GNU Lesser General Public |
| 1116 | // License as published by the Free Software Foundation; either |
| 1117 | // version 2.1 of the License, or (at your option) any later version. |
| 1118 | // |
| 1119 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1120 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1121 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1122 | // Lesser General Public License for more details. |
| 1123 | // |
| 1124 | // You should have received a copy of the GNU Lesser General Public |
| 1125 | // License along with the GNU C Library; if not, see |
| 1126 | // <https://www.gnu.org/licenses/>. |
| 1127 | |
| 1128 | // We don't use `memset' because this would require a prototype and |
| 1129 | // the array isn't too big. |
| 1130 | |
| 1131 | // Get sigset_t. |
| 1132 | |
| 1133 | type X__sigset_t = struct{ F__val [16]uint64 } /* __sigset_t.h:8:3 */ |
| 1134 | |
| 1135 | // A set of signals to be blocked, unblocked, or waited for. |
| 1136 | type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */ |
| 1137 | |
| 1138 | // Get definition of timer specification structures. |
| 1139 | |
| 1140 | // bits/types.h -- definitions of __*_t types underlying *_t types. |
| 1141 | // Copyright (C) 2002-2020 Free Software Foundation, Inc. |
| 1142 | // This file is part of the GNU C Library. |
| 1143 | // |
| 1144 | // The GNU C Library is free software; you can redistribute it and/or |
| 1145 | // modify it under the terms of the GNU Lesser General Public |
| 1146 | // License as published by the Free Software Foundation; either |
| 1147 | // version 2.1 of the License, or (at your option) any later version. |
| 1148 | // |
| 1149 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1150 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1151 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1152 | // Lesser General Public License for more details. |
| 1153 | // |
| 1154 | // You should have received a copy of the GNU Lesser General Public |
| 1155 | // License along with the GNU C Library; if not, see |
| 1156 | // <https://www.gnu.org/licenses/>. |
| 1157 | |
| 1158 | // Never include this file directly; use <sys/types.h> instead. |
| 1159 | |
| 1160 | // A time value that is accurate to the nearest |
| 1161 | // |
| 1162 | // microsecond but also has a range of years. |
| 1163 | type Timeval = struct { |
| 1164 | Ftv_sec X__time_t |
| 1165 | Ftv_usec X__suseconds_t |
| 1166 | } /* struct_timeval.h:8:1 */ |
| 1167 | |
| 1168 | // NB: Include guard matches what <linux/time.h> uses. |
| 1169 | |
| 1170 | // bits/types.h -- definitions of __*_t types underlying *_t types. |
| 1171 | // Copyright (C) 2002-2020 Free Software Foundation, Inc. |
| 1172 | // This file is part of the GNU C Library. |
| 1173 | // |
| 1174 | // The GNU C Library is free software; you can redistribute it and/or |
| 1175 | // modify it under the terms of the GNU Lesser General Public |
| 1176 | // License as published by the Free Software Foundation; either |
| 1177 | // version 2.1 of the License, or (at your option) any later version. |
| 1178 | // |
| 1179 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1180 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1181 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1182 | // Lesser General Public License for more details. |
| 1183 | // |
| 1184 | // You should have received a copy of the GNU Lesser General Public |
| 1185 | // License along with the GNU C Library; if not, see |
| 1186 | // <https://www.gnu.org/licenses/>. |
| 1187 | |
| 1188 | // Never include this file directly; use <sys/types.h> instead. |
| 1189 | |
| 1190 | // Endian macros for string.h functions |
| 1191 | // Copyright (C) 1992-2020 Free Software Foundation, Inc. |
| 1192 | // This file is part of the GNU C Library. |
| 1193 | // |
| 1194 | // The GNU C Library is free software; you can redistribute it and/or |
| 1195 | // modify it under the terms of the GNU Lesser General Public |
| 1196 | // License as published by the Free Software Foundation; either |
| 1197 | // version 2.1 of the License, or (at your option) any later version. |
| 1198 | // |
| 1199 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1200 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1201 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1202 | // Lesser General Public License for more details. |
| 1203 | // |
| 1204 | // You should have received a copy of the GNU Lesser General Public |
| 1205 | // License along with the GNU C Library; if not, see |
| 1206 | // <http://www.gnu.org/licenses/>. |
| 1207 | |
| 1208 | // POSIX.1b structure for a time value. This is like a `struct timeval' but |
| 1209 | // |
| 1210 | // has nanoseconds instead of microseconds. |
| 1211 | type Timespec = struct { |
| 1212 | Ftv_sec X__time_t |
| 1213 | Ftv_nsec X__syscall_slong_t |
| 1214 | } /* struct_timespec.h:10:1 */ |
| 1215 | |
| 1216 | type Suseconds_t = X__suseconds_t /* select.h:43:23 */ |
| 1217 | |
| 1218 | // The fd_set member is required to be an array of longs. |
| 1219 | type X__fd_mask = int64 /* select.h:49:18 */ |
| 1220 | |
| 1221 | // Some versions of <linux/posix_types.h> define this macros. |
| 1222 | // It's easier to assume 8-bit bytes than to get CHAR_BIT. |
| 1223 | |
| 1224 | // fd_set for select and pselect. |
| 1225 | type Fd_set = struct{ F__fds_bits [16]X__fd_mask } /* select.h:70:5 */ |
| 1226 | |
| 1227 | // Maximum number of file descriptors in `fd_set'. |
| 1228 | |
| 1229 | // Sometimes the fd_set member is assumed to have this type. |
| 1230 | type Fd_mask = X__fd_mask /* select.h:77:19 */ |
| 1231 | |
| 1232 | // Define some inlines helping to catch common problems. |
| 1233 | |
| 1234 | type Blksize_t = X__blksize_t /* types.h:185:21 */ |
| 1235 | |
| 1236 | // Types from the Large File Support interface. |
| 1237 | type Blkcnt_t = X__blkcnt64_t /* types.h:205:22 */ // Type to count number of disk blocks. |
| 1238 | type Fsblkcnt_t = X__fsblkcnt64_t /* types.h:209:24 */ // Type to count file system blocks. |
| 1239 | type Fsfilcnt_t = X__fsfilcnt64_t /* types.h:213:24 */ // Type to count file system inodes. |
| 1240 | |
| 1241 | // Now add the thread types. |
| 1242 | // Declaration of common pthread types for all architectures. |
| 1243 | // Copyright (C) 2017-2020 Free Software Foundation, Inc. |
| 1244 | // This file is part of the GNU C Library. |
| 1245 | // |
| 1246 | // The GNU C Library is free software; you can redistribute it and/or |
| 1247 | // modify it under the terms of the GNU Lesser General Public |
| 1248 | // License as published by the Free Software Foundation; either |
| 1249 | // version 2.1 of the License, or (at your option) any later version. |
| 1250 | // |
| 1251 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1252 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1253 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1254 | // Lesser General Public License for more details. |
| 1255 | // |
| 1256 | // You should have received a copy of the GNU Lesser General Public |
| 1257 | // License along with the GNU C Library; if not, see |
| 1258 | // <https://www.gnu.org/licenses/>. |
| 1259 | |
| 1260 | // For internal mutex and condition variable definitions. |
| 1261 | // Common threading primitives definitions for both POSIX and C11. |
| 1262 | // Copyright (C) 2017-2020 Free Software Foundation, Inc. |
| 1263 | // This file is part of the GNU C Library. |
| 1264 | // |
| 1265 | // The GNU C Library is free software; you can redistribute it and/or |
| 1266 | // modify it under the terms of the GNU Lesser General Public |
| 1267 | // License as published by the Free Software Foundation; either |
| 1268 | // version 2.1 of the License, or (at your option) any later version. |
| 1269 | // |
| 1270 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1271 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1272 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1273 | // Lesser General Public License for more details. |
| 1274 | // |
| 1275 | // You should have received a copy of the GNU Lesser General Public |
| 1276 | // License along with the GNU C Library; if not, see |
| 1277 | // <https://www.gnu.org/licenses/>. |
| 1278 | |
| 1279 | // Arch-specific definitions. Each architecture must define the following |
| 1280 | // macros to define the expected sizes of pthread data types: |
| 1281 | // |
| 1282 | // __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. |
| 1283 | // __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. |
| 1284 | // __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. |
| 1285 | // __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. |
| 1286 | // __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. |
| 1287 | // __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. |
| 1288 | // __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. |
| 1289 | // __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. |
| 1290 | // __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. |
| 1291 | // |
| 1292 | // The additional macro defines any constraint for the lock alignment |
| 1293 | // inside the thread structures: |
| 1294 | // |
| 1295 | // __LOCK_ALIGNMENT - for internal lock/futex usage. |
| 1296 | // |
| 1297 | // Same idea but for the once locking primitive: |
| 1298 | // |
| 1299 | // __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. |
| 1300 | |
| 1301 | // Machine-specific pthread type layouts. Generic version. |
| 1302 | // Copyright (C) 2019-2020 Free Software Foundation, Inc. |
| 1303 | // |
| 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 | // <http://www.gnu.org/licenses/>. |
| 1319 | |
| 1320 | // Determine the wordsize from the preprocessor defines. |
| 1321 | |
| 1322 | // Common definition of pthread_mutex_t. |
| 1323 | |
| 1324 | type X__pthread_internal_list = struct { |
| 1325 | F__prev uintptr |
| 1326 | F__next uintptr |
| 1327 | } /* thread-shared-types.h:49:9 */ |
| 1328 | |
| 1329 | // Type to count file system inodes. |
| 1330 | |
| 1331 | // Now add the thread types. |
| 1332 | // Declaration of common pthread types for all architectures. |
| 1333 | // Copyright (C) 2017-2020 Free Software Foundation, Inc. |
| 1334 | // This file is part of the GNU C Library. |
| 1335 | // |
| 1336 | // The GNU C Library is free software; you can redistribute it and/or |
| 1337 | // modify it under the terms of the GNU Lesser General Public |
| 1338 | // License as published by the Free Software Foundation; either |
| 1339 | // version 2.1 of the License, or (at your option) any later version. |
| 1340 | // |
| 1341 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1342 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1343 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1344 | // Lesser General Public License for more details. |
| 1345 | // |
| 1346 | // You should have received a copy of the GNU Lesser General Public |
| 1347 | // License along with the GNU C Library; if not, see |
| 1348 | // <https://www.gnu.org/licenses/>. |
| 1349 | |
| 1350 | // For internal mutex and condition variable definitions. |
| 1351 | // Common threading primitives definitions for both POSIX and C11. |
| 1352 | // Copyright (C) 2017-2020 Free Software Foundation, Inc. |
| 1353 | // This file is part of the GNU C Library. |
| 1354 | // |
| 1355 | // The GNU C Library is free software; you can redistribute it and/or |
| 1356 | // modify it under the terms of the GNU Lesser General Public |
| 1357 | // License as published by the Free Software Foundation; either |
| 1358 | // version 2.1 of the License, or (at your option) any later version. |
| 1359 | // |
| 1360 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1361 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1362 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1363 | // Lesser General Public License for more details. |
| 1364 | // |
| 1365 | // You should have received a copy of the GNU Lesser General Public |
| 1366 | // License along with the GNU C Library; if not, see |
| 1367 | // <https://www.gnu.org/licenses/>. |
| 1368 | |
| 1369 | // Arch-specific definitions. Each architecture must define the following |
| 1370 | // macros to define the expected sizes of pthread data types: |
| 1371 | // |
| 1372 | // __SIZEOF_PTHREAD_ATTR_T - size of pthread_attr_t. |
| 1373 | // __SIZEOF_PTHREAD_MUTEX_T - size of pthread_mutex_t. |
| 1374 | // __SIZEOF_PTHREAD_MUTEXATTR_T - size of pthread_mutexattr_t. |
| 1375 | // __SIZEOF_PTHREAD_COND_T - size of pthread_cond_t. |
| 1376 | // __SIZEOF_PTHREAD_CONDATTR_T - size of pthread_condattr_t. |
| 1377 | // __SIZEOF_PTHREAD_RWLOCK_T - size of pthread_rwlock_t. |
| 1378 | // __SIZEOF_PTHREAD_RWLOCKATTR_T - size of pthread_rwlockattr_t. |
| 1379 | // __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t. |
| 1380 | // __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t. |
| 1381 | // |
| 1382 | // The additional macro defines any constraint for the lock alignment |
| 1383 | // inside the thread structures: |
| 1384 | // |
| 1385 | // __LOCK_ALIGNMENT - for internal lock/futex usage. |
| 1386 | // |
| 1387 | // Same idea but for the once locking primitive: |
| 1388 | // |
| 1389 | // __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition. |
| 1390 | |
| 1391 | // Machine-specific pthread type layouts. Generic version. |
| 1392 | // Copyright (C) 2019-2020 Free Software Foundation, Inc. |
| 1393 | // |
| 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 | // <http://www.gnu.org/licenses/>. |
| 1409 | |
| 1410 | // Determine the wordsize from the preprocessor defines. |
| 1411 | |
| 1412 | // Common definition of pthread_mutex_t. |
| 1413 | |
| 1414 | type X__pthread_list_t = X__pthread_internal_list /* thread-shared-types.h:53:3 */ |
| 1415 | |
| 1416 | type X__pthread_internal_slist = struct{ F__next uintptr } /* thread-shared-types.h:55:9 */ |
| 1417 | |
| 1418 | type X__pthread_slist_t = X__pthread_internal_slist /* thread-shared-types.h:58:3 */ |
| 1419 | |
| 1420 | // Arch-specific mutex definitions. A generic implementation is provided |
| 1421 | // by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture |
| 1422 | // can override it by defining: |
| 1423 | // |
| 1424 | // 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t |
| 1425 | // definition). It should contains at least the internal members |
| 1426 | // defined in the generic version. |
| 1427 | // |
| 1428 | // 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with |
| 1429 | // atomic operations. |
| 1430 | // |
| 1431 | // 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization. |
| 1432 | // It should initialize the mutex internal flag. |
| 1433 | |
| 1434 | // S390 internal mutex struct definitions. |
| 1435 | // Copyright (C) 2019-2020 Free Software Foundation, Inc. |
| 1436 | // This file is part of the GNU C Library. |
| 1437 | // |
| 1438 | // The GNU C Library is free software; you can redistribute it and/or |
| 1439 | // modify it under the terms of the GNU Lesser General Public |
| 1440 | // License as published by the Free Software Foundation; either |
| 1441 | // version 2.1 of the License, or (at your option) any later version. |
| 1442 | // |
| 1443 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1444 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1445 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1446 | // Lesser General Public License for more details. |
| 1447 | // |
| 1448 | // You should have received a copy of the GNU Lesser General Public |
| 1449 | // License along with the GNU C Library; if not, see |
| 1450 | // <http://www.gnu.org/licenses/>. |
| 1451 | |
| 1452 | type X__pthread_mutex_s = struct { |
| 1453 | F__lock int32 |
| 1454 | F__count uint32 |
| 1455 | F__owner int32 |
| 1456 | F__nusers uint32 |
| 1457 | F__kind int32 |
| 1458 | F__spins int16 |
| 1459 | F__elision int16 |
| 1460 | F__list X__pthread_list_t |
| 1461 | } /* struct_mutex.h:22:1 */ |
| 1462 | |
| 1463 | // Arch-sepecific read-write lock definitions. A generic implementation is |
| 1464 | // provided by struct_rwlock.h. If required, an architecture can override it |
| 1465 | // by defining: |
| 1466 | // |
| 1467 | // 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition). |
| 1468 | // It should contain at least the internal members defined in the |
| 1469 | // generic version. |
| 1470 | // |
| 1471 | // 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization. |
| 1472 | // It should initialize the rwlock internal type. |
| 1473 | |
| 1474 | // S390 internal rwlock struct definitions. |
| 1475 | // Copyright (C) 2019-2020 Free Software Foundation, Inc. |
| 1476 | // |
| 1477 | // This file is part of the GNU C Library. |
| 1478 | // |
| 1479 | // The GNU C Library is free software; you can redistribute it and/or |
| 1480 | // modify it under the terms of the GNU Lesser General Public |
| 1481 | // License as published by the Free Software Foundation; either |
| 1482 | // version 2.1 of the License, or (at your option) any later version. |
| 1483 | // |
| 1484 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1485 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1486 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1487 | // Lesser General Public License for more details. |
| 1488 | // |
| 1489 | // You should have received a copy of the GNU Lesser General Public |
| 1490 | // License along with the GNU C Library; if not, see |
| 1491 | // <http://www.gnu.org/licenses/>. |
| 1492 | |
| 1493 | type X__pthread_rwlock_arch_t = struct { |
| 1494 | F__readers uint32 |
| 1495 | F__writers uint32 |
| 1496 | F__wrphase_futex uint32 |
| 1497 | F__writers_futex uint32 |
| 1498 | F__pad3 uint32 |
| 1499 | F__pad4 uint32 |
| 1500 | F__cur_writer int32 |
| 1501 | F__shared int32 |
| 1502 | F__pad1 uint64 |
| 1503 | F__pad2 uint64 |
| 1504 | F__flags uint32 |
| 1505 | F__ccgo_pad1 [4]byte |
| 1506 | } /* struct_rwlock.h:23:1 */ |
| 1507 | |
| 1508 | // Common definition of pthread_cond_t. |
| 1509 | |
| 1510 | type X__pthread_cond_s = struct { |
| 1511 | F__0 struct{ F__wseq uint64 } |
| 1512 | F__8 struct{ F__g1_start uint64 } |
| 1513 | F__g_refs [2]uint32 |
| 1514 | F__g_size [2]uint32 |
| 1515 | F__g1_orig_size uint32 |
| 1516 | F__wrefs uint32 |
| 1517 | F__g_signals [2]uint32 |
| 1518 | } /* thread-shared-types.h:92:1 */ |
| 1519 | |
| 1520 | // Thread identifiers. The structure of the attribute type is not |
| 1521 | // |
| 1522 | // exposed on purpose. |
| 1523 | type Pthread_t = uint64 /* pthreadtypes.h:27:27 */ |
| 1524 | |
| 1525 | // Data structures for mutex handling. The structure of the attribute |
| 1526 | // |
| 1527 | // type is not exposed on purpose. |
| 1528 | type Pthread_mutexattr_t = struct { |
| 1529 | F__ccgo_pad1 [0]uint32 |
| 1530 | F__size [4]uint8 |
| 1531 | } /* pthreadtypes.h:36:3 */ |
| 1532 | |
| 1533 | // Data structure for condition variable handling. The structure of |
| 1534 | // |
| 1535 | // the attribute type is not exposed on purpose. |
| 1536 | type Pthread_condattr_t = struct { |
| 1537 | F__ccgo_pad1 [0]uint32 |
| 1538 | F__size [4]uint8 |
| 1539 | } /* pthreadtypes.h:45:3 */ |
| 1540 | |
| 1541 | // Keys for thread-specific data |
| 1542 | type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */ |
| 1543 | |
| 1544 | // Once-only execution |
| 1545 | type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */ |
| 1546 | |
| 1547 | type Pthread_attr_t1 = struct { |
| 1548 | F__ccgo_pad1 [0]uint64 |
| 1549 | F__size [56]uint8 |
| 1550 | } /* pthreadtypes.h:56:1 */ |
| 1551 | |
| 1552 | type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */ |
| 1553 | |
| 1554 | type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72:3 */ |
| 1555 | |
| 1556 | type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */ |
| 1557 | |
| 1558 | // Data structure for reader-writer lock variable handling. The |
| 1559 | // |
| 1560 | // structure of the attribute type is deliberately not exposed. |
| 1561 | type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */ |
| 1562 | |
| 1563 | type Pthread_rwlockattr_t = struct { |
| 1564 | F__ccgo_pad1 [0]uint64 |
| 1565 | F__size [8]uint8 |
| 1566 | } /* pthreadtypes.h:97:3 */ |
| 1567 | |
| 1568 | // POSIX spinlock data type. |
| 1569 | type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */ |
| 1570 | |
| 1571 | // POSIX barriers data type. The structure of the type is |
| 1572 | // |
| 1573 | // deliberately not exposed. |
| 1574 | type Pthread_barrier_t = struct { |
| 1575 | F__ccgo_pad1 [0]uint64 |
| 1576 | F__size [32]uint8 |
| 1577 | } /* pthreadtypes.h:112:3 */ |
| 1578 | |
| 1579 | type Pthread_barrierattr_t = struct { |
| 1580 | F__ccgo_pad1 [0]uint32 |
| 1581 | F__size [4]uint8 |
| 1582 | } /* pthreadtypes.h:118:3 */ |
| 1583 | |
| 1584 | // Copyright (C) 1991-2020 Free Software Foundation, Inc. |
| 1585 | // This file is part of the GNU C Library. |
| 1586 | // |
| 1587 | // The GNU C Library is free software; you can redistribute it and/or |
| 1588 | // modify it under the terms of the GNU Lesser General Public |
| 1589 | // License as published by the Free Software Foundation; either |
| 1590 | // version 2.1 of the License, or (at your option) any later version. |
| 1591 | // |
| 1592 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1593 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1594 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1595 | // Lesser General Public License for more details. |
| 1596 | // |
| 1597 | // You should have received a copy of the GNU Lesser General Public |
| 1598 | // License along with the GNU C Library; if not, see |
| 1599 | // <https://www.gnu.org/licenses/>. |
| 1600 | |
| 1601 | // POSIX Standard: 5.6 File Characteristics <sys/stat.h> |
| 1602 | |
| 1603 | // Copyright (C) 1991-2020 Free Software Foundation, Inc. |
| 1604 | // This file is part of the GNU C Library. |
| 1605 | // |
| 1606 | // The GNU C Library is free software; you can redistribute it and/or |
| 1607 | // modify it under the terms of the GNU Lesser General Public |
| 1608 | // License as published by the Free Software Foundation; either |
| 1609 | // version 2.1 of the License, or (at your option) any later version. |
| 1610 | // |
| 1611 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1612 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1613 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1614 | // Lesser General Public License for more details. |
| 1615 | // |
| 1616 | // You should have received a copy of the GNU Lesser General Public |
| 1617 | // License along with the GNU C Library; if not, see |
| 1618 | // <https://www.gnu.org/licenses/>. |
| 1619 | |
| 1620 | // bits/types.h -- definitions of __*_t types underlying *_t types. |
| 1621 | // Copyright (C) 2002-2020 Free Software Foundation, Inc. |
| 1622 | // This file is part of the GNU C Library. |
| 1623 | // |
| 1624 | // The GNU C Library is free software; you can redistribute it and/or |
| 1625 | // modify it under the terms of the GNU Lesser General Public |
| 1626 | // License as published by the Free Software Foundation; either |
| 1627 | // version 2.1 of the License, or (at your option) any later version. |
| 1628 | // |
| 1629 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1630 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1631 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1632 | // Lesser General Public License for more details. |
| 1633 | // |
| 1634 | // You should have received a copy of the GNU Lesser General Public |
| 1635 | // License along with the GNU C Library; if not, see |
| 1636 | // <https://www.gnu.org/licenses/>. |
| 1637 | |
| 1638 | // Never include this file directly; use <sys/types.h> instead. |
| 1639 | |
| 1640 | // NB: Include guard matches what <linux/time.h> uses. |
| 1641 | |
| 1642 | // The Single Unix specification says that some more types are |
| 1643 | // available here. |
| 1644 | |
| 1645 | // Copyright (C) 2000-2020 Free Software Foundation, Inc. |
| 1646 | // This file is part of the GNU C Library. |
| 1647 | // |
| 1648 | // The GNU C Library is free software; you can redistribute it and/or |
| 1649 | // modify it under the terms of the GNU Lesser General Public |
| 1650 | // License as published by the Free Software Foundation; either |
| 1651 | // version 2.1 of the License, or (at your option) any later version. |
| 1652 | // |
| 1653 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1654 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1655 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1656 | // Lesser General Public License for more details. |
| 1657 | // |
| 1658 | // You should have received a copy of the GNU Lesser General Public |
| 1659 | // License along with the GNU C Library; if not, see |
| 1660 | // <https://www.gnu.org/licenses/>. |
| 1661 | |
| 1662 | // Determine the wordsize from the preprocessor defines. |
| 1663 | |
| 1664 | // Versions of the `struct stat' data structure. |
| 1665 | |
| 1666 | // Versions of the `xmknod' interface. |
| 1667 | |
| 1668 | type Stat = struct { |
| 1669 | Fst_dev X__dev_t |
| 1670 | Fst_ino X__ino_t |
| 1671 | Fst_nlink X__nlink_t |
| 1672 | Fst_mode X__mode_t |
| 1673 | Fst_uid X__uid_t |
| 1674 | Fst_gid X__gid_t |
| 1675 | F__glibc_reserved0 int32 |
| 1676 | Fst_rdev X__dev_t |
| 1677 | Fst_size X__off_t |
| 1678 | Fst_atim struct { |
| 1679 | Ftv_sec X__time_t |
| 1680 | Ftv_nsec X__syscall_slong_t |
| 1681 | } |
| 1682 | Fst_mtim struct { |
| 1683 | Ftv_sec X__time_t |
| 1684 | Ftv_nsec X__syscall_slong_t |
| 1685 | } |
| 1686 | Fst_ctim struct { |
| 1687 | Ftv_sec X__time_t |
| 1688 | Ftv_nsec X__syscall_slong_t |
| 1689 | } |
| 1690 | Fst_blksize X__blksize_t |
| 1691 | Fst_blocks X__blkcnt_t |
| 1692 | F__glibc_reserved [3]int64 |
| 1693 | } /* stat.h:50:1 */ |
| 1694 | |
| 1695 | // File tree traversal functions declarations. |
| 1696 | // Copyright (C) 1994-2020 Free Software Foundation, Inc. |
| 1697 | // This file is part of the GNU C Library. |
| 1698 | // |
| 1699 | // The GNU C Library is free software; you can redistribute it and/or |
| 1700 | // modify it under the terms of the GNU Lesser General Public |
| 1701 | // License as published by the Free Software Foundation; either |
| 1702 | // version 2.1 of the License, or (at your option) any later version. |
| 1703 | // |
| 1704 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1705 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1706 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1707 | // Lesser General Public License for more details. |
| 1708 | // |
| 1709 | // You should have received a copy of the GNU Lesser General Public |
| 1710 | // License along with the GNU C Library; if not, see |
| 1711 | // <https://www.gnu.org/licenses/>. |
| 1712 | |
| 1713 | // Copyright (c) 1989, 1993 |
| 1714 | // The Regents of the University of California. All rights reserved. |
| 1715 | // |
| 1716 | // Redistribution and use in source and binary forms, with or without |
| 1717 | // modification, are permitted provided that the following conditions |
| 1718 | // are met: |
| 1719 | // 1. Redistributions of source code must retain the above copyright |
| 1720 | // notice, this list of conditions and the following disclaimer. |
| 1721 | // 2. Redistributions in binary form must reproduce the above copyright |
| 1722 | // notice, this list of conditions and the following disclaimer in the |
| 1723 | // documentation and/or other materials provided with the distribution. |
| 1724 | // 4. Neither the name of the University nor the names of its contributors |
| 1725 | // may be used to endorse or promote products derived from this software |
| 1726 | // without specific prior written permission. |
| 1727 | // |
| 1728 | // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
| 1729 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 1730 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 1731 | // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
| 1732 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 1733 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
| 1734 | // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 1735 | // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
| 1736 | // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 1737 | // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 1738 | // SUCH DAMAGE. |
| 1739 | // |
| 1740 | // @(#)fts.h 8.3 (Berkeley) 8/14/94 |
| 1741 | |
| 1742 | // Copyright (C) 1991-2020 Free Software Foundation, Inc. |
| 1743 | // This file is part of the GNU C Library. |
| 1744 | // |
| 1745 | // The GNU C Library is free software; you can redistribute it and/or |
| 1746 | // modify it under the terms of the GNU Lesser General Public |
| 1747 | // License as published by the Free Software Foundation; either |
| 1748 | // version 2.1 of the License, or (at your option) any later version. |
| 1749 | // |
| 1750 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1751 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1752 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1753 | // Lesser General Public License for more details. |
| 1754 | // |
| 1755 | // You should have received a copy of the GNU Lesser General Public |
| 1756 | // License along with the GNU C Library; if not, see |
| 1757 | // <https://www.gnu.org/licenses/>. |
| 1758 | |
| 1759 | // Copyright (C) 1991-2020 Free Software Foundation, Inc. |
| 1760 | // This file is part of the GNU C Library. |
| 1761 | // |
| 1762 | // The GNU C Library is free software; you can redistribute it and/or |
| 1763 | // modify it under the terms of the GNU Lesser General Public |
| 1764 | // License as published by the Free Software Foundation; either |
| 1765 | // version 2.1 of the License, or (at your option) any later version. |
| 1766 | // |
| 1767 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1768 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1769 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1770 | // Lesser General Public License for more details. |
| 1771 | // |
| 1772 | // You should have received a copy of the GNU Lesser General Public |
| 1773 | // License along with the GNU C Library; if not, see |
| 1774 | // <https://www.gnu.org/licenses/>. |
| 1775 | |
| 1776 | // POSIX Standard: 2.6 Primitive System Data Types <sys/types.h> |
| 1777 | |
| 1778 | type X_ftsent = struct { |
| 1779 | Ffts_cycle uintptr |
| 1780 | Ffts_parent uintptr |
| 1781 | Ffts_link uintptr |
| 1782 | Ffts_number int64 |
| 1783 | Ffts_pointer uintptr |
| 1784 | Ffts_accpath uintptr |
| 1785 | Ffts_path uintptr |
| 1786 | Ffts_errno int32 |
| 1787 | Ffts_symfd int32 |
| 1788 | Ffts_pathlen uint16 |
| 1789 | Ffts_namelen uint16 |
| 1790 | F__ccgo_pad1 [4]byte |
| 1791 | Ffts_ino Ino_t |
| 1792 | Ffts_dev Dev_t |
| 1793 | Ffts_nlink Nlink_t |
| 1794 | Ffts_level int16 |
| 1795 | Ffts_info uint16 |
| 1796 | Ffts_flags uint16 |
| 1797 | Ffts_instr uint16 |
| 1798 | Ffts_statp uintptr |
| 1799 | Ffts_name [1]uint8 |
| 1800 | F__ccgo_pad2 [7]byte |
| 1801 | } /* fts.h:58:2 */ |
| 1802 | |
| 1803 | // File tree traversal functions declarations. |
| 1804 | // Copyright (C) 1994-2020 Free Software Foundation, Inc. |
| 1805 | // This file is part of the GNU C Library. |
| 1806 | // |
| 1807 | // The GNU C Library is free software; you can redistribute it and/or |
| 1808 | // modify it under the terms of the GNU Lesser General Public |
| 1809 | // License as published by the Free Software Foundation; either |
| 1810 | // version 2.1 of the License, or (at your option) any later version. |
| 1811 | // |
| 1812 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1813 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1814 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1815 | // Lesser General Public License for more details. |
| 1816 | // |
| 1817 | // You should have received a copy of the GNU Lesser General Public |
| 1818 | // License along with the GNU C Library; if not, see |
| 1819 | // <https://www.gnu.org/licenses/>. |
| 1820 | |
| 1821 | // Copyright (c) 1989, 1993 |
| 1822 | // The Regents of the University of California. All rights reserved. |
| 1823 | // |
| 1824 | // Redistribution and use in source and binary forms, with or without |
| 1825 | // modification, are permitted provided that the following conditions |
| 1826 | // are met: |
| 1827 | // 1. Redistributions of source code must retain the above copyright |
| 1828 | // notice, this list of conditions and the following disclaimer. |
| 1829 | // 2. Redistributions in binary form must reproduce the above copyright |
| 1830 | // notice, this list of conditions and the following disclaimer in the |
| 1831 | // documentation and/or other materials provided with the distribution. |
| 1832 | // 4. Neither the name of the University nor the names of its contributors |
| 1833 | // may be used to endorse or promote products derived from this software |
| 1834 | // without specific prior written permission. |
| 1835 | // |
| 1836 | // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
| 1837 | // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 1838 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 1839 | // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
| 1840 | // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 1841 | // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
| 1842 | // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 1843 | // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
| 1844 | // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 1845 | // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 1846 | // SUCH DAMAGE. |
| 1847 | // |
| 1848 | // @(#)fts.h 8.3 (Berkeley) 8/14/94 |
| 1849 | |
| 1850 | // Copyright (C) 1991-2020 Free Software Foundation, Inc. |
| 1851 | // This file is part of the GNU C Library. |
| 1852 | // |
| 1853 | // The GNU C Library is free software; you can redistribute it and/or |
| 1854 | // modify it under the terms of the GNU Lesser General Public |
| 1855 | // License as published by the Free Software Foundation; either |
| 1856 | // version 2.1 of the License, or (at your option) any later version. |
| 1857 | // |
| 1858 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1859 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1860 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1861 | // Lesser General Public License for more details. |
| 1862 | // |
| 1863 | // You should have received a copy of the GNU Lesser General Public |
| 1864 | // License along with the GNU C Library; if not, see |
| 1865 | // <https://www.gnu.org/licenses/>. |
| 1866 | |
| 1867 | // Copyright (C) 1991-2020 Free Software Foundation, Inc. |
| 1868 | // This file is part of the GNU C Library. |
| 1869 | // |
| 1870 | // The GNU C Library is free software; you can redistribute it and/or |
| 1871 | // modify it under the terms of the GNU Lesser General Public |
| 1872 | // License as published by the Free Software Foundation; either |
| 1873 | // version 2.1 of the License, or (at your option) any later version. |
| 1874 | // |
| 1875 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1876 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1877 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1878 | // Lesser General Public License for more details. |
| 1879 | // |
| 1880 | // You should have received a copy of the GNU Lesser General Public |
| 1881 | // License along with the GNU C Library; if not, see |
| 1882 | // <https://www.gnu.org/licenses/>. |
| 1883 | |
| 1884 | // POSIX Standard: 2.6 Primitive System Data Types <sys/types.h> |
| 1885 | |
| 1886 | type FTS = struct { |
| 1887 | Ffts_cur uintptr |
| 1888 | Ffts_child uintptr |
| 1889 | Ffts_array uintptr |
| 1890 | Ffts_dev Dev_t |
| 1891 | Ffts_path uintptr |
| 1892 | Ffts_rfd int32 |
| 1893 | Ffts_pathlen int32 |
| 1894 | Ffts_nitems int32 |
| 1895 | F__ccgo_pad1 [4]byte |
| 1896 | Ffts_compar uintptr |
| 1897 | Ffts_options int32 |
| 1898 | F__ccgo_pad2 [4]byte |
| 1899 | } /* fts.h:81:3 */ |
| 1900 | |
| 1901 | type FTSENT = X_ftsent /* fts.h:147:3 */ |
| 1902 | |
| 1903 | var _ uint8 /* gen.c:5:13: */ |