poll_linux_arm.go 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560
  1. // Code generated by 'ccgo poll/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 poll/poll_linux_arm.go -pkgname poll', DO NOT EDIT.
  2. package poll
  3. import (
  4. "math"
  5. "reflect"
  6. "sync/atomic"
  7. "unsafe"
  8. )
  9. var _ = math.Pi
  10. var _ reflect.Kind
  11. var _ atomic.Value
  12. var _ unsafe.Pointer
  13. const (
  14. POLLERR = 0x008
  15. POLLHUP = 0x010
  16. POLLIN = 0x001
  17. POLLNVAL = 0x020
  18. POLLOUT = 0x004
  19. POLLPRI = 0x002
  20. POLLRDBAND = 0x080
  21. POLLRDNORM = 0x040
  22. POLLWRBAND = 0x200
  23. POLLWRNORM = 0x100
  24. X_ATFILE_SOURCE = 1
  25. X_DEFAULT_SOURCE = 1
  26. X_FEATURES_H = 1
  27. X_FILE_OFFSET_BITS = 64
  28. X_POSIX_C_SOURCE = 200809
  29. X_POSIX_SOURCE = 1
  30. X_STDC_PREDEF_H = 1
  31. X_SYS_CDEFS_H = 1
  32. X_SYS_POLL_H = 1
  33. Linux = 1
  34. Unix = 1
  35. )
  36. type Ptrdiff_t = int32 /* <builtin>:3:26 */
  37. type Size_t = uint32 /* <builtin>:9:23 */
  38. type Wchar_t = uint32 /* <builtin>:15:24 */
  39. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  40. type X__float128 = float64 /* <builtin>:47:21 */
  41. // Compatibility definitions for System V `poll' interface.
  42. // Copyright (C) 1994-2020 Free Software Foundation, Inc.
  43. // This file is part of the GNU C Library.
  44. //
  45. // The GNU C Library is free software; you can redistribute it and/or
  46. // modify it under the terms of the GNU Lesser General Public
  47. // License as published by the Free Software Foundation; either
  48. // version 2.1 of the License, or (at your option) any later version.
  49. //
  50. // The GNU C Library is distributed in the hope that it will be useful,
  51. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  52. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  53. // Lesser General Public License for more details.
  54. //
  55. // You should have received a copy of the GNU Lesser General Public
  56. // License along with the GNU C Library; if not, see
  57. // <https://www.gnu.org/licenses/>.
  58. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  59. // This file is part of the GNU C Library.
  60. //
  61. // The GNU C Library is free software; you can redistribute it and/or
  62. // modify it under the terms of the GNU Lesser General Public
  63. // License as published by the Free Software Foundation; either
  64. // version 2.1 of the License, or (at your option) any later version.
  65. //
  66. // The GNU C Library is distributed in the hope that it will be useful,
  67. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  68. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  69. // Lesser General Public License for more details.
  70. //
  71. // You should have received a copy of the GNU Lesser General Public
  72. // License along with the GNU C Library; if not, see
  73. // <https://www.gnu.org/licenses/>.
  74. // These are defined by the user (or the compiler)
  75. // to specify the desired environment:
  76. //
  77. // __STRICT_ANSI__ ISO Standard C.
  78. // _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
  79. // _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
  80. // _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
  81. // __STDC_WANT_LIB_EXT2__
  82. // Extensions to ISO C99 from TR 27431-2:2010.
  83. // __STDC_WANT_IEC_60559_BFP_EXT__
  84. // Extensions to ISO C11 from TS 18661-1:2014.
  85. // __STDC_WANT_IEC_60559_FUNCS_EXT__
  86. // Extensions to ISO C11 from TS 18661-4:2015.
  87. // __STDC_WANT_IEC_60559_TYPES_EXT__
  88. // Extensions to ISO C11 from TS 18661-3:2015.
  89. //
  90. // _POSIX_SOURCE IEEE Std 1003.1.
  91. // _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
  92. // if >=199309L, add IEEE Std 1003.1b-1993;
  93. // if >=199506L, add IEEE Std 1003.1c-1995;
  94. // if >=200112L, all of IEEE 1003.1-2004
  95. // if >=200809L, all of IEEE 1003.1-2008
  96. // _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
  97. // Single Unix conformance is wanted, to 600 for the
  98. // sixth revision, to 700 for the seventh revision.
  99. // _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
  100. // _LARGEFILE_SOURCE Some more functions for correct standard I/O.
  101. // _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
  102. // _FILE_OFFSET_BITS=N Select default filesystem interface.
  103. // _ATFILE_SOURCE Additional *at interfaces.
  104. // _GNU_SOURCE All of the above, plus GNU extensions.
  105. // _DEFAULT_SOURCE The default set of features (taking precedence over
  106. // __STRICT_ANSI__).
  107. //
  108. // _FORTIFY_SOURCE Add security hardening to many library functions.
  109. // Set to 1 or 2; 2 performs stricter checks than 1.
  110. //
  111. // _REENTRANT, _THREAD_SAFE
  112. // Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
  113. //
  114. // The `-ansi' switch to the GNU C compiler, and standards conformance
  115. // options such as `-std=c99', define __STRICT_ANSI__. If none of
  116. // these are defined, or if _DEFAULT_SOURCE is defined, the default is
  117. // to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
  118. // 200809L, as well as enabling miscellaneous functions from BSD and
  119. // SVID. If more than one of these are defined, they accumulate. For
  120. // example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
  121. // give you ISO C, 1003.1, and 1003.2, but nothing else.
  122. //
  123. // These are defined by this file and are used by the
  124. // header files to decide what to declare or define:
  125. //
  126. // __GLIBC_USE (F) Define things from feature set F. This is defined
  127. // to 1 or 0; the subsequent macros are either defined
  128. // or undefined, and those tests should be moved to
  129. // __GLIBC_USE.
  130. // __USE_ISOC11 Define ISO C11 things.
  131. // __USE_ISOC99 Define ISO C99 things.
  132. // __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
  133. // __USE_ISOCXX11 Define ISO C++11 things.
  134. // __USE_POSIX Define IEEE Std 1003.1 things.
  135. // __USE_POSIX2 Define IEEE Std 1003.2 things.
  136. // __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
  137. // __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
  138. // __USE_XOPEN Define XPG things.
  139. // __USE_XOPEN_EXTENDED Define X/Open Unix things.
  140. // __USE_UNIX98 Define Single Unix V2 things.
  141. // __USE_XOPEN2K Define XPG6 things.
  142. // __USE_XOPEN2KXSI Define XPG6 XSI things.
  143. // __USE_XOPEN2K8 Define XPG7 things.
  144. // __USE_XOPEN2K8XSI Define XPG7 XSI things.
  145. // __USE_LARGEFILE Define correct standard I/O things.
  146. // __USE_LARGEFILE64 Define LFS things with separate names.
  147. // __USE_FILE_OFFSET64 Define 64bit interface as default.
  148. // __USE_MISC Define things from 4.3BSD or System V Unix.
  149. // __USE_ATFILE Define *at interfaces and AT_* constants for them.
  150. // __USE_GNU Define GNU extensions.
  151. // __USE_FORTIFY_LEVEL Additional security measures used, according to level.
  152. //
  153. // The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
  154. // defined by this file unconditionally. `__GNU_LIBRARY__' is provided
  155. // only for compatibility. All new code should use the other symbols
  156. // to test for features.
  157. //
  158. // All macros listed above as possibly being defined by this file are
  159. // explicitly undefined if they are not explicitly defined.
  160. // Feature-test macros that are not defined by the user or compiler
  161. // but are implied by the other feature-test macros defined (or by the
  162. // lack of any definitions) are defined by the file.
  163. //
  164. // ISO C feature test macros depend on the definition of the macro
  165. // when an affected header is included, not when the first system
  166. // header is included, and so they are handled in
  167. // <bits/libc-header-start.h>, which does not have a multiple include
  168. // guard. Feature test macros that can be handled from the first
  169. // system header included are handled here.
  170. // Undefine everything, so we get a clean slate.
  171. // Suppress kernel-name space pollution unless user expressedly asks
  172. // for it.
  173. // Convenience macro to test the version of gcc.
  174. // Use like this:
  175. // #if __GNUC_PREREQ (2,8)
  176. // ... code requiring gcc 2.8 or later ...
  177. // #endif
  178. // Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
  179. // added in 2.0.
  180. // Similarly for clang. Features added to GCC after version 4.2 may
  181. // or may not also be available in clang, and clang's definitions of
  182. // __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
  183. // features can be queried via __has_extension/__has_feature.
  184. // Whether to use feature set F.
  185. // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
  186. // _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
  187. // issue a warning; the expectation is that the source is being
  188. // transitioned to use the new macro.
  189. // If _GNU_SOURCE was defined by the user, turn on all the other features.
  190. // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
  191. // define _DEFAULT_SOURCE.
  192. // This is to enable the ISO C2X extension.
  193. // This is to enable the ISO C11 extension.
  194. // This is to enable the ISO C99 extension.
  195. // This is to enable the ISO C90 Amendment 1:1995 extension.
  196. // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
  197. // is defined, use POSIX.1-2008 (or another version depending on
  198. // _XOPEN_SOURCE).
  199. // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
  200. // defined in all multithreaded code. GNU libc has not required this
  201. // for many years. We now treat them as compatibility synonyms for
  202. // _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
  203. // comprehensive support for multithreaded code. Using them never
  204. // lowers the selected level of POSIX conformance, only raises it.
  205. // The function 'gets' existed in C89, but is impossible to use
  206. // safely. It has been removed from ISO C11 and ISO C++14. Note: for
  207. // compatibility with various implementations of <cstdio>, this test
  208. // must consider only the value of __cplusplus when compiling C++.
  209. // GNU formerly extended the scanf functions with modified format
  210. // specifiers %as, %aS, and %a[...] that allocate a buffer for the
  211. // input using malloc. This extension conflicts with ISO C99, which
  212. // defines %a as a standalone format specifier that reads a floating-
  213. // point number; moreover, POSIX.1-2008 provides the same feature
  214. // using the modifier letter 'm' instead (%ms, %mS, %m[...]).
  215. //
  216. // We now follow C99 unless GNU extensions are active and the compiler
  217. // is specifically in C89 or C++98 mode (strict or not). For
  218. // instance, with GCC, -std=gnu11 will have C99-compliant scanf with
  219. // or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
  220. // old extension.
  221. // Get definitions of __STDC_* predefined macros, if the compiler has
  222. // not preincluded this header automatically.
  223. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  224. // This file is part of the GNU C Library.
  225. //
  226. // The GNU C Library is free software; you can redistribute it and/or
  227. // modify it under the terms of the GNU Lesser General Public
  228. // License as published by the Free Software Foundation; either
  229. // version 2.1 of the License, or (at your option) any later version.
  230. //
  231. // The GNU C Library is distributed in the hope that it will be useful,
  232. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  233. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  234. // Lesser General Public License for more details.
  235. //
  236. // You should have received a copy of the GNU Lesser General Public
  237. // License along with the GNU C Library; if not, see
  238. // <https://www.gnu.org/licenses/>.
  239. // This macro indicates that the installed library is the GNU C Library.
  240. // For historic reasons the value now is 6 and this will stay from now
  241. // on. The use of this variable is deprecated. Use __GLIBC__ and
  242. // __GLIBC_MINOR__ now (see below) when you want to test for a specific
  243. // GNU C library version and use the values in <gnu/lib-names.h> to get
  244. // the sonames of the shared libraries.
  245. // Major and minor version number of the GNU C library package. Use
  246. // these macros to test for features in specific releases.
  247. // This is here only because every header file already includes this one.
  248. // Copyright (C) 1992-2020 Free Software Foundation, Inc.
  249. // This file is part of the GNU C Library.
  250. //
  251. // The GNU C Library is free software; you can redistribute it and/or
  252. // modify it under the terms of the GNU Lesser General Public
  253. // License as published by the Free Software Foundation; either
  254. // version 2.1 of the License, or (at your option) any later version.
  255. //
  256. // The GNU C Library is distributed in the hope that it will be useful,
  257. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  258. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  259. // Lesser General Public License for more details.
  260. //
  261. // You should have received a copy of the GNU Lesser General Public
  262. // License along with the GNU C Library; if not, see
  263. // <https://www.gnu.org/licenses/>.
  264. // We are almost always included from features.h.
  265. // The GNU libc does not support any K&R compilers or the traditional mode
  266. // of ISO C compilers anymore. Check for some of the combinations not
  267. // anymore supported.
  268. // Some user header file might have defined this before.
  269. // All functions, except those with callbacks or those that
  270. // synchronize memory, are leaf functions.
  271. // GCC can always grok prototypes. For C++ programs we add throw()
  272. // to help it optimize the function calls. But this works only with
  273. // gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
  274. // as non-throwing using a function attribute since programs can use
  275. // the -fexceptions options for C code as well.
  276. // Compilers that are not clang may object to
  277. // #if defined __clang__ && __has_extension(...)
  278. // even though they do not need to evaluate the right-hand side of the &&.
  279. // These two macros are not used in glibc anymore. They are kept here
  280. // only because some other projects expect the macros to be defined.
  281. // For these things, GCC behaves the ANSI way normally,
  282. // and the non-ANSI way under -traditional.
  283. // This is not a typedef so `const __ptr_t' does the right thing.
  284. // C++ needs to know that types and declarations are C, not C++.
  285. // Fortify support.
  286. // Support for flexible arrays.
  287. // Headers that should use flexible arrays only if they're "real"
  288. // (e.g. only if they won't affect sizeof()) should test
  289. // #if __glibc_c99_flexarr_available.
  290. // __asm__ ("xyz") is used throughout the headers to rename functions
  291. // at the assembly language level. This is wrapped by the __REDIRECT
  292. // macro, in order to support compilers that can do this some other
  293. // way. When compilers don't support asm-names at all, we have to do
  294. // preprocessor tricks instead (which don't have exactly the right
  295. // semantics, but it's the best we can do).
  296. //
  297. // Example:
  298. // int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
  299. //
  300. // #elif __SOME_OTHER_COMPILER__
  301. //
  302. // # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
  303. // GCC has various useful declarations that can be made with the
  304. // `__attribute__' syntax. All of the ways we use this do fine if
  305. // they are omitted for compilers that don't understand it.
  306. // At some point during the gcc 2.96 development the `malloc' attribute
  307. // for functions was introduced. We don't want to use it unconditionally
  308. // (although this would be possible) since it generates warnings.
  309. // Tell the compiler which arguments to an allocation function
  310. // indicate the size of the allocation.
  311. // At some point during the gcc 2.96 development the `pure' attribute
  312. // for functions was introduced. We don't want to use it unconditionally
  313. // (although this would be possible) since it generates warnings.
  314. // This declaration tells the compiler that the value is constant.
  315. // At some point during the gcc 3.1 development the `used' attribute
  316. // for functions was introduced. We don't want to use it unconditionally
  317. // (although this would be possible) since it generates warnings.
  318. // Since version 3.2, gcc allows marking deprecated functions.
  319. // Since version 4.5, gcc also allows one to specify the message printed
  320. // when a deprecated function is used. clang claims to be gcc 4.2, but
  321. // may also support this feature.
  322. // At some point during the gcc 2.8 development the `format_arg' attribute
  323. // for functions was introduced. We don't want to use it unconditionally
  324. // (although this would be possible) since it generates warnings.
  325. // If several `format_arg' attributes are given for the same function, in
  326. // gcc-3.0 and older, all but the last one are ignored. In newer gccs,
  327. // all designated arguments are considered.
  328. // At some point during the gcc 2.97 development the `strfmon' format
  329. // attribute for functions was introduced. We don't want to use it
  330. // unconditionally (although this would be possible) since it
  331. // generates warnings.
  332. // The nonull function attribute allows to mark pointer parameters which
  333. // must not be NULL.
  334. // If fortification mode, we warn about unused results of certain
  335. // function calls which can lead to problems.
  336. // Forces a function to be always inlined.
  337. // The Linux kernel defines __always_inline in stddef.h (283d7573), and
  338. // it conflicts with this definition. Therefore undefine it first to
  339. // allow either header to be included first.
  340. // Associate error messages with the source location of the call site rather
  341. // than with the source location inside the function.
  342. // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
  343. // inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
  344. // or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
  345. // older than 4.3 may define these macros and still not guarantee GNU inlining
  346. // semantics.
  347. //
  348. // clang++ identifies itself as gcc-4.2, but has support for GNU inlining
  349. // semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
  350. // __GNUC_GNU_INLINE__ macro definitions.
  351. // GCC 4.3 and above allow passing all anonymous arguments of an
  352. // __extern_always_inline function to some other vararg function.
  353. // It is possible to compile containing GCC extensions even if GCC is
  354. // run in pedantic mode if the uses are carefully marked using the
  355. // `__extension__' keyword. But this is not generally available before
  356. // version 2.8.
  357. // __restrict is known in EGCS 1.2 and above.
  358. // ISO C99 also allows to declare arrays as non-overlapping. The syntax is
  359. // array_name[restrict]
  360. // GCC 3.1 supports this.
  361. // Describes a char array whose address can safely be passed as the first
  362. // argument to strncpy and strncat, as the char array is not necessarily
  363. // a NUL-terminated string.
  364. // Undefine (also defined in libc-symbols.h).
  365. // Copies attributes from the declaration or type referenced by
  366. // the argument.
  367. // Copyright (C) 1999-2020 Free Software Foundation, Inc.
  368. // This file is part of the GNU C Library.
  369. //
  370. // The GNU C Library is free software; you can redistribute it and/or
  371. // modify it under the terms of the GNU Lesser General Public
  372. // License as published by the Free Software Foundation; either
  373. // version 2.1 of the License, or (at your option) any later version.
  374. //
  375. // The GNU C Library is distributed in the hope that it will be useful,
  376. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  377. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  378. // Lesser General Public License for more details.
  379. //
  380. // You should have received a copy of the GNU Lesser General Public
  381. // License along with the GNU C Library; if not, see
  382. // <https://www.gnu.org/licenses/>.
  383. // Properties of long double type.
  384. // Copyright (C) 2016-2020 Free Software Foundation, Inc.
  385. // This file is part of the GNU C Library.
  386. //
  387. // The GNU C Library is free software; you can redistribute it and/or
  388. // modify it under the terms of the GNU Lesser General Public
  389. // License published by the Free Software Foundation; either
  390. // version 2.1 of the License, or (at your option) any later version.
  391. //
  392. // The GNU C Library is distributed in the hope that it will be useful,
  393. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  394. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  395. // Lesser General Public License for more details.
  396. //
  397. // You should have received a copy of the GNU Lesser General Public
  398. // License along with the GNU C Library; if not, see
  399. // <https://www.gnu.org/licenses/>.
  400. // This header is included by <sys/cdefs.h>.
  401. //
  402. // If long double is ABI-compatible with double, it should define
  403. // __NO_LONG_DOUBLE_MATH to 1; otherwise, it should leave
  404. // __NO_LONG_DOUBLE_MATH undefined.
  405. //
  406. // If this build of the GNU C Library supports both long double
  407. // ABI-compatible with double and some other long double format not
  408. // ABI-compatible with double, it should define
  409. // __LONG_DOUBLE_MATH_OPTIONAL to 1; otherwise, it should leave
  410. // __LONG_DOUBLE_MATH_OPTIONAL undefined.
  411. //
  412. // If __NO_LONG_DOUBLE_MATH is already defined, this header must not
  413. // define anything; this is needed to work with the definition of
  414. // __NO_LONG_DOUBLE_MATH in nldbl-compat.h.
  415. // In the default version of this header, long double is
  416. // ABI-compatible with double.
  417. // __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
  418. // intended for use in preprocessor macros.
  419. //
  420. // Note: MESSAGE must be a _single_ string; concatenation of string
  421. // literals is not supported.
  422. // Generic selection (ISO C11) is a C-only feature, available in GCC
  423. // since version 4.9. Previous versions do not provide generic
  424. // selection, even though they might set __STDC_VERSION__ to 201112L,
  425. // when in -std=c11 mode. Thus, we must check for !defined __GNUC__
  426. // when testing __STDC_VERSION__ for generic selection support.
  427. // On the other hand, Clang also defines __GNUC__, so a clang-specific
  428. // check is required to enable the use of generic selection.
  429. // If we don't have __REDIRECT, prototypes will be missing if
  430. // __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
  431. // Decide whether we can define 'extern inline' functions in headers.
  432. // This is here only because every header file already includes this one.
  433. // Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
  434. // <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
  435. // that will always return failure (and set errno to ENOSYS).
  436. // This file is automatically generated.
  437. // This file selects the right generated file of `__stub_FUNCTION' macros
  438. // based on the architecture being compiled for.
  439. // This file is automatically generated.
  440. // It defines a symbol `__stub_FUNCTION' for each function
  441. // in the C library which is a stub, meaning it will fail
  442. // every time called, usually setting errno to ENOSYS.
  443. // Get the platform dependent bits of `poll'.
  444. // Copyright (C) 1997-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. // Event types that can be polled for. These bits may be set in `events'
  461. // to indicate the interesting event types; they will appear in `revents'
  462. // to indicate the status of the file descriptor.
  463. // These values are defined in XPG4.2.
  464. // Event types always implicitly polled for. These bits need not be set in
  465. // `events', but they will appear in `revents' to indicate the status of
  466. // the file descriptor.
  467. // Type used for the number of file descriptors.
  468. type Nfds_t = uint32 /* poll.h:33:27 */
  469. // Data structure describing a polling request.
  470. type Pollfd = struct {
  471. Ffd int32
  472. Fevents int16
  473. Frevents int16
  474. } /* poll.h:36:1 */
  475. // Define some inlines helping to catch common problems.
  476. var _ uint8 /* gen.c:2:13: */