netdb_netbsd_amd64.go 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018
  1. // Code generated by 'ccgo netdb/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 netdb/netdb_netbsd_amd64.go -pkgname netdb', DO NOT EDIT.
  2. package netdb
  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. AI_ADDRCONFIG = 0x00000400 // netdb.h:269:1:
  15. AI_CANONNAME = 0x00000002 // netdb.h:266:1:
  16. AI_MASK = 3087 // netdb.h:273:1:
  17. AI_NUMERICHOST = 0x00000004 // netdb.h:267:1:
  18. AI_NUMERICSERV = 0x00000008 // netdb.h:268:1:
  19. AI_PASSIVE = 0x00000001 // netdb.h:265:1:
  20. AI_SRV = 0x00000800 // netdb.h:272:1:
  21. EAI_ADDRFAMILY = 1 // netdb.h:243:1:
  22. EAI_AGAIN = 2 // netdb.h:244:1:
  23. EAI_BADFLAGS = 3 // netdb.h:245:1:
  24. EAI_BADHINTS = 12 // netdb.h:254:1:
  25. EAI_FAIL = 4 // netdb.h:246:1:
  26. EAI_FAMILY = 5 // netdb.h:247:1:
  27. EAI_MAX = 15 // netdb.h:257:1:
  28. EAI_MEMORY = 6 // netdb.h:248:1:
  29. EAI_NODATA = 7 // netdb.h:249:1:
  30. EAI_NONAME = 8 // netdb.h:250:1:
  31. EAI_OVERFLOW = 14 // netdb.h:256:1:
  32. EAI_PROTOCOL = 13 // netdb.h:255:1:
  33. EAI_SERVICE = 9 // netdb.h:251:1:
  34. EAI_SOCKTYPE = 10 // netdb.h:252:1:
  35. EAI_SYSTEM = 11 // netdb.h:253:1:
  36. HOST_NOT_FOUND = 1 // netdb.h:230:1:
  37. INT16_MAX = 32767 // common_int_limits.h:53:1:
  38. INT16_MIN = -32768 // common_int_limits.h:47:1:
  39. INT32_MAX = 2147483647 // common_int_limits.h:54:1:
  40. INT32_MIN = -2147483648 // common_int_limits.h:48:1:
  41. INT64_MAX = 9223372036854775807 // common_int_limits.h:55:1:
  42. INT64_MIN = -9223372036854775808 // common_int_limits.h:49:1:
  43. INT8_MAX = 127 // common_int_limits.h:52:1:
  44. INT8_MIN = -128 // common_int_limits.h:46:1:
  45. INTMAX_MAX = 9223372036854775807 // common_int_limits.h:111:1:
  46. INTMAX_MIN = -9223372036854775808 // common_int_limits.h:110:1:
  47. INTPTR_MAX = 9223372036854775807 // common_int_limits.h:105:1:
  48. INTPTR_MIN = -9223372036854775808 // common_int_limits.h:104:1:
  49. INT_FAST16_MAX = 2147483647 // common_int_limits.h:93:1:
  50. INT_FAST16_MIN = -2147483648 // common_int_limits.h:87:1:
  51. INT_FAST32_MAX = 2147483647 // common_int_limits.h:94:1:
  52. INT_FAST32_MIN = -2147483648 // common_int_limits.h:88:1:
  53. INT_FAST64_MAX = 9223372036854775807 // common_int_limits.h:95:1:
  54. INT_FAST64_MIN = -9223372036854775808 // common_int_limits.h:89:1:
  55. INT_FAST8_MAX = 2147483647 // common_int_limits.h:92:1:
  56. INT_FAST8_MIN = -2147483648 // common_int_limits.h:86:1:
  57. INT_LEAST16_MAX = 32767 // common_int_limits.h:73:1:
  58. INT_LEAST16_MIN = -32768 // common_int_limits.h:67:1:
  59. INT_LEAST32_MAX = 2147483647 // common_int_limits.h:74:1:
  60. INT_LEAST32_MIN = -2147483648 // common_int_limits.h:68:1:
  61. INT_LEAST64_MAX = 9223372036854775807 // common_int_limits.h:75:1:
  62. INT_LEAST64_MIN = -9223372036854775808 // common_int_limits.h:69:1:
  63. INT_LEAST8_MAX = 127 // common_int_limits.h:72:1:
  64. INT_LEAST8_MIN = -128 // common_int_limits.h:66:1:
  65. NETDB_INTERNAL = -1 // netdb.h:226:1:
  66. NETDB_SUCCESS = 0 // netdb.h:227:1:
  67. NI_DGRAM = 0x00000010 // netdb.h:300:1:
  68. NI_MAXHOST = 1025 // netdb.h:289:1:
  69. NI_MAXSERV = 32 // netdb.h:290:1:
  70. NI_NAMEREQD = 0x00000004 // netdb.h:298:1:
  71. NI_NOFQDN = 0x00000001 // netdb.h:296:1:
  72. NI_NUMERICHOST = 0x00000002 // netdb.h:297:1:
  73. NI_NUMERICSCOPE = 0x00000040 // netdb.h:302:1:
  74. NI_NUMERICSERV = 0x00000008 // netdb.h:299:1:
  75. NI_WITHSCOPEID = 0x00000020 // netdb.h:301:1:
  76. NO_ADDRESS = 4 // netdb.h:235:1:
  77. NO_DATA = 4 // netdb.h:233:1:
  78. NO_RECOVERY = 3 // netdb.h:232:1:
  79. PRIX16 = "X" // int_fmtio.h:125:1:
  80. PRIX32 = "X" // int_fmtio.h:126:1:
  81. PRIX64 = "lX" // int_fmtio.h:127:1:
  82. PRIX8 = "X" // int_fmtio.h:124:1:
  83. PRIXFAST16 = "X" // int_fmtio.h:133:1:
  84. PRIXFAST32 = "X" // int_fmtio.h:134:1:
  85. PRIXFAST64 = "lX" // int_fmtio.h:135:1:
  86. PRIXFAST8 = "X" // int_fmtio.h:132:1:
  87. PRIXLEAST16 = "X" // int_fmtio.h:129:1:
  88. PRIXLEAST32 = "X" // int_fmtio.h:130:1:
  89. PRIXLEAST64 = "lX" // int_fmtio.h:131:1:
  90. PRIXLEAST8 = "X" // int_fmtio.h:128:1:
  91. PRIXMAX = "lX" // int_fmtio.h:136:1:
  92. PRIXPTR = "lX" // int_fmtio.h:137:1:
  93. PRId16 = "d" // int_fmtio.h:48:1:
  94. PRId32 = "d" // int_fmtio.h:49:1:
  95. PRId64 = "ld" // int_fmtio.h:50:1:
  96. PRId8 = "d" // int_fmtio.h:47:1:
  97. PRIdFAST16 = "d" // int_fmtio.h:56:1:
  98. PRIdFAST32 = "d" // int_fmtio.h:57:1:
  99. PRIdFAST64 = "ld" // int_fmtio.h:58:1:
  100. PRIdFAST8 = "d" // int_fmtio.h:55:1:
  101. PRIdLEAST16 = "d" // int_fmtio.h:52:1:
  102. PRIdLEAST32 = "d" // int_fmtio.h:53:1:
  103. PRIdLEAST64 = "ld" // int_fmtio.h:54:1:
  104. PRIdLEAST8 = "d" // int_fmtio.h:51:1:
  105. PRIdMAX = "ld" // int_fmtio.h:59:1:
  106. PRIdPTR = "ld" // int_fmtio.h:60:1:
  107. PRIi16 = "i" // int_fmtio.h:63:1:
  108. PRIi32 = "i" // int_fmtio.h:64:1:
  109. PRIi64 = "li" // int_fmtio.h:65:1:
  110. PRIi8 = "i" // int_fmtio.h:62:1:
  111. PRIiFAST16 = "i" // int_fmtio.h:71:1:
  112. PRIiFAST32 = "i" // int_fmtio.h:72:1:
  113. PRIiFAST64 = "li" // int_fmtio.h:73:1:
  114. PRIiFAST8 = "i" // int_fmtio.h:70:1:
  115. PRIiLEAST16 = "i" // int_fmtio.h:67:1:
  116. PRIiLEAST32 = "i" // int_fmtio.h:68:1:
  117. PRIiLEAST64 = "li" // int_fmtio.h:69:1:
  118. PRIiLEAST8 = "i" // int_fmtio.h:66:1:
  119. PRIiMAX = "li" // int_fmtio.h:74:1:
  120. PRIiPTR = "li" // int_fmtio.h:75:1:
  121. PRIo16 = "o" // int_fmtio.h:80:1:
  122. PRIo32 = "o" // int_fmtio.h:81:1:
  123. PRIo64 = "lo" // int_fmtio.h:82:1:
  124. PRIo8 = "o" // int_fmtio.h:79:1:
  125. PRIoFAST16 = "o" // int_fmtio.h:88:1:
  126. PRIoFAST32 = "o" // int_fmtio.h:89:1:
  127. PRIoFAST64 = "lo" // int_fmtio.h:90:1:
  128. PRIoFAST8 = "o" // int_fmtio.h:87:1:
  129. PRIoLEAST16 = "o" // int_fmtio.h:84:1:
  130. PRIoLEAST32 = "o" // int_fmtio.h:85:1:
  131. PRIoLEAST64 = "lo" // int_fmtio.h:86:1:
  132. PRIoLEAST8 = "o" // int_fmtio.h:83:1:
  133. PRIoMAX = "lo" // int_fmtio.h:91:1:
  134. PRIoPTR = "lo" // int_fmtio.h:92:1:
  135. PRIu16 = "u" // int_fmtio.h:95:1:
  136. PRIu32 = "u" // int_fmtio.h:96:1:
  137. PRIu64 = "lu" // int_fmtio.h:97:1:
  138. PRIu8 = "u" // int_fmtio.h:94:1:
  139. PRIuFAST16 = "u" // int_fmtio.h:103:1:
  140. PRIuFAST32 = "u" // int_fmtio.h:104:1:
  141. PRIuFAST64 = "lu" // int_fmtio.h:105:1:
  142. PRIuFAST8 = "u" // int_fmtio.h:102:1:
  143. PRIuLEAST16 = "u" // int_fmtio.h:99:1:
  144. PRIuLEAST32 = "u" // int_fmtio.h:100:1:
  145. PRIuLEAST64 = "lu" // int_fmtio.h:101:1:
  146. PRIuLEAST8 = "u" // int_fmtio.h:98:1:
  147. PRIuMAX = "lu" // int_fmtio.h:106:1:
  148. PRIuPTR = "lu" // int_fmtio.h:107:1:
  149. PRIx16 = "x" // int_fmtio.h:110:1:
  150. PRIx32 = "x" // int_fmtio.h:111:1:
  151. PRIx64 = "lx" // int_fmtio.h:112:1:
  152. PRIx8 = "x" // int_fmtio.h:109:1:
  153. PRIxFAST16 = "x" // int_fmtio.h:118:1:
  154. PRIxFAST32 = "x" // int_fmtio.h:119:1:
  155. PRIxFAST64 = "lx" // int_fmtio.h:120:1:
  156. PRIxFAST8 = "x" // int_fmtio.h:117:1:
  157. PRIxLEAST16 = "x" // int_fmtio.h:114:1:
  158. PRIxLEAST32 = "x" // int_fmtio.h:115:1:
  159. PRIxLEAST64 = "lx" // int_fmtio.h:116:1:
  160. PRIxLEAST8 = "x" // int_fmtio.h:113:1:
  161. PRIxMAX = "lx" // int_fmtio.h:121:1:
  162. PRIxPTR = "lx" // int_fmtio.h:122:1:
  163. PTRDIFF_MAX = 9223372036854775807 // common_int_limits.h:121:1:
  164. PTRDIFF_MIN = -9223372036854775808 // common_int_limits.h:120:1:
  165. SCNd16 = "hd" // int_fmtio.h:142:1:
  166. SCNd32 = "d" // int_fmtio.h:143:1:
  167. SCNd64 = "ld" // int_fmtio.h:144:1:
  168. SCNd8 = "hhd" // int_fmtio.h:141:1:
  169. SCNdFAST16 = "d" // int_fmtio.h:150:1:
  170. SCNdFAST32 = "d" // int_fmtio.h:151:1:
  171. SCNdFAST64 = "ld" // int_fmtio.h:152:1:
  172. SCNdFAST8 = "d" // int_fmtio.h:149:1:
  173. SCNdLEAST16 = "hd" // int_fmtio.h:146:1:
  174. SCNdLEAST32 = "d" // int_fmtio.h:147:1:
  175. SCNdLEAST64 = "ld" // int_fmtio.h:148:1:
  176. SCNdLEAST8 = "hhd" // int_fmtio.h:145:1:
  177. SCNdMAX = "ld" // int_fmtio.h:153:1:
  178. SCNdPTR = "ld" // int_fmtio.h:154:1:
  179. SCNi16 = "hi" // int_fmtio.h:157:1:
  180. SCNi32 = "i" // int_fmtio.h:158:1:
  181. SCNi64 = "li" // int_fmtio.h:159:1:
  182. SCNi8 = "hhi" // int_fmtio.h:156:1:
  183. SCNiFAST16 = "i" // int_fmtio.h:165:1:
  184. SCNiFAST32 = "i" // int_fmtio.h:166:1:
  185. SCNiFAST64 = "li" // int_fmtio.h:167:1:
  186. SCNiFAST8 = "i" // int_fmtio.h:164:1:
  187. SCNiLEAST16 = "hi" // int_fmtio.h:161:1:
  188. SCNiLEAST32 = "i" // int_fmtio.h:162:1:
  189. SCNiLEAST64 = "li" // int_fmtio.h:163:1:
  190. SCNiLEAST8 = "hhi" // int_fmtio.h:160:1:
  191. SCNiMAX = "li" // int_fmtio.h:168:1:
  192. SCNiPTR = "li" // int_fmtio.h:169:1:
  193. SCNo16 = "ho" // int_fmtio.h:174:1:
  194. SCNo32 = "o" // int_fmtio.h:175:1:
  195. SCNo64 = "lo" // int_fmtio.h:176:1:
  196. SCNo8 = "hho" // int_fmtio.h:173:1:
  197. SCNoFAST16 = "o" // int_fmtio.h:182:1:
  198. SCNoFAST32 = "o" // int_fmtio.h:183:1:
  199. SCNoFAST64 = "lo" // int_fmtio.h:184:1:
  200. SCNoFAST8 = "o" // int_fmtio.h:181:1:
  201. SCNoLEAST16 = "ho" // int_fmtio.h:178:1:
  202. SCNoLEAST32 = "o" // int_fmtio.h:179:1:
  203. SCNoLEAST64 = "lo" // int_fmtio.h:180:1:
  204. SCNoLEAST8 = "hho" // int_fmtio.h:177:1:
  205. SCNoMAX = "lo" // int_fmtio.h:185:1:
  206. SCNoPTR = "lo" // int_fmtio.h:186:1:
  207. SCNu16 = "hu" // int_fmtio.h:189:1:
  208. SCNu32 = "u" // int_fmtio.h:190:1:
  209. SCNu64 = "lu" // int_fmtio.h:191:1:
  210. SCNu8 = "hhu" // int_fmtio.h:188:1:
  211. SCNuFAST16 = "u" // int_fmtio.h:197:1:
  212. SCNuFAST32 = "u" // int_fmtio.h:198:1:
  213. SCNuFAST64 = "lu" // int_fmtio.h:199:1:
  214. SCNuFAST8 = "u" // int_fmtio.h:196:1:
  215. SCNuLEAST16 = "hu" // int_fmtio.h:193:1:
  216. SCNuLEAST32 = "u" // int_fmtio.h:194:1:
  217. SCNuLEAST64 = "lu" // int_fmtio.h:195:1:
  218. SCNuLEAST8 = "hhu" // int_fmtio.h:192:1:
  219. SCNuMAX = "lu" // int_fmtio.h:200:1:
  220. SCNuPTR = "lu" // int_fmtio.h:201:1:
  221. SCNx16 = "hx" // int_fmtio.h:204:1:
  222. SCNx32 = "x" // int_fmtio.h:205:1:
  223. SCNx64 = "lx" // int_fmtio.h:206:1:
  224. SCNx8 = "hhx" // int_fmtio.h:203:1:
  225. SCNxFAST16 = "x" // int_fmtio.h:212:1:
  226. SCNxFAST32 = "x" // int_fmtio.h:213:1:
  227. SCNxFAST64 = "lx" // int_fmtio.h:214:1:
  228. SCNxFAST8 = "x" // int_fmtio.h:211:1:
  229. SCNxLEAST16 = "hx" // int_fmtio.h:208:1:
  230. SCNxLEAST32 = "x" // int_fmtio.h:209:1:
  231. SCNxLEAST64 = "lx" // int_fmtio.h:210:1:
  232. SCNxLEAST8 = "hhx" // int_fmtio.h:207:1:
  233. SCNxMAX = "lx" // int_fmtio.h:215:1:
  234. SCNxPTR = "lx" // int_fmtio.h:216:1:
  235. SCOPE_DELIMITER = 37 // netdb.h:308:1:
  236. SIG_ATOMIC_MAX = 2147483647 // common_int_limits.h:125:1:
  237. SIG_ATOMIC_MIN = -2147483648 // common_int_limits.h:124:1:
  238. SIZE_MAX = 18446744073709551615 // common_int_limits.h:128:1:
  239. TRY_AGAIN = 2 // netdb.h:231:1:
  240. UINT16_MAX = 65535 // common_int_limits.h:59:1:
  241. UINT32_MAX = 4294967295 // common_int_limits.h:60:1:
  242. UINT64_MAX = 18446744073709551615 // common_int_limits.h:61:1:
  243. UINT8_MAX = 255 // common_int_limits.h:58:1:
  244. UINTMAX_MAX = 18446744073709551615 // common_int_limits.h:112:1:
  245. UINTPTR_MAX = 18446744073709551615 // common_int_limits.h:106:1:
  246. UINT_FAST16_MAX = 4294967295 // common_int_limits.h:99:1:
  247. UINT_FAST32_MAX = 4294967295 // common_int_limits.h:100:1:
  248. UINT_FAST64_MAX = 18446744073709551615 // common_int_limits.h:101:1:
  249. UINT_FAST8_MAX = 4294967295 // common_int_limits.h:98:1:
  250. UINT_LEAST16_MAX = 65535 // common_int_limits.h:79:1:
  251. UINT_LEAST32_MAX = 4294967295 // common_int_limits.h:80:1:
  252. UINT_LEAST64_MAX = 18446744073709551615 // common_int_limits.h:81:1:
  253. UINT_LEAST8_MAX = 255 // common_int_limits.h:78:1:
  254. WCHAR_MAX = 0x7fffffff // wchar_limits.h:41:1:
  255. WCHAR_MIN = -2147483648 // wchar_limits.h:40:1:
  256. WINT_MAX = 0x7fffffff // wchar_limits.h:45:1:
  257. WINT_MIN = -2147483648 // wchar_limits.h:44:1:
  258. X_AMD64_INT_CONST_H_ = 0 // int_const.h:33:1:
  259. X_AMD64_INT_FMTIO_H_ = 0 // int_fmtio.h:33:1:
  260. X_AMD64_INT_LIMITS_H_ = 0 // int_limits.h:33:1:
  261. X_AMD64_INT_MWGWTYPES_H_ = 0 // int_mwgwtypes.h:33:1:
  262. X_AMD64_INT_TYPES_H_ = 0 // int_types.h:35:1:
  263. X_AMD64_WCHAR_LIMITS_H_ = 0 // wchar_limits.h:33:1:
  264. X_BSD_INT16_T_ = 0 // stdint.h:50:1:
  265. X_BSD_INT32_T_ = 0 // stdint.h:60:1:
  266. X_BSD_INT64_T_ = 0 // stdint.h:70:1:
  267. X_BSD_INT8_T_ = 0 // stdint.h:40:1:
  268. X_BSD_INTPTR_T_ = 0 // stdint.h:80:1:
  269. X_BSD_UINT16_T_ = 0 // stdint.h:55:1:
  270. X_BSD_UINT32_T_ = 0 // stdint.h:65:1:
  271. X_BSD_UINT64_T_ = 0 // stdint.h:75:1:
  272. X_BSD_UINT8_T_ = 0 // stdint.h:45:1:
  273. X_BSD_UINTPTR_T_ = 0 // stdint.h:85:1:
  274. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  275. X_INTTYPES_H_ = 0 // inttypes.h:33:1:
  276. X_LP64 = 1 // <predefined>:268:1:
  277. X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
  278. X_NETDB_H_ = 0 // netdb.h:91:1:
  279. X_PATH_HEQUIV = "/etc/hosts.equiv" // netdb.h:113:1:
  280. X_PATH_HOSTS = "/etc/hosts" // netdb.h:116:1:
  281. X_PATH_NETWORKS = "/etc/networks" // netdb.h:119:1:
  282. X_PATH_PROTOCOLS = "/etc/protocols" // netdb.h:122:1:
  283. X_PATH_SERVICES = "/etc/services" // netdb.h:125:1:
  284. X_PATH_SERVICES_CDB = "/var/db/services.cdb" // netdb.h:128:1:
  285. X_PATH_SERVICES_DB = "/var/db/services.db" // netdb.h:131:1:
  286. X_SYS_ANSI_H_ = 0 // ansi.h:33:1:
  287. X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
  288. X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
  289. X_SYS_COMMON_ANSI_H_ = 0 // common_ansi.h:33:1:
  290. X_SYS_COMMON_INT_LIMITS_H_ = 0 // common_int_limits.h:33:1:
  291. X_SYS_COMMON_INT_MWGWTYPES_H_ = 0 // common_int_mwgwtypes.h:33:1:
  292. X_SYS_COMMON_INT_TYPES_H_ = 0 // common_int_types.h:33:1:
  293. X_SYS_INTTYPES_H_ = 0 // inttypes.h:33:1:
  294. X_SYS_STDINT_H_ = 0 // stdint.h:33:1:
  295. X_X86_64_CDEFS_H_ = 0 // cdefs.h:4:1:
  296. )
  297. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  298. type Size_t = uint64 /* <builtin>:9:23 */
  299. type Wchar_t = int32 /* <builtin>:15:24 */
  300. type X__int128_t = struct {
  301. Flo int64
  302. Fhi int64
  303. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  304. type X__uint128_t = struct {
  305. Flo uint64
  306. Fhi uint64
  307. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  308. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  309. type X__float128 = float64 /* <builtin>:47:21 */
  310. // return true if value 'a' fits in type 't'
  311. // $NetBSD: endian_machdep.h,v 1.4 2006/01/30 21:52:38 dsl Exp $
  312. // $NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
  313. // -
  314. // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
  315. // All rights reserved.
  316. //
  317. // This code is derived from software contributed to The NetBSD Foundation
  318. // by Jun-ichiro itojun Hagino and by Klaus Klein.
  319. //
  320. // Redistribution and use in source and binary forms, with or without
  321. // modification, are permitted provided that the following conditions
  322. // are met:
  323. // 1. Redistributions of source code must retain the above copyright
  324. // notice, this list of conditions and the following disclaimer.
  325. // 2. Redistributions in binary form must reproduce the above copyright
  326. // notice, this list of conditions and the following disclaimer in the
  327. // documentation and/or other materials provided with the distribution.
  328. //
  329. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  330. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  331. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  332. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  333. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  334. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  335. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  336. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  337. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  338. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  339. // POSSIBILITY OF SUCH DAMAGE.
  340. // $NetBSD: ansi.h,v 1.11 2019/05/07 03:49:26 kamil Exp $
  341. // $NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
  342. // -
  343. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  344. // All rights reserved.
  345. //
  346. // This code is derived from software contributed to The NetBSD Foundation
  347. // by Matt Thomas of 3am Software Foundry.
  348. //
  349. // Redistribution and use in source and binary forms, with or without
  350. // modification, are permitted provided that the following conditions
  351. // are met:
  352. // 1. Redistributions of source code must retain the above copyright
  353. // notice, this list of conditions and the following disclaimer.
  354. // 2. Redistributions in binary form must reproduce the above copyright
  355. // notice, this list of conditions and the following disclaimer in the
  356. // documentation and/or other materials provided with the distribution.
  357. //
  358. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  359. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  360. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  361. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  362. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  363. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  364. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  365. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  366. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  367. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  368. // POSSIBILITY OF SUCH DAMAGE.
  369. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  370. // * Copyright (c) 1991, 1993
  371. // The Regents of the University of California. All rights reserved.
  372. //
  373. // This code is derived from software contributed to Berkeley by
  374. // Berkeley Software Design, Inc.
  375. //
  376. // Redistribution and use in source and binary forms, with or without
  377. // modification, are permitted provided that the following conditions
  378. // are met:
  379. // 1. Redistributions of source code must retain the above copyright
  380. // notice, this list of conditions and the following disclaimer.
  381. // 2. Redistributions in binary form must reproduce the above copyright
  382. // notice, this list of conditions and the following disclaimer in the
  383. // documentation and/or other materials provided with the distribution.
  384. // 3. Neither the name of the University nor the names of its contributors
  385. // may be used to endorse or promote products derived from this software
  386. // without specific prior written permission.
  387. //
  388. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  389. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  390. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  391. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  392. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  393. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  394. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  395. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  396. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  397. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  398. // SUCH DAMAGE.
  399. //
  400. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  401. // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  402. // -
  403. // Copyright (c) 1990 The Regents of the University of California.
  404. // All rights reserved.
  405. //
  406. // Redistribution and use in source and binary forms, with or without
  407. // modification, are permitted provided that the following conditions
  408. // are met:
  409. // 1. Redistributions of source code must retain the above copyright
  410. // notice, this list of conditions and the following disclaimer.
  411. // 2. Redistributions in binary form must reproduce the above copyright
  412. // notice, this list of conditions and the following disclaimer in the
  413. // documentation and/or other materials provided with the distribution.
  414. // 3. Neither the name of the University nor the names of its contributors
  415. // may be used to endorse or promote products derived from this software
  416. // without specific prior written permission.
  417. //
  418. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  419. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  420. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  421. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  422. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  423. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  424. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  425. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  426. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  427. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  428. // SUCH DAMAGE.
  429. //
  430. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  431. // $NetBSD: common_int_types.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
  432. // -
  433. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  434. // All rights reserved.
  435. //
  436. // This code is derived from software contributed to The NetBSD Foundation
  437. // by Joerg Sonnenberger.
  438. //
  439. // Redistribution and use in source and binary forms, with or without
  440. // modification, are permitted provided that the following conditions
  441. // are met:
  442. // 1. Redistributions of source code must retain the above copyright
  443. // notice, this list of conditions and the following disclaimer.
  444. // 2. Redistributions in binary form must reproduce the above copyright
  445. // notice, this list of conditions and the following disclaimer in the
  446. // documentation and/or other materials provided with the distribution.
  447. //
  448. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  449. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  450. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  451. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  452. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  453. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  454. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  455. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  456. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  457. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  458. // POSSIBILITY OF SUCH DAMAGE.
  459. // 7.18.1 Integer types
  460. // 7.18.1.1 Exact-width integer types
  461. type X__int8_t = int8 /* common_int_types.h:45:27 */
  462. type X__uint8_t = uint8 /* common_int_types.h:46:27 */
  463. type X__int16_t = int16 /* common_int_types.h:47:27 */
  464. type X__uint16_t = uint16 /* common_int_types.h:48:27 */
  465. type X__int32_t = int32 /* common_int_types.h:49:27 */
  466. type X__uint32_t = uint32 /* common_int_types.h:50:27 */
  467. type X__int64_t = int64 /* common_int_types.h:51:27 */
  468. type X__uint64_t = uint64 /* common_int_types.h:52:27 */
  469. // 7.18.1.4 Integer types capable of holding object pointers
  470. type X__intptr_t = int64 /* common_int_types.h:58:27 */
  471. type X__uintptr_t = uint64 /* common_int_types.h:59:26 */
  472. // Types which are fundamental to the implementation and may appear in
  473. // more than one standard header are defined here. Standard headers
  474. // then use:
  475. // #ifdef _BSD_SIZE_T_
  476. // typedef _BSD_SIZE_T_ size_t;
  477. // #undef _BSD_SIZE_T_
  478. // #endif
  479. type X__caddr_t = uintptr /* ansi.h:37:14 */ // core address
  480. type X__gid_t = X__uint32_t /* ansi.h:38:20 */ // group id
  481. type X__in_addr_t = X__uint32_t /* ansi.h:39:20 */ // IP(v4) address
  482. type X__in_port_t = X__uint16_t /* ansi.h:40:20 */ // "Internet" port number
  483. type X__mode_t = X__uint32_t /* ansi.h:41:20 */ // file permissions
  484. type X__off_t = X__int64_t /* ansi.h:42:19 */ // file offset
  485. type X__pid_t = X__int32_t /* ansi.h:43:19 */ // process id
  486. type X__sa_family_t = X__uint8_t /* ansi.h:44:19 */ // socket address family
  487. type X__socklen_t = uint32 /* ansi.h:45:22 */ // socket-related datum length
  488. type X__uid_t = X__uint32_t /* ansi.h:46:20 */ // user id
  489. type X__fsblkcnt_t = X__uint64_t /* ansi.h:47:20 */ // fs block count (statvfs)
  490. type X__fsfilcnt_t = X__uint64_t /* ansi.h:48:20 */
  491. type X__wctrans_t = uintptr /* ansi.h:51:32 */
  492. type X__wctype_t = uintptr /* ansi.h:54:31 */
  493. // mbstate_t is an opaque object to keep conversion state, during multibyte
  494. // stream conversions. The content must not be referenced by user programs.
  495. type X__mbstate_t = struct {
  496. F__mbstateL X__int64_t
  497. F__ccgo_pad1 [120]byte
  498. } /* ansi.h:63:3 */
  499. type X__va_list = X__builtin_va_list /* ansi.h:72:27 */
  500. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  501. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  502. // Public domain.
  503. //
  504. // NOTE: Do not protect this header against multiple inclusion. Doing
  505. // so can have subtle side-effects due to header file inclusion order
  506. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  507. // protect each CPP macro that we want to supply.
  508. // Feature-test macros are defined by several standards, and allow an
  509. // application to specify what symbols they want the system headers to
  510. // expose, and hence what standard they want them to conform to.
  511. // There are two classes of feature-test macros. The first class
  512. // specify complete standards, and if one of these is defined, header
  513. // files will try to conform to the relevant standard. They are:
  514. //
  515. // ANSI macros:
  516. // _ANSI_SOURCE ANSI C89
  517. //
  518. // POSIX macros:
  519. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  520. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  521. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  522. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  523. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  524. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  525. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  526. //
  527. // X/Open macros:
  528. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  529. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  530. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  531. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  532. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  533. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  534. //
  535. // NetBSD macros:
  536. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  537. //
  538. // If more than one of these "major" feature-test macros is defined,
  539. // then the set of facilities provided (and namespace used) is the
  540. // union of that specified by the relevant standards, and in case of
  541. // conflict, the earlier standard in the above list has precedence (so
  542. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  543. // of rename() that's used is the POSIX one). If none of the "major"
  544. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  545. //
  546. // There are also "minor" feature-test macros, which enable extra
  547. // functionality in addition to some base standard. They should be
  548. // defined along with one of the "major" macros. The "minor" macros
  549. // are:
  550. //
  551. // _REENTRANT
  552. // _ISOC99_SOURCE
  553. // _ISOC11_SOURCE
  554. // _LARGEFILE_SOURCE Large File Support
  555. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  556. // $NetBSD: inttypes.h,v 1.11 2015/01/16 18:35:59 christos Exp $
  557. // -
  558. // Copyright (c) 2001 The NetBSD Foundation, Inc.
  559. // All rights reserved.
  560. //
  561. // This code is derived from software contributed to The NetBSD Foundation
  562. // by Klaus Klein.
  563. //
  564. // Redistribution and use in source and binary forms, with or without
  565. // modification, are permitted provided that the following conditions
  566. // are met:
  567. // 1. Redistributions of source code must retain the above copyright
  568. // notice, this list of conditions and the following disclaimer.
  569. // 2. Redistributions in binary form must reproduce the above copyright
  570. // notice, this list of conditions and the following disclaimer in the
  571. // documentation and/or other materials provided with the distribution.
  572. //
  573. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  574. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  575. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  576. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  577. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  578. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  579. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  580. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  581. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  582. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  583. // POSSIBILITY OF SUCH DAMAGE.
  584. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  585. // * Copyright (c) 1991, 1993
  586. // The Regents of the University of California. All rights reserved.
  587. //
  588. // This code is derived from software contributed to Berkeley by
  589. // Berkeley Software Design, Inc.
  590. //
  591. // Redistribution and use in source and binary forms, with or without
  592. // modification, are permitted provided that the following conditions
  593. // are met:
  594. // 1. Redistributions of source code must retain the above copyright
  595. // notice, this list of conditions and the following disclaimer.
  596. // 2. Redistributions in binary form must reproduce the above copyright
  597. // notice, this list of conditions and the following disclaimer in the
  598. // documentation and/or other materials provided with the distribution.
  599. // 3. Neither the name of the University nor the names of its contributors
  600. // may be used to endorse or promote products derived from this software
  601. // without specific prior written permission.
  602. //
  603. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  604. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  605. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  606. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  607. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  608. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  609. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  610. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  611. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  612. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  613. // SUCH DAMAGE.
  614. //
  615. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  616. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  617. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  618. // Public domain.
  619. //
  620. // NOTE: Do not protect this header against multiple inclusion. Doing
  621. // so can have subtle side-effects due to header file inclusion order
  622. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  623. // protect each CPP macro that we want to supply.
  624. // Feature-test macros are defined by several standards, and allow an
  625. // application to specify what symbols they want the system headers to
  626. // expose, and hence what standard they want them to conform to.
  627. // There are two classes of feature-test macros. The first class
  628. // specify complete standards, and if one of these is defined, header
  629. // files will try to conform to the relevant standard. They are:
  630. //
  631. // ANSI macros:
  632. // _ANSI_SOURCE ANSI C89
  633. //
  634. // POSIX macros:
  635. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  636. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  637. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  638. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  639. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  640. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  641. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  642. //
  643. // X/Open macros:
  644. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  645. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  646. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  647. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  648. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  649. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  650. //
  651. // NetBSD macros:
  652. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  653. //
  654. // If more than one of these "major" feature-test macros is defined,
  655. // then the set of facilities provided (and namespace used) is the
  656. // union of that specified by the relevant standards, and in case of
  657. // conflict, the earlier standard in the above list has precedence (so
  658. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  659. // of rename() that's used is the POSIX one). If none of the "major"
  660. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  661. //
  662. // There are also "minor" feature-test macros, which enable extra
  663. // functionality in addition to some base standard. They should be
  664. // defined along with one of the "major" macros. The "minor" macros
  665. // are:
  666. //
  667. // _REENTRANT
  668. // _ISOC99_SOURCE
  669. // _ISOC11_SOURCE
  670. // _LARGEFILE_SOURCE Large File Support
  671. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  672. // $NetBSD: inttypes.h,v 1.6 2013/04/22 21:26:48 joerg Exp $
  673. // -
  674. // Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
  675. // All rights reserved.
  676. //
  677. // This code is derived from software contributed to The NetBSD Foundation
  678. // by Klaus J. Klein.
  679. //
  680. // Redistribution and use in source and binary forms, with or without
  681. // modification, are permitted provided that the following conditions
  682. // are met:
  683. // 1. Redistributions of source code must retain the above copyright
  684. // notice, this list of conditions and the following disclaimer.
  685. // 2. Redistributions in binary form must reproduce the above copyright
  686. // notice, this list of conditions and the following disclaimer in the
  687. // documentation and/or other materials provided with the distribution.
  688. //
  689. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  690. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  691. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  692. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  693. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  694. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  695. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  696. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  697. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  698. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  699. // POSSIBILITY OF SUCH DAMAGE.
  700. // 7.8 Format conversion of integer types
  701. // $NetBSD: stdint.h,v 1.8 2018/11/06 16:26:44 maya Exp $
  702. // -
  703. // Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
  704. // All rights reserved.
  705. //
  706. // This code is derived from software contributed to The NetBSD Foundation
  707. // by Klaus Klein.
  708. //
  709. // Redistribution and use in source and binary forms, with or without
  710. // modification, are permitted provided that the following conditions
  711. // are met:
  712. // 1. Redistributions of source code must retain the above copyright
  713. // notice, this list of conditions and the following disclaimer.
  714. // 2. Redistributions in binary form must reproduce the above copyright
  715. // notice, this list of conditions and the following disclaimer in the
  716. // documentation and/or other materials provided with the distribution.
  717. //
  718. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  719. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  720. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  721. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  722. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  723. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  724. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  725. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  726. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  727. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  728. // POSSIBILITY OF SUCH DAMAGE.
  729. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  730. // * Copyright (c) 1991, 1993
  731. // The Regents of the University of California. All rights reserved.
  732. //
  733. // This code is derived from software contributed to Berkeley by
  734. // Berkeley Software Design, Inc.
  735. //
  736. // Redistribution and use in source and binary forms, with or without
  737. // modification, are permitted provided that the following conditions
  738. // are met:
  739. // 1. Redistributions of source code must retain the above copyright
  740. // notice, this list of conditions and the following disclaimer.
  741. // 2. Redistributions in binary form must reproduce the above copyright
  742. // notice, this list of conditions and the following disclaimer in the
  743. // documentation and/or other materials provided with the distribution.
  744. // 3. Neither the name of the University nor the names of its contributors
  745. // may be used to endorse or promote products derived from this software
  746. // without specific prior written permission.
  747. //
  748. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  749. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  750. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  751. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  752. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  753. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  754. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  755. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  756. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  757. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  758. // SUCH DAMAGE.
  759. //
  760. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  761. // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  762. // -
  763. // Copyright (c) 1990 The Regents of the University of California.
  764. // All rights reserved.
  765. //
  766. // Redistribution and use in source and binary forms, with or without
  767. // modification, are permitted provided that the following conditions
  768. // are met:
  769. // 1. Redistributions of source code must retain the above copyright
  770. // notice, this list of conditions and the following disclaimer.
  771. // 2. Redistributions in binary form must reproduce the above copyright
  772. // notice, this list of conditions and the following disclaimer in the
  773. // documentation and/or other materials provided with the distribution.
  774. // 3. Neither the name of the University nor the names of its contributors
  775. // may be used to endorse or promote products derived from this software
  776. // without specific prior written permission.
  777. //
  778. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  779. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  780. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  781. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  782. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  783. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  784. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  785. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  786. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  787. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  788. // SUCH DAMAGE.
  789. //
  790. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  791. type Int8_t = X__int8_t /* stdint.h:39:18 */
  792. type Uint8_t = X__uint8_t /* stdint.h:44:19 */
  793. type Int16_t = X__int16_t /* stdint.h:49:19 */
  794. type Uint16_t = X__uint16_t /* stdint.h:54:20 */
  795. type Int32_t = X__int32_t /* stdint.h:59:19 */
  796. type Uint32_t = X__uint32_t /* stdint.h:64:20 */
  797. type Int64_t = X__int64_t /* stdint.h:69:19 */
  798. type Uint64_t = X__uint64_t /* stdint.h:74:20 */
  799. type Intptr_t = X__intptr_t /* stdint.h:79:20 */
  800. type Uintptr_t = X__uintptr_t /* stdint.h:84:21 */
  801. // $NetBSD: int_mwgwtypes.h,v 1.8 2014/07/25 21:43:13 joerg Exp $
  802. // -
  803. // Copyright (c) 2001 The NetBSD Foundation, Inc.
  804. // All rights reserved.
  805. //
  806. // This code is derived from software contributed to The NetBSD Foundation
  807. // by Klaus Klein.
  808. //
  809. // Redistribution and use in source and binary forms, with or without
  810. // modification, are permitted provided that the following conditions
  811. // are met:
  812. // 1. Redistributions of source code must retain the above copyright
  813. // notice, this list of conditions and the following disclaimer.
  814. // 2. Redistributions in binary form must reproduce the above copyright
  815. // notice, this list of conditions and the following disclaimer in the
  816. // documentation and/or other materials provided with the distribution.
  817. //
  818. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  819. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  820. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  821. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  822. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  823. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  824. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  825. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  826. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  827. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  828. // POSSIBILITY OF SUCH DAMAGE.
  829. // $NetBSD: common_int_mwgwtypes.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
  830. // -
  831. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  832. // All rights reserved.
  833. //
  834. // This code is derived from software contributed to The NetBSD Foundation
  835. // by Joerg Sonnenberger.
  836. //
  837. // Redistribution and use in source and binary forms, with or without
  838. // modification, are permitted provided that the following conditions
  839. // are met:
  840. // 1. Redistributions of source code must retain the above copyright
  841. // notice, this list of conditions and the following disclaimer.
  842. // 2. Redistributions in binary form must reproduce the above copyright
  843. // notice, this list of conditions and the following disclaimer in the
  844. // documentation and/or other materials provided with the distribution.
  845. //
  846. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  847. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  848. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  849. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  850. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  851. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  852. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  853. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  854. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  855. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  856. // POSSIBILITY OF SUCH DAMAGE.
  857. // 7.18.1 Integer types
  858. // 7.18.1.2 Minimum-width integer types
  859. type Int_least8_t = int8 /* common_int_mwgwtypes.h:45:32 */
  860. type Uint_least8_t = uint8 /* common_int_mwgwtypes.h:46:32 */
  861. type Int_least16_t = int16 /* common_int_mwgwtypes.h:47:32 */
  862. type Uint_least16_t = uint16 /* common_int_mwgwtypes.h:48:32 */
  863. type Int_least32_t = int32 /* common_int_mwgwtypes.h:49:32 */
  864. type Uint_least32_t = uint32 /* common_int_mwgwtypes.h:50:32 */
  865. type Int_least64_t = int64 /* common_int_mwgwtypes.h:51:32 */
  866. type Uint_least64_t = uint64 /* common_int_mwgwtypes.h:52:32 */
  867. // 7.18.1.3 Fastest minimum-width integer types
  868. type Int_fast8_t = int32 /* common_int_mwgwtypes.h:55:32 */
  869. type Uint_fast8_t = uint32 /* common_int_mwgwtypes.h:56:32 */
  870. type Int_fast16_t = int32 /* common_int_mwgwtypes.h:57:32 */
  871. type Uint_fast16_t = uint32 /* common_int_mwgwtypes.h:58:32 */
  872. type Int_fast32_t = int32 /* common_int_mwgwtypes.h:59:32 */
  873. type Uint_fast32_t = uint32 /* common_int_mwgwtypes.h:60:32 */
  874. type Int_fast64_t = int64 /* common_int_mwgwtypes.h:61:32 */
  875. type Uint_fast64_t = uint64 /* common_int_mwgwtypes.h:62:32 */
  876. // 7.18.1.5 Greatest-width integer types
  877. type Intmax_t = int64 /* common_int_mwgwtypes.h:66:33 */
  878. type Uintmax_t = uint64 /* common_int_mwgwtypes.h:67:32 */
  879. type Imaxdiv_t = struct {
  880. Fquot Intmax_t
  881. Frem Intmax_t
  882. } /* inttypes.h:60:3 */
  883. type Locale_t = uintptr /* inttypes.h:66:25 */
  884. // Data types
  885. type Socklen_t = X__socklen_t /* netdb.h:102:21 */
  886. // %
  887. // Structures returned by network data base library. All addresses are
  888. // supplied in host order, and returned in network order (suitable for
  889. // use in system calls).
  890. type Hostent = struct {
  891. Fh_name uintptr
  892. Fh_aliases uintptr
  893. Fh_addrtype int32
  894. Fh_length int32
  895. Fh_addr_list uintptr
  896. } /* netdb.h:148:1 */
  897. // %
  898. // Assumption here is that a network number
  899. // fits in an unsigned long -- probably a poor one.
  900. type Netent = struct {
  901. Fn_name uintptr
  902. Fn_aliases uintptr
  903. Fn_addrtype int32
  904. Fn_net Uint32_t
  905. } /* netdb.h:161:1 */
  906. type Servent = struct {
  907. Fs_name uintptr
  908. Fs_aliases uintptr
  909. Fs_port int32
  910. F__ccgo_pad1 [4]byte
  911. Fs_proto uintptr
  912. } /* netdb.h:176:1 */
  913. type Protoent = struct {
  914. Fp_name uintptr
  915. Fp_aliases uintptr
  916. Fp_proto int32
  917. F__ccgo_pad1 [4]byte
  918. } /* netdb.h:183:1 */
  919. // Note: ai_addrlen used to be a size_t, per RFC 2553.
  920. // In XNS5.2, and subsequently in POSIX-2001 and
  921. // draft-ietf-ipngwg-rfc2553bis-02.txt it was changed to a socklen_t.
  922. // To accommodate for this while preserving binary compatibility with the
  923. // old interface, we prepend or append 32 bits of padding, depending on
  924. // the (LP64) architecture's endianness.
  925. //
  926. // This should be deleted the next time the libc major number is
  927. // incremented.
  928. type Addrinfo = struct {
  929. Fai_flags int32
  930. Fai_family int32
  931. Fai_socktype int32
  932. Fai_protocol int32
  933. Fai_addrlen X__socklen_t
  934. F__ccgo_pad1 [4]byte
  935. Fai_canonname uintptr
  936. Fai_addr uintptr
  937. Fai_next uintptr
  938. } /* netdb.h:202:1 */
  939. var _ int8 /* gen.c:2:13: */