netdb_netbsd_arm.go 54 KB

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