Debian Codegraph @

dirent/dirent_linux_loong64.go

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