gtsocial-umbx

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

termios_linux_amd64.go (51558B)


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