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