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