unistd_linux_ppc64le.go 67 KB

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