unistd_linux_arm.go 66 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648
  1. // Code generated by 'ccgo unistd/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 unistd/unistd_linux_arm.go -pkgname unistd', DO NOT EDIT.
  2. package unistd
  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. F_LOCK = 1
  15. F_OK = 0
  16. F_TEST = 3
  17. F_TLOCK = 2
  18. F_ULOCK = 0
  19. L_INCR = 1
  20. L_SET = 0
  21. L_XTND = 2
  22. R_OK = 4
  23. SEEK_CUR = 1
  24. SEEK_END = 2
  25. SEEK_SET = 0
  26. STDERR_FILENO = 2
  27. STDIN_FILENO = 0
  28. STDOUT_FILENO = 1
  29. W_OK = 2
  30. X_OK = 1
  31. X_ATFILE_SOURCE = 1
  32. X_BITS_POSIX_OPT_H = 1
  33. X_BITS_TIME64_H = 1
  34. X_BITS_TYPESIZES_H = 1
  35. X_BITS_TYPES_H = 1
  36. X_BSD_SIZE_T_ = 0
  37. X_BSD_SIZE_T_DEFINED_ = 0
  38. X_DEFAULT_SOURCE = 1
  39. X_FEATURES_H = 1
  40. X_FILE_OFFSET_BITS = 64
  41. X_GCC_SIZE_T = 0
  42. X_GETOPT_CORE_H = 1
  43. X_GETOPT_POSIX_H = 1
  44. X_LFS64_ASYNCHRONOUS_IO = 1
  45. X_LFS64_LARGEFILE = 1
  46. X_LFS64_STDIO = 1
  47. X_LFS_ASYNCHRONOUS_IO = 1
  48. X_LFS_LARGEFILE = 1
  49. X_POSIX2_CHAR_TERM = 200809
  50. X_POSIX2_C_BIND = 200809
  51. X_POSIX2_C_DEV = 200809
  52. X_POSIX2_C_VERSION = 200809
  53. X_POSIX2_LOCALEDEF = 200809
  54. X_POSIX2_SW_DEV = 200809
  55. X_POSIX2_VERSION = 200809
  56. X_POSIX_ADVISORY_INFO = 200809
  57. X_POSIX_ASYNCHRONOUS_IO = 200809
  58. X_POSIX_ASYNC_IO = 1
  59. X_POSIX_BARRIERS = 200809
  60. X_POSIX_CHOWN_RESTRICTED = 0
  61. X_POSIX_CLOCK_SELECTION = 200809
  62. X_POSIX_CPUTIME = 0
  63. X_POSIX_C_SOURCE = 200809
  64. X_POSIX_FSYNC = 200809
  65. X_POSIX_IPV6 = 200809
  66. X_POSIX_JOB_CONTROL = 1
  67. X_POSIX_MAPPED_FILES = 200809
  68. X_POSIX_MEMLOCK = 200809
  69. X_POSIX_MEMLOCK_RANGE = 200809
  70. X_POSIX_MEMORY_PROTECTION = 200809
  71. X_POSIX_MESSAGE_PASSING = 200809
  72. X_POSIX_MONOTONIC_CLOCK = 0
  73. X_POSIX_NO_TRUNC = 1
  74. X_POSIX_PRIORITIZED_IO = 200809
  75. X_POSIX_PRIORITY_SCHEDULING = 200809
  76. X_POSIX_RAW_SOCKETS = 200809
  77. X_POSIX_READER_WRITER_LOCKS = 200809
  78. X_POSIX_REALTIME_SIGNALS = 200809
  79. X_POSIX_REENTRANT_FUNCTIONS = 1
  80. X_POSIX_REGEXP = 1
  81. X_POSIX_SAVED_IDS = 1
  82. X_POSIX_SEMAPHORES = 200809
  83. X_POSIX_SHARED_MEMORY_OBJECTS = 200809
  84. X_POSIX_SHELL = 1
  85. X_POSIX_SOURCE = 1
  86. X_POSIX_SPAWN = 200809
  87. X_POSIX_SPIN_LOCKS = 200809
  88. X_POSIX_SPORADIC_SERVER = -1
  89. X_POSIX_SYNCHRONIZED_IO = 200809
  90. X_POSIX_THREADS = 200809
  91. X_POSIX_THREAD_ATTR_STACKADDR = 200809
  92. X_POSIX_THREAD_ATTR_STACKSIZE = 200809
  93. X_POSIX_THREAD_CPUTIME = 0
  94. X_POSIX_THREAD_PRIORITY_SCHEDULING = 200809
  95. X_POSIX_THREAD_PRIO_INHERIT = 200809
  96. X_POSIX_THREAD_PRIO_PROTECT = 200809
  97. X_POSIX_THREAD_PROCESS_SHARED = 200809
  98. X_POSIX_THREAD_ROBUST_PRIO_INHERIT = 200809
  99. X_POSIX_THREAD_ROBUST_PRIO_PROTECT = -1
  100. X_POSIX_THREAD_SAFE_FUNCTIONS = 200809
  101. X_POSIX_THREAD_SPORADIC_SERVER = -1
  102. X_POSIX_TIMEOUTS = 200809
  103. X_POSIX_TIMERS = 200809
  104. X_POSIX_TRACE = -1
  105. X_POSIX_TRACE_EVENT_FILTER = -1
  106. X_POSIX_TRACE_INHERIT = -1
  107. X_POSIX_TRACE_LOG = -1
  108. X_POSIX_TYPED_MEMORY_OBJECTS = -1
  109. X_POSIX_V6_ILP32_OFF32 = 1
  110. X_POSIX_V6_ILP32_OFFBIG = 1
  111. X_POSIX_V6_LP64_OFF64 = -1
  112. X_POSIX_V6_LPBIG_OFFBIG = -1
  113. X_POSIX_V7_ILP32_OFF32 = 1
  114. X_POSIX_V7_ILP32_OFFBIG = 1
  115. X_POSIX_V7_LP64_OFF64 = -1
  116. X_POSIX_V7_LPBIG_OFFBIG = -1
  117. X_POSIX_VDISABLE = 0
  118. X_POSIX_VERSION = 200809
  119. X_SIZET_ = 0
  120. X_SIZE_T = 0
  121. X_SIZE_T_ = 0
  122. X_SIZE_T_DECLARED = 0
  123. X_SIZE_T_DEFINED = 0
  124. X_SIZE_T_DEFINED_ = 0
  125. X_STDC_PREDEF_H = 1
  126. X_SYS_CDEFS_H = 1
  127. X_SYS_SIZE_T_H = 0
  128. X_T_SIZE = 0
  129. X_T_SIZE_ = 0
  130. X_UNISTD_H = 1
  131. X_XBS5_ILP32_OFF32 = 1
  132. X_XBS5_ILP32_OFFBIG = 1
  133. X_XBS5_LP64_OFF64 = -1
  134. X_XBS5_LPBIG_OFFBIG = -1
  135. X_XOPEN_ENH_I18N = 1
  136. X_XOPEN_LEGACY = 1
  137. X_XOPEN_REALTIME = 1
  138. X_XOPEN_REALTIME_THREADS = 1
  139. X_XOPEN_SHM = 1
  140. X_XOPEN_UNIX = 1
  141. X_XOPEN_VERSION = 700
  142. X_XOPEN_XCU_VERSION = 4
  143. X_XOPEN_XPG2 = 1
  144. X_XOPEN_XPG3 = 1
  145. X_XOPEN_XPG4 = 1
  146. Linux = 1
  147. Unix = 1
  148. )
  149. // Get the `_PC_*' symbols for the NAME argument to `pathconf' and `fpathconf';
  150. // the `_SC_*' symbols for the NAME argument to `sysconf';
  151. // and the `_CS_*' symbols for the NAME argument to `confstr'.
  152. // `sysconf', `pathconf', and `confstr' NAME values. Generic version.
  153. // Copyright (C) 1993-2020 Free Software Foundation, Inc.
  154. // This file is part of the GNU C Library.
  155. //
  156. // The GNU C Library is free software; you can redistribute it and/or
  157. // modify it under the terms of the GNU Lesser General Public
  158. // License as published by the Free Software Foundation; either
  159. // version 2.1 of the License, or (at your option) any later version.
  160. //
  161. // The GNU C Library is distributed in the hope that it will be useful,
  162. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  163. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  164. // Lesser General Public License for more details.
  165. //
  166. // You should have received a copy of the GNU Lesser General Public
  167. // License along with the GNU C Library; if not, see
  168. // <https://www.gnu.org/licenses/>.
  169. // Values for the NAME argument to `pathconf' and `fpathconf'.
  170. const ( /* confname.h:24:1: */
  171. X_PC_LINK_MAX = 0
  172. X_PC_MAX_CANON = 1
  173. X_PC_MAX_INPUT = 2
  174. X_PC_NAME_MAX = 3
  175. X_PC_PATH_MAX = 4
  176. X_PC_PIPE_BUF = 5
  177. X_PC_CHOWN_RESTRICTED = 6
  178. X_PC_NO_TRUNC = 7
  179. X_PC_VDISABLE = 8
  180. X_PC_SYNC_IO = 9
  181. X_PC_ASYNC_IO = 10
  182. X_PC_PRIO_IO = 11
  183. X_PC_SOCK_MAXBUF = 12
  184. X_PC_FILESIZEBITS = 13
  185. X_PC_REC_INCR_XFER_SIZE = 14
  186. X_PC_REC_MAX_XFER_SIZE = 15
  187. X_PC_REC_MIN_XFER_SIZE = 16
  188. X_PC_REC_XFER_ALIGN = 17
  189. X_PC_ALLOC_SIZE_MIN = 18
  190. X_PC_SYMLINK_MAX = 19
  191. X_PC_2_SYMLINKS = 20
  192. )
  193. // Values for the NAME argument to `confstr'.
  194. const ( /* confname.h:533:1: */
  195. X_CS_PATH = 0 // The default search path.
  196. X_CS_V6_WIDTH_RESTRICTED_ENVS = 1
  197. X_CS_GNU_LIBC_VERSION = 2
  198. X_CS_GNU_LIBPTHREAD_VERSION = 3
  199. X_CS_V5_WIDTH_RESTRICTED_ENVS = 4
  200. X_CS_V7_WIDTH_RESTRICTED_ENVS = 5
  201. X_CS_LFS_CFLAGS = 1000
  202. X_CS_LFS_LDFLAGS = 1001
  203. X_CS_LFS_LIBS = 1002
  204. X_CS_LFS_LINTFLAGS = 1003
  205. X_CS_LFS64_CFLAGS = 1004
  206. X_CS_LFS64_LDFLAGS = 1005
  207. X_CS_LFS64_LIBS = 1006
  208. X_CS_LFS64_LINTFLAGS = 1007
  209. X_CS_XBS5_ILP32_OFF32_CFLAGS = 1100
  210. X_CS_XBS5_ILP32_OFF32_LDFLAGS = 1101
  211. X_CS_XBS5_ILP32_OFF32_LIBS = 1102
  212. X_CS_XBS5_ILP32_OFF32_LINTFLAGS = 1103
  213. X_CS_XBS5_ILP32_OFFBIG_CFLAGS = 1104
  214. X_CS_XBS5_ILP32_OFFBIG_LDFLAGS = 1105
  215. X_CS_XBS5_ILP32_OFFBIG_LIBS = 1106
  216. X_CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 1107
  217. X_CS_XBS5_LP64_OFF64_CFLAGS = 1108
  218. X_CS_XBS5_LP64_OFF64_LDFLAGS = 1109
  219. X_CS_XBS5_LP64_OFF64_LIBS = 1110
  220. X_CS_XBS5_LP64_OFF64_LINTFLAGS = 1111
  221. X_CS_XBS5_LPBIG_OFFBIG_CFLAGS = 1112
  222. X_CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 1113
  223. X_CS_XBS5_LPBIG_OFFBIG_LIBS = 1114
  224. X_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 1115
  225. X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116
  226. X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117
  227. X_CS_POSIX_V6_ILP32_OFF32_LIBS = 1118
  228. X_CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119
  229. X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120
  230. X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121
  231. X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122
  232. X_CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123
  233. X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124
  234. X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125
  235. X_CS_POSIX_V6_LP64_OFF64_LIBS = 1126
  236. X_CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127
  237. X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128
  238. X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129
  239. X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130
  240. X_CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131
  241. X_CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132
  242. X_CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133
  243. X_CS_POSIX_V7_ILP32_OFF32_LIBS = 1134
  244. X_CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135
  245. X_CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136
  246. X_CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137
  247. X_CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138
  248. X_CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139
  249. X_CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140
  250. X_CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141
  251. X_CS_POSIX_V7_LP64_OFF64_LIBS = 1142
  252. X_CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143
  253. X_CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144
  254. X_CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145
  255. X_CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146
  256. X_CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147
  257. X_CS_V6_ENV = 1148
  258. X_CS_V7_ENV = 1149
  259. )
  260. // Values for the argument to `sysconf'.
  261. const ( /* confname.h:71:1: */
  262. X_SC_ARG_MAX = 0
  263. X_SC_CHILD_MAX = 1
  264. X_SC_CLK_TCK = 2
  265. X_SC_NGROUPS_MAX = 3
  266. X_SC_OPEN_MAX = 4
  267. X_SC_STREAM_MAX = 5
  268. X_SC_TZNAME_MAX = 6
  269. X_SC_JOB_CONTROL = 7
  270. X_SC_SAVED_IDS = 8
  271. X_SC_REALTIME_SIGNALS = 9
  272. X_SC_PRIORITY_SCHEDULING = 10
  273. X_SC_TIMERS = 11
  274. X_SC_ASYNCHRONOUS_IO = 12
  275. X_SC_PRIORITIZED_IO = 13
  276. X_SC_SYNCHRONIZED_IO = 14
  277. X_SC_FSYNC = 15
  278. X_SC_MAPPED_FILES = 16
  279. X_SC_MEMLOCK = 17
  280. X_SC_MEMLOCK_RANGE = 18
  281. X_SC_MEMORY_PROTECTION = 19
  282. X_SC_MESSAGE_PASSING = 20
  283. X_SC_SEMAPHORES = 21
  284. X_SC_SHARED_MEMORY_OBJECTS = 22
  285. X_SC_AIO_LISTIO_MAX = 23
  286. X_SC_AIO_MAX = 24
  287. X_SC_AIO_PRIO_DELTA_MAX = 25
  288. X_SC_DELAYTIMER_MAX = 26
  289. X_SC_MQ_OPEN_MAX = 27
  290. X_SC_MQ_PRIO_MAX = 28
  291. X_SC_VERSION = 29
  292. X_SC_PAGESIZE = 30
  293. X_SC_RTSIG_MAX = 31
  294. X_SC_SEM_NSEMS_MAX = 32
  295. X_SC_SEM_VALUE_MAX = 33
  296. X_SC_SIGQUEUE_MAX = 34
  297. X_SC_TIMER_MAX = 35
  298. // Values for the argument to `sysconf'
  299. // corresponding to _POSIX2_* symbols.
  300. X_SC_BC_BASE_MAX = 36
  301. X_SC_BC_DIM_MAX = 37
  302. X_SC_BC_SCALE_MAX = 38
  303. X_SC_BC_STRING_MAX = 39
  304. X_SC_COLL_WEIGHTS_MAX = 40
  305. X_SC_EQUIV_CLASS_MAX = 41
  306. X_SC_EXPR_NEST_MAX = 42
  307. X_SC_LINE_MAX = 43
  308. X_SC_RE_DUP_MAX = 44
  309. X_SC_CHARCLASS_NAME_MAX = 45
  310. X_SC_2_VERSION = 46
  311. X_SC_2_C_BIND = 47
  312. X_SC_2_C_DEV = 48
  313. X_SC_2_FORT_DEV = 49
  314. X_SC_2_FORT_RUN = 50
  315. X_SC_2_SW_DEV = 51
  316. X_SC_2_LOCALEDEF = 52
  317. X_SC_PII = 53
  318. X_SC_PII_XTI = 54
  319. X_SC_PII_SOCKET = 55
  320. X_SC_PII_INTERNET = 56
  321. X_SC_PII_OSI = 57
  322. X_SC_POLL = 58
  323. X_SC_SELECT = 59
  324. X_SC_UIO_MAXIOV = 60
  325. X_SC_IOV_MAX = 60
  326. X_SC_PII_INTERNET_STREAM = 61
  327. X_SC_PII_INTERNET_DGRAM = 62
  328. X_SC_PII_OSI_COTS = 63
  329. X_SC_PII_OSI_CLTS = 64
  330. X_SC_PII_OSI_M = 65
  331. X_SC_T_IOV_MAX = 66
  332. // Values according to POSIX 1003.1c (POSIX threads).
  333. X_SC_THREADS = 67
  334. X_SC_THREAD_SAFE_FUNCTIONS = 68
  335. X_SC_GETGR_R_SIZE_MAX = 69
  336. X_SC_GETPW_R_SIZE_MAX = 70
  337. X_SC_LOGIN_NAME_MAX = 71
  338. X_SC_TTY_NAME_MAX = 72
  339. X_SC_THREAD_DESTRUCTOR_ITERATIONS = 73
  340. X_SC_THREAD_KEYS_MAX = 74
  341. X_SC_THREAD_STACK_MIN = 75
  342. X_SC_THREAD_THREADS_MAX = 76
  343. X_SC_THREAD_ATTR_STACKADDR = 77
  344. X_SC_THREAD_ATTR_STACKSIZE = 78
  345. X_SC_THREAD_PRIORITY_SCHEDULING = 79
  346. X_SC_THREAD_PRIO_INHERIT = 80
  347. X_SC_THREAD_PRIO_PROTECT = 81
  348. X_SC_THREAD_PROCESS_SHARED = 82
  349. X_SC_NPROCESSORS_CONF = 83
  350. X_SC_NPROCESSORS_ONLN = 84
  351. X_SC_PHYS_PAGES = 85
  352. X_SC_AVPHYS_PAGES = 86
  353. X_SC_ATEXIT_MAX = 87
  354. X_SC_PASS_MAX = 88
  355. X_SC_XOPEN_VERSION = 89
  356. X_SC_XOPEN_XCU_VERSION = 90
  357. X_SC_XOPEN_UNIX = 91
  358. X_SC_XOPEN_CRYPT = 92
  359. X_SC_XOPEN_ENH_I18N = 93
  360. X_SC_XOPEN_SHM = 94
  361. X_SC_2_CHAR_TERM = 95
  362. X_SC_2_C_VERSION = 96
  363. X_SC_2_UPE = 97
  364. X_SC_XOPEN_XPG2 = 98
  365. X_SC_XOPEN_XPG3 = 99
  366. X_SC_XOPEN_XPG4 = 100
  367. X_SC_CHAR_BIT = 101
  368. X_SC_CHAR_MAX = 102
  369. X_SC_CHAR_MIN = 103
  370. X_SC_INT_MAX = 104
  371. X_SC_INT_MIN = 105
  372. X_SC_LONG_BIT = 106
  373. X_SC_WORD_BIT = 107
  374. X_SC_MB_LEN_MAX = 108
  375. X_SC_NZERO = 109
  376. X_SC_SSIZE_MAX = 110
  377. X_SC_SCHAR_MAX = 111
  378. X_SC_SCHAR_MIN = 112
  379. X_SC_SHRT_MAX = 113
  380. X_SC_SHRT_MIN = 114
  381. X_SC_UCHAR_MAX = 115
  382. X_SC_UINT_MAX = 116
  383. X_SC_ULONG_MAX = 117
  384. X_SC_USHRT_MAX = 118
  385. X_SC_NL_ARGMAX = 119
  386. X_SC_NL_LANGMAX = 120
  387. X_SC_NL_MSGMAX = 121
  388. X_SC_NL_NMAX = 122
  389. X_SC_NL_SETMAX = 123
  390. X_SC_NL_TEXTMAX = 124
  391. X_SC_XBS5_ILP32_OFF32 = 125
  392. X_SC_XBS5_ILP32_OFFBIG = 126
  393. X_SC_XBS5_LP64_OFF64 = 127
  394. X_SC_XBS5_LPBIG_OFFBIG = 128
  395. X_SC_XOPEN_LEGACY = 129
  396. X_SC_XOPEN_REALTIME = 130
  397. X_SC_XOPEN_REALTIME_THREADS = 131
  398. X_SC_ADVISORY_INFO = 132
  399. X_SC_BARRIERS = 133
  400. X_SC_BASE = 134
  401. X_SC_C_LANG_SUPPORT = 135
  402. X_SC_C_LANG_SUPPORT_R = 136
  403. X_SC_CLOCK_SELECTION = 137
  404. X_SC_CPUTIME = 138
  405. X_SC_THREAD_CPUTIME = 139
  406. X_SC_DEVICE_IO = 140
  407. X_SC_DEVICE_SPECIFIC = 141
  408. X_SC_DEVICE_SPECIFIC_R = 142
  409. X_SC_FD_MGMT = 143
  410. X_SC_FIFO = 144
  411. X_SC_PIPE = 145
  412. X_SC_FILE_ATTRIBUTES = 146
  413. X_SC_FILE_LOCKING = 147
  414. X_SC_FILE_SYSTEM = 148
  415. X_SC_MONOTONIC_CLOCK = 149
  416. X_SC_MULTI_PROCESS = 150
  417. X_SC_SINGLE_PROCESS = 151
  418. X_SC_NETWORKING = 152
  419. X_SC_READER_WRITER_LOCKS = 153
  420. X_SC_SPIN_LOCKS = 154
  421. X_SC_REGEXP = 155
  422. X_SC_REGEX_VERSION = 156
  423. X_SC_SHELL = 157
  424. X_SC_SIGNALS = 158
  425. X_SC_SPAWN = 159
  426. X_SC_SPORADIC_SERVER = 160
  427. X_SC_THREAD_SPORADIC_SERVER = 161
  428. X_SC_SYSTEM_DATABASE = 162
  429. X_SC_SYSTEM_DATABASE_R = 163
  430. X_SC_TIMEOUTS = 164
  431. X_SC_TYPED_MEMORY_OBJECTS = 165
  432. X_SC_USER_GROUPS = 166
  433. X_SC_USER_GROUPS_R = 167
  434. X_SC_2_PBS = 168
  435. X_SC_2_PBS_ACCOUNTING = 169
  436. X_SC_2_PBS_LOCATE = 170
  437. X_SC_2_PBS_MESSAGE = 171
  438. X_SC_2_PBS_TRACK = 172
  439. X_SC_SYMLOOP_MAX = 173
  440. X_SC_STREAMS = 174
  441. X_SC_2_PBS_CHECKPOINT = 175
  442. X_SC_V6_ILP32_OFF32 = 176
  443. X_SC_V6_ILP32_OFFBIG = 177
  444. X_SC_V6_LP64_OFF64 = 178
  445. X_SC_V6_LPBIG_OFFBIG = 179
  446. X_SC_HOST_NAME_MAX = 180
  447. X_SC_TRACE = 181
  448. X_SC_TRACE_EVENT_FILTER = 182
  449. X_SC_TRACE_INHERIT = 183
  450. X_SC_TRACE_LOG = 184
  451. X_SC_LEVEL1_ICACHE_SIZE = 185
  452. X_SC_LEVEL1_ICACHE_ASSOC = 186
  453. X_SC_LEVEL1_ICACHE_LINESIZE = 187
  454. X_SC_LEVEL1_DCACHE_SIZE = 188
  455. X_SC_LEVEL1_DCACHE_ASSOC = 189
  456. X_SC_LEVEL1_DCACHE_LINESIZE = 190
  457. X_SC_LEVEL2_CACHE_SIZE = 191
  458. X_SC_LEVEL2_CACHE_ASSOC = 192
  459. X_SC_LEVEL2_CACHE_LINESIZE = 193
  460. X_SC_LEVEL3_CACHE_SIZE = 194
  461. X_SC_LEVEL3_CACHE_ASSOC = 195
  462. X_SC_LEVEL3_CACHE_LINESIZE = 196
  463. X_SC_LEVEL4_CACHE_SIZE = 197
  464. X_SC_LEVEL4_CACHE_ASSOC = 198
  465. X_SC_LEVEL4_CACHE_LINESIZE = 199
  466. // Leave room here, maybe we need a few more cache levels some day.
  467. X_SC_IPV6 = 235
  468. X_SC_RAW_SOCKETS = 236
  469. X_SC_V7_ILP32_OFF32 = 237
  470. X_SC_V7_ILP32_OFFBIG = 238
  471. X_SC_V7_LP64_OFF64 = 239
  472. X_SC_V7_LPBIG_OFFBIG = 240
  473. X_SC_SS_REPL_MAX = 241
  474. X_SC_TRACE_EVENT_NAME_MAX = 242
  475. X_SC_TRACE_NAME_MAX = 243
  476. X_SC_TRACE_SYS_MAX = 244
  477. X_SC_TRACE_USER_EVENT_MAX = 245
  478. X_SC_XOPEN_STREAMS = 246
  479. X_SC_THREAD_ROBUST_PRIO_INHERIT = 247
  480. X_SC_THREAD_ROBUST_PRIO_PROTECT = 248
  481. )
  482. type Ptrdiff_t = int32 /* <builtin>:3:26 */
  483. type Size_t = uint32 /* <builtin>:9:23 */
  484. type Wchar_t = uint32 /* <builtin>:15:24 */
  485. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  486. type X__float128 = float64 /* <builtin>:47:21 */
  487. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  488. // This file is part of the GNU C Library.
  489. //
  490. // The GNU C Library is free software; you can redistribute it and/or
  491. // modify it under the terms of the GNU Lesser General Public
  492. // License as published by the Free Software Foundation; either
  493. // version 2.1 of the License, or (at your option) any later version.
  494. //
  495. // The GNU C Library is distributed in the hope that it will be useful,
  496. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  497. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  498. // Lesser General Public License for more details.
  499. //
  500. // You should have received a copy of the GNU Lesser General Public
  501. // License along with the GNU C Library; if not, see
  502. // <https://www.gnu.org/licenses/>.
  503. // POSIX Standard: 2.10 Symbolic Constants <unistd.h>
  504. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  505. // This file is part of the GNU C Library.
  506. //
  507. // The GNU C Library is free software; you can redistribute it and/or
  508. // modify it under the terms of the GNU Lesser General Public
  509. // License as published by the Free Software Foundation; either
  510. // version 2.1 of the License, or (at your option) any later version.
  511. //
  512. // The GNU C Library is distributed in the hope that it will be useful,
  513. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  514. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  515. // Lesser General Public License for more details.
  516. //
  517. // You should have received a copy of the GNU Lesser General Public
  518. // License along with the GNU C Library; if not, see
  519. // <https://www.gnu.org/licenses/>.
  520. // These are defined by the user (or the compiler)
  521. // to specify the desired environment:
  522. //
  523. // __STRICT_ANSI__ ISO Standard C.
  524. // _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
  525. // _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
  526. // _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
  527. // __STDC_WANT_LIB_EXT2__
  528. // Extensions to ISO C99 from TR 27431-2:2010.
  529. // __STDC_WANT_IEC_60559_BFP_EXT__
  530. // Extensions to ISO C11 from TS 18661-1:2014.
  531. // __STDC_WANT_IEC_60559_FUNCS_EXT__
  532. // Extensions to ISO C11 from TS 18661-4:2015.
  533. // __STDC_WANT_IEC_60559_TYPES_EXT__
  534. // Extensions to ISO C11 from TS 18661-3:2015.
  535. //
  536. // _POSIX_SOURCE IEEE Std 1003.1.
  537. // _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
  538. // if >=199309L, add IEEE Std 1003.1b-1993;
  539. // if >=199506L, add IEEE Std 1003.1c-1995;
  540. // if >=200112L, all of IEEE 1003.1-2004
  541. // if >=200809L, all of IEEE 1003.1-2008
  542. // _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
  543. // Single Unix conformance is wanted, to 600 for the
  544. // sixth revision, to 700 for the seventh revision.
  545. // _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
  546. // _LARGEFILE_SOURCE Some more functions for correct standard I/O.
  547. // _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
  548. // _FILE_OFFSET_BITS=N Select default filesystem interface.
  549. // _ATFILE_SOURCE Additional *at interfaces.
  550. // _GNU_SOURCE All of the above, plus GNU extensions.
  551. // _DEFAULT_SOURCE The default set of features (taking precedence over
  552. // __STRICT_ANSI__).
  553. //
  554. // _FORTIFY_SOURCE Add security hardening to many library functions.
  555. // Set to 1 or 2; 2 performs stricter checks than 1.
  556. //
  557. // _REENTRANT, _THREAD_SAFE
  558. // Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
  559. //
  560. // The `-ansi' switch to the GNU C compiler, and standards conformance
  561. // options such as `-std=c99', define __STRICT_ANSI__. If none of
  562. // these are defined, or if _DEFAULT_SOURCE is defined, the default is
  563. // to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
  564. // 200809L, as well as enabling miscellaneous functions from BSD and
  565. // SVID. If more than one of these are defined, they accumulate. For
  566. // example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
  567. // give you ISO C, 1003.1, and 1003.2, but nothing else.
  568. //
  569. // These are defined by this file and are used by the
  570. // header files to decide what to declare or define:
  571. //
  572. // __GLIBC_USE (F) Define things from feature set F. This is defined
  573. // to 1 or 0; the subsequent macros are either defined
  574. // or undefined, and those tests should be moved to
  575. // __GLIBC_USE.
  576. // __USE_ISOC11 Define ISO C11 things.
  577. // __USE_ISOC99 Define ISO C99 things.
  578. // __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
  579. // __USE_ISOCXX11 Define ISO C++11 things.
  580. // __USE_POSIX Define IEEE Std 1003.1 things.
  581. // __USE_POSIX2 Define IEEE Std 1003.2 things.
  582. // __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
  583. // __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
  584. // __USE_XOPEN Define XPG things.
  585. // __USE_XOPEN_EXTENDED Define X/Open Unix things.
  586. // __USE_UNIX98 Define Single Unix V2 things.
  587. // __USE_XOPEN2K Define XPG6 things.
  588. // __USE_XOPEN2KXSI Define XPG6 XSI things.
  589. // __USE_XOPEN2K8 Define XPG7 things.
  590. // __USE_XOPEN2K8XSI Define XPG7 XSI things.
  591. // __USE_LARGEFILE Define correct standard I/O things.
  592. // __USE_LARGEFILE64 Define LFS things with separate names.
  593. // __USE_FILE_OFFSET64 Define 64bit interface as default.
  594. // __USE_MISC Define things from 4.3BSD or System V Unix.
  595. // __USE_ATFILE Define *at interfaces and AT_* constants for them.
  596. // __USE_GNU Define GNU extensions.
  597. // __USE_FORTIFY_LEVEL Additional security measures used, according to level.
  598. //
  599. // The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
  600. // defined by this file unconditionally. `__GNU_LIBRARY__' is provided
  601. // only for compatibility. All new code should use the other symbols
  602. // to test for features.
  603. //
  604. // All macros listed above as possibly being defined by this file are
  605. // explicitly undefined if they are not explicitly defined.
  606. // Feature-test macros that are not defined by the user or compiler
  607. // but are implied by the other feature-test macros defined (or by the
  608. // lack of any definitions) are defined by the file.
  609. //
  610. // ISO C feature test macros depend on the definition of the macro
  611. // when an affected header is included, not when the first system
  612. // header is included, and so they are handled in
  613. // <bits/libc-header-start.h>, which does not have a multiple include
  614. // guard. Feature test macros that can be handled from the first
  615. // system header included are handled here.
  616. // Undefine everything, so we get a clean slate.
  617. // Suppress kernel-name space pollution unless user expressedly asks
  618. // for it.
  619. // Convenience macro to test the version of gcc.
  620. // Use like this:
  621. // #if __GNUC_PREREQ (2,8)
  622. // ... code requiring gcc 2.8 or later ...
  623. // #endif
  624. // Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
  625. // added in 2.0.
  626. // Similarly for clang. Features added to GCC after version 4.2 may
  627. // or may not also be available in clang, and clang's definitions of
  628. // __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
  629. // features can be queried via __has_extension/__has_feature.
  630. // Whether to use feature set F.
  631. // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
  632. // _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
  633. // issue a warning; the expectation is that the source is being
  634. // transitioned to use the new macro.
  635. // If _GNU_SOURCE was defined by the user, turn on all the other features.
  636. // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
  637. // define _DEFAULT_SOURCE.
  638. // This is to enable the ISO C2X extension.
  639. // This is to enable the ISO C11 extension.
  640. // This is to enable the ISO C99 extension.
  641. // This is to enable the ISO C90 Amendment 1:1995 extension.
  642. // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
  643. // is defined, use POSIX.1-2008 (or another version depending on
  644. // _XOPEN_SOURCE).
  645. // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
  646. // defined in all multithreaded code. GNU libc has not required this
  647. // for many years. We now treat them as compatibility synonyms for
  648. // _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
  649. // comprehensive support for multithreaded code. Using them never
  650. // lowers the selected level of POSIX conformance, only raises it.
  651. // The function 'gets' existed in C89, but is impossible to use
  652. // safely. It has been removed from ISO C11 and ISO C++14. Note: for
  653. // compatibility with various implementations of <cstdio>, this test
  654. // must consider only the value of __cplusplus when compiling C++.
  655. // GNU formerly extended the scanf functions with modified format
  656. // specifiers %as, %aS, and %a[...] that allocate a buffer for the
  657. // input using malloc. This extension conflicts with ISO C99, which
  658. // defines %a as a standalone format specifier that reads a floating-
  659. // point number; moreover, POSIX.1-2008 provides the same feature
  660. // using the modifier letter 'm' instead (%ms, %mS, %m[...]).
  661. //
  662. // We now follow C99 unless GNU extensions are active and the compiler
  663. // is specifically in C89 or C++98 mode (strict or not). For
  664. // instance, with GCC, -std=gnu11 will have C99-compliant scanf with
  665. // or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
  666. // old extension.
  667. // Get definitions of __STDC_* predefined macros, if the compiler has
  668. // not preincluded this header automatically.
  669. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  670. // This file is part of the GNU C Library.
  671. //
  672. // The GNU C Library is free software; you can redistribute it and/or
  673. // modify it under the terms of the GNU Lesser General Public
  674. // License as published by the Free Software Foundation; either
  675. // version 2.1 of the License, or (at your option) any later version.
  676. //
  677. // The GNU C Library is distributed in the hope that it will be useful,
  678. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  679. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  680. // Lesser General Public License for more details.
  681. //
  682. // You should have received a copy of the GNU Lesser General Public
  683. // License along with the GNU C Library; if not, see
  684. // <https://www.gnu.org/licenses/>.
  685. // This macro indicates that the installed library is the GNU C Library.
  686. // For historic reasons the value now is 6 and this will stay from now
  687. // on. The use of this variable is deprecated. Use __GLIBC__ and
  688. // __GLIBC_MINOR__ now (see below) when you want to test for a specific
  689. // GNU C library version and use the values in <gnu/lib-names.h> to get
  690. // the sonames of the shared libraries.
  691. // Major and minor version number of the GNU C library package. Use
  692. // these macros to test for features in specific releases.
  693. // This is here only because every header file already includes this one.
  694. // Copyright (C) 1992-2020 Free Software Foundation, Inc.
  695. // This file is part of the GNU C Library.
  696. //
  697. // The GNU C Library is free software; you can redistribute it and/or
  698. // modify it under the terms of the GNU Lesser General Public
  699. // License as published by the Free Software Foundation; either
  700. // version 2.1 of the License, or (at your option) any later version.
  701. //
  702. // The GNU C Library is distributed in the hope that it will be useful,
  703. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  704. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  705. // Lesser General Public License for more details.
  706. //
  707. // You should have received a copy of the GNU Lesser General Public
  708. // License along with the GNU C Library; if not, see
  709. // <https://www.gnu.org/licenses/>.
  710. // We are almost always included from features.h.
  711. // The GNU libc does not support any K&R compilers or the traditional mode
  712. // of ISO C compilers anymore. Check for some of the combinations not
  713. // anymore supported.
  714. // Some user header file might have defined this before.
  715. // All functions, except those with callbacks or those that
  716. // synchronize memory, are leaf functions.
  717. // GCC can always grok prototypes. For C++ programs we add throw()
  718. // to help it optimize the function calls. But this works only with
  719. // gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
  720. // as non-throwing using a function attribute since programs can use
  721. // the -fexceptions options for C code as well.
  722. // Compilers that are not clang may object to
  723. // #if defined __clang__ && __has_extension(...)
  724. // even though they do not need to evaluate the right-hand side of the &&.
  725. // These two macros are not used in glibc anymore. They are kept here
  726. // only because some other projects expect the macros to be defined.
  727. // For these things, GCC behaves the ANSI way normally,
  728. // and the non-ANSI way under -traditional.
  729. // This is not a typedef so `const __ptr_t' does the right thing.
  730. // C++ needs to know that types and declarations are C, not C++.
  731. // Fortify support.
  732. // Support for flexible arrays.
  733. // Headers that should use flexible arrays only if they're "real"
  734. // (e.g. only if they won't affect sizeof()) should test
  735. // #if __glibc_c99_flexarr_available.
  736. // __asm__ ("xyz") is used throughout the headers to rename functions
  737. // at the assembly language level. This is wrapped by the __REDIRECT
  738. // macro, in order to support compilers that can do this some other
  739. // way. When compilers don't support asm-names at all, we have to do
  740. // preprocessor tricks instead (which don't have exactly the right
  741. // semantics, but it's the best we can do).
  742. //
  743. // Example:
  744. // int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
  745. //
  746. // #elif __SOME_OTHER_COMPILER__
  747. //
  748. // # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
  749. // GCC has various useful declarations that can be made with the
  750. // `__attribute__' syntax. All of the ways we use this do fine if
  751. // they are omitted for compilers that don't understand it.
  752. // At some point during the gcc 2.96 development the `malloc' attribute
  753. // for functions was introduced. We don't want to use it unconditionally
  754. // (although this would be possible) since it generates warnings.
  755. // Tell the compiler which arguments to an allocation function
  756. // indicate the size of the allocation.
  757. // At some point during the gcc 2.96 development the `pure' attribute
  758. // for functions was introduced. We don't want to use it unconditionally
  759. // (although this would be possible) since it generates warnings.
  760. // This declaration tells the compiler that the value is constant.
  761. // At some point during the gcc 3.1 development the `used' attribute
  762. // for functions was introduced. We don't want to use it unconditionally
  763. // (although this would be possible) since it generates warnings.
  764. // Since version 3.2, gcc allows marking deprecated functions.
  765. // Since version 4.5, gcc also allows one to specify the message printed
  766. // when a deprecated function is used. clang claims to be gcc 4.2, but
  767. // may also support this feature.
  768. // At some point during the gcc 2.8 development the `format_arg' attribute
  769. // for functions was introduced. We don't want to use it unconditionally
  770. // (although this would be possible) since it generates warnings.
  771. // If several `format_arg' attributes are given for the same function, in
  772. // gcc-3.0 and older, all but the last one are ignored. In newer gccs,
  773. // all designated arguments are considered.
  774. // At some point during the gcc 2.97 development the `strfmon' format
  775. // attribute for functions was introduced. We don't want to use it
  776. // unconditionally (although this would be possible) since it
  777. // generates warnings.
  778. // The nonull function attribute allows to mark pointer parameters which
  779. // must not be NULL.
  780. // If fortification mode, we warn about unused results of certain
  781. // function calls which can lead to problems.
  782. // Forces a function to be always inlined.
  783. // The Linux kernel defines __always_inline in stddef.h (283d7573), and
  784. // it conflicts with this definition. Therefore undefine it first to
  785. // allow either header to be included first.
  786. // Associate error messages with the source location of the call site rather
  787. // than with the source location inside the function.
  788. // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
  789. // inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
  790. // or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
  791. // older than 4.3 may define these macros and still not guarantee GNU inlining
  792. // semantics.
  793. //
  794. // clang++ identifies itself as gcc-4.2, but has support for GNU inlining
  795. // semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
  796. // __GNUC_GNU_INLINE__ macro definitions.
  797. // GCC 4.3 and above allow passing all anonymous arguments of an
  798. // __extern_always_inline function to some other vararg function.
  799. // It is possible to compile containing GCC extensions even if GCC is
  800. // run in pedantic mode if the uses are carefully marked using the
  801. // `__extension__' keyword. But this is not generally available before
  802. // version 2.8.
  803. // __restrict is known in EGCS 1.2 and above.
  804. // ISO C99 also allows to declare arrays as non-overlapping. The syntax is
  805. // array_name[restrict]
  806. // GCC 3.1 supports this.
  807. // Describes a char array whose address can safely be passed as the first
  808. // argument to strncpy and strncat, as the char array is not necessarily
  809. // a NUL-terminated string.
  810. // Undefine (also defined in libc-symbols.h).
  811. // Copies attributes from the declaration or type referenced by
  812. // the argument.
  813. // Copyright (C) 1999-2020 Free Software Foundation, Inc.
  814. // This file is part of the GNU C Library.
  815. //
  816. // The GNU C Library is free software; you can redistribute it and/or
  817. // modify it under the terms of the GNU Lesser General Public
  818. // License as published by the Free Software Foundation; either
  819. // version 2.1 of the License, or (at your option) any later version.
  820. //
  821. // The GNU C Library is distributed in the hope that it will be useful,
  822. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  823. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  824. // Lesser General Public License for more details.
  825. //
  826. // You should have received a copy of the GNU Lesser General Public
  827. // License along with the GNU C Library; if not, see
  828. // <https://www.gnu.org/licenses/>.
  829. // Properties of long double type.
  830. // Copyright (C) 2016-2020 Free Software Foundation, Inc.
  831. // This file is part of the GNU C Library.
  832. //
  833. // The GNU C Library is free software; you can redistribute it and/or
  834. // modify it under the terms of the GNU Lesser General Public
  835. // License published by the Free Software Foundation; either
  836. // version 2.1 of the License, or (at your option) any later version.
  837. //
  838. // The GNU C Library is distributed in the hope that it will be useful,
  839. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  840. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  841. // Lesser General Public License for more details.
  842. //
  843. // You should have received a copy of the GNU Lesser General Public
  844. // License along with the GNU C Library; if not, see
  845. // <https://www.gnu.org/licenses/>.
  846. // This header is included by <sys/cdefs.h>.
  847. //
  848. // If long double is ABI-compatible with double, it should define
  849. // __NO_LONG_DOUBLE_MATH to 1; otherwise, it should leave
  850. // __NO_LONG_DOUBLE_MATH undefined.
  851. //
  852. // If this build of the GNU C Library supports both long double
  853. // ABI-compatible with double and some other long double format not
  854. // ABI-compatible with double, it should define
  855. // __LONG_DOUBLE_MATH_OPTIONAL to 1; otherwise, it should leave
  856. // __LONG_DOUBLE_MATH_OPTIONAL undefined.
  857. //
  858. // If __NO_LONG_DOUBLE_MATH is already defined, this header must not
  859. // define anything; this is needed to work with the definition of
  860. // __NO_LONG_DOUBLE_MATH in nldbl-compat.h.
  861. // In the default version of this header, long double is
  862. // ABI-compatible with double.
  863. // __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
  864. // intended for use in preprocessor macros.
  865. //
  866. // Note: MESSAGE must be a _single_ string; concatenation of string
  867. // literals is not supported.
  868. // Generic selection (ISO C11) is a C-only feature, available in GCC
  869. // since version 4.9. Previous versions do not provide generic
  870. // selection, even though they might set __STDC_VERSION__ to 201112L,
  871. // when in -std=c11 mode. Thus, we must check for !defined __GNUC__
  872. // when testing __STDC_VERSION__ for generic selection support.
  873. // On the other hand, Clang also defines __GNUC__, so a clang-specific
  874. // check is required to enable the use of generic selection.
  875. // If we don't have __REDIRECT, prototypes will be missing if
  876. // __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
  877. // Decide whether we can define 'extern inline' functions in headers.
  878. // This is here only because every header file already includes this one.
  879. // Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
  880. // <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
  881. // that will always return failure (and set errno to ENOSYS).
  882. // This file is automatically generated.
  883. // This file selects the right generated file of `__stub_FUNCTION' macros
  884. // based on the architecture being compiled for.
  885. // This file is automatically generated.
  886. // It defines a symbol `__stub_FUNCTION' for each function
  887. // in the C library which is a stub, meaning it will fail
  888. // every time called, usually setting errno to ENOSYS.
  889. // These may be used to determine what facilities are present at compile time.
  890. // Their values can be obtained at run time from `sysconf'.
  891. // POSIX Standard approved as ISO/IEC 9945-1 as of September 2008.
  892. // These are not #ifdef __USE_POSIX2 because they are
  893. // in the theoretically application-owned namespace.
  894. // The utilities on GNU systems also correspond to this version.
  895. // The utilities on GNU systems also correspond to this version.
  896. // This symbol was required until the 2001 edition of POSIX.
  897. // If defined, the implementation supports the
  898. // C Language Bindings Option.
  899. // If defined, the implementation supports the
  900. // C Language Development Utilities Option.
  901. // If defined, the implementation supports the
  902. // Software Development Utilities Option.
  903. // If defined, the implementation supports the
  904. // creation of locales with the localedef utility.
  905. // X/Open version number to which the library conforms. It is selectable.
  906. // Commands and utilities from XPG4 are available.
  907. // We are compatible with the old published standards as well.
  908. // The X/Open Unix extensions are available.
  909. // The enhanced internationalization capabilities according to XPG4.2
  910. // are present.
  911. // The legacy interfaces are also available.
  912. // Get values of POSIX options:
  913. //
  914. // If these symbols are defined, the corresponding features are
  915. // always available. If not, they may be available sometimes.
  916. // The current values can be obtained with `sysconf'.
  917. //
  918. // _POSIX_JOB_CONTROL Job control is supported.
  919. // _POSIX_SAVED_IDS Processes have a saved set-user-ID
  920. // and a saved set-group-ID.
  921. // _POSIX_REALTIME_SIGNALS Real-time, queued signals are supported.
  922. // _POSIX_PRIORITY_SCHEDULING Priority scheduling is supported.
  923. // _POSIX_TIMERS POSIX.4 clocks and timers are supported.
  924. // _POSIX_ASYNCHRONOUS_IO Asynchronous I/O is supported.
  925. // _POSIX_PRIORITIZED_IO Prioritized asynchronous I/O is supported.
  926. // _POSIX_SYNCHRONIZED_IO Synchronizing file data is supported.
  927. // _POSIX_FSYNC The fsync function is present.
  928. // _POSIX_MAPPED_FILES Mapping of files to memory is supported.
  929. // _POSIX_MEMLOCK Locking of all memory is supported.
  930. // _POSIX_MEMLOCK_RANGE Locking of ranges of memory is supported.
  931. // _POSIX_MEMORY_PROTECTION Setting of memory protections is supported.
  932. // _POSIX_MESSAGE_PASSING POSIX.4 message queues are supported.
  933. // _POSIX_SEMAPHORES POSIX.4 counting semaphores are supported.
  934. // _POSIX_SHARED_MEMORY_OBJECTS POSIX.4 shared memory objects are supported.
  935. // _POSIX_THREADS POSIX.1c pthreads are supported.
  936. // _POSIX_THREAD_ATTR_STACKADDR Thread stack address attribute option supported.
  937. // _POSIX_THREAD_ATTR_STACKSIZE Thread stack size attribute option supported.
  938. // _POSIX_THREAD_SAFE_FUNCTIONS Thread-safe functions are supported.
  939. // _POSIX_THREAD_PRIORITY_SCHEDULING
  940. // POSIX.1c thread execution scheduling supported.
  941. // _POSIX_THREAD_PRIO_INHERIT Thread priority inheritance option supported.
  942. // _POSIX_THREAD_PRIO_PROTECT Thread priority protection option supported.
  943. // _POSIX_THREAD_PROCESS_SHARED Process-shared synchronization supported.
  944. // _POSIX_PII Protocol-independent interfaces are supported.
  945. // _POSIX_PII_XTI XTI protocol-indep. interfaces are supported.
  946. // _POSIX_PII_SOCKET Socket protocol-indep. interfaces are supported.
  947. // _POSIX_PII_INTERNET Internet family of protocols supported.
  948. // _POSIX_PII_INTERNET_STREAM Connection-mode Internet protocol supported.
  949. // _POSIX_PII_INTERNET_DGRAM Connectionless Internet protocol supported.
  950. // _POSIX_PII_OSI ISO/OSI family of protocols supported.
  951. // _POSIX_PII_OSI_COTS Connection-mode ISO/OSI service supported.
  952. // _POSIX_PII_OSI_CLTS Connectionless ISO/OSI service supported.
  953. // _POSIX_POLL Implementation supports `poll' function.
  954. // _POSIX_SELECT Implementation supports `select' and `pselect'.
  955. //
  956. // _XOPEN_REALTIME X/Open realtime support is available.
  957. // _XOPEN_REALTIME_THREADS X/Open realtime thread support is available.
  958. // _XOPEN_SHM Shared memory interface according to XPG4.2.
  959. //
  960. // _XBS5_ILP32_OFF32 Implementation provides environment with 32-bit
  961. // int, long, pointer, and off_t types.
  962. // _XBS5_ILP32_OFFBIG Implementation provides environment with 32-bit
  963. // int, long, and pointer and off_t with at least
  964. // 64 bits.
  965. // _XBS5_LP64_OFF64 Implementation provides environment with 32-bit
  966. // int, and 64-bit long, pointer, and off_t types.
  967. // _XBS5_LPBIG_OFFBIG Implementation provides environment with at
  968. // least 32 bits int and long, pointer, and off_t
  969. // with at least 64 bits.
  970. //
  971. // If any of these symbols is defined as -1, the corresponding option is not
  972. // true for any file. If any is defined as other than -1, the corresponding
  973. // option is true for all files. If a symbol is not defined at all, the value
  974. // for a specific file can be obtained from `pathconf' and `fpathconf'.
  975. //
  976. // _POSIX_CHOWN_RESTRICTED Only the super user can use `chown' to change
  977. // the owner of a file. `chown' can only be used
  978. // to change the group ID of a file to a group of
  979. // which the calling process is a member.
  980. // _POSIX_NO_TRUNC Pathname components longer than
  981. // NAME_MAX generate an error.
  982. // _POSIX_VDISABLE If defined, if the value of an element of the
  983. // `c_cc' member of `struct termios' is
  984. // _POSIX_VDISABLE, no character will have the
  985. // effect associated with that element.
  986. // _POSIX_SYNC_IO Synchronous I/O may be performed.
  987. // _POSIX_ASYNC_IO Asynchronous I/O may be performed.
  988. // _POSIX_PRIO_IO Prioritized Asynchronous I/O may be performed.
  989. //
  990. // Support for the Large File Support interface is not generally available.
  991. // If it is available the following constants are defined to one.
  992. // _LFS64_LARGEFILE Low-level I/O supports large files.
  993. // _LFS64_STDIO Standard I/O supports large files.
  994. //
  995. // Define POSIX options for Linux.
  996. // Copyright (C) 1996-2020 Free Software Foundation, Inc.
  997. // This file is part of the GNU C Library.
  998. //
  999. // The GNU C Library is free software; you can redistribute it and/or
  1000. // modify it under the terms of the GNU Lesser General Public License as
  1001. // published by the Free Software Foundation; either version 2.1 of the
  1002. // License, or (at your option) any later version.
  1003. //
  1004. // The GNU C Library is distributed in the hope that it will be useful,
  1005. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1006. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1007. // Lesser General Public License for more details.
  1008. //
  1009. // You should have received a copy of the GNU Lesser General Public
  1010. // License along with the GNU C Library; see the file COPYING.LIB. If
  1011. // not, see <https://www.gnu.org/licenses/>.
  1012. // Job control is supported.
  1013. // Processes have a saved set-user-ID and a saved set-group-ID.
  1014. // Priority scheduling is not supported with the correct semantics,
  1015. // but GNU/Linux applications expect that the corresponding interfaces
  1016. // are available, even though the semantics do not meet the POSIX
  1017. // requirements. See glibc bug 14829.
  1018. // Synchronizing file data is supported.
  1019. // The fsync function is present.
  1020. // Mapping of files to memory is supported.
  1021. // Locking of all memory is supported.
  1022. // Locking of ranges of memory is supported.
  1023. // Setting of memory protections is supported.
  1024. // Some filesystems allow all users to change file ownership.
  1025. // `c_cc' member of 'struct termios' structure can be disabled by
  1026. // using the value _POSIX_VDISABLE.
  1027. // Filenames are not silently truncated.
  1028. // X/Open realtime support is available.
  1029. // X/Open thread realtime support is available.
  1030. // XPG4.2 shared memory is supported.
  1031. // Tell we have POSIX threads.
  1032. // We have the reentrant functions described in POSIX.
  1033. // We provide priority scheduling for threads.
  1034. // We support user-defined stack sizes.
  1035. // We support user-defined stacks.
  1036. // We support priority inheritence.
  1037. // We support priority protection, though only for non-robust
  1038. // mutexes.
  1039. // We support priority inheritence for robust mutexes.
  1040. // We do not support priority protection for robust mutexes.
  1041. // We support POSIX.1b semaphores.
  1042. // Real-time signals are supported.
  1043. // We support asynchronous I/O.
  1044. // Alternative name for Unix98.
  1045. // Support for prioritization is also available.
  1046. // The LFS support in asynchronous I/O is also available.
  1047. // The rest of the LFS is also available.
  1048. // POSIX shared memory objects are implemented.
  1049. // CPU-time clocks support needs to be checked at runtime.
  1050. // Clock support in threads must be also checked at runtime.
  1051. // GNU libc provides regular expression handling.
  1052. // Reader/Writer locks are available.
  1053. // We have a POSIX shell.
  1054. // We support the Timeouts option.
  1055. // We support spinlocks.
  1056. // The `spawn' function family is supported.
  1057. // We have POSIX timers.
  1058. // The barrier functions are available.
  1059. // POSIX message queues are available.
  1060. // Thread process-shared synchronization is supported.
  1061. // The monotonic clock might be available.
  1062. // The clock selection interfaces are available.
  1063. // Advisory information interfaces are available.
  1064. // IPv6 support is available.
  1065. // Raw socket support is available.
  1066. // We have at least one terminal.
  1067. // Neither process nor thread sporadic server interfaces is available.
  1068. // trace.h is not available.
  1069. // Typed memory objects are not available.
  1070. // Get the environment definitions from Unix98.
  1071. // Copyright (C) 1999-2020 Free Software Foundation, Inc.
  1072. // This file is part of the GNU C Library.
  1073. //
  1074. // The GNU C Library is free software; you can redistribute it and/or
  1075. // modify it under the terms of the GNU Lesser General Public
  1076. // License as published by the Free Software Foundation; either
  1077. // version 2.1 of the License, or (at your option) any later version.
  1078. //
  1079. // The GNU C Library is distributed in the hope that it will be useful,
  1080. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1081. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1082. // Lesser General Public License for more details.
  1083. //
  1084. // You should have received a copy of the GNU Lesser General Public
  1085. // License along with the GNU C Library; if not, see
  1086. // <https://www.gnu.org/licenses/>.
  1087. // Copyright (C) 1999-2020 Free Software Foundation, Inc.
  1088. // This file is part of the GNU C Library.
  1089. //
  1090. // The GNU C Library is free software; you can redistribute it and/or
  1091. // modify it under the terms of the GNU Lesser General Public
  1092. // License as published by the Free Software Foundation; either
  1093. // version 2.1 of the License, or (at your option) any later version.
  1094. //
  1095. // The GNU C Library is distributed in the hope that it will be useful,
  1096. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1097. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1098. // Lesser General Public License for more details.
  1099. //
  1100. // You should have received a copy of the GNU Lesser General Public
  1101. // License along with the GNU C Library; if not, see
  1102. // <https://www.gnu.org/licenses/>.
  1103. // This header should define the following symbols under the described
  1104. // situations. A value `1' means that the model is always supported,
  1105. // `-1' means it is never supported. Undefined means it cannot be
  1106. // statically decided.
  1107. //
  1108. // _POSIX_V7_ILP32_OFF32 32bit int, long, pointers, and off_t type
  1109. // _POSIX_V7_ILP32_OFFBIG 32bit int, long, and pointers and larger off_t type
  1110. //
  1111. // _POSIX_V7_LP64_OFF32 64bit long and pointers and 32bit off_t type
  1112. // _POSIX_V7_LPBIG_OFFBIG 64bit long and pointers and large off_t type
  1113. //
  1114. // The macros _POSIX_V6_ILP32_OFF32, _POSIX_V6_ILP32_OFFBIG,
  1115. // _POSIX_V6_LP64_OFF32, _POSIX_V6_LPBIG_OFFBIG, _XBS5_ILP32_OFF32,
  1116. // _XBS5_ILP32_OFFBIG, _XBS5_LP64_OFF32, and _XBS5_LPBIG_OFFBIG were
  1117. // used in previous versions of the Unix standard and are available
  1118. // only for compatibility.
  1119. // By default we have 32-bit wide `int', `long int', pointers and `off_t'
  1120. // and all platforms support LFS.
  1121. // We optionally provide an environment with the above size but an 64-bit
  1122. // side `off_t'. Therefore we don't define _POSIX_V7_ILP32_OFFBIG.
  1123. // We can never provide environments with 64-bit wide pointers.
  1124. // CFLAGS.
  1125. // Standard file descriptors.
  1126. // All functions that are not declared anywhere else.
  1127. // bits/types.h -- definitions of __*_t types underlying *_t types.
  1128. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1129. // This file is part of the GNU C Library.
  1130. //
  1131. // The GNU C Library is free software; you can redistribute it and/or
  1132. // modify it under the terms of the GNU Lesser General Public
  1133. // License as published by the Free Software Foundation; either
  1134. // version 2.1 of the License, or (at your option) any later version.
  1135. //
  1136. // The GNU C Library is distributed in the hope that it will be useful,
  1137. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1138. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1139. // Lesser General Public License for more details.
  1140. //
  1141. // You should have received a copy of the GNU Lesser General Public
  1142. // License along with the GNU C Library; if not, see
  1143. // <https://www.gnu.org/licenses/>.
  1144. // Never include this file directly; use <sys/types.h> instead.
  1145. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  1146. // This file is part of the GNU C Library.
  1147. //
  1148. // The GNU C Library is free software; you can redistribute it and/or
  1149. // modify it under the terms of the GNU Lesser General Public
  1150. // License as published by the Free Software Foundation; either
  1151. // version 2.1 of the License, or (at your option) any later version.
  1152. //
  1153. // The GNU C Library is distributed in the hope that it will be useful,
  1154. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1155. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1156. // Lesser General Public License for more details.
  1157. //
  1158. // You should have received a copy of the GNU Lesser General Public
  1159. // License along with the GNU C Library; if not, see
  1160. // <https://www.gnu.org/licenses/>.
  1161. // Copyright (C) 1999-2020 Free Software Foundation, Inc.
  1162. // This file is part of the GNU C Library.
  1163. //
  1164. // The GNU C Library is free software; you can redistribute it and/or
  1165. // modify it under the terms of the GNU Lesser General Public
  1166. // License as published by the Free Software Foundation; either
  1167. // version 2.1 of the License, or (at your option) any later version.
  1168. //
  1169. // The GNU C Library is distributed in the hope that it will be useful,
  1170. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1171. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1172. // Lesser General Public License for more details.
  1173. //
  1174. // You should have received a copy of the GNU Lesser General Public
  1175. // License along with the GNU C Library; if not, see
  1176. // <https://www.gnu.org/licenses/>.
  1177. // Bit size of the time_t type at glibc build time, general case.
  1178. // Copyright (C) 2018-2020 Free Software Foundation, Inc.
  1179. // This file is part of the GNU C Library.
  1180. //
  1181. // The GNU C Library is free software; you can redistribute it and/or
  1182. // modify it under the terms of the GNU Lesser General Public
  1183. // License as published by the Free Software Foundation; either
  1184. // version 2.1 of the License, or (at your option) any later version.
  1185. //
  1186. // The GNU C Library is distributed in the hope that it will be useful,
  1187. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1188. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1189. // Lesser General Public License for more details.
  1190. //
  1191. // You should have received a copy of the GNU Lesser General Public
  1192. // License along with the GNU C Library; if not, see
  1193. // <https://www.gnu.org/licenses/>.
  1194. // Copyright (C) 1999-2020 Free Software Foundation, Inc.
  1195. // This file is part of the GNU C Library.
  1196. //
  1197. // The GNU C Library is free software; you can redistribute it and/or
  1198. // modify it under the terms of the GNU Lesser General Public
  1199. // License as published by the Free Software Foundation; either
  1200. // version 2.1 of the License, or (at your option) any later version.
  1201. //
  1202. // The GNU C Library is distributed in the hope that it will be useful,
  1203. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1204. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1205. // Lesser General Public License for more details.
  1206. //
  1207. // You should have received a copy of the GNU Lesser General Public
  1208. // License along with the GNU C Library; if not, see
  1209. // <https://www.gnu.org/licenses/>.
  1210. // Size in bits of the 'time_t' type of the default ABI.
  1211. // Convenience types.
  1212. type X__u_char = uint8 /* types.h:31:23 */
  1213. type X__u_short = uint16 /* types.h:32:28 */
  1214. type X__u_int = uint32 /* types.h:33:22 */
  1215. type X__u_long = uint32 /* types.h:34:27 */
  1216. // Fixed-size types, underlying types depend on word size and compiler.
  1217. type X__int8_t = int8 /* types.h:37:21 */
  1218. type X__uint8_t = uint8 /* types.h:38:23 */
  1219. type X__int16_t = int16 /* types.h:39:26 */
  1220. type X__uint16_t = uint16 /* types.h:40:28 */
  1221. type X__int32_t = int32 /* types.h:41:20 */
  1222. type X__uint32_t = uint32 /* types.h:42:22 */
  1223. type X__int64_t = int64 /* types.h:47:44 */
  1224. type X__uint64_t = uint64 /* types.h:48:46 */
  1225. // Smallest types with at least a given width.
  1226. type X__int_least8_t = X__int8_t /* types.h:52:18 */
  1227. type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
  1228. type X__int_least16_t = X__int16_t /* types.h:54:19 */
  1229. type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
  1230. type X__int_least32_t = X__int32_t /* types.h:56:19 */
  1231. type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
  1232. type X__int_least64_t = X__int64_t /* types.h:58:19 */
  1233. type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
  1234. // quad_t is also 64 bits.
  1235. type X__quad_t = int64 /* types.h:66:37 */
  1236. type X__u_quad_t = uint64 /* types.h:67:46 */
  1237. // Largest integral types.
  1238. type X__intmax_t = int64 /* types.h:75:37 */
  1239. type X__uintmax_t = uint64 /* types.h:76:46 */
  1240. // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
  1241. // macros for each of the OS types we define below. The definitions
  1242. // of those macros must use the following macros for underlying types.
  1243. // We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
  1244. // variants of each of the following integer types on this machine.
  1245. //
  1246. // 16 -- "natural" 16-bit type (always short)
  1247. // 32 -- "natural" 32-bit type (always int)
  1248. // 64 -- "natural" 64-bit type (long or long long)
  1249. // LONG32 -- 32-bit type, traditionally long
  1250. // QUAD -- 64-bit type, traditionally long long
  1251. // WORD -- natural type of __WORDSIZE bits (int or long)
  1252. // LONGWORD -- type of __WORDSIZE bits, traditionally long
  1253. //
  1254. // We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
  1255. // conventional uses of `long' or `long long' type modifiers match the
  1256. // types we define, even when a less-adorned type would be the same size.
  1257. // This matters for (somewhat) portably writing printf/scanf formats for
  1258. // these types, where using the appropriate l or ll format modifiers can
  1259. // make the typedefs and the formats match up across all GNU platforms. If
  1260. // we used `long' when it's 64 bits where `long long' is expected, then the
  1261. // compiler would warn about the formats not matching the argument types,
  1262. // and the programmer changing them to shut up the compiler would break the
  1263. // program's portability.
  1264. //
  1265. // Here we assume what is presently the case in all the GCC configurations
  1266. // we support: long long is always 64 bits, long is always word/address size,
  1267. // and int is always 32 bits.
  1268. // We want __extension__ before typedef's that use nonstandard base types
  1269. // such as `long long' in C89 mode.
  1270. // bits/typesizes.h -- underlying types for *_t. Generic version.
  1271. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  1272. // This file is part of the GNU C Library.
  1273. //
  1274. // The GNU C Library is free software; you can redistribute it and/or
  1275. // modify it under the terms of the GNU Lesser General Public
  1276. // License as published by the Free Software Foundation; either
  1277. // version 2.1 of the License, or (at your option) any later version.
  1278. //
  1279. // The GNU C Library is distributed in the hope that it will be useful,
  1280. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1281. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1282. // Lesser General Public License for more details.
  1283. //
  1284. // You should have received a copy of the GNU Lesser General Public
  1285. // License along with the GNU C Library; if not, see
  1286. // <https://www.gnu.org/licenses/>.
  1287. // See <bits/types.h> for the meaning of these macros. This file exists so
  1288. // that <bits/types.h> need not vary across different GNU platforms.
  1289. // Number of descriptors that can fit in an `fd_set'.
  1290. // bits/time64.h -- underlying types for __time64_t. Generic version.
  1291. // Copyright (C) 2018-2020 Free Software Foundation, Inc.
  1292. // This file is part of the GNU C Library.
  1293. //
  1294. // The GNU C Library is free software; you can redistribute it and/or
  1295. // modify it under the terms of the GNU Lesser General Public
  1296. // License as published by the Free Software Foundation; either
  1297. // version 2.1 of the License, or (at your option) any later version.
  1298. //
  1299. // The GNU C Library is distributed in the hope that it will be useful,
  1300. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1301. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1302. // Lesser General Public License for more details.
  1303. //
  1304. // You should have received a copy of the GNU Lesser General Public
  1305. // License along with the GNU C Library; if not, see
  1306. // <https://www.gnu.org/licenses/>.
  1307. // Define __TIME64_T_TYPE so that it is always a 64-bit type.
  1308. // Define a 64-bit time type alongsize the 32-bit one.
  1309. type X__dev_t = X__uint64_t /* types.h:145:25 */ // Type of device numbers.
  1310. type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
  1311. type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
  1312. type X__ino_t = uint32 /* types.h:148:25 */ // Type of file serial numbers.
  1313. type X__ino64_t = X__uint64_t /* types.h:149:27 */ // Type of file serial numbers (LFS).
  1314. type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
  1315. type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts.
  1316. type X__off_t = int32 /* types.h:152:25 */ // Type of file sizes and offsets.
  1317. type X__off64_t = X__int64_t /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
  1318. type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
  1319. type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
  1320. type X__clock_t = int32 /* types.h:156:27 */ // Type of CPU usage counts.
  1321. type X__rlim_t = uint32 /* types.h:157:26 */ // Type for resource measurement.
  1322. type X__rlim64_t = X__uint64_t /* types.h:158:28 */ // Type for resource measurement (LFS).
  1323. type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
  1324. type X__time_t = int32 /* types.h:160:26 */ // Seconds since the Epoch.
  1325. type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
  1326. type X__suseconds_t = int32 /* types.h:162:31 */ // Signed count of microseconds.
  1327. type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
  1328. type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
  1329. // Clock ID used in clock and timer functions.
  1330. type X__clockid_t = int32 /* types.h:168:29 */
  1331. // Timer ID returned by `timer_create'.
  1332. type X__timer_t = uintptr /* types.h:171:12 */
  1333. // Type to represent block size.
  1334. type X__blksize_t = int32 /* types.h:174:29 */
  1335. // Types from the Large File Support interface.
  1336. // Type to count number of disk blocks.
  1337. type X__blkcnt_t = int32 /* types.h:179:28 */
  1338. type X__blkcnt64_t = X__int64_t /* types.h:180:30 */
  1339. // Type to count file system blocks.
  1340. type X__fsblkcnt_t = uint32 /* types.h:183:30 */
  1341. type X__fsblkcnt64_t = X__uint64_t /* types.h:184:32 */
  1342. // Type to count file system nodes.
  1343. type X__fsfilcnt_t = uint32 /* types.h:187:30 */
  1344. type X__fsfilcnt64_t = X__uint64_t /* types.h:188:32 */
  1345. // Type of miscellaneous file system fields.
  1346. type X__fsword_t = int32 /* types.h:191:28 */
  1347. type X__ssize_t = int32 /* types.h:193:27 */ // Type of a byte count, or error.
  1348. // Signed long type used in system calls.
  1349. type X__syscall_slong_t = int32 /* types.h:196:33 */
  1350. // Unsigned long type used in system calls.
  1351. type X__syscall_ulong_t = uint32 /* types.h:198:33 */
  1352. // These few don't really vary by system, they always correspond
  1353. //
  1354. // to one of the other defined types.
  1355. type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
  1356. type X__caddr_t = uintptr /* types.h:203:14 */
  1357. // Duplicates info from stdint.h but this is used in unistd.h.
  1358. type X__intptr_t = int32 /* types.h:206:25 */
  1359. // Duplicate info from sys/socket.h.
  1360. type X__socklen_t = uint32 /* types.h:209:23 */
  1361. // C99: An integer type that can be accessed as an atomic entity,
  1362. //
  1363. // even in the presence of asynchronous interrupts.
  1364. // It is not currently necessary for this to be machine-specific.
  1365. type X__sig_atomic_t = int32 /* types.h:214:13 */
  1366. // Seconds since the Epoch, visible to user code when time_t is too
  1367. //
  1368. // narrow only for consistency with the old way of widening too-narrow
  1369. // types. User code should never use __time64_t.
  1370. type X__time64_t = X__int64_t /* types.h:222:28 */
  1371. type Ssize_t = X__ssize_t /* unistd.h:220:19 */
  1372. // Wide character type.
  1373. // Locale-writers should change this as necessary to
  1374. // be big enough to hold unique values not between 0 and 127,
  1375. // and not (wchar_t) -1, for each defined multibyte character.
  1376. // Define this type if we are doing the whole job,
  1377. // or if we want this type in particular.
  1378. // A null pointer constant.
  1379. // The Single Unix specification says that some more types are
  1380. //
  1381. // available here.
  1382. type Gid_t = X__gid_t /* unistd.h:232:17 */
  1383. type Uid_t = X__uid_t /* unistd.h:237:17 */
  1384. type Off_t = X__off64_t /* unistd.h:245:19 */
  1385. type Useconds_t = X__useconds_t /* unistd.h:255:22 */
  1386. type Pid_t = X__pid_t /* unistd.h:260:17 */
  1387. type Intptr_t = X__intptr_t /* unistd.h:267:20 */
  1388. type Socklen_t = X__socklen_t /* unistd.h:274:21 */
  1389. // Define some macros helping to catch buffer overflows.
  1390. // System-specific extensions.
  1391. // System-specific extensions of <unistd.h>, Linux version.
  1392. // Copyright (C) 2019-2020 Free Software Foundation, Inc.
  1393. // This file is part of the GNU C Library.
  1394. //
  1395. // The GNU C Library is free software; you can redistribute it and/or
  1396. // modify it under the terms of the GNU Lesser General Public
  1397. // License as published by the Free Software Foundation; either
  1398. // version 2.1 of the License, or (at your option) any later version.
  1399. //
  1400. // The GNU C Library is distributed in the hope that it will be useful,
  1401. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1402. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1403. // Lesser General Public License for more details.
  1404. //
  1405. // You should have received a copy of the GNU Lesser General Public
  1406. // License along with the GNU C Library; if not, see
  1407. // <https://www.gnu.org/licenses/>.
  1408. var _ uint8 /* gen.c:2:13: */