Debian Codegraph @

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