unistd_linux_riscv64.go 72 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779
  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_riscv64.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-2021 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:539: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. X_SC_MINSIGSTKSZ = 249
  483. X_SC_SIGSTKSZ = 250
  484. )
  485. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  486. type Size_t = uint64 /* <builtin>:9:23 */
  487. type Wchar_t = int32 /* <builtin>:15:24 */
  488. type X__int128_t = struct {
  489. Flo int64
  490. Fhi int64
  491. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  492. type X__uint128_t = struct {
  493. Flo uint64
  494. Fhi uint64
  495. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  496. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  497. type X__float128 = float64 /* <builtin>:47:21 */
  498. // Copyright (C) 1991-2021 Free Software Foundation, Inc.
  499. // This file is part of the GNU C Library.
  500. //
  501. // The GNU C Library is free software; you can redistribute it and/or
  502. // modify it under the terms of the GNU Lesser General Public
  503. // License as published by the Free Software Foundation; either
  504. // version 2.1 of the License, or (at your option) any later version.
  505. //
  506. // The GNU C Library is distributed in the hope that it will be useful,
  507. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  508. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  509. // Lesser General Public License for more details.
  510. //
  511. // You should have received a copy of the GNU Lesser General Public
  512. // License along with the GNU C Library; if not, see
  513. // <https://www.gnu.org/licenses/>.
  514. // POSIX Standard: 2.10 Symbolic Constants <unistd.h>
  515. // Copyright (C) 1991-2021 Free Software Foundation, Inc.
  516. // This file is part of the GNU C Library.
  517. //
  518. // The GNU C Library is free software; you can redistribute it and/or
  519. // modify it under the terms of the GNU Lesser General Public
  520. // License as published by the Free Software Foundation; either
  521. // version 2.1 of the License, or (at your option) any later version.
  522. //
  523. // The GNU C Library is distributed in the hope that it will be useful,
  524. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  525. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  526. // Lesser General Public License for more details.
  527. //
  528. // You should have received a copy of the GNU Lesser General Public
  529. // License along with the GNU C Library; if not, see
  530. // <https://www.gnu.org/licenses/>.
  531. // These are defined by the user (or the compiler)
  532. // to specify the desired environment:
  533. //
  534. // __STRICT_ANSI__ ISO Standard C.
  535. // _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
  536. // _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
  537. // _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
  538. // __STDC_WANT_LIB_EXT2__
  539. // Extensions to ISO C99 from TR 27431-2:2010.
  540. // __STDC_WANT_IEC_60559_BFP_EXT__
  541. // Extensions to ISO C11 from TS 18661-1:2014.
  542. // __STDC_WANT_IEC_60559_FUNCS_EXT__
  543. // Extensions to ISO C11 from TS 18661-4:2015.
  544. // __STDC_WANT_IEC_60559_TYPES_EXT__
  545. // Extensions to ISO C11 from TS 18661-3:2015.
  546. // __STDC_WANT_IEC_60559_EXT__
  547. // ISO C2X interfaces defined only in Annex F.
  548. //
  549. // _POSIX_SOURCE IEEE Std 1003.1.
  550. // _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
  551. // if >=199309L, add IEEE Std 1003.1b-1993;
  552. // if >=199506L, add IEEE Std 1003.1c-1995;
  553. // if >=200112L, all of IEEE 1003.1-2004
  554. // if >=200809L, all of IEEE 1003.1-2008
  555. // _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
  556. // Single Unix conformance is wanted, to 600 for the
  557. // sixth revision, to 700 for the seventh revision.
  558. // _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
  559. // _LARGEFILE_SOURCE Some more functions for correct standard I/O.
  560. // _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
  561. // _FILE_OFFSET_BITS=N Select default filesystem interface.
  562. // _ATFILE_SOURCE Additional *at interfaces.
  563. // _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant)
  564. // MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN.
  565. // _GNU_SOURCE All of the above, plus GNU extensions.
  566. // _DEFAULT_SOURCE The default set of features (taking precedence over
  567. // __STRICT_ANSI__).
  568. //
  569. // _FORTIFY_SOURCE Add security hardening to many library functions.
  570. // Set to 1 or 2; 2 performs stricter checks than 1.
  571. //
  572. // _REENTRANT, _THREAD_SAFE
  573. // Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
  574. //
  575. // The `-ansi' switch to the GNU C compiler, and standards conformance
  576. // options such as `-std=c99', define __STRICT_ANSI__. If none of
  577. // these are defined, or if _DEFAULT_SOURCE is defined, the default is
  578. // to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
  579. // 200809L, as well as enabling miscellaneous functions from BSD and
  580. // SVID. If more than one of these are defined, they accumulate. For
  581. // example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
  582. // give you ISO C, 1003.1, and 1003.2, but nothing else.
  583. //
  584. // These are defined by this file and are used by the
  585. // header files to decide what to declare or define:
  586. //
  587. // __GLIBC_USE (F) Define things from feature set F. This is defined
  588. // to 1 or 0; the subsequent macros are either defined
  589. // or undefined, and those tests should be moved to
  590. // __GLIBC_USE.
  591. // __USE_ISOC11 Define ISO C11 things.
  592. // __USE_ISOC99 Define ISO C99 things.
  593. // __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
  594. // __USE_ISOCXX11 Define ISO C++11 things.
  595. // __USE_POSIX Define IEEE Std 1003.1 things.
  596. // __USE_POSIX2 Define IEEE Std 1003.2 things.
  597. // __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
  598. // __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
  599. // __USE_XOPEN Define XPG things.
  600. // __USE_XOPEN_EXTENDED Define X/Open Unix things.
  601. // __USE_UNIX98 Define Single Unix V2 things.
  602. // __USE_XOPEN2K Define XPG6 things.
  603. // __USE_XOPEN2KXSI Define XPG6 XSI things.
  604. // __USE_XOPEN2K8 Define XPG7 things.
  605. // __USE_XOPEN2K8XSI Define XPG7 XSI things.
  606. // __USE_LARGEFILE Define correct standard I/O things.
  607. // __USE_LARGEFILE64 Define LFS things with separate names.
  608. // __USE_FILE_OFFSET64 Define 64bit interface as default.
  609. // __USE_MISC Define things from 4.3BSD or System V Unix.
  610. // __USE_ATFILE Define *at interfaces and AT_* constants for them.
  611. // __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant)
  612. // MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN.
  613. // __USE_GNU Define GNU extensions.
  614. // __USE_FORTIFY_LEVEL Additional security measures used, according to level.
  615. //
  616. // The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
  617. // defined by this file unconditionally. `__GNU_LIBRARY__' is provided
  618. // only for compatibility. All new code should use the other symbols
  619. // to test for features.
  620. //
  621. // All macros listed above as possibly being defined by this file are
  622. // explicitly undefined if they are not explicitly defined.
  623. // Feature-test macros that are not defined by the user or compiler
  624. // but are implied by the other feature-test macros defined (or by the
  625. // lack of any definitions) are defined by the file.
  626. //
  627. // ISO C feature test macros depend on the definition of the macro
  628. // when an affected header is included, not when the first system
  629. // header is included, and so they are handled in
  630. // <bits/libc-header-start.h>, which does not have a multiple include
  631. // guard. Feature test macros that can be handled from the first
  632. // system header included are handled here.
  633. // Undefine everything, so we get a clean slate.
  634. // Suppress kernel-name space pollution unless user expressedly asks
  635. // for it.
  636. // Convenience macro to test the version of gcc.
  637. // Use like this:
  638. // #if __GNUC_PREREQ (2,8)
  639. // ... code requiring gcc 2.8 or later ...
  640. // #endif
  641. // Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
  642. // added in 2.0.
  643. // Similarly for clang. Features added to GCC after version 4.2 may
  644. // or may not also be available in clang, and clang's definitions of
  645. // __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
  646. // features can be queried via __has_extension/__has_feature.
  647. // Whether to use feature set F.
  648. // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
  649. // _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
  650. // issue a warning; the expectation is that the source is being
  651. // transitioned to use the new macro.
  652. // If _GNU_SOURCE was defined by the user, turn on all the other features.
  653. // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
  654. // define _DEFAULT_SOURCE.
  655. // This is to enable the ISO C2X extension.
  656. // This is to enable the ISO C11 extension.
  657. // This is to enable the ISO C99 extension.
  658. // This is to enable the ISO C90 Amendment 1:1995 extension.
  659. // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
  660. // is defined, use POSIX.1-2008 (or another version depending on
  661. // _XOPEN_SOURCE).
  662. // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
  663. // defined in all multithreaded code. GNU libc has not required this
  664. // for many years. We now treat them as compatibility synonyms for
  665. // _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
  666. // comprehensive support for multithreaded code. Using them never
  667. // lowers the selected level of POSIX conformance, only raises it.
  668. // Features part to handle 64-bit time_t support.
  669. // Copyright (C) 2021 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. // We need to know the word size in order to check the time size.
  686. // Determine the wordsize from the preprocessor defines. RISC-V version.
  687. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  688. // This file is part of the GNU C Library.
  689. //
  690. // The GNU C Library is free software; you can redistribute it and/or
  691. // modify it under the terms of the GNU Lesser General Public
  692. // License as published by the Free Software Foundation; either
  693. // version 2.1 of the License, or (at your option) any later version.
  694. //
  695. // The GNU C Library is distributed in the hope that it will be useful,
  696. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  697. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  698. // Lesser General Public License for more details.
  699. //
  700. // You should have received a copy of the GNU Lesser General Public
  701. // License along with the GNU C Library. If not, see
  702. // <https://www.gnu.org/licenses/>.
  703. // Bit size of the time_t type at glibc build time, RISC-V case.
  704. // Copyright (C) 2020-2021 Free Software Foundation, Inc.
  705. // This file is part of the GNU C Library.
  706. //
  707. // The GNU C Library is free software; you can redistribute it and/or
  708. // modify it under the terms of the GNU Lesser General Public
  709. // License as published by the Free Software Foundation; either
  710. // version 2.1 of the License, or (at your option) any later version.
  711. //
  712. // The GNU C Library is distributed in the hope that it will be useful,
  713. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  714. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  715. // Lesser General Public License for more details.
  716. //
  717. // You should have received a copy of the GNU Lesser General Public
  718. // License along with the GNU C Library; if not, see
  719. // <https://www.gnu.org/licenses/>.
  720. // Determine the wordsize from the preprocessor defines. RISC-V version.
  721. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  722. // This file is part of the GNU C Library.
  723. //
  724. // The GNU C Library is free software; you can redistribute it and/or
  725. // modify it under the terms of the GNU Lesser General Public
  726. // License as published by the Free Software Foundation; either
  727. // version 2.1 of the License, or (at your option) any later version.
  728. //
  729. // The GNU C Library is distributed in the hope that it will be useful,
  730. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  731. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  732. // Lesser General Public License for more details.
  733. //
  734. // You should have received a copy of the GNU Lesser General Public
  735. // License along with the GNU C Library. If not, see
  736. // <https://www.gnu.org/licenses/>.
  737. // RV32 and RV64 both use 64-bit time_t
  738. // The function 'gets' existed in C89, but is impossible to use
  739. // safely. It has been removed from ISO C11 and ISO C++14. Note: for
  740. // compatibility with various implementations of <cstdio>, this test
  741. // must consider only the value of __cplusplus when compiling C++.
  742. // GNU formerly extended the scanf functions with modified format
  743. // specifiers %as, %aS, and %a[...] that allocate a buffer for the
  744. // input using malloc. This extension conflicts with ISO C99, which
  745. // defines %a as a standalone format specifier that reads a floating-
  746. // point number; moreover, POSIX.1-2008 provides the same feature
  747. // using the modifier letter 'm' instead (%ms, %mS, %m[...]).
  748. //
  749. // We now follow C99 unless GNU extensions are active and the compiler
  750. // is specifically in C89 or C++98 mode (strict or not). For
  751. // instance, with GCC, -std=gnu11 will have C99-compliant scanf with
  752. // or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
  753. // old extension.
  754. // Get definitions of __STDC_* predefined macros, if the compiler has
  755. // not preincluded this header automatically.
  756. // Copyright (C) 1991-2021 Free Software Foundation, Inc.
  757. // This file is part of the GNU C Library.
  758. //
  759. // The GNU C Library is free software; you can redistribute it and/or
  760. // modify it under the terms of the GNU Lesser General Public
  761. // License as published by the Free Software Foundation; either
  762. // version 2.1 of the License, or (at your option) any later version.
  763. //
  764. // The GNU C Library is distributed in the hope that it will be useful,
  765. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  766. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  767. // Lesser General Public License for more details.
  768. //
  769. // You should have received a copy of the GNU Lesser General Public
  770. // License along with the GNU C Library; if not, see
  771. // <https://www.gnu.org/licenses/>.
  772. // This macro indicates that the installed library is the GNU C Library.
  773. // For historic reasons the value now is 6 and this will stay from now
  774. // on. The use of this variable is deprecated. Use __GLIBC__ and
  775. // __GLIBC_MINOR__ now (see below) when you want to test for a specific
  776. // GNU C library version and use the values in <gnu/lib-names.h> to get
  777. // the sonames of the shared libraries.
  778. // Major and minor version number of the GNU C library package. Use
  779. // these macros to test for features in specific releases.
  780. // This is here only because every header file already includes this one.
  781. // Copyright (C) 1992-2021 Free Software Foundation, Inc.
  782. // This file is part of the GNU C Library.
  783. //
  784. // The GNU C Library is free software; you can redistribute it and/or
  785. // modify it under the terms of the GNU Lesser General Public
  786. // License as published by the Free Software Foundation; either
  787. // version 2.1 of the License, or (at your option) any later version.
  788. //
  789. // The GNU C Library is distributed in the hope that it will be useful,
  790. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  791. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  792. // Lesser General Public License for more details.
  793. //
  794. // You should have received a copy of the GNU Lesser General Public
  795. // License along with the GNU C Library; if not, see
  796. // <https://www.gnu.org/licenses/>.
  797. // We are almost always included from features.h.
  798. // The GNU libc does not support any K&R compilers or the traditional mode
  799. // of ISO C compilers anymore. Check for some of the combinations not
  800. // supported anymore.
  801. // Some user header file might have defined this before.
  802. // Compilers that lack __has_attribute may object to
  803. // #if defined __has_attribute && __has_attribute (...)
  804. // even though they do not need to evaluate the right-hand side of the &&.
  805. // Similarly for __has_builtin, etc.
  806. // All functions, except those with callbacks or those that
  807. // synchronize memory, are leaf functions.
  808. // GCC can always grok prototypes. For C++ programs we add throw()
  809. // to help it optimize the function calls. But this only works with
  810. // gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions
  811. // as non-throwing using a function attribute since programs can use
  812. // the -fexceptions options for C code as well.
  813. // These two macros are not used in glibc anymore. They are kept here
  814. // only because some other projects expect the macros to be defined.
  815. // For these things, GCC behaves the ANSI way normally,
  816. // and the non-ANSI way under -traditional.
  817. // This is not a typedef so `const __ptr_t' does the right thing.
  818. // C++ needs to know that types and declarations are C, not C++.
  819. // Fortify support.
  820. // Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available.
  821. // Support for flexible arrays.
  822. // Headers that should use flexible arrays only if they're "real"
  823. // (e.g. only if they won't affect sizeof()) should test
  824. // #if __glibc_c99_flexarr_available.
  825. // __asm__ ("xyz") is used throughout the headers to rename functions
  826. // at the assembly language level. This is wrapped by the __REDIRECT
  827. // macro, in order to support compilers that can do this some other
  828. // way. When compilers don't support asm-names at all, we have to do
  829. // preprocessor tricks instead (which don't have exactly the right
  830. // semantics, but it's the best we can do).
  831. //
  832. // Example:
  833. // int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
  834. //
  835. // #elif __SOME_OTHER_COMPILER__
  836. //
  837. // # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
  838. // GCC and clang have various useful declarations that can be made with
  839. // the '__attribute__' syntax. All of the ways we use this do fine if
  840. // they are omitted for compilers that don't understand it.
  841. // At some point during the gcc 2.96 development the `malloc' attribute
  842. // for functions was introduced. We don't want to use it unconditionally
  843. // (although this would be possible) since it generates warnings.
  844. // Tell the compiler which arguments to an allocation function
  845. // indicate the size of the allocation.
  846. // At some point during the gcc 2.96 development the `pure' attribute
  847. // for functions was introduced. We don't want to use it unconditionally
  848. // (although this would be possible) since it generates warnings.
  849. // This declaration tells the compiler that the value is constant.
  850. // At some point during the gcc 3.1 development the `used' attribute
  851. // for functions was introduced. We don't want to use it unconditionally
  852. // (although this would be possible) since it generates warnings.
  853. // Since version 3.2, gcc allows marking deprecated functions.
  854. // Since version 4.5, gcc also allows one to specify the message printed
  855. // when a deprecated function is used. clang claims to be gcc 4.2, but
  856. // may also support this feature.
  857. // At some point during the gcc 2.8 development the `format_arg' attribute
  858. // for functions was introduced. We don't want to use it unconditionally
  859. // (although this would be possible) since it generates warnings.
  860. // If several `format_arg' attributes are given for the same function, in
  861. // gcc-3.0 and older, all but the last one are ignored. In newer gccs,
  862. // all designated arguments are considered.
  863. // At some point during the gcc 2.97 development the `strfmon' format
  864. // attribute for functions was introduced. We don't want to use it
  865. // unconditionally (although this would be possible) since it
  866. // generates warnings.
  867. // The nonnull function attribute marks pointer parameters that
  868. // must not be NULL.
  869. // The returns_nonnull function attribute marks the return type of the function
  870. // as always being non-null.
  871. // If fortification mode, we warn about unused results of certain
  872. // function calls which can lead to problems.
  873. // Forces a function to be always inlined.
  874. // The Linux kernel defines __always_inline in stddef.h (283d7573), and
  875. // it conflicts with this definition. Therefore undefine it first to
  876. // allow either header to be included first.
  877. // Associate error messages with the source location of the call site rather
  878. // than with the source location inside the function.
  879. // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
  880. // inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
  881. // or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
  882. // older than 4.3 may define these macros and still not guarantee GNU inlining
  883. // semantics.
  884. //
  885. // clang++ identifies itself as gcc-4.2, but has support for GNU inlining
  886. // semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
  887. // __GNUC_GNU_INLINE__ macro definitions.
  888. // GCC 4.3 and above allow passing all anonymous arguments of an
  889. // __extern_always_inline function to some other vararg function.
  890. // It is possible to compile containing GCC extensions even if GCC is
  891. // run in pedantic mode if the uses are carefully marked using the
  892. // `__extension__' keyword. But this is not generally available before
  893. // version 2.8.
  894. // __restrict is known in EGCS 1.2 and above, and in clang.
  895. // It works also in C++ mode (outside of arrays), but only when spelled
  896. // as '__restrict', not 'restrict'.
  897. // ISO C99 also allows to declare arrays as non-overlapping. The syntax is
  898. // array_name[restrict]
  899. // GCC 3.1 and clang support this.
  900. // This syntax is not usable in C++ mode.
  901. // Describes a char array whose address can safely be passed as the first
  902. // argument to strncpy and strncat, as the char array is not necessarily
  903. // a NUL-terminated string.
  904. // Undefine (also defined in libc-symbols.h).
  905. // Copies attributes from the declaration or type referenced by
  906. // the argument.
  907. // The #ifndef lets Gnulib avoid including these on non-glibc
  908. // platforms, where the includes typically do not exist.
  909. // Determine the wordsize from the preprocessor defines. RISC-V version.
  910. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  911. // This file is part of the GNU C Library.
  912. //
  913. // The GNU C Library is free software; you can redistribute it and/or
  914. // modify it under the terms of the GNU Lesser General Public
  915. // License as published by the Free Software Foundation; either
  916. // version 2.1 of the License, or (at your option) any later version.
  917. //
  918. // The GNU C Library is distributed in the hope that it will be useful,
  919. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  920. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  921. // Lesser General Public License for more details.
  922. //
  923. // You should have received a copy of the GNU Lesser General Public
  924. // License along with the GNU C Library. If not, see
  925. // <https://www.gnu.org/licenses/>.
  926. // Properties of long double type. ldbl-128 version.
  927. // Copyright (C) 2016-2021 Free Software Foundation, Inc.
  928. // This file is part of the GNU C Library.
  929. //
  930. // The GNU C Library is free software; you can redistribute it and/or
  931. // modify it under the terms of the GNU Lesser General Public
  932. // License published by the Free Software Foundation; either
  933. // version 2.1 of the License, or (at your option) any later version.
  934. //
  935. // The GNU C Library is distributed in the hope that it will be useful,
  936. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  937. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  938. // Lesser General Public License for more details.
  939. //
  940. // You should have received a copy of the GNU Lesser General Public
  941. // License along with the GNU C Library; if not, see
  942. // <https://www.gnu.org/licenses/>.
  943. // long double is distinct from double, so there is nothing to
  944. // define here.
  945. // __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
  946. // intended for use in preprocessor macros.
  947. //
  948. // Note: MESSAGE must be a _single_ string; concatenation of string
  949. // literals is not supported.
  950. // Generic selection (ISO C11) is a C-only feature, available in GCC
  951. // since version 4.9. Previous versions do not provide generic
  952. // selection, even though they might set __STDC_VERSION__ to 201112L,
  953. // when in -std=c11 mode. Thus, we must check for !defined __GNUC__
  954. // when testing __STDC_VERSION__ for generic selection support.
  955. // On the other hand, Clang also defines __GNUC__, so a clang-specific
  956. // check is required to enable the use of generic selection.
  957. // Designates a 1-based positional argument ref-index of pointer type
  958. // that can be used to access size-index elements of the pointed-to
  959. // array according to access mode, or at least one element when
  960. // size-index is not provided:
  961. // access (access-mode, <ref-index> [, <size-index>])
  962. // Designates dealloc as a function to call to deallocate objects
  963. // allocated by the declared function.
  964. // Specify that a function such as setjmp or vfork may return
  965. // twice.
  966. // If we don't have __REDIRECT, prototypes will be missing if
  967. // __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
  968. // Decide whether we can define 'extern inline' functions in headers.
  969. // This is here only because every header file already includes this one.
  970. // Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
  971. // <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
  972. // that will always return failure (and set errno to ENOSYS).
  973. // This file is automatically generated.
  974. // This file selects the right generated file of `__stub_FUNCTION' macros
  975. // based on the architecture being compiled for.
  976. // Determine the wordsize from the preprocessor defines. RISC-V version.
  977. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  978. // This file is part of the GNU C Library.
  979. //
  980. // The GNU C Library is free software; you can redistribute it and/or
  981. // modify it under the terms of the GNU Lesser General Public
  982. // License as published by the Free Software Foundation; either
  983. // version 2.1 of the License, or (at your option) any later version.
  984. //
  985. // The GNU C Library is distributed in the hope that it will be useful,
  986. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  987. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  988. // Lesser General Public License for more details.
  989. //
  990. // You should have received a copy of the GNU Lesser General Public
  991. // License along with the GNU C Library. If not, see
  992. // <https://www.gnu.org/licenses/>.
  993. // This file is automatically generated.
  994. // It defines a symbol `__stub_FUNCTION' for each function
  995. // in the C library which is a stub, meaning it will fail
  996. // every time called, usually setting errno to ENOSYS.
  997. // These may be used to determine what facilities are present at compile time.
  998. // Their values can be obtained at run time from `sysconf'.
  999. // POSIX Standard approved as ISO/IEC 9945-1 as of September 2008.
  1000. // These are not #ifdef __USE_POSIX2 because they are
  1001. // in the theoretically application-owned namespace.
  1002. // The utilities on GNU systems also correspond to this version.
  1003. // The utilities on GNU systems also correspond to this version.
  1004. // This symbol was required until the 2001 edition of POSIX.
  1005. // If defined, the implementation supports the
  1006. // C Language Bindings Option.
  1007. // If defined, the implementation supports the
  1008. // C Language Development Utilities Option.
  1009. // If defined, the implementation supports the
  1010. // Software Development Utilities Option.
  1011. // If defined, the implementation supports the
  1012. // creation of locales with the localedef utility.
  1013. // X/Open version number to which the library conforms. It is selectable.
  1014. // Commands and utilities from XPG4 are available.
  1015. // We are compatible with the old published standards as well.
  1016. // The X/Open Unix extensions are available.
  1017. // The enhanced internationalization capabilities according to XPG4.2
  1018. // are present.
  1019. // The legacy interfaces are also available.
  1020. // Get values of POSIX options:
  1021. //
  1022. // If these symbols are defined, the corresponding features are
  1023. // always available. If not, they may be available sometimes.
  1024. // The current values can be obtained with `sysconf'.
  1025. //
  1026. // _POSIX_JOB_CONTROL Job control is supported.
  1027. // _POSIX_SAVED_IDS Processes have a saved set-user-ID
  1028. // and a saved set-group-ID.
  1029. // _POSIX_REALTIME_SIGNALS Real-time, queued signals are supported.
  1030. // _POSIX_PRIORITY_SCHEDULING Priority scheduling is supported.
  1031. // _POSIX_TIMERS POSIX.4 clocks and timers are supported.
  1032. // _POSIX_ASYNCHRONOUS_IO Asynchronous I/O is supported.
  1033. // _POSIX_PRIORITIZED_IO Prioritized asynchronous I/O is supported.
  1034. // _POSIX_SYNCHRONIZED_IO Synchronizing file data is supported.
  1035. // _POSIX_FSYNC The fsync function is present.
  1036. // _POSIX_MAPPED_FILES Mapping of files to memory is supported.
  1037. // _POSIX_MEMLOCK Locking of all memory is supported.
  1038. // _POSIX_MEMLOCK_RANGE Locking of ranges of memory is supported.
  1039. // _POSIX_MEMORY_PROTECTION Setting of memory protections is supported.
  1040. // _POSIX_MESSAGE_PASSING POSIX.4 message queues are supported.
  1041. // _POSIX_SEMAPHORES POSIX.4 counting semaphores are supported.
  1042. // _POSIX_SHARED_MEMORY_OBJECTS POSIX.4 shared memory objects are supported.
  1043. // _POSIX_THREADS POSIX.1c pthreads are supported.
  1044. // _POSIX_THREAD_ATTR_STACKADDR Thread stack address attribute option supported.
  1045. // _POSIX_THREAD_ATTR_STACKSIZE Thread stack size attribute option supported.
  1046. // _POSIX_THREAD_SAFE_FUNCTIONS Thread-safe functions are supported.
  1047. // _POSIX_THREAD_PRIORITY_SCHEDULING
  1048. // POSIX.1c thread execution scheduling supported.
  1049. // _POSIX_THREAD_PRIO_INHERIT Thread priority inheritance option supported.
  1050. // _POSIX_THREAD_PRIO_PROTECT Thread priority protection option supported.
  1051. // _POSIX_THREAD_PROCESS_SHARED Process-shared synchronization supported.
  1052. // _POSIX_PII Protocol-independent interfaces are supported.
  1053. // _POSIX_PII_XTI XTI protocol-indep. interfaces are supported.
  1054. // _POSIX_PII_SOCKET Socket protocol-indep. interfaces are supported.
  1055. // _POSIX_PII_INTERNET Internet family of protocols supported.
  1056. // _POSIX_PII_INTERNET_STREAM Connection-mode Internet protocol supported.
  1057. // _POSIX_PII_INTERNET_DGRAM Connectionless Internet protocol supported.
  1058. // _POSIX_PII_OSI ISO/OSI family of protocols supported.
  1059. // _POSIX_PII_OSI_COTS Connection-mode ISO/OSI service supported.
  1060. // _POSIX_PII_OSI_CLTS Connectionless ISO/OSI service supported.
  1061. // _POSIX_POLL Implementation supports `poll' function.
  1062. // _POSIX_SELECT Implementation supports `select' and `pselect'.
  1063. //
  1064. // _XOPEN_REALTIME X/Open realtime support is available.
  1065. // _XOPEN_REALTIME_THREADS X/Open realtime thread support is available.
  1066. // _XOPEN_SHM Shared memory interface according to XPG4.2.
  1067. //
  1068. // _XBS5_ILP32_OFF32 Implementation provides environment with 32-bit
  1069. // int, long, pointer, and off_t types.
  1070. // _XBS5_ILP32_OFFBIG Implementation provides environment with 32-bit
  1071. // int, long, and pointer and off_t with at least
  1072. // 64 bits.
  1073. // _XBS5_LP64_OFF64 Implementation provides environment with 32-bit
  1074. // int, and 64-bit long, pointer, and off_t types.
  1075. // _XBS5_LPBIG_OFFBIG Implementation provides environment with at
  1076. // least 32 bits int and long, pointer, and off_t
  1077. // with at least 64 bits.
  1078. //
  1079. // If any of these symbols is defined as -1, the corresponding option is not
  1080. // true for any file. If any is defined as other than -1, the corresponding
  1081. // option is true for all files. If a symbol is not defined at all, the value
  1082. // for a specific file can be obtained from `pathconf' and `fpathconf'.
  1083. //
  1084. // _POSIX_CHOWN_RESTRICTED Only the super user can use `chown' to change
  1085. // the owner of a file. `chown' can only be used
  1086. // to change the group ID of a file to a group of
  1087. // which the calling process is a member.
  1088. // _POSIX_NO_TRUNC Pathname components longer than
  1089. // NAME_MAX generate an error.
  1090. // _POSIX_VDISABLE If defined, if the value of an element of the
  1091. // `c_cc' member of `struct termios' is
  1092. // _POSIX_VDISABLE, no character will have the
  1093. // effect associated with that element.
  1094. // _POSIX_SYNC_IO Synchronous I/O may be performed.
  1095. // _POSIX_ASYNC_IO Asynchronous I/O may be performed.
  1096. // _POSIX_PRIO_IO Prioritized Asynchronous I/O may be performed.
  1097. //
  1098. // Support for the Large File Support interface is not generally available.
  1099. // If it is available the following constants are defined to one.
  1100. // _LFS64_LARGEFILE Low-level I/O supports large files.
  1101. // _LFS64_STDIO Standard I/O supports large files.
  1102. //
  1103. // Define POSIX options for Linux.
  1104. // Copyright (C) 1996-2021 Free Software Foundation, Inc.
  1105. // This file is part of the GNU C Library.
  1106. //
  1107. // The GNU C Library is free software; you can redistribute it and/or
  1108. // modify it under the terms of the GNU Lesser General Public License as
  1109. // published by the Free Software Foundation; either version 2.1 of the
  1110. // License, or (at your option) any later version.
  1111. //
  1112. // The GNU C Library is distributed in the hope that it will be useful,
  1113. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1114. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1115. // Lesser General Public License for more details.
  1116. //
  1117. // You should have received a copy of the GNU Lesser General Public
  1118. // License along with the GNU C Library; see the file COPYING.LIB. If
  1119. // not, see <https://www.gnu.org/licenses/>.
  1120. // Job control is supported.
  1121. // Processes have a saved set-user-ID and a saved set-group-ID.
  1122. // Priority scheduling is not supported with the correct semantics,
  1123. // but GNU/Linux applications expect that the corresponding interfaces
  1124. // are available, even though the semantics do not meet the POSIX
  1125. // requirements. See glibc bug 14829.
  1126. // Synchronizing file data is supported.
  1127. // The fsync function is present.
  1128. // Mapping of files to memory is supported.
  1129. // Locking of all memory is supported.
  1130. // Locking of ranges of memory is supported.
  1131. // Setting of memory protections is supported.
  1132. // Some filesystems allow all users to change file ownership.
  1133. // `c_cc' member of 'struct termios' structure can be disabled by
  1134. // using the value _POSIX_VDISABLE.
  1135. // Filenames are not silently truncated.
  1136. // X/Open realtime support is available.
  1137. // X/Open thread realtime support is available.
  1138. // XPG4.2 shared memory is supported.
  1139. // Tell we have POSIX threads.
  1140. // We have the reentrant functions described in POSIX.
  1141. // We provide priority scheduling for threads.
  1142. // We support user-defined stack sizes.
  1143. // We support user-defined stacks.
  1144. // We support priority inheritence.
  1145. // We support priority protection, though only for non-robust
  1146. // mutexes.
  1147. // We support priority inheritence for robust mutexes.
  1148. // We do not support priority protection for robust mutexes.
  1149. // We support POSIX.1b semaphores.
  1150. // Real-time signals are supported.
  1151. // We support asynchronous I/O.
  1152. // Alternative name for Unix98.
  1153. // Support for prioritization is also available.
  1154. // The LFS support in asynchronous I/O is also available.
  1155. // The rest of the LFS is also available.
  1156. // POSIX shared memory objects are implemented.
  1157. // CPU-time clocks support needs to be checked at runtime.
  1158. // Clock support in threads must be also checked at runtime.
  1159. // GNU libc provides regular expression handling.
  1160. // Reader/Writer locks are available.
  1161. // We have a POSIX shell.
  1162. // We support the Timeouts option.
  1163. // We support spinlocks.
  1164. // The `spawn' function family is supported.
  1165. // We have POSIX timers.
  1166. // The barrier functions are available.
  1167. // POSIX message queues are available.
  1168. // Thread process-shared synchronization is supported.
  1169. // The monotonic clock might be available.
  1170. // The clock selection interfaces are available.
  1171. // Advisory information interfaces are available.
  1172. // IPv6 support is available.
  1173. // Raw socket support is available.
  1174. // We have at least one terminal.
  1175. // Neither process nor thread sporadic server interfaces is available.
  1176. // trace.h is not available.
  1177. // Typed memory objects are not available.
  1178. // Get the environment definitions from Unix98.
  1179. // Copyright (C) 2020-2021 Free Software Foundation, Inc.
  1180. // This file is part of the GNU C Library.
  1181. //
  1182. // The GNU C Library is free software; you can redistribute it and/or
  1183. // modify it under the terms of the GNU Lesser General Public
  1184. // License as published by the Free Software Foundation; either
  1185. // version 2.1 of the License, or (at your option) any later version.
  1186. //
  1187. // The GNU C Library is distributed in the hope that it will be useful,
  1188. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1189. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1190. // Lesser General Public License for more details.
  1191. //
  1192. // You should have received a copy of the GNU Lesser General Public
  1193. // License along with the GNU C Library; if not, see
  1194. // <https://www.gnu.org/licenses/>.
  1195. // Determine the wordsize from the preprocessor defines. RISC-V version.
  1196. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  1197. // This file is part of the GNU C Library.
  1198. //
  1199. // The GNU C Library is free software; you can redistribute it and/or
  1200. // modify it under the terms of the GNU Lesser General Public
  1201. // License as published by the Free Software Foundation; either
  1202. // version 2.1 of the License, or (at your option) any later version.
  1203. //
  1204. // The GNU C Library is distributed in the hope that it will be useful,
  1205. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1206. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1207. // Lesser General Public License for more details.
  1208. //
  1209. // You should have received a copy of the GNU Lesser General Public
  1210. // License along with the GNU C Library. If not, see
  1211. // <https://www.gnu.org/licenses/>.
  1212. // This header should define the following symbols under the described
  1213. // situations. A value `1' means that the model is always supported,
  1214. // `-1' means it is never supported. Undefined means it cannot be
  1215. // statically decided.
  1216. //
  1217. // _POSIX_V7_ILP32_OFF32 32bit int, long, pointers, and off_t type
  1218. // _POSIX_V7_ILP32_OFFBIG 32bit int, long, and pointers and larger off_t type
  1219. //
  1220. // _POSIX_V7_LP64_OFF32 64bit long and pointers and 32bit off_t type
  1221. // _POSIX_V7_LPBIG_OFFBIG 64bit long and pointers and large off_t type
  1222. //
  1223. // The macros _POSIX_V6_ILP32_OFF32, _POSIX_V6_ILP32_OFFBIG,
  1224. // _POSIX_V6_LP64_OFF32, _POSIX_V6_LPBIG_OFFBIG, _XBS5_ILP32_OFF32,
  1225. // _XBS5_ILP32_OFFBIG, _XBS5_LP64_OFF32, and _XBS5_LPBIG_OFFBIG were
  1226. // used in previous versions of the Unix standard and are available
  1227. // only for compatibility.
  1228. // We can never provide environments with 32-bit wide pointers.
  1229. // We also have no use (for now) for an environment with bigger pointers
  1230. // and offsets.
  1231. // By default we have 64-bit wide `long int', pointers and `off_t'.
  1232. // Standard file descriptors.
  1233. // All functions that are not declared anywhere else.
  1234. // bits/types.h -- definitions of __*_t types underlying *_t types.
  1235. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  1236. // This file is part of the GNU C Library.
  1237. //
  1238. // The GNU C Library is free software; you can redistribute it and/or
  1239. // modify it under the terms of the GNU Lesser General Public
  1240. // License as published by the Free Software Foundation; either
  1241. // version 2.1 of the License, or (at your option) any later version.
  1242. //
  1243. // The GNU C Library is distributed in the hope that it will be useful,
  1244. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1245. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1246. // Lesser General Public License for more details.
  1247. //
  1248. // You should have received a copy of the GNU Lesser General Public
  1249. // License along with the GNU C Library; if not, see
  1250. // <https://www.gnu.org/licenses/>.
  1251. // Never include this file directly; use <sys/types.h> instead.
  1252. // Copyright (C) 1991-2021 Free Software Foundation, Inc.
  1253. // This file is part of the GNU C Library.
  1254. //
  1255. // The GNU C Library is free software; you can redistribute it and/or
  1256. // modify it under the terms of the GNU Lesser General Public
  1257. // License as published by the Free Software Foundation; either
  1258. // version 2.1 of the License, or (at your option) any later version.
  1259. //
  1260. // The GNU C Library is distributed in the hope that it will be useful,
  1261. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1262. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1263. // Lesser General Public License for more details.
  1264. //
  1265. // You should have received a copy of the GNU Lesser General Public
  1266. // License along with the GNU C Library; if not, see
  1267. // <https://www.gnu.org/licenses/>.
  1268. // Determine the wordsize from the preprocessor defines. RISC-V version.
  1269. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  1270. // This file is part of the GNU C Library.
  1271. //
  1272. // The GNU C Library is free software; you can redistribute it and/or
  1273. // modify it under the terms of the GNU Lesser General Public
  1274. // License as published by the Free Software Foundation; either
  1275. // version 2.1 of the License, or (at your option) any later version.
  1276. //
  1277. // The GNU C Library is distributed in the hope that it will be useful,
  1278. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1279. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1280. // Lesser General Public License for more details.
  1281. //
  1282. // You should have received a copy of the GNU Lesser General Public
  1283. // License along with the GNU C Library. If not, see
  1284. // <https://www.gnu.org/licenses/>.
  1285. // Bit size of the time_t type at glibc build time, RISC-V case.
  1286. // Copyright (C) 2020-2021 Free Software Foundation, Inc.
  1287. // This file is part of the GNU C Library.
  1288. //
  1289. // The GNU C Library is free software; you can redistribute it and/or
  1290. // modify it under the terms of the GNU Lesser General Public
  1291. // License as published by the Free Software Foundation; either
  1292. // version 2.1 of the License, or (at your option) any later version.
  1293. //
  1294. // The GNU C Library is distributed in the hope that it will be useful,
  1295. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1296. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1297. // Lesser General Public License for more details.
  1298. //
  1299. // You should have received a copy of the GNU Lesser General Public
  1300. // License along with the GNU C Library; if not, see
  1301. // <https://www.gnu.org/licenses/>.
  1302. // Determine the wordsize from the preprocessor defines. RISC-V version.
  1303. // Copyright (C) 2002-2021 Free Software Foundation, Inc.
  1304. // This file is part of the GNU C Library.
  1305. //
  1306. // The GNU C Library is free software; you can redistribute it and/or
  1307. // modify it under the terms of the GNU Lesser General Public
  1308. // License as published by the Free Software Foundation; either
  1309. // version 2.1 of the License, or (at your option) any later version.
  1310. //
  1311. // The GNU C Library is distributed in the hope that it will be useful,
  1312. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1313. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1314. // Lesser General Public License for more details.
  1315. //
  1316. // You should have received a copy of the GNU Lesser General Public
  1317. // License along with the GNU C Library. If not, see
  1318. // <https://www.gnu.org/licenses/>.
  1319. // RV32 and RV64 both use 64-bit time_t
  1320. // Convenience types.
  1321. type X__u_char = uint8 /* types.h:31:23 */
  1322. type X__u_short = uint16 /* types.h:32:28 */
  1323. type X__u_int = uint32 /* types.h:33:22 */
  1324. type X__u_long = uint64 /* types.h:34:27 */
  1325. // Fixed-size types, underlying types depend on word size and compiler.
  1326. type X__int8_t = int8 /* types.h:37:21 */
  1327. type X__uint8_t = uint8 /* types.h:38:23 */
  1328. type X__int16_t = int16 /* types.h:39:26 */
  1329. type X__uint16_t = uint16 /* types.h:40:28 */
  1330. type X__int32_t = int32 /* types.h:41:20 */
  1331. type X__uint32_t = uint32 /* types.h:42:22 */
  1332. type X__int64_t = int64 /* types.h:44:25 */
  1333. type X__uint64_t = uint64 /* types.h:45:27 */
  1334. // Smallest types with at least a given width.
  1335. type X__int_least8_t = X__int8_t /* types.h:52:18 */
  1336. type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
  1337. type X__int_least16_t = X__int16_t /* types.h:54:19 */
  1338. type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
  1339. type X__int_least32_t = X__int32_t /* types.h:56:19 */
  1340. type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
  1341. type X__int_least64_t = X__int64_t /* types.h:58:19 */
  1342. type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
  1343. // quad_t is also 64 bits.
  1344. type X__quad_t = int64 /* types.h:63:18 */
  1345. type X__u_quad_t = uint64 /* types.h:64:27 */
  1346. // Largest integral types.
  1347. type X__intmax_t = int64 /* types.h:72:18 */
  1348. type X__uintmax_t = uint64 /* types.h:73:27 */
  1349. // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
  1350. // macros for each of the OS types we define below. The definitions
  1351. // of those macros must use the following macros for underlying types.
  1352. // We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
  1353. // variants of each of the following integer types on this machine.
  1354. //
  1355. // 16 -- "natural" 16-bit type (always short)
  1356. // 32 -- "natural" 32-bit type (always int)
  1357. // 64 -- "natural" 64-bit type (long or long long)
  1358. // LONG32 -- 32-bit type, traditionally long
  1359. // QUAD -- 64-bit type, traditionally long long
  1360. // WORD -- natural type of __WORDSIZE bits (int or long)
  1361. // LONGWORD -- type of __WORDSIZE bits, traditionally long
  1362. //
  1363. // We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
  1364. // conventional uses of `long' or `long long' type modifiers match the
  1365. // types we define, even when a less-adorned type would be the same size.
  1366. // This matters for (somewhat) portably writing printf/scanf formats for
  1367. // these types, where using the appropriate l or ll format modifiers can
  1368. // make the typedefs and the formats match up across all GNU platforms. If
  1369. // we used `long' when it's 64 bits where `long long' is expected, then the
  1370. // compiler would warn about the formats not matching the argument types,
  1371. // and the programmer changing them to shut up the compiler would break the
  1372. // program's portability.
  1373. //
  1374. // Here we assume what is presently the case in all the GCC configurations
  1375. // we support: long long is always 64 bits, long is always word/address size,
  1376. // and int is always 32 bits.
  1377. // No need to mark the typedef with __extension__.
  1378. // bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI.
  1379. // Copyright (C) 2011-2021 Free Software Foundation, Inc.
  1380. // This file is part of the GNU C Library.
  1381. // Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
  1382. //
  1383. // The GNU C Library is free software; you can redistribute it and/or
  1384. // modify it under the terms of the GNU Lesser General Public
  1385. // License as published by the Free Software Foundation; either
  1386. // version 2.1 of the License, or (at your option) any later version.
  1387. //
  1388. // The GNU C Library is distributed in the hope that it will be useful,
  1389. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1390. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1391. // Lesser General Public License for more details.
  1392. //
  1393. // You should have received a copy of the GNU Lesser General Public
  1394. // License along with the GNU C Library. If not, see
  1395. // <https://www.gnu.org/licenses/>.
  1396. // See <bits/types.h> for the meaning of these macros. This file exists so
  1397. // that <bits/types.h> need not vary across different GNU platforms.
  1398. // Tell the libc code that off_t and off64_t are actually the same type
  1399. // for all ABI purposes, even if possibly expressed as different base types
  1400. // for C type-checking purposes.
  1401. // Same for ino_t and ino64_t.
  1402. // And for __rlim_t and __rlim64_t.
  1403. // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
  1404. // And for getitimer, setitimer and rusage
  1405. // Number of descriptors that can fit in an `fd_set'.
  1406. // bits/time64.h -- underlying types for __time64_t. RISC-V version.
  1407. // Copyright (C) 2020-2021 Free Software Foundation, Inc.
  1408. // This file is part of the GNU C Library.
  1409. //
  1410. // The GNU C Library is free software; you can redistribute it and/or
  1411. // modify it under the terms of the GNU Lesser General Public
  1412. // License as published by the Free Software Foundation; either
  1413. // version 2.1 of the License, or (at your option) any later version.
  1414. //
  1415. // The GNU C Library is distributed in the hope that it will be useful,
  1416. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1417. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1418. // Lesser General Public License for more details.
  1419. //
  1420. // You should have received a copy of the GNU Lesser General Public
  1421. // License along with the GNU C Library; if not, see
  1422. // <https://www.gnu.org/licenses/>.
  1423. // Define __TIME64_T_TYPE so that it is always a 64-bit type.
  1424. // If we already have 64-bit time type then use it.
  1425. type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers.
  1426. type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
  1427. type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
  1428. type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers.
  1429. type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS).
  1430. type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
  1431. type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts.
  1432. type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets.
  1433. type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
  1434. type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
  1435. type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
  1436. type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts.
  1437. type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement.
  1438. type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS).
  1439. type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
  1440. type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch.
  1441. type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
  1442. type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds.
  1443. type X__suseconds64_t = int64 /* types.h:163:33 */
  1444. type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address.
  1445. type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key.
  1446. // Clock ID used in clock and timer functions.
  1447. type X__clockid_t = int32 /* types.h:169:29 */
  1448. // Timer ID returned by `timer_create'.
  1449. type X__timer_t = uintptr /* types.h:172:12 */
  1450. // Type to represent block size.
  1451. type X__blksize_t = int32 /* types.h:175:29 */
  1452. // Types from the Large File Support interface.
  1453. // Type to count number of disk blocks.
  1454. type X__blkcnt_t = int64 /* types.h:180:28 */
  1455. type X__blkcnt64_t = int64 /* types.h:181:30 */
  1456. // Type to count file system blocks.
  1457. type X__fsblkcnt_t = uint64 /* types.h:184:30 */
  1458. type X__fsblkcnt64_t = uint64 /* types.h:185:32 */
  1459. // Type to count file system nodes.
  1460. type X__fsfilcnt_t = uint64 /* types.h:188:30 */
  1461. type X__fsfilcnt64_t = uint64 /* types.h:189:32 */
  1462. // Type of miscellaneous file system fields.
  1463. type X__fsword_t = int64 /* types.h:192:28 */
  1464. type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error.
  1465. // Signed long type used in system calls.
  1466. type X__syscall_slong_t = int64 /* types.h:197:33 */
  1467. // Unsigned long type used in system calls.
  1468. type X__syscall_ulong_t = uint64 /* types.h:199:33 */
  1469. // These few don't really vary by system, they always correspond
  1470. //
  1471. // to one of the other defined types.
  1472. type X__loff_t = X__off64_t /* types.h:203:19 */ // Type of file sizes and offsets (LFS).
  1473. type X__caddr_t = uintptr /* types.h:204:14 */
  1474. // Duplicates info from stdint.h but this is used in unistd.h.
  1475. type X__intptr_t = int64 /* types.h:207:25 */
  1476. // Duplicate info from sys/socket.h.
  1477. type X__socklen_t = uint32 /* types.h:210:23 */
  1478. // C99: An integer type that can be accessed as an atomic entity,
  1479. //
  1480. // even in the presence of asynchronous interrupts.
  1481. // It is not currently necessary for this to be machine-specific.
  1482. type X__sig_atomic_t = int32 /* types.h:215:13 */
  1483. // Seconds since the Epoch, visible to user code when time_t is too
  1484. // narrow only for consistency with the old way of widening too-narrow
  1485. // types. User code should never use __time64_t.
  1486. type Ssize_t = X__ssize_t /* unistd.h:220:19 */
  1487. // Wide character type.
  1488. // Locale-writers should change this as necessary to
  1489. // be big enough to hold unique values not between 0 and 127,
  1490. // and not (wchar_t) -1, for each defined multibyte character.
  1491. // Define this type if we are doing the whole job,
  1492. // or if we want this type in particular.
  1493. // A null pointer constant.
  1494. // The Single Unix specification says that some more types are
  1495. //
  1496. // available here.
  1497. type Gid_t = X__gid_t /* unistd.h:232:17 */
  1498. type Uid_t = X__uid_t /* unistd.h:237:17 */
  1499. type Off_t = X__off64_t /* unistd.h:245:19 */
  1500. type Useconds_t = X__useconds_t /* unistd.h:255:22 */
  1501. type Pid_t = X__pid_t /* unistd.h:260:17 */
  1502. type Intptr_t = X__intptr_t /* unistd.h:267:20 */
  1503. type Socklen_t = X__socklen_t /* unistd.h:274:21 */
  1504. // Define some macros helping to catch buffer overflows.
  1505. // System-specific extensions.
  1506. // System-specific extensions of <unistd.h>, Linux version.
  1507. // Copyright (C) 2019-2021 Free Software Foundation, Inc.
  1508. // This file is part of the GNU C Library.
  1509. //
  1510. // The GNU C Library is free software; you can redistribute it and/or
  1511. // modify it under the terms of the GNU Lesser General Public
  1512. // License as published by the Free Software Foundation; either
  1513. // version 2.1 of the License, or (at your option) any later version.
  1514. //
  1515. // The GNU C Library is distributed in the hope that it will be useful,
  1516. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  1517. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1518. // Lesser General Public License for more details.
  1519. //
  1520. // You should have received a copy of the GNU Lesser General Public
  1521. // License along with the GNU C Library; if not, see
  1522. // <https://www.gnu.org/licenses/>.
  1523. var _ uint8 /* gen.c:2:13: */