unistd_linux_loong64.go 76 KB

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