unistd_linux_arm64.go 67 KB

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