poll_linux_arm64.go 25 KB

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