unistd_linux_amd64.go 66 KB

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