gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

termios_linux_riscv64.go (54390B)


      1 // Code generated by 'ccgo termios/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 termios/termios_linux_riscv64.go -pkgname termios', DO NOT EDIT.
      2 
      3 package termios
      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 	B0                             = 0000000
     19 	B1000000                       = 0010010
     20 	B110                           = 0000003
     21 	B115200                        = 0010002
     22 	B1152000                       = 0010011
     23 	B1200                          = 0000011
     24 	B134                           = 0000004
     25 	B150                           = 0000005
     26 	B1500000                       = 0010012
     27 	B1800                          = 0000012
     28 	B19200                         = 0000016
     29 	B200                           = 0000006
     30 	B2000000                       = 0010013
     31 	B230400                        = 0010003
     32 	B2400                          = 0000013
     33 	B2500000                       = 0010014
     34 	B300                           = 0000007
     35 	B3000000                       = 0010015
     36 	B3500000                       = 0010016
     37 	B38400                         = 0000017
     38 	B4000000                       = 0010017
     39 	B460800                        = 0010004
     40 	B4800                          = 0000014
     41 	B50                            = 0000001
     42 	B500000                        = 0010005
     43 	B57600                         = 0010001
     44 	B576000                        = 0010006
     45 	B600                           = 0000010
     46 	B75                            = 0000002
     47 	B921600                        = 0010007
     48 	B9600                          = 0000015
     49 	BRKINT                         = 0000002
     50 	BS0                            = 0000000
     51 	BS1                            = 0020000
     52 	BSDLY                          = 0020000
     53 	CBAUD                          = 000000010017
     54 	CBAUDEX                        = 000000010000
     55 	CBRK                           = 0
     56 	CDISCARD                       = 15
     57 	CDSUSP                         = 25
     58 	CEOF                           = 4
     59 	CEOL                           = 0
     60 	CEOT                           = 4
     61 	CERASE                         = 0177
     62 	CFLUSH                         = 15
     63 	CIBAUD                         = 002003600000
     64 	CINTR                          = 3
     65 	CKILL                          = 21
     66 	CLNEXT                         = 22
     67 	CLOCAL                         = 0004000
     68 	CMIN                           = 1
     69 	CMSPAR                         = 010000000000
     70 	CQUIT                          = 034
     71 	CR0                            = 0000000
     72 	CR1                            = 0001000
     73 	CR2                            = 0002000
     74 	CR3                            = 0003000
     75 	CRDLY                          = 0003000
     76 	CREAD                          = 0000200
     77 	CREPRINT                       = 18
     78 	CRPRNT                         = 18
     79 	CRTSCTS                        = 020000000000
     80 	CS5                            = 0000000
     81 	CS6                            = 0000020
     82 	CS7                            = 0000040
     83 	CS8                            = 0000060
     84 	CSIZE                          = 0000060
     85 	CSTART                         = 17
     86 	CSTATUS                        = 0
     87 	CSTOP                          = 19
     88 	CSTOPB                         = 0000100
     89 	CSUSP                          = 26
     90 	CTIME                          = 0
     91 	CWERASE                        = 23
     92 	ECHO                           = 0000010
     93 	ECHOCTL                        = 0001000
     94 	ECHOE                          = 0000020
     95 	ECHOK                          = 0000040
     96 	ECHOKE                         = 0004000
     97 	ECHONL                         = 0000100
     98 	ECHOPRT                        = 0002000
     99 	EXTA                           = 14
    100 	EXTB                           = 15
    101 	EXTPROC                        = 0200000
    102 	FF0                            = 0000000
    103 	FF1                            = 0100000
    104 	FFDLY                          = 0100000
    105 	FLUSHO                         = 0010000
    106 	HUPCL                          = 0002000
    107 	ICANON                         = 0000002
    108 	ICRNL                          = 0000400
    109 	IEXTEN                         = 0100000
    110 	IGNBRK                         = 0000001
    111 	IGNCR                          = 0000200
    112 	IGNPAR                         = 0000004
    113 	IMAXBEL                        = 0020000
    114 	INLCR                          = 0000100
    115 	INPCK                          = 0000020
    116 	ISIG                           = 0000001
    117 	ISTRIP                         = 0000040
    118 	IUCLC                          = 0001000
    119 	IUTF8                          = 0040000
    120 	IXANY                          = 0004000
    121 	IXOFF                          = 0010000
    122 	IXON                           = 0002000
    123 	NCCS                           = 32
    124 	NL0                            = 0000000
    125 	NL1                            = 0000400
    126 	NLDLY                          = 0000400
    127 	NOFLSH                         = 0000200
    128 	OCRNL                          = 0000010
    129 	OFDEL                          = 0000200
    130 	OFILL                          = 0000100
    131 	OLCUC                          = 0000002
    132 	ONLCR                          = 0000004
    133 	ONLRET                         = 0000040
    134 	ONOCR                          = 0000020
    135 	OPOST                          = 0000001
    136 	PARENB                         = 0000400
    137 	PARMRK                         = 0000010
    138 	PARODD                         = 0001000
    139 	PENDIN                         = 0040000
    140 	TAB0                           = 0000000
    141 	TAB1                           = 0004000
    142 	TAB2                           = 0010000
    143 	TAB3                           = 0014000
    144 	TABDLY                         = 0014000
    145 	TCIFLUSH                       = 0
    146 	TCIOFF                         = 2
    147 	TCIOFLUSH                      = 2
    148 	TCION                          = 3
    149 	TCOFLUSH                       = 1
    150 	TCOOFF                         = 0
    151 	TCOON                          = 1
    152 	TCSADRAIN                      = 1
    153 	TCSAFLUSH                      = 2
    154 	TCSANOW                        = 0
    155 	TIOCSER_TEMT                   = 0x01
    156 	TOSTOP                         = 0000400
    157 	TTYDEF_CFLAG                   = 1440
    158 	TTYDEF_IFLAG                   = 11554
    159 	TTYDEF_LFLAG                   = 35355
    160 	TTYDEF_OFLAG                   = 6149
    161 	TTYDEF_SPEED                   = 13
    162 	VDISCARD                       = 13
    163 	VEOF                           = 4
    164 	VEOL                           = 11
    165 	VEOL2                          = 16
    166 	VERASE                         = 2
    167 	VINTR                          = 0
    168 	VKILL                          = 3
    169 	VLNEXT                         = 15
    170 	VMIN                           = 6
    171 	VQUIT                          = 1
    172 	VREPRINT                       = 12
    173 	VSTART                         = 8
    174 	VSTOP                          = 9
    175 	VSUSP                          = 10
    176 	VSWTC                          = 7
    177 	VT0                            = 0000000
    178 	VT1                            = 0040000
    179 	VTDLY                          = 0040000
    180 	VTIME                          = 5
    181 	VWERASE                        = 14
    182 	XCASE                          = 0000004
    183 	XTABS                          = 0014000
    184 	X_ATFILE_SOURCE                = 1
    185 	X_BITS_TIME64_H                = 1
    186 	X_BITS_TYPESIZES_H             = 1
    187 	X_BITS_TYPES_H                 = 1
    188 	X_DEFAULT_SOURCE               = 1
    189 	X_FEATURES_H                   = 1
    190 	X_FILE_OFFSET_BITS             = 64
    191 	X_HAVE_STRUCT_TERMIOS_C_ISPEED = 1
    192 	X_HAVE_STRUCT_TERMIOS_C_OSPEED = 1
    193 	X_LP64                         = 1
    194 	X_POSIX_C_SOURCE               = 200809
    195 	X_POSIX_SOURCE                 = 1
    196 	X_STDC_PREDEF_H                = 1
    197 	X_SYS_CDEFS_H                  = 1
    198 	X_SYS_TTYDEFAULTS_H_           = 0
    199 	X_TERMIOS_H                    = 1
    200 	Linux                          = 1
    201 	Unix                           = 1
    202 )
    203 
    204 type Ptrdiff_t = int64 /* <builtin>:3:26 */
    205 
    206 type Size_t = uint64 /* <builtin>:9:23 */
    207 
    208 type Wchar_t = int32 /* <builtin>:15:24 */
    209 
    210 type X__int128_t = struct {
    211 	Flo int64
    212 	Fhi int64
    213 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
    214 type X__uint128_t = struct {
    215 	Flo uint64
    216 	Fhi uint64
    217 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
    218 
    219 type X__builtin_va_list = uintptr /* <builtin>:46:14 */
    220 type X__float128 = float64        /* <builtin>:47:21 */
    221 
    222 // Copyright (C) 1991-2021 Free Software Foundation, Inc.
    223 //    This file is part of the GNU C Library.
    224 //
    225 //    The GNU C Library is free software; you can redistribute it and/or
    226 //    modify it under the terms of the GNU Lesser General Public
    227 //    License as published by the Free Software Foundation; either
    228 //    version 2.1 of the License, or (at your option) any later version.
    229 //
    230 //    The GNU C Library is distributed in the hope that it will be useful,
    231 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    232 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    233 //    Lesser General Public License for more details.
    234 //
    235 //    You should have received a copy of the GNU Lesser General Public
    236 //    License along with the GNU C Library; if not, see
    237 //    <https://www.gnu.org/licenses/>.
    238 
    239 //	POSIX Standard: 7.1-2 General Terminal Interface	<termios.h>
    240 
    241 // Copyright (C) 1991-2021 Free Software Foundation, Inc.
    242 //    This file is part of the GNU C Library.
    243 //
    244 //    The GNU C Library is free software; you can redistribute it and/or
    245 //    modify it under the terms of the GNU Lesser General Public
    246 //    License as published by the Free Software Foundation; either
    247 //    version 2.1 of the License, or (at your option) any later version.
    248 //
    249 //    The GNU C Library is distributed in the hope that it will be useful,
    250 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    251 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    252 //    Lesser General Public License for more details.
    253 //
    254 //    You should have received a copy of the GNU Lesser General Public
    255 //    License along with the GNU C Library; if not, see
    256 //    <https://www.gnu.org/licenses/>.
    257 
    258 // These are defined by the user (or the compiler)
    259 //    to specify the desired environment:
    260 //
    261 //    __STRICT_ANSI__	ISO Standard C.
    262 //    _ISOC99_SOURCE	Extensions to ISO C89 from ISO C99.
    263 //    _ISOC11_SOURCE	Extensions to ISO C99 from ISO C11.
    264 //    _ISOC2X_SOURCE	Extensions to ISO C99 from ISO C2X.
    265 //    __STDC_WANT_LIB_EXT2__
    266 // 			Extensions to ISO C99 from TR 27431-2:2010.
    267 //    __STDC_WANT_IEC_60559_BFP_EXT__
    268 // 			Extensions to ISO C11 from TS 18661-1:2014.
    269 //    __STDC_WANT_IEC_60559_FUNCS_EXT__
    270 // 			Extensions to ISO C11 from TS 18661-4:2015.
    271 //    __STDC_WANT_IEC_60559_TYPES_EXT__
    272 // 			Extensions to ISO C11 from TS 18661-3:2015.
    273 //    __STDC_WANT_IEC_60559_EXT__
    274 // 			ISO C2X interfaces defined only in Annex F.
    275 //
    276 //    _POSIX_SOURCE	IEEE Std 1003.1.
    277 //    _POSIX_C_SOURCE	If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
    278 // 			if >=199309L, add IEEE Std 1003.1b-1993;
    279 // 			if >=199506L, add IEEE Std 1003.1c-1995;
    280 // 			if >=200112L, all of IEEE 1003.1-2004
    281 // 			if >=200809L, all of IEEE 1003.1-2008
    282 //    _XOPEN_SOURCE	Includes POSIX and XPG things.  Set to 500 if
    283 // 			Single Unix conformance is wanted, to 600 for the
    284 // 			sixth revision, to 700 for the seventh revision.
    285 //    _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
    286 //    _LARGEFILE_SOURCE	Some more functions for correct standard I/O.
    287 //    _LARGEFILE64_SOURCE	Additional functionality from LFS for large files.
    288 //    _FILE_OFFSET_BITS=N	Select default filesystem interface.
    289 //    _ATFILE_SOURCE	Additional *at interfaces.
    290 //    _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant)
    291 // 			MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN.
    292 //    _GNU_SOURCE		All of the above, plus GNU extensions.
    293 //    _DEFAULT_SOURCE	The default set of features (taking precedence over
    294 // 			__STRICT_ANSI__).
    295 //
    296 //    _FORTIFY_SOURCE	Add security hardening to many library functions.
    297 // 			Set to 1 or 2; 2 performs stricter checks than 1.
    298 //
    299 //    _REENTRANT, _THREAD_SAFE
    300 // 			Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
    301 //
    302 //    The `-ansi' switch to the GNU C compiler, and standards conformance
    303 //    options such as `-std=c99', define __STRICT_ANSI__.  If none of
    304 //    these are defined, or if _DEFAULT_SOURCE is defined, the default is
    305 //    to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
    306 //    200809L, as well as enabling miscellaneous functions from BSD and
    307 //    SVID.  If more than one of these are defined, they accumulate.  For
    308 //    example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
    309 //    give you ISO C, 1003.1, and 1003.2, but nothing else.
    310 //
    311 //    These are defined by this file and are used by the
    312 //    header files to decide what to declare or define:
    313 //
    314 //    __GLIBC_USE (F)	Define things from feature set F.  This is defined
    315 // 			to 1 or 0; the subsequent macros are either defined
    316 // 			or undefined, and those tests should be moved to
    317 // 			__GLIBC_USE.
    318 //    __USE_ISOC11		Define ISO C11 things.
    319 //    __USE_ISOC99		Define ISO C99 things.
    320 //    __USE_ISOC95		Define ISO C90 AMD1 (C95) things.
    321 //    __USE_ISOCXX11	Define ISO C++11 things.
    322 //    __USE_POSIX		Define IEEE Std 1003.1 things.
    323 //    __USE_POSIX2		Define IEEE Std 1003.2 things.
    324 //    __USE_POSIX199309	Define IEEE Std 1003.1, and .1b things.
    325 //    __USE_POSIX199506	Define IEEE Std 1003.1, .1b, .1c and .1i things.
    326 //    __USE_XOPEN		Define XPG things.
    327 //    __USE_XOPEN_EXTENDED	Define X/Open Unix things.
    328 //    __USE_UNIX98		Define Single Unix V2 things.
    329 //    __USE_XOPEN2K        Define XPG6 things.
    330 //    __USE_XOPEN2KXSI     Define XPG6 XSI things.
    331 //    __USE_XOPEN2K8       Define XPG7 things.
    332 //    __USE_XOPEN2K8XSI    Define XPG7 XSI things.
    333 //    __USE_LARGEFILE	Define correct standard I/O things.
    334 //    __USE_LARGEFILE64	Define LFS things with separate names.
    335 //    __USE_FILE_OFFSET64	Define 64bit interface as default.
    336 //    __USE_MISC		Define things from 4.3BSD or System V Unix.
    337 //    __USE_ATFILE		Define *at interfaces and AT_* constants for them.
    338 //    __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant)
    339 // 			MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN.
    340 //    __USE_GNU		Define GNU extensions.
    341 //    __USE_FORTIFY_LEVEL	Additional security measures used, according to level.
    342 //
    343 //    The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
    344 //    defined by this file unconditionally.  `__GNU_LIBRARY__' is provided
    345 //    only for compatibility.  All new code should use the other symbols
    346 //    to test for features.
    347 //
    348 //    All macros listed above as possibly being defined by this file are
    349 //    explicitly undefined if they are not explicitly defined.
    350 //    Feature-test macros that are not defined by the user or compiler
    351 //    but are implied by the other feature-test macros defined (or by the
    352 //    lack of any definitions) are defined by the file.
    353 //
    354 //    ISO C feature test macros depend on the definition of the macro
    355 //    when an affected header is included, not when the first system
    356 //    header is included, and so they are handled in
    357 //    <bits/libc-header-start.h>, which does not have a multiple include
    358 //    guard.  Feature test macros that can be handled from the first
    359 //    system header included are handled here.
    360 
    361 // Undefine everything, so we get a clean slate.
    362 
    363 // Suppress kernel-name space pollution unless user expressedly asks
    364 //    for it.
    365 
    366 // Convenience macro to test the version of gcc.
    367 //    Use like this:
    368 //    #if __GNUC_PREREQ (2,8)
    369 //    ... code requiring gcc 2.8 or later ...
    370 //    #endif
    371 //    Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
    372 //    added in 2.0.
    373 
    374 // Similarly for clang.  Features added to GCC after version 4.2 may
    375 //    or may not also be available in clang, and clang's definitions of
    376 //    __GNUC(_MINOR)__ are fixed at 4 and 2 respectively.  Not all such
    377 //    features can be queried via __has_extension/__has_feature.
    378 
    379 // Whether to use feature set F.
    380 
    381 // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
    382 //    _DEFAULT_SOURCE.  If _DEFAULT_SOURCE is present we do not
    383 //    issue a warning; the expectation is that the source is being
    384 //    transitioned to use the new macro.
    385 
    386 // If _GNU_SOURCE was defined by the user, turn on all the other features.
    387 
    388 // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
    389 //    define _DEFAULT_SOURCE.
    390 
    391 // This is to enable the ISO C2X extension.
    392 
    393 // This is to enable the ISO C11 extension.
    394 
    395 // This is to enable the ISO C99 extension.
    396 
    397 // This is to enable the ISO C90 Amendment 1:1995 extension.
    398 
    399 // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
    400 //    is defined, use POSIX.1-2008 (or another version depending on
    401 //    _XOPEN_SOURCE).
    402 
    403 // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
    404 //    defined in all multithreaded code.  GNU libc has not required this
    405 //    for many years.  We now treat them as compatibility synonyms for
    406 //    _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
    407 //    comprehensive support for multithreaded code.  Using them never
    408 //    lowers the selected level of POSIX conformance, only raises it.
    409 
    410 // Features part to handle 64-bit time_t support.
    411 //    Copyright (C) 2021 Free Software Foundation, Inc.
    412 //    This file is part of the GNU C Library.
    413 //
    414 //    The GNU C Library is free software; you can redistribute it and/or
    415 //    modify it under the terms of the GNU Lesser General Public
    416 //    License as published by the Free Software Foundation; either
    417 //    version 2.1 of the License, or (at your option) any later version.
    418 //
    419 //    The GNU C Library is distributed in the hope that it will be useful,
    420 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    421 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    422 //    Lesser General Public License for more details.
    423 //
    424 //    You should have received a copy of the GNU Lesser General Public
    425 //    License along with the GNU C Library; if not, see
    426 //    <https://www.gnu.org/licenses/>.
    427 
    428 // We need to know the word size in order to check the time size.
    429 // Determine the wordsize from the preprocessor defines.  RISC-V version.
    430 //    Copyright (C) 2002-2021 Free Software Foundation, Inc.
    431 //    This file is part of the GNU C Library.
    432 //
    433 //    The GNU C Library is free software; you can redistribute it and/or
    434 //    modify it under the terms of the GNU Lesser General Public
    435 //    License as published by the Free Software Foundation; either
    436 //    version 2.1 of the License, or (at your option) any later version.
    437 //
    438 //    The GNU C Library is distributed in the hope that it will be useful,
    439 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    440 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    441 //    Lesser General Public License for more details.
    442 //
    443 //    You should have received a copy of the GNU Lesser General Public
    444 //    License along with the GNU C Library.  If not, see
    445 //    <https://www.gnu.org/licenses/>.
    446 
    447 // Bit size of the time_t type at glibc build time, RISC-V case.
    448 //    Copyright (C) 2020-2021 Free Software Foundation, Inc.
    449 //    This file is part of the GNU C Library.
    450 //
    451 //    The GNU C Library is free software; you can redistribute it and/or
    452 //    modify it under the terms of the GNU Lesser General Public
    453 //    License as published by the Free Software Foundation; either
    454 //    version 2.1 of the License, or (at your option) any later version.
    455 //
    456 //    The GNU C Library is distributed in the hope that it will be useful,
    457 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    458 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    459 //    Lesser General Public License for more details.
    460 //
    461 //    You should have received a copy of the GNU Lesser General Public
    462 //    License along with the GNU C Library; if not, see
    463 //    <https://www.gnu.org/licenses/>.
    464 
    465 // Determine the wordsize from the preprocessor defines.  RISC-V version.
    466 //    Copyright (C) 2002-2021 Free Software Foundation, Inc.
    467 //    This file is part of the GNU C Library.
    468 //
    469 //    The GNU C Library is free software; you can redistribute it and/or
    470 //    modify it under the terms of the GNU Lesser General Public
    471 //    License as published by the Free Software Foundation; either
    472 //    version 2.1 of the License, or (at your option) any later version.
    473 //
    474 //    The GNU C Library is distributed in the hope that it will be useful,
    475 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    476 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    477 //    Lesser General Public License for more details.
    478 //
    479 //    You should have received a copy of the GNU Lesser General Public
    480 //    License along with the GNU C Library.  If not, see
    481 //    <https://www.gnu.org/licenses/>.
    482 
    483 // RV32 and RV64 both use 64-bit time_t
    484 
    485 // The function 'gets' existed in C89, but is impossible to use
    486 //    safely.  It has been removed from ISO C11 and ISO C++14.  Note: for
    487 //    compatibility with various implementations of <cstdio>, this test
    488 //    must consider only the value of __cplusplus when compiling C++.
    489 
    490 // GNU formerly extended the scanf functions with modified format
    491 //    specifiers %as, %aS, and %a[...] that allocate a buffer for the
    492 //    input using malloc.  This extension conflicts with ISO C99, which
    493 //    defines %a as a standalone format specifier that reads a floating-
    494 //    point number; moreover, POSIX.1-2008 provides the same feature
    495 //    using the modifier letter 'm' instead (%ms, %mS, %m[...]).
    496 //
    497 //    We now follow C99 unless GNU extensions are active and the compiler
    498 //    is specifically in C89 or C++98 mode (strict or not).  For
    499 //    instance, with GCC, -std=gnu11 will have C99-compliant scanf with
    500 //    or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
    501 //    old extension.
    502 
    503 // Get definitions of __STDC_* predefined macros, if the compiler has
    504 //    not preincluded this header automatically.
    505 // Copyright (C) 1991-2021 Free Software Foundation, Inc.
    506 //    This file is part of the GNU C Library.
    507 //
    508 //    The GNU C Library is free software; you can redistribute it and/or
    509 //    modify it under the terms of the GNU Lesser General Public
    510 //    License as published by the Free Software Foundation; either
    511 //    version 2.1 of the License, or (at your option) any later version.
    512 //
    513 //    The GNU C Library is distributed in the hope that it will be useful,
    514 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    515 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    516 //    Lesser General Public License for more details.
    517 //
    518 //    You should have received a copy of the GNU Lesser General Public
    519 //    License along with the GNU C Library; if not, see
    520 //    <https://www.gnu.org/licenses/>.
    521 
    522 // This macro indicates that the installed library is the GNU C Library.
    523 //    For historic reasons the value now is 6 and this will stay from now
    524 //    on.  The use of this variable is deprecated.  Use __GLIBC__ and
    525 //    __GLIBC_MINOR__ now (see below) when you want to test for a specific
    526 //    GNU C library version and use the values in <gnu/lib-names.h> to get
    527 //    the sonames of the shared libraries.
    528 
    529 // Major and minor version number of the GNU C library package.  Use
    530 //    these macros to test for features in specific releases.
    531 
    532 // This is here only because every header file already includes this one.
    533 // Copyright (C) 1992-2021 Free Software Foundation, Inc.
    534 //    This file is part of the GNU C Library.
    535 //
    536 //    The GNU C Library is free software; you can redistribute it and/or
    537 //    modify it under the terms of the GNU Lesser General Public
    538 //    License as published by the Free Software Foundation; either
    539 //    version 2.1 of the License, or (at your option) any later version.
    540 //
    541 //    The GNU C Library is distributed in the hope that it will be useful,
    542 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    543 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    544 //    Lesser General Public License for more details.
    545 //
    546 //    You should have received a copy of the GNU Lesser General Public
    547 //    License along with the GNU C Library; if not, see
    548 //    <https://www.gnu.org/licenses/>.
    549 
    550 // We are almost always included from features.h.
    551 
    552 // The GNU libc does not support any K&R compilers or the traditional mode
    553 //    of ISO C compilers anymore.  Check for some of the combinations not
    554 //    supported anymore.
    555 
    556 // Some user header file might have defined this before.
    557 
    558 // Compilers that lack __has_attribute may object to
    559 //        #if defined __has_attribute && __has_attribute (...)
    560 //    even though they do not need to evaluate the right-hand side of the &&.
    561 //    Similarly for __has_builtin, etc.
    562 
    563 // All functions, except those with callbacks or those that
    564 //    synchronize memory, are leaf functions.
    565 
    566 // GCC can always grok prototypes.  For C++ programs we add throw()
    567 //    to help it optimize the function calls.  But this only works with
    568 //    gcc 2.8.x and egcs.  For gcc 3.4 and up we even mark C functions
    569 //    as non-throwing using a function attribute since programs can use
    570 //    the -fexceptions options for C code as well.
    571 
    572 // These two macros are not used in glibc anymore.  They are kept here
    573 //    only because some other projects expect the macros to be defined.
    574 
    575 // For these things, GCC behaves the ANSI way normally,
    576 //    and the non-ANSI way under -traditional.
    577 
    578 // This is not a typedef so `const __ptr_t' does the right thing.
    579 
    580 // C++ needs to know that types and declarations are C, not C++.
    581 
    582 // Fortify support.
    583 
    584 // Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available.
    585 
    586 // Support for flexible arrays.
    587 //    Headers that should use flexible arrays only if they're "real"
    588 //    (e.g. only if they won't affect sizeof()) should test
    589 //    #if __glibc_c99_flexarr_available.
    590 
    591 // __asm__ ("xyz") is used throughout the headers to rename functions
    592 //    at the assembly language level.  This is wrapped by the __REDIRECT
    593 //    macro, in order to support compilers that can do this some other
    594 //    way.  When compilers don't support asm-names at all, we have to do
    595 //    preprocessor tricks instead (which don't have exactly the right
    596 //    semantics, but it's the best we can do).
    597 //
    598 //    Example:
    599 //    int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
    600 
    601 //
    602 // #elif __SOME_OTHER_COMPILER__
    603 //
    604 // # define __REDIRECT(name, proto, alias) name proto; 	_Pragma("let " #name " = " #alias)
    605 
    606 // GCC and clang have various useful declarations that can be made with
    607 //    the '__attribute__' syntax.  All of the ways we use this do fine if
    608 //    they are omitted for compilers that don't understand it.
    609 
    610 // At some point during the gcc 2.96 development the `malloc' attribute
    611 //    for functions was introduced.  We don't want to use it unconditionally
    612 //    (although this would be possible) since it generates warnings.
    613 
    614 // Tell the compiler which arguments to an allocation function
    615 //    indicate the size of the allocation.
    616 
    617 // At some point during the gcc 2.96 development the `pure' attribute
    618 //    for functions was introduced.  We don't want to use it unconditionally
    619 //    (although this would be possible) since it generates warnings.
    620 
    621 // This declaration tells the compiler that the value is constant.
    622 
    623 // At some point during the gcc 3.1 development the `used' attribute
    624 //    for functions was introduced.  We don't want to use it unconditionally
    625 //    (although this would be possible) since it generates warnings.
    626 
    627 // Since version 3.2, gcc allows marking deprecated functions.
    628 
    629 // Since version 4.5, gcc also allows one to specify the message printed
    630 //    when a deprecated function is used.  clang claims to be gcc 4.2, but
    631 //    may also support this feature.
    632 
    633 // At some point during the gcc 2.8 development the `format_arg' attribute
    634 //    for functions was introduced.  We don't want to use it unconditionally
    635 //    (although this would be possible) since it generates warnings.
    636 //    If several `format_arg' attributes are given for the same function, in
    637 //    gcc-3.0 and older, all but the last one are ignored.  In newer gccs,
    638 //    all designated arguments are considered.
    639 
    640 // At some point during the gcc 2.97 development the `strfmon' format
    641 //    attribute for functions was introduced.  We don't want to use it
    642 //    unconditionally (although this would be possible) since it
    643 //    generates warnings.
    644 
    645 // The nonnull function attribute marks pointer parameters that
    646 //    must not be NULL.
    647 
    648 // The returns_nonnull function attribute marks the return type of the function
    649 //    as always being non-null.
    650 
    651 // If fortification mode, we warn about unused results of certain
    652 //    function calls which can lead to problems.
    653 
    654 // Forces a function to be always inlined.
    655 // The Linux kernel defines __always_inline in stddef.h (283d7573), and
    656 //    it conflicts with this definition.  Therefore undefine it first to
    657 //    allow either header to be included first.
    658 
    659 // Associate error messages with the source location of the call site rather
    660 //    than with the source location inside the function.
    661 
    662 // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
    663 //    inline semantics, unless -fgnu89-inline is used.  Using __GNUC_STDC_INLINE__
    664 //    or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
    665 //    older than 4.3 may define these macros and still not guarantee GNU inlining
    666 //    semantics.
    667 //
    668 //    clang++ identifies itself as gcc-4.2, but has support for GNU inlining
    669 //    semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
    670 //    __GNUC_GNU_INLINE__ macro definitions.
    671 
    672 // GCC 4.3 and above allow passing all anonymous arguments of an
    673 //    __extern_always_inline function to some other vararg function.
    674 
    675 // It is possible to compile containing GCC extensions even if GCC is
    676 //    run in pedantic mode if the uses are carefully marked using the
    677 //    `__extension__' keyword.  But this is not generally available before
    678 //    version 2.8.
    679 
    680 // __restrict is known in EGCS 1.2 and above, and in clang.
    681 //    It works also in C++ mode (outside of arrays), but only when spelled
    682 //    as '__restrict', not 'restrict'.
    683 
    684 // ISO C99 also allows to declare arrays as non-overlapping.  The syntax is
    685 //      array_name[restrict]
    686 //    GCC 3.1 and clang support this.
    687 //    This syntax is not usable in C++ mode.
    688 
    689 // Describes a char array whose address can safely be passed as the first
    690 //    argument to strncpy and strncat, as the char array is not necessarily
    691 //    a NUL-terminated string.
    692 
    693 // Undefine (also defined in libc-symbols.h).
    694 // Copies attributes from the declaration or type referenced by
    695 //    the argument.
    696 
    697 // The #ifndef lets Gnulib avoid including these on non-glibc
    698 //    platforms, where the includes typically do not exist.
    699 // Determine the wordsize from the preprocessor defines.  RISC-V version.
    700 //    Copyright (C) 2002-2021 Free Software Foundation, Inc.
    701 //    This file is part of the GNU C Library.
    702 //
    703 //    The GNU C Library is free software; you can redistribute it and/or
    704 //    modify it under the terms of the GNU Lesser General Public
    705 //    License as published by the Free Software Foundation; either
    706 //    version 2.1 of the License, or (at your option) any later version.
    707 //
    708 //    The GNU C Library is distributed in the hope that it will be useful,
    709 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    710 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    711 //    Lesser General Public License for more details.
    712 //
    713 //    You should have received a copy of the GNU Lesser General Public
    714 //    License along with the GNU C Library.  If not, see
    715 //    <https://www.gnu.org/licenses/>.
    716 
    717 // Properties of long double type.  ldbl-128 version.
    718 //    Copyright (C) 2016-2021 Free Software Foundation, Inc.
    719 //    This file is part of the GNU C Library.
    720 //
    721 //    The GNU C Library is free software; you can redistribute it and/or
    722 //    modify it under the terms of the GNU Lesser General Public
    723 //    License  published by the Free Software Foundation; either
    724 //    version 2.1 of the License, or (at your option) any later version.
    725 //
    726 //    The GNU C Library is distributed in the hope that it will be useful,
    727 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    728 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    729 //    Lesser General Public License for more details.
    730 //
    731 //    You should have received a copy of the GNU Lesser General Public
    732 //    License along with the GNU C Library; if not, see
    733 //    <https://www.gnu.org/licenses/>.
    734 
    735 // long double is distinct from double, so there is nothing to
    736 //    define here.
    737 
    738 // __glibc_macro_warning (MESSAGE) issues warning MESSAGE.  This is
    739 //    intended for use in preprocessor macros.
    740 //
    741 //    Note: MESSAGE must be a _single_ string; concatenation of string
    742 //    literals is not supported.
    743 
    744 // Generic selection (ISO C11) is a C-only feature, available in GCC
    745 //    since version 4.9.  Previous versions do not provide generic
    746 //    selection, even though they might set __STDC_VERSION__ to 201112L,
    747 //    when in -std=c11 mode.  Thus, we must check for !defined __GNUC__
    748 //    when testing __STDC_VERSION__ for generic selection support.
    749 //    On the other hand, Clang also defines __GNUC__, so a clang-specific
    750 //    check is required to enable the use of generic selection.
    751 
    752 // Designates a 1-based positional argument ref-index of pointer type
    753 //    that can be used to access size-index elements of the pointed-to
    754 //    array according to access mode, or at least one element when
    755 //    size-index is not provided:
    756 //      access (access-mode, <ref-index> [, <size-index>])
    757 
    758 // Designates dealloc as a function to call to deallocate objects
    759 //    allocated by the declared function.
    760 
    761 // Specify that a function such as setjmp or vfork may return
    762 //    twice.
    763 
    764 // If we don't have __REDIRECT, prototypes will be missing if
    765 //    __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
    766 
    767 // Decide whether we can define 'extern inline' functions in headers.
    768 
    769 // This is here only because every header file already includes this one.
    770 //    Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
    771 //    <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
    772 //    that will always return failure (and set errno to ENOSYS).
    773 // This file is automatically generated.
    774 //    This file selects the right generated file of `__stub_FUNCTION' macros
    775 //    based on the architecture being compiled for.
    776 
    777 // Determine the wordsize from the preprocessor defines.  RISC-V version.
    778 //    Copyright (C) 2002-2021 Free Software Foundation, Inc.
    779 //    This file is part of the GNU C Library.
    780 //
    781 //    The GNU C Library is free software; you can redistribute it and/or
    782 //    modify it under the terms of the GNU Lesser General Public
    783 //    License as published by the Free Software Foundation; either
    784 //    version 2.1 of the License, or (at your option) any later version.
    785 //
    786 //    The GNU C Library is distributed in the hope that it will be useful,
    787 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    788 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    789 //    Lesser General Public License for more details.
    790 //
    791 //    You should have received a copy of the GNU Lesser General Public
    792 //    License along with the GNU C Library.  If not, see
    793 //    <https://www.gnu.org/licenses/>.
    794 
    795 // This file is automatically generated.
    796 //    It defines a symbol `__stub_FUNCTION' for each function
    797 //    in the C library which is a stub, meaning it will fail
    798 //    every time called, usually setting errno to ENOSYS.
    799 
    800 // We need `pid_t'.
    801 // bits/types.h -- definitions of __*_t types underlying *_t types.
    802 //    Copyright (C) 2002-2021 Free Software Foundation, Inc.
    803 //    This file is part of the GNU C Library.
    804 //
    805 //    The GNU C Library is free software; you can redistribute it and/or
    806 //    modify it under the terms of the GNU Lesser General Public
    807 //    License as published by the Free Software Foundation; either
    808 //    version 2.1 of the License, or (at your option) any later version.
    809 //
    810 //    The GNU C Library is distributed in the hope that it will be useful,
    811 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    812 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    813 //    Lesser General Public License for more details.
    814 //
    815 //    You should have received a copy of the GNU Lesser General Public
    816 //    License along with the GNU C Library; if not, see
    817 //    <https://www.gnu.org/licenses/>.
    818 
    819 // Never include this file directly; use <sys/types.h> instead.
    820 
    821 // Copyright (C) 1991-2021 Free Software Foundation, Inc.
    822 //    This file is part of the GNU C Library.
    823 //
    824 //    The GNU C Library is free software; you can redistribute it and/or
    825 //    modify it under the terms of the GNU Lesser General Public
    826 //    License as published by the Free Software Foundation; either
    827 //    version 2.1 of the License, or (at your option) any later version.
    828 //
    829 //    The GNU C Library is distributed in the hope that it will be useful,
    830 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    831 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    832 //    Lesser General Public License for more details.
    833 //
    834 //    You should have received a copy of the GNU Lesser General Public
    835 //    License along with the GNU C Library; if not, see
    836 //    <https://www.gnu.org/licenses/>.
    837 
    838 // Determine the wordsize from the preprocessor defines.  RISC-V version.
    839 //    Copyright (C) 2002-2021 Free Software Foundation, Inc.
    840 //    This file is part of the GNU C Library.
    841 //
    842 //    The GNU C Library is free software; you can redistribute it and/or
    843 //    modify it under the terms of the GNU Lesser General Public
    844 //    License as published by the Free Software Foundation; either
    845 //    version 2.1 of the License, or (at your option) any later version.
    846 //
    847 //    The GNU C Library is distributed in the hope that it will be useful,
    848 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    849 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    850 //    Lesser General Public License for more details.
    851 //
    852 //    You should have received a copy of the GNU Lesser General Public
    853 //    License along with the GNU C Library.  If not, see
    854 //    <https://www.gnu.org/licenses/>.
    855 
    856 // Bit size of the time_t type at glibc build time, RISC-V case.
    857 //    Copyright (C) 2020-2021 Free Software Foundation, Inc.
    858 //    This file is part of the GNU C Library.
    859 //
    860 //    The GNU C Library is free software; you can redistribute it and/or
    861 //    modify it under the terms of the GNU Lesser General Public
    862 //    License as published by the Free Software Foundation; either
    863 //    version 2.1 of the License, or (at your option) any later version.
    864 //
    865 //    The GNU C Library is distributed in the hope that it will be useful,
    866 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    867 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    868 //    Lesser General Public License for more details.
    869 //
    870 //    You should have received a copy of the GNU Lesser General Public
    871 //    License along with the GNU C Library; if not, see
    872 //    <https://www.gnu.org/licenses/>.
    873 
    874 // Determine the wordsize from the preprocessor defines.  RISC-V version.
    875 //    Copyright (C) 2002-2021 Free Software Foundation, Inc.
    876 //    This file is part of the GNU C Library.
    877 //
    878 //    The GNU C Library is free software; you can redistribute it and/or
    879 //    modify it under the terms of the GNU Lesser General Public
    880 //    License as published by the Free Software Foundation; either
    881 //    version 2.1 of the License, or (at your option) any later version.
    882 //
    883 //    The GNU C Library is distributed in the hope that it will be useful,
    884 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    885 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    886 //    Lesser General Public License for more details.
    887 //
    888 //    You should have received a copy of the GNU Lesser General Public
    889 //    License along with the GNU C Library.  If not, see
    890 //    <https://www.gnu.org/licenses/>.
    891 
    892 // RV32 and RV64 both use 64-bit time_t
    893 
    894 // Convenience types.
    895 type X__u_char = uint8   /* types.h:31:23 */
    896 type X__u_short = uint16 /* types.h:32:28 */
    897 type X__u_int = uint32   /* types.h:33:22 */
    898 type X__u_long = uint64  /* types.h:34:27 */
    899 
    900 // Fixed-size types, underlying types depend on word size and compiler.
    901 type X__int8_t = int8     /* types.h:37:21 */
    902 type X__uint8_t = uint8   /* types.h:38:23 */
    903 type X__int16_t = int16   /* types.h:39:26 */
    904 type X__uint16_t = uint16 /* types.h:40:28 */
    905 type X__int32_t = int32   /* types.h:41:20 */
    906 type X__uint32_t = uint32 /* types.h:42:22 */
    907 type X__int64_t = int64   /* types.h:44:25 */
    908 type X__uint64_t = uint64 /* types.h:45:27 */
    909 
    910 // Smallest types with at least a given width.
    911 type X__int_least8_t = X__int8_t     /* types.h:52:18 */
    912 type X__uint_least8_t = X__uint8_t   /* types.h:53:19 */
    913 type X__int_least16_t = X__int16_t   /* types.h:54:19 */
    914 type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
    915 type X__int_least32_t = X__int32_t   /* types.h:56:19 */
    916 type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
    917 type X__int_least64_t = X__int64_t   /* types.h:58:19 */
    918 type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
    919 
    920 // quad_t is also 64 bits.
    921 type X__quad_t = int64    /* types.h:63:18 */
    922 type X__u_quad_t = uint64 /* types.h:64:27 */
    923 
    924 // Largest integral types.
    925 type X__intmax_t = int64   /* types.h:72:18 */
    926 type X__uintmax_t = uint64 /* types.h:73:27 */
    927 
    928 // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
    929 //    macros for each of the OS types we define below.  The definitions
    930 //    of those macros must use the following macros for underlying types.
    931 //    We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
    932 //    variants of each of the following integer types on this machine.
    933 //
    934 // 	16		-- "natural" 16-bit type (always short)
    935 // 	32		-- "natural" 32-bit type (always int)
    936 // 	64		-- "natural" 64-bit type (long or long long)
    937 // 	LONG32		-- 32-bit type, traditionally long
    938 // 	QUAD		-- 64-bit type, traditionally long long
    939 // 	WORD		-- natural type of __WORDSIZE bits (int or long)
    940 // 	LONGWORD	-- type of __WORDSIZE bits, traditionally long
    941 //
    942 //    We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
    943 //    conventional uses of `long' or `long long' type modifiers match the
    944 //    types we define, even when a less-adorned type would be the same size.
    945 //    This matters for (somewhat) portably writing printf/scanf formats for
    946 //    these types, where using the appropriate l or ll format modifiers can
    947 //    make the typedefs and the formats match up across all GNU platforms.  If
    948 //    we used `long' when it's 64 bits where `long long' is expected, then the
    949 //    compiler would warn about the formats not matching the argument types,
    950 //    and the programmer changing them to shut up the compiler would break the
    951 //    program's portability.
    952 //
    953 //    Here we assume what is presently the case in all the GCC configurations
    954 //    we support: long long is always 64 bits, long is always word/address size,
    955 //    and int is always 32 bits.
    956 
    957 // No need to mark the typedef with __extension__.
    958 // bits/typesizes.h -- underlying types for *_t.  For the generic Linux ABI.
    959 //    Copyright (C) 2011-2021 Free Software Foundation, Inc.
    960 //    This file is part of the GNU C Library.
    961 //    Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
    962 //
    963 //    The GNU C Library is free software; you can redistribute it and/or
    964 //    modify it under the terms of the GNU Lesser General Public
    965 //    License as published by the Free Software Foundation; either
    966 //    version 2.1 of the License, or (at your option) any later version.
    967 //
    968 //    The GNU C Library is distributed in the hope that it will be useful,
    969 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    970 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    971 //    Lesser General Public License for more details.
    972 //
    973 //    You should have received a copy of the GNU Lesser General Public
    974 //    License along with the GNU C Library.  If not, see
    975 //    <https://www.gnu.org/licenses/>.
    976 
    977 // See <bits/types.h> for the meaning of these macros.  This file exists so
    978 //    that <bits/types.h> need not vary across different GNU platforms.
    979 
    980 // Tell the libc code that off_t and off64_t are actually the same type
    981 //    for all ABI purposes, even if possibly expressed as different base types
    982 //    for C type-checking purposes.
    983 
    984 // Same for ino_t and ino64_t.
    985 
    986 // And for __rlim_t and __rlim64_t.
    987 
    988 // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
    989 
    990 // And for getitimer, setitimer and rusage
    991 
    992 // Number of descriptors that can fit in an `fd_set'.
    993 
    994 // bits/time64.h -- underlying types for __time64_t.  RISC-V version.
    995 //    Copyright (C) 2020-2021 Free Software Foundation, Inc.
    996 //    This file is part of the GNU C Library.
    997 //
    998 //    The GNU C Library is free software; you can redistribute it and/or
    999 //    modify it under the terms of the GNU Lesser General Public
   1000 //    License as published by the Free Software Foundation; either
   1001 //    version 2.1 of the License, or (at your option) any later version.
   1002 //
   1003 //    The GNU C Library is distributed in the hope that it will be useful,
   1004 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1005 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1006 //    Lesser General Public License for more details.
   1007 //
   1008 //    You should have received a copy of the GNU Lesser General Public
   1009 //    License along with the GNU C Library; if not, see
   1010 //    <https://www.gnu.org/licenses/>.
   1011 
   1012 // Define __TIME64_T_TYPE so that it is always a 64-bit type.
   1013 
   1014 // If we already have 64-bit time type then use it.
   1015 
   1016 type X__dev_t = uint64                     /* types.h:145:25 */ // Type of device numbers.
   1017 type X__uid_t = uint32                     /* types.h:146:25 */ // Type of user identifications.
   1018 type X__gid_t = uint32                     /* types.h:147:25 */ // Type of group identifications.
   1019 type X__ino_t = uint64                     /* types.h:148:25 */ // Type of file serial numbers.
   1020 type X__ino64_t = uint64                   /* types.h:149:27 */ // Type of file serial numbers (LFS).
   1021 type X__mode_t = uint32                    /* types.h:150:26 */ // Type of file attribute bitmasks.
   1022 type X__nlink_t = uint32                   /* types.h:151:27 */ // Type of file link counts.
   1023 type X__off_t = int64                      /* types.h:152:25 */ // Type of file sizes and offsets.
   1024 type X__off64_t = int64                    /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
   1025 type X__pid_t = int32                      /* types.h:154:25 */ // Type of process identifications.
   1026 type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
   1027 type X__clock_t = int64                    /* types.h:156:27 */ // Type of CPU usage counts.
   1028 type X__rlim_t = uint64                    /* types.h:157:26 */ // Type for resource measurement.
   1029 type X__rlim64_t = uint64                  /* types.h:158:28 */ // Type for resource measurement (LFS).
   1030 type X__id_t = uint32                      /* types.h:159:24 */ // General type for IDs.
   1031 type X__time_t = int64                     /* types.h:160:26 */ // Seconds since the Epoch.
   1032 type X__useconds_t = uint32                /* types.h:161:30 */ // Count of microseconds.
   1033 type X__suseconds_t = int64                /* types.h:162:31 */ // Signed count of microseconds.
   1034 type X__suseconds64_t = int64              /* types.h:163:33 */
   1035 
   1036 type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address.
   1037 type X__key_t = int32   /* types.h:166:25 */ // Type of an IPC key.
   1038 
   1039 // Clock ID used in clock and timer functions.
   1040 type X__clockid_t = int32 /* types.h:169:29 */
   1041 
   1042 // Timer ID returned by `timer_create'.
   1043 type X__timer_t = uintptr /* types.h:172:12 */
   1044 
   1045 // Type to represent block size.
   1046 type X__blksize_t = int32 /* types.h:175:29 */
   1047 
   1048 // Types from the Large File Support interface.
   1049 
   1050 // Type to count number of disk blocks.
   1051 type X__blkcnt_t = int64   /* types.h:180:28 */
   1052 type X__blkcnt64_t = int64 /* types.h:181:30 */
   1053 
   1054 // Type to count file system blocks.
   1055 type X__fsblkcnt_t = uint64   /* types.h:184:30 */
   1056 type X__fsblkcnt64_t = uint64 /* types.h:185:32 */
   1057 
   1058 // Type to count file system nodes.
   1059 type X__fsfilcnt_t = uint64   /* types.h:188:30 */
   1060 type X__fsfilcnt64_t = uint64 /* types.h:189:32 */
   1061 
   1062 // Type of miscellaneous file system fields.
   1063 type X__fsword_t = int64 /* types.h:192:28 */
   1064 
   1065 type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error.
   1066 
   1067 // Signed long type used in system calls.
   1068 type X__syscall_slong_t = int64 /* types.h:197:33 */
   1069 // Unsigned long type used in system calls.
   1070 type X__syscall_ulong_t = uint64 /* types.h:199:33 */
   1071 
   1072 // These few don't really vary by system, they always correspond
   1073 //
   1074 //	to one of the other defined types.
   1075 type X__loff_t = X__off64_t /* types.h:203:19 */ // Type of file sizes and offsets (LFS).
   1076 type X__caddr_t = uintptr   /* types.h:204:14 */
   1077 
   1078 // Duplicates info from stdint.h but this is used in unistd.h.
   1079 type X__intptr_t = int64 /* types.h:207:25 */
   1080 
   1081 // Duplicate info from sys/socket.h.
   1082 type X__socklen_t = uint32 /* types.h:210:23 */
   1083 
   1084 // C99: An integer type that can be accessed as an atomic entity,
   1085 //
   1086 //	even in the presence of asynchronous interrupts.
   1087 //	It is not currently necessary for this to be machine-specific.
   1088 type X__sig_atomic_t = int32 /* types.h:215:13 */
   1089 
   1090 // Seconds since the Epoch, visible to user code when time_t is too
   1091 //    narrow only for consistency with the old way of widening too-narrow
   1092 //    types.  User code should never use __time64_t.
   1093 
   1094 type Pid_t = X__pid_t /* termios.h:30:17 */
   1095 
   1096 // Get the system-dependent definitions of `struct termios', `tcflag_t',
   1097 //    `cc_t', `speed_t', and all the macros specifying the flag bits.
   1098 // termios type and macro definitions.  Linux version.
   1099 //    Copyright (C) 1993-2021 Free Software Foundation, Inc.
   1100 //    This file is part of the GNU C Library.
   1101 //
   1102 //    The GNU C Library is free software; you can redistribute it and/or
   1103 //    modify it under the terms of the GNU Lesser General Public
   1104 //    License as published by the Free Software Foundation; either
   1105 //    version 2.1 of the License, or (at your option) any later version.
   1106 //
   1107 //    The GNU C Library is distributed in the hope that it will be useful,
   1108 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1109 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1110 //    Lesser General Public License for more details.
   1111 //
   1112 //    You should have received a copy of the GNU Lesser General Public
   1113 //    License along with the GNU C Library; if not, see
   1114 //    <https://www.gnu.org/licenses/>.
   1115 
   1116 type Cc_t = uint8      /* termios.h:23:23 */
   1117 type Speed_t = uint32  /* termios.h:24:22 */
   1118 type Tcflag_t = uint32 /* termios.h:25:22 */
   1119 
   1120 // struct termios definition.  Linux/generic version.
   1121 //    Copyright (C) 2019-2021 Free Software Foundation, Inc.
   1122 //    This file is part of the GNU C Library.
   1123 //
   1124 //    The GNU C Library is free software; you can redistribute it and/or
   1125 //    modify it under the terms of the GNU Lesser General Public
   1126 //    License as published by the Free Software Foundation; either
   1127 //    version 2.1 of the License, or (at your option) any later version.
   1128 //
   1129 //    The GNU C Library is distributed in the hope that it will be useful,
   1130 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   1131 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1132 //    Lesser General Public License for more details.
   1133 //
   1134 //    You should have received a copy of the GNU Lesser General Public
   1135 //    License along with the GNU C Library.  If not, see
   1136 //    <https://www.gnu.org/licenses/>.
   1137 
   1138 type Termios = struct {
   1139 	Fc_iflag     Tcflag_t
   1140 	Fc_oflag     Tcflag_t
   1141 	Fc_cflag     Tcflag_t
   1142 	Fc_lflag     Tcflag_t
   1143 	Fc_line      Cc_t
   1144 	Fc_cc        [32]Cc_t
   1145 	F__ccgo_pad1 [3]byte
   1146 	Fc_ispeed    Speed_t
   1147 	Fc_ospeed    Speed_t
   1148 } /* termios-struct.h:24:1 */
   1149 
   1150 // -
   1151 // Copyright (c) 1982, 1986, 1993
   1152 //	The Regents of the University of California.  All rights reserved.
   1153 // (c) UNIX System Laboratories, Inc.
   1154 // All or some portions of this file are derived from material licensed
   1155 // to the University of California by American Telephone and Telegraph
   1156 // Co. or Unix System Laboratories, Inc. and are reproduced herein with
   1157 // the permission of UNIX System Laboratories, Inc.
   1158 //
   1159 // Redistribution and use in source and binary forms, with or without
   1160 // modification, are permitted provided that the following conditions
   1161 // are met:
   1162 // 1. Redistributions of source code must retain the above copyright
   1163 //    notice, this list of conditions and the following disclaimer.
   1164 // 2. Redistributions in binary form must reproduce the above copyright
   1165 //    notice, this list of conditions and the following disclaimer in the
   1166 //    documentation and/or other materials provided with the distribution.
   1167 // 4. Neither the name of the University nor the names of its contributors
   1168 //    may be used to endorse or promote products derived from this software
   1169 //    without specific prior written permission.
   1170 //
   1171 // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
   1172 // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   1173 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   1174 // ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
   1175 // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   1176 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   1177 // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   1178 // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   1179 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   1180 // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   1181 // SUCH DAMAGE.
   1182 //
   1183 //	@(#)ttydefaults.h	8.4 (Berkeley) 1/21/94
   1184 
   1185 // System wide defaults for terminal state.  Linux version.
   1186 
   1187 // Defaults on "first" open.
   1188 
   1189 // Control Character Defaults
   1190 // compat
   1191 
   1192 // PROTECTED INCLUSION ENDS HERE
   1193 
   1194 // #define TTYDEFCHARS to include an array of default control characters.
   1195 
   1196 var _ uint8 /* gen.c:2:13: */