unistd_netbsd_arm.go 90 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775
  1. // Code generated by 'ccgo unistd/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o unistd/unistd_netbsd_arm.go -pkgname unistd', DO NOT EDIT.
  2. package unistd
  3. import (
  4. "math"
  5. "reflect"
  6. "sync/atomic"
  7. "unsafe"
  8. )
  9. var _ = math.Pi
  10. var _ reflect.Kind
  11. var _ atomic.Value
  12. var _ unsafe.Pointer
  13. const (
  14. BIG_ENDIAN = 4321 // endian.h:101:1:
  15. BYTE_ORDER = 1234 // endian.h:103:1:
  16. FDATASYNC = 0x0010 // unistd.h:196:1:
  17. FDISKSYNC = 0x0040 // unistd.h:198:1:
  18. FD_SETSIZE = 256 // fd_set.h:59:1:
  19. FFILESYNC = 0x0020 // unistd.h:197:1:
  20. F_LOCK = 1 // unistd.h:253:1:
  21. F_OK = 0 // unistd.h:172:1:
  22. F_TEST = 3 // unistd.h:255:1:
  23. F_TLOCK = 2 // unistd.h:254:1:
  24. F_ULOCK = 0 // unistd.h:252:1:
  25. GETPASS_7BIT = 0x080 // unistd.h:351:1:
  26. GETPASS_BUF_LIMIT = 0x004 // unistd.h:346:1:
  27. GETPASS_ECHO = 0x020 // unistd.h:349:1:
  28. GETPASS_ECHO_NL = 0x400 // unistd.h:354:1:
  29. GETPASS_ECHO_STAR = 0x040 // unistd.h:350:1:
  30. GETPASS_FAIL_EOF = 0x002 // unistd.h:345:1:
  31. GETPASS_FORCE_LOWER = 0x100 // unistd.h:352:1:
  32. GETPASS_FORCE_UPPER = 0x200 // unistd.h:353:1:
  33. GETPASS_NEED_TTY = 0x001 // unistd.h:344:1:
  34. GETPASS_NO_BEEP = 0x010 // unistd.h:348:1:
  35. GETPASS_NO_SIGNAL = 0x008 // unistd.h:347:1:
  36. INT16_MAX = 32767 // common_int_limits.h:53:1:
  37. INT16_MIN = -32768 // common_int_limits.h:47:1:
  38. INT32_MAX = 2147483647 // common_int_limits.h:54:1:
  39. INT32_MIN = -2147483648 // common_int_limits.h:48:1:
  40. INT64_MAX = 9223372036854775807 // common_int_limits.h:55:1:
  41. INT64_MIN = -9223372036854775808 // common_int_limits.h:49:1:
  42. INT8_MAX = 127 // common_int_limits.h:52:1:
  43. INT8_MIN = -128 // common_int_limits.h:46:1:
  44. INTMAX_MAX = 9223372036854775807 // common_int_limits.h:111:1:
  45. INTMAX_MIN = -9223372036854775808 // common_int_limits.h:110:1:
  46. INTPTR_MAX = 2147483647 // common_int_limits.h:105:1:
  47. INTPTR_MIN = -2147483648 // common_int_limits.h:104:1:
  48. INT_FAST16_MAX = 2147483647 // common_int_limits.h:93:1:
  49. INT_FAST16_MIN = -2147483648 // common_int_limits.h:87:1:
  50. INT_FAST32_MAX = 2147483647 // common_int_limits.h:94:1:
  51. INT_FAST32_MIN = -2147483648 // common_int_limits.h:88:1:
  52. INT_FAST64_MAX = 9223372036854775807 // common_int_limits.h:95:1:
  53. INT_FAST64_MIN = -9223372036854775808 // common_int_limits.h:89:1:
  54. INT_FAST8_MAX = 2147483647 // common_int_limits.h:92:1:
  55. INT_FAST8_MIN = -2147483648 // common_int_limits.h:86:1:
  56. INT_LEAST16_MAX = 32767 // common_int_limits.h:73:1:
  57. INT_LEAST16_MIN = -32768 // common_int_limits.h:67:1:
  58. INT_LEAST32_MAX = 2147483647 // common_int_limits.h:74:1:
  59. INT_LEAST32_MIN = -2147483648 // common_int_limits.h:68:1:
  60. INT_LEAST64_MAX = 9223372036854775807 // common_int_limits.h:75:1:
  61. INT_LEAST64_MIN = -9223372036854775808 // common_int_limits.h:69:1:
  62. INT_LEAST8_MAX = 127 // common_int_limits.h:72:1:
  63. INT_LEAST8_MIN = -128 // common_int_limits.h:66:1:
  64. LITTLE_ENDIAN = 1234 // endian.h:100:1:
  65. L_INCR = 1 // unistd.h:185:1:
  66. L_SET = 0 // unistd.h:184:1:
  67. L_XTND = 2 // unistd.h:186:1:
  68. NBBY = 8 // types.h:316:1:
  69. NFDBITS = 32 // fd_set.h:93:1:
  70. NODEVMAJOR = -1 // types.h:258:1:
  71. PDP_ENDIAN = 3412 // endian.h:102:1:
  72. PTRDIFF_MAX = 2147483647 // common_int_limits.h:121:1:
  73. PTRDIFF_MIN = -2147483648 // common_int_limits.h:120:1:
  74. R_OK = 0x04 // unistd.h:175:1:
  75. SEEK_CUR = 1 // unistd.h:179:1:
  76. SEEK_END = 2 // unistd.h:180:1:
  77. SEEK_SET = 0 // unistd.h:178:1:
  78. SIG_ATOMIC_MAX = 2147483647 // common_int_limits.h:125:1:
  79. SIG_ATOMIC_MIN = -2147483648 // common_int_limits.h:124:1:
  80. SIZE_MAX = 4294967295 // common_int_limits.h:128:1:
  81. STDERR_FILENO = 2 // unistd.h:82:1:
  82. STDIN_FILENO = 0 // unistd.h:80:1:
  83. STDOUT_FILENO = 1 // unistd.h:81:1:
  84. UINT16_MAX = 65535 // common_int_limits.h:59:1:
  85. UINT32_MAX = 4294967295 // common_int_limits.h:60:1:
  86. UINT64_MAX = 18446744073709551615 // common_int_limits.h:61:1:
  87. UINT8_MAX = 255 // common_int_limits.h:58:1:
  88. UINTMAX_MAX = 18446744073709551615 // common_int_limits.h:112:1:
  89. UINTPTR_MAX = 4294967295 // common_int_limits.h:106:1:
  90. UINT_FAST16_MAX = 4294967295 // common_int_limits.h:99:1:
  91. UINT_FAST32_MAX = 4294967295 // common_int_limits.h:100:1:
  92. UINT_FAST64_MAX = 18446744073709551615 // common_int_limits.h:101:1:
  93. UINT_FAST8_MAX = 4294967295 // common_int_limits.h:98:1:
  94. UINT_LEAST16_MAX = 65535 // common_int_limits.h:79:1:
  95. UINT_LEAST32_MAX = 4294967295 // common_int_limits.h:80:1:
  96. UINT_LEAST64_MAX = 18446744073709551615 // common_int_limits.h:81:1:
  97. UINT_LEAST8_MAX = 255 // common_int_limits.h:78:1:
  98. WCHAR_MAX = 2147483647 // wchar_limits.h:50:1:
  99. WCHAR_MIN = -2147483648 // wchar_limits.h:42:1:
  100. WINT_MAX = 2147483647 // wchar_limits.h:68:1:
  101. WINT_MIN = -2147483648 // wchar_limits.h:60:1:
  102. W_OK = 0x02 // unistd.h:174:1:
  103. X_OK = 0x01 // unistd.h:173:1:
  104. X_ARM_ARCH_4T = 0 // cdefs.h:44:1:
  105. X_ARM_ARCH_5 = 0 // cdefs.h:40:1:
  106. X_ARM_ARCH_5T = 0 // cdefs.h:36:1:
  107. X_ARM_ARCH_6 = 0 // cdefs.h:31:1:
  108. X_ARM_ARCH_7 = 0 // cdefs.h:20:1:
  109. X_ARM_ARCH_DWORD_OK = 0 // cdefs.h:51:1:
  110. X_ARM_ARCH_T2 = 0 // cdefs.h:24:1:
  111. X_ARM_BSWAP_H_ = 0 // bswap.h:4:1:
  112. X_ARM_BYTE_SWAP_H_ = 0 // byte_swap.h:33:1:
  113. X_ARM_CDEFS_H_ = 0 // cdefs.h:4:1:
  114. X_ARM_INT_CONST_H_ = 0 // int_const.h:33:1:
  115. X_ARM_INT_LIMITS_H_ = 0 // int_limits.h:33:1:
  116. X_ARM_INT_MWGWTYPES_H_ = 0 // int_mwgwtypes.h:33:1:
  117. X_ARM_INT_TYPES_H_ = 0 // int_types.h:33:1:
  118. X_ARM_TYPES_H_ = 0 // types.h:35:1:
  119. X_ARM_WCHAR_LIMITS_H_ = 0 // wchar_limits.h:33:1:
  120. X_BIG_ENDIAN = 4321 // endian.h:44:1:
  121. X_BSD_INT16_T_ = 0 // types.h:65:1:
  122. X_BSD_INT32_T_ = 0 // types.h:75:1:
  123. X_BSD_INT64_T_ = 0 // types.h:85:1:
  124. X_BSD_INT8_T_ = 0 // types.h:55:1:
  125. X_BSD_INTPTR_T_ = 0 // stdint.h:80:1:
  126. X_BSD_UINT16_T_ = 0 // types.h:70:1:
  127. X_BSD_UINT32_T_ = 0 // types.h:80:1:
  128. X_BSD_UINT64_T_ = 0 // types.h:90:1:
  129. X_BSD_UINT8_T_ = 0 // types.h:60:1:
  130. X_BSD_UINTPTR_T_ = 0 // stdint.h:85:1:
  131. X_BYTE_ORDER = 1234 // endian_machdep.h:7:1:
  132. X_CS_PATH = 1 // unistd.h:338:1:
  133. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  134. X_LIB_PTHREAD_TYPES_H = 0 // pthread_types.h:33:1:
  135. X_LITTLE_ENDIAN = 1234 // endian.h:43:1:
  136. X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
  137. X_O_SC_CLK_TCK = 3 // unistd.h:227:1:
  138. X_PC_2_SYMLINKS = 13 // unistd.h:214:1:
  139. X_PC_ACL_EXTENDED = 14 // unistd.h:215:1:
  140. X_PC_CHOWN_RESTRICTED = 7 // unistd.h:208:1:
  141. X_PC_FILESIZEBITS = 11 // unistd.h:212:1:
  142. X_PC_LINK_MAX = 1 // unistd.h:202:1:
  143. X_PC_MAX_CANON = 2 // unistd.h:203:1:
  144. X_PC_MAX_INPUT = 3 // unistd.h:204:1:
  145. X_PC_MIN_HOLE_SIZE = 15 // unistd.h:218:1:
  146. X_PC_NAME_MAX = 4 // unistd.h:205:1:
  147. X_PC_NO_TRUNC = 8 // unistd.h:209:1:
  148. X_PC_PATH_MAX = 5 // unistd.h:206:1:
  149. X_PC_PIPE_BUF = 6 // unistd.h:207:1:
  150. X_PC_SYMLINK_MAX = 12 // unistd.h:213:1:
  151. X_PC_SYNC_IO = 10 // unistd.h:211:1:
  152. X_PC_VDISABLE = 9 // unistd.h:210:1:
  153. X_PDP_ENDIAN = 3412 // endian.h:45:1:
  154. X_POSIX2_C_BIND = 200112 // unistd.h:166:1:
  155. X_POSIX2_VERSION = 200112 // unistd.h:63:1:
  156. X_POSIX_ASYNCHRONOUS_IO = 200112 // unistd.h:89:1:
  157. X_POSIX_BARRIERS = 200112 // unistd.h:91:1:
  158. X_POSIX_CHOWN_RESTRICTED = 1 // unistd.h:93:1:
  159. X_POSIX_CLOCK_SELECTION = -1 // unistd.h:95:1:
  160. X_POSIX_CPUTIME = 200112 // unistd.h:97:1:
  161. X_POSIX_FSYNC = 1 // unistd.h:101:1:
  162. X_POSIX_IPV6 = 0 // unistd.h:103:1:
  163. X_POSIX_JOB_CONTROL = 1 // unistd.h:105:1:
  164. X_POSIX_MAPPED_FILES = 1 // unistd.h:107:1:
  165. X_POSIX_MEMLOCK = 1 // unistd.h:109:1:
  166. X_POSIX_MEMLOCK_RANGE = 1 // unistd.h:111:1:
  167. X_POSIX_MEMORY_PROTECTION = 1 // unistd.h:113:1:
  168. X_POSIX_MESSAGE_PASSING = 200112 // unistd.h:115:1:
  169. X_POSIX_MONOTONIC_CLOCK = 200112 // unistd.h:117:1:
  170. X_POSIX_NO_TRUNC = 1 // unistd.h:119:1:
  171. X_POSIX_PRIORITIZED_IO = -1 // unistd.h:121:1:
  172. X_POSIX_PRIORITY_SCHEDULING = 200112 // unistd.h:123:1:
  173. X_POSIX_RAW_SOCKETS = 200112 // unistd.h:125:1:
  174. X_POSIX_READER_WRITER_LOCKS = 200112 // unistd.h:127:1:
  175. X_POSIX_REGEXP = 1 // unistd.h:131:1:
  176. X_POSIX_SEMAPHORES = 0 // unistd.h:133:1:
  177. X_POSIX_SHARED_MEMORY_OBJECTS = 0 // unistd.h:135:1:
  178. X_POSIX_SHELL = 1 // unistd.h:137:1:
  179. X_POSIX_SPAWN = 200809 // unistd.h:68:1:
  180. X_POSIX_SPIN_LOCKS = 200112 // unistd.h:139:1:
  181. X_POSIX_SYNCHRONIZED_IO = 1 // unistd.h:143:1:
  182. X_POSIX_THREADS = 200112 // unistd.h:145:1:
  183. X_POSIX_THREAD_ATTR_STACKADDR = 200112 // unistd.h:149:1:
  184. X_POSIX_THREAD_ATTR_STACKSIZE = 200112 // unistd.h:147:1:
  185. X_POSIX_THREAD_CPUTIME = 200112 // unistd.h:151:1:
  186. X_POSIX_THREAD_PRIO_PROTECT = 200112 // unistd.h:153:1:
  187. X_POSIX_THREAD_SAFE_FUNCTIONS = 200112 // unistd.h:155:1:
  188. X_POSIX_TIMERS = 200112 // unistd.h:159:1:
  189. X_POSIX_VERSION = 200112 // unistd.h:62:1:
  190. X_PT_BARRIERATTR_DEAD = 0xDEAD0808 // pthread_types.h:278:1:
  191. X_PT_BARRIERATTR_MAGIC = 0x88880808 // pthread_types.h:277:1:
  192. X_PT_BARRIER_DEAD = 0xDEAD0008 // pthread_types.h:270:1:
  193. X_PT_BARRIER_MAGIC = 0x88880008 // pthread_types.h:269:1:
  194. X_PT_CONDATTR_DEAD = 0xDEAD0006 // pthread_types.h:197:1:
  195. X_PT_CONDATTR_MAGIC = 0x66660006 // pthread_types.h:196:1:
  196. X_PT_COND_DEAD = 0xDEAD0005 // pthread_types.h:182:1:
  197. X_PT_COND_MAGIC = 0x55550005 // pthread_types.h:181:1:
  198. X_PT_MUTEXATTR_DEAD = 0xDEAD0004 // pthread_types.h:167:1:
  199. X_PT_MUTEXATTR_MAGIC = 0x44440004 // pthread_types.h:166:1:
  200. X_PT_MUTEX_DEAD = 0xDEAD0003 // pthread_types.h:139:1:
  201. X_PT_MUTEX_MAGIC = 0x33330003 // pthread_types.h:138:1:
  202. X_PT_RWLOCKATTR_DEAD = 0xDEAD0909 // pthread_types.h:253:1:
  203. X_PT_RWLOCKATTR_MAGIC = 0x99990909 // pthread_types.h:252:1:
  204. X_PT_RWLOCK_DEAD = 0xDEAD0009 // pthread_types.h:236:1:
  205. X_PT_RWLOCK_MAGIC = 0x99990009 // pthread_types.h:235:1:
  206. X_PT_SPINLOCK_DEAD = 0xDEAD0007 // pthread_types.h:213:1:
  207. X_PT_SPINLOCK_MAGIC = 0x77770007 // pthread_types.h:212:1:
  208. X_PT_SPINLOCK_PSHARED = 0x00000001 // pthread_types.h:214:1:
  209. X_QUAD_HIGHWORD = 1 // endian.h:84:1:
  210. X_QUAD_LOWWORD = 0 // endian.h:85:1:
  211. X_SC_2_CHAR_TERM = 20 // unistd.h:244:1:
  212. X_SC_2_C_BIND = 18 // unistd.h:242:1:
  213. X_SC_2_C_DEV = 19 // unistd.h:243:1:
  214. X_SC_2_FORT_DEV = 21 // unistd.h:245:1:
  215. X_SC_2_FORT_RUN = 22 // unistd.h:246:1:
  216. X_SC_2_LOCALEDEF = 23 // unistd.h:247:1:
  217. X_SC_2_PBS = 80 // unistd.h:305:1:
  218. X_SC_2_PBS_ACCOUNTING = 81 // unistd.h:306:1:
  219. X_SC_2_PBS_CHECKPOINT = 82 // unistd.h:307:1:
  220. X_SC_2_PBS_LOCATE = 83 // unistd.h:308:1:
  221. X_SC_2_PBS_MESSAGE = 84 // unistd.h:309:1:
  222. X_SC_2_PBS_TRACK = 85 // unistd.h:310:1:
  223. X_SC_2_SW_DEV = 24 // unistd.h:248:1:
  224. X_SC_2_UPE = 25 // unistd.h:249:1:
  225. X_SC_2_VERSION = 17 // unistd.h:241:1:
  226. X_SC_AIO_LISTIO_MAX = 51 // unistd.h:276:1:
  227. X_SC_AIO_MAX = 52 // unistd.h:277:1:
  228. X_SC_ARG_MAX = 1 // unistd.h:225:1:
  229. X_SC_ASYNCHRONOUS_IO = 50 // unistd.h:275:1:
  230. X_SC_ATEXIT_MAX = 40 // unistd.h:265:1:
  231. X_SC_BARRIERS = 43 // unistd.h:268:1:
  232. X_SC_BC_BASE_MAX = 9 // unistd.h:233:1:
  233. X_SC_BC_DIM_MAX = 10 // unistd.h:234:1:
  234. X_SC_BC_SCALE_MAX = 11 // unistd.h:235:1:
  235. X_SC_BC_STRING_MAX = 12 // unistd.h:236:1:
  236. X_SC_CHILD_MAX = 2 // unistd.h:226:1:
  237. X_SC_CLK_TCK = 39 // unistd.h:264:1:
  238. X_SC_CLOCK_SELECTION = 49 // unistd.h:274:1:
  239. X_SC_COLL_WEIGHTS_MAX = 13 // unistd.h:237:1:
  240. X_SC_CPUTIME = 90 // unistd.h:318:1:
  241. X_SC_DELAYTIMER_MAX = 92 // unistd.h:320:1:
  242. X_SC_EXPR_NEST_MAX = 14 // unistd.h:238:1:
  243. X_SC_FSYNC = 29 // unistd.h:254:1:
  244. X_SC_GETGR_R_SIZE_MAX = 47 // unistd.h:272:1:
  245. X_SC_GETPW_R_SIZE_MAX = 48 // unistd.h:273:1:
  246. X_SC_HOST_NAME_MAX = 69 // unistd.h:294:1:
  247. X_SC_IOV_MAX = 32 // unistd.h:257:1:
  248. X_SC_JOB_CONTROL = 6 // unistd.h:230:1:
  249. X_SC_LINE_MAX = 15 // unistd.h:239:1:
  250. X_SC_LOGIN_NAME_MAX = 37 // unistd.h:262:1:
  251. X_SC_MAPPED_FILES = 33 // unistd.h:258:1:
  252. X_SC_MEMLOCK = 34 // unistd.h:259:1:
  253. X_SC_MEMLOCK_RANGE = 35 // unistd.h:260:1:
  254. X_SC_MEMORY_PROTECTION = 36 // unistd.h:261:1:
  255. X_SC_MESSAGE_PASSING = 53 // unistd.h:278:1:
  256. X_SC_MONOTONIC_CLOCK = 38 // unistd.h:263:1:
  257. X_SC_MQ_OPEN_MAX = 54 // unistd.h:279:1:
  258. X_SC_MQ_PRIO_MAX = 55 // unistd.h:280:1:
  259. X_SC_NGROUPS_MAX = 4 // unistd.h:228:1:
  260. X_SC_NPROCESSORS_CONF = 1001 // unistd.h:329:1:
  261. X_SC_NPROCESSORS_ONLN = 1002 // unistd.h:330:1:
  262. X_SC_OPEN_MAX = 5 // unistd.h:229:1:
  263. X_SC_PAGESIZE = 28 // unistd.h:252:1:
  264. X_SC_PAGE_SIZE = 28 // unistd.h:253:1:
  265. X_SC_PASS_MAX = 70 // unistd.h:295:1:
  266. X_SC_PHYS_PAGES = 121 // unistd.h:325:1:
  267. X_SC_PRIORITY_SCHEDULING = 56 // unistd.h:281:1:
  268. X_SC_READER_WRITER_LOCKS = 46 // unistd.h:271:1:
  269. X_SC_REALTIME_SIGNALS = 94 // unistd.h:322:1:
  270. X_SC_REGEXP = 71 // unistd.h:296:1:
  271. X_SC_RE_DUP_MAX = 16 // unistd.h:240:1:
  272. X_SC_SAVED_IDS = 7 // unistd.h:231:1:
  273. X_SC_SCHED_PRI_MAX = 2003 // unistd.h:334:1:
  274. X_SC_SCHED_PRI_MIN = 2002 // unistd.h:333:1:
  275. X_SC_SCHED_RT_TS = 2001 // unistd.h:332:1:
  276. X_SC_SEMAPHORES = 42 // unistd.h:267:1:
  277. X_SC_SEM_NSEMS_MAX = 89 // unistd.h:317:1:
  278. X_SC_SHARED_MEMORY_OBJECTS = 87 // unistd.h:314:1:
  279. X_SC_SHELL = 72 // unistd.h:297:1:
  280. X_SC_SIGQUEUE_MAX = 93 // unistd.h:321:1:
  281. X_SC_SPAWN = 86 // unistd.h:313:1:
  282. X_SC_SPIN_LOCKS = 45 // unistd.h:270:1:
  283. X_SC_STREAM_MAX = 26 // unistd.h:250:1:
  284. X_SC_SYMLOOP_MAX = 73 // unistd.h:298:1:
  285. X_SC_SYNCHRONIZED_IO = 31 // unistd.h:256:1:
  286. X_SC_THREADS = 41 // unistd.h:266:1:
  287. X_SC_THREAD_ATTR_STACKADDR = 61 // unistd.h:286:1:
  288. X_SC_THREAD_ATTR_STACKSIZE = 62 // unistd.h:287:1:
  289. X_SC_THREAD_CPUTIME = 91 // unistd.h:319:1:
  290. X_SC_THREAD_DESTRUCTOR_ITERATIONS = 57 // unistd.h:282:1:
  291. X_SC_THREAD_KEYS_MAX = 58 // unistd.h:283:1:
  292. X_SC_THREAD_PRIORITY_SCHEDULING = 63 // unistd.h:288:1:
  293. X_SC_THREAD_PRIO_INHERIT = 64 // unistd.h:289:1:
  294. X_SC_THREAD_PRIO_PROTECT = 65 // unistd.h:290:1:
  295. X_SC_THREAD_PROCESS_SHARED = 66 // unistd.h:291:1:
  296. X_SC_THREAD_SAFE_FUNCTIONS = 67 // unistd.h:292:1:
  297. X_SC_THREAD_STACK_MIN = 59 // unistd.h:284:1:
  298. X_SC_THREAD_THREADS_MAX = 60 // unistd.h:285:1:
  299. X_SC_TIMERS = 44 // unistd.h:269:1:
  300. X_SC_TIMER_MAX = 88 // unistd.h:316:1:
  301. X_SC_TTY_NAME_MAX = 68 // unistd.h:293:1:
  302. X_SC_TZNAME_MAX = 27 // unistd.h:251:1:
  303. X_SC_V6_ILP32_OFF32 = 74 // unistd.h:301:1:
  304. X_SC_V6_ILP32_OFFBIG = 75 // unistd.h:302:1:
  305. X_SC_V6_LP64_OFF64 = 76 // unistd.h:303:1:
  306. X_SC_V6_LPBIG_OFFBIG = 77 // unistd.h:304:1:
  307. X_SC_VERSION = 8 // unistd.h:232:1:
  308. X_SC_XOPEN_SHM = 30 // unistd.h:255:1:
  309. X_SIZE_T = 0 // types.h:279:1:
  310. X_SYS_ANSI_H_ = 0 // ansi.h:33:1:
  311. X_SYS_BSWAP_H_ = 0 // bswap.h:6:1:
  312. X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
  313. X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
  314. X_SYS_COMMON_ANSI_H_ = 0 // common_ansi.h:33:1:
  315. X_SYS_COMMON_INT_LIMITS_H_ = 0 // common_int_limits.h:33:1:
  316. X_SYS_COMMON_INT_MWGWTYPES_H_ = 0 // common_int_mwgwtypes.h:33:1:
  317. X_SYS_COMMON_INT_TYPES_H_ = 0 // common_int_types.h:33:1:
  318. X_SYS_ENDIAN_H_ = 0 // endian.h:35:1:
  319. X_SYS_FD_SET_H_ = 0 // fd_set.h:35:1:
  320. X_SYS_NULL_H_ = 0 // null.h:9:1:
  321. X_SYS_STDINT_H_ = 0 // stdint.h:33:1:
  322. X_SYS_TYPES_H_ = 0 // types.h:40:1:
  323. X_SYS_UNISTD_H_ = 0 // unistd.h:35:1:
  324. X_UNISTD_H_ = 0 // unistd.h:64:1:
  325. X_XOPEN_SHM = 0 // unistd.h:169:1:
  326. )
  327. type Ptrdiff_t = int32 /* <builtin>:3:26 */
  328. type Size_t = uint32 /* <builtin>:9:23 */
  329. type Wchar_t = int32 /* <builtin>:15:24 */
  330. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  331. type X__float128 = float64 /* <builtin>:47:21 */
  332. // return true if value 'a' fits in type 't'
  333. // $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $
  334. // -
  335. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  336. // All rights reserved.
  337. //
  338. // This code is derived from software contributed to The NetBSD Foundation
  339. // by Matt Thomas of 3am Software Foundry.
  340. //
  341. // Redistribution and use in source and binary forms, with or without
  342. // modification, are permitted provided that the following conditions
  343. // are met:
  344. // 1. Redistributions of source code must retain the above copyright
  345. // notice, this list of conditions and the following disclaimer.
  346. // 2. Redistributions in binary form must reproduce the above copyright
  347. // notice, this list of conditions and the following disclaimer in the
  348. // documentation and/or other materials provided with the distribution.
  349. //
  350. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  351. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  352. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  353. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  354. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  355. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  356. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  357. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  358. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  359. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  360. // POSSIBILITY OF SUCH DAMAGE.
  361. // $NetBSD: common_int_types.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
  362. // -
  363. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  364. // All rights reserved.
  365. //
  366. // This code is derived from software contributed to The NetBSD Foundation
  367. // by Joerg Sonnenberger.
  368. //
  369. // Redistribution and use in source and binary forms, with or without
  370. // modification, are permitted provided that the following conditions
  371. // are met:
  372. // 1. Redistributions of source code must retain the above copyright
  373. // notice, this list of conditions and the following disclaimer.
  374. // 2. Redistributions in binary form must reproduce the above copyright
  375. // notice, this list of conditions and the following disclaimer in the
  376. // documentation and/or other materials provided with the distribution.
  377. //
  378. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  379. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  380. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  381. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  382. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  383. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  384. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  385. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  386. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  387. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  388. // POSSIBILITY OF SUCH DAMAGE.
  389. // 7.18.1 Integer types
  390. // 7.18.1.1 Exact-width integer types
  391. type X__int8_t = int8 /* common_int_types.h:45:27 */
  392. type X__uint8_t = uint8 /* common_int_types.h:46:27 */
  393. type X__int16_t = int16 /* common_int_types.h:47:27 */
  394. type X__uint16_t = uint16 /* common_int_types.h:48:27 */
  395. type X__int32_t = int32 /* common_int_types.h:49:27 */
  396. type X__uint32_t = uint32 /* common_int_types.h:50:27 */
  397. type X__int64_t = int64 /* common_int_types.h:51:27 */
  398. type X__uint64_t = uint64 /* common_int_types.h:52:27 */
  399. // 7.18.1.4 Integer types capable of holding object pointers
  400. type X__intptr_t = int32 /* common_int_types.h:58:27 */
  401. type X__uintptr_t = uint32 /* common_int_types.h:59:26 */
  402. // Types which are fundamental to the implementation and may appear in
  403. // more than one standard header are defined here. Standard headers
  404. // then use:
  405. // #ifdef _BSD_SIZE_T_
  406. // typedef _BSD_SIZE_T_ size_t;
  407. // #undef _BSD_SIZE_T_
  408. // #endif
  409. // $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $
  410. // -
  411. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  412. // All rights reserved.
  413. //
  414. // This code is derived from software contributed to The NetBSD Foundation
  415. // by Matt Thomas of 3am Software Foundry.
  416. //
  417. // Redistribution and use in source and binary forms, with or without
  418. // modification, are permitted provided that the following conditions
  419. // are met:
  420. // 1. Redistributions of source code must retain the above copyright
  421. // notice, this list of conditions and the following disclaimer.
  422. // 2. Redistributions in binary form must reproduce the above copyright
  423. // notice, this list of conditions and the following disclaimer in the
  424. // documentation and/or other materials provided with the distribution.
  425. //
  426. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  427. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  428. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  429. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  430. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  431. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  432. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  433. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  434. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  435. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  436. // POSSIBILITY OF SUCH DAMAGE.
  437. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  438. // * Copyright (c) 1991, 1993
  439. // The Regents of the University of California. All rights reserved.
  440. //
  441. // This code is derived from software contributed to Berkeley by
  442. // Berkeley Software Design, Inc.
  443. //
  444. // Redistribution and use in source and binary forms, with or without
  445. // modification, are permitted provided that the following conditions
  446. // are met:
  447. // 1. Redistributions of source code must retain the above copyright
  448. // notice, this list of conditions and the following disclaimer.
  449. // 2. Redistributions in binary form must reproduce the above copyright
  450. // notice, this list of conditions and the following disclaimer in the
  451. // documentation and/or other materials provided with the distribution.
  452. // 3. Neither the name of the University nor the names of its contributors
  453. // may be used to endorse or promote products derived from this software
  454. // without specific prior written permission.
  455. //
  456. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  457. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  458. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  459. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  460. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  461. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  462. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  463. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  464. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  465. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  466. // SUCH DAMAGE.
  467. //
  468. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  469. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  470. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  471. // Public domain.
  472. //
  473. // NOTE: Do not protect this header against multiple inclusion. Doing
  474. // so can have subtle side-effects due to header file inclusion order
  475. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  476. // protect each CPP macro that we want to supply.
  477. // Feature-test macros are defined by several standards, and allow an
  478. // application to specify what symbols they want the system headers to
  479. // expose, and hence what standard they want them to conform to.
  480. // There are two classes of feature-test macros. The first class
  481. // specify complete standards, and if one of these is defined, header
  482. // files will try to conform to the relevant standard. They are:
  483. //
  484. // ANSI macros:
  485. // _ANSI_SOURCE ANSI C89
  486. //
  487. // POSIX macros:
  488. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  489. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  490. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  491. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  492. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  493. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  494. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  495. //
  496. // X/Open macros:
  497. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  498. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  499. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  500. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  501. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  502. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  503. //
  504. // NetBSD macros:
  505. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  506. //
  507. // If more than one of these "major" feature-test macros is defined,
  508. // then the set of facilities provided (and namespace used) is the
  509. // union of that specified by the relevant standards, and in case of
  510. // conflict, the earlier standard in the above list has precedence (so
  511. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  512. // of rename() that's used is the POSIX one). If none of the "major"
  513. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  514. //
  515. // There are also "minor" feature-test macros, which enable extra
  516. // functionality in addition to some base standard. They should be
  517. // defined along with one of the "major" macros. The "minor" macros
  518. // are:
  519. //
  520. // _REENTRANT
  521. // _ISOC99_SOURCE
  522. // _ISOC11_SOURCE
  523. // _LARGEFILE_SOURCE Large File Support
  524. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  525. // $NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
  526. // -
  527. // Copyright (c) 1982, 1986, 1991, 1993, 1994
  528. // The Regents of the University of California. All rights reserved.
  529. // (c) UNIX System Laboratories, Inc.
  530. // All or some portions of this file are derived from material licensed
  531. // to the University of California by American Telephone and Telegraph
  532. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  533. // the permission of UNIX System Laboratories, Inc.
  534. //
  535. // Redistribution and use in source and binary forms, with or without
  536. // modification, are permitted provided that the following conditions
  537. // are met:
  538. // 1. Redistributions of source code must retain the above copyright
  539. // notice, this list of conditions and the following disclaimer.
  540. // 2. Redistributions in binary form must reproduce the above copyright
  541. // notice, this list of conditions and the following disclaimer in the
  542. // documentation and/or other materials provided with the distribution.
  543. // 3. Neither the name of the University nor the names of its contributors
  544. // may be used to endorse or promote products derived from this software
  545. // without specific prior written permission.
  546. //
  547. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  548. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  549. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  550. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  551. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  552. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  553. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  554. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  555. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  556. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  557. // SUCH DAMAGE.
  558. //
  559. // @(#)types.h 8.4 (Berkeley) 1/21/94
  560. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  561. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  562. // Public domain.
  563. //
  564. // NOTE: Do not protect this header against multiple inclusion. Doing
  565. // so can have subtle side-effects due to header file inclusion order
  566. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  567. // protect each CPP macro that we want to supply.
  568. // Feature-test macros are defined by several standards, and allow an
  569. // application to specify what symbols they want the system headers to
  570. // expose, and hence what standard they want them to conform to.
  571. // There are two classes of feature-test macros. The first class
  572. // specify complete standards, and if one of these is defined, header
  573. // files will try to conform to the relevant standard. They are:
  574. //
  575. // ANSI macros:
  576. // _ANSI_SOURCE ANSI C89
  577. //
  578. // POSIX macros:
  579. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  580. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  581. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  582. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  583. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  584. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  585. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  586. //
  587. // X/Open macros:
  588. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  589. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  590. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  591. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  592. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  593. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  594. //
  595. // NetBSD macros:
  596. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  597. //
  598. // If more than one of these "major" feature-test macros is defined,
  599. // then the set of facilities provided (and namespace used) is the
  600. // union of that specified by the relevant standards, and in case of
  601. // conflict, the earlier standard in the above list has precedence (so
  602. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  603. // of rename() that's used is the POSIX one). If none of the "major"
  604. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  605. //
  606. // There are also "minor" feature-test macros, which enable extra
  607. // functionality in addition to some base standard. They should be
  608. // defined along with one of the "major" macros. The "minor" macros
  609. // are:
  610. //
  611. // _REENTRANT
  612. // _ISOC99_SOURCE
  613. // _ISOC11_SOURCE
  614. // _LARGEFILE_SOURCE Large File Support
  615. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  616. // Machine type dependent parameters.
  617. // $NetBSD: types.h,v 1.38 2019/04/06 03:06:25 thorpej Exp $
  618. // Copyright (c) 1990 The Regents of the University of California.
  619. // All rights reserved.
  620. //
  621. // Redistribution and use in source and binary forms, with or without
  622. // modification, are permitted provided that the following conditions
  623. // are met:
  624. // 1. Redistributions of source code must retain the above copyright
  625. // notice, this list of conditions and the following disclaimer.
  626. // 2. Redistributions in binary form must reproduce the above copyright
  627. // notice, this list of conditions and the following disclaimer in the
  628. // documentation and/or other materials provided with the distribution.
  629. // 3. Neither the name of the University nor the names of its contributors
  630. // may be used to endorse or promote products derived from this software
  631. // without specific prior written permission.
  632. //
  633. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  634. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  635. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  636. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  637. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  638. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  639. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  640. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  641. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  642. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  643. // SUCH DAMAGE.
  644. //
  645. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  646. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  647. // * Copyright (c) 1991, 1993
  648. // The Regents of the University of California. All rights reserved.
  649. //
  650. // This code is derived from software contributed to Berkeley by
  651. // Berkeley Software Design, Inc.
  652. //
  653. // Redistribution and use in source and binary forms, with or without
  654. // modification, are permitted provided that the following conditions
  655. // are met:
  656. // 1. Redistributions of source code must retain the above copyright
  657. // notice, this list of conditions and the following disclaimer.
  658. // 2. Redistributions in binary form must reproduce the above copyright
  659. // notice, this list of conditions and the following disclaimer in the
  660. // documentation and/or other materials provided with the distribution.
  661. // 3. Neither the name of the University nor the names of its contributors
  662. // may be used to endorse or promote products derived from this software
  663. // without specific prior written permission.
  664. //
  665. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  666. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  667. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  668. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  669. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  670. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  671. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  672. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  673. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  674. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  675. // SUCH DAMAGE.
  676. //
  677. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  678. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  679. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  680. // Public domain.
  681. //
  682. // NOTE: Do not protect this header against multiple inclusion. Doing
  683. // so can have subtle side-effects due to header file inclusion order
  684. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  685. // protect each CPP macro that we want to supply.
  686. // Feature-test macros are defined by several standards, and allow an
  687. // application to specify what symbols they want the system headers to
  688. // expose, and hence what standard they want them to conform to.
  689. // There are two classes of feature-test macros. The first class
  690. // specify complete standards, and if one of these is defined, header
  691. // files will try to conform to the relevant standard. They are:
  692. //
  693. // ANSI macros:
  694. // _ANSI_SOURCE ANSI C89
  695. //
  696. // POSIX macros:
  697. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  698. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  699. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  700. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  701. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  702. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  703. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  704. //
  705. // X/Open macros:
  706. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  707. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  708. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  709. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  710. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  711. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  712. //
  713. // NetBSD macros:
  714. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  715. //
  716. // If more than one of these "major" feature-test macros is defined,
  717. // then the set of facilities provided (and namespace used) is the
  718. // union of that specified by the relevant standards, and in case of
  719. // conflict, the earlier standard in the above list has precedence (so
  720. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  721. // of rename() that's used is the POSIX one). If none of the "major"
  722. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  723. //
  724. // There are also "minor" feature-test macros, which enable extra
  725. // functionality in addition to some base standard. They should be
  726. // defined along with one of the "major" macros. The "minor" macros
  727. // are:
  728. //
  729. // _REENTRANT
  730. // _ISOC99_SOURCE
  731. // _ISOC11_SOURCE
  732. // _LARGEFILE_SOURCE Large File Support
  733. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  734. // $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $
  735. // -
  736. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  737. // All rights reserved.
  738. //
  739. // This code is derived from software contributed to The NetBSD Foundation
  740. // by Matt Thomas of 3am Software Foundry.
  741. //
  742. // Redistribution and use in source and binary forms, with or without
  743. // modification, are permitted provided that the following conditions
  744. // are met:
  745. // 1. Redistributions of source code must retain the above copyright
  746. // notice, this list of conditions and the following disclaimer.
  747. // 2. Redistributions in binary form must reproduce the above copyright
  748. // notice, this list of conditions and the following disclaimer in the
  749. // documentation and/or other materials provided with the distribution.
  750. //
  751. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  752. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  753. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  754. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  755. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  756. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  757. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  758. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  759. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  760. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  761. // POSSIBILITY OF SUCH DAMAGE.
  762. // This should have always been an 8-bit type, but since it's been exposed
  763. // to user-space, we don't want ABI breakage there.
  764. type X__cpu_simple_lock_nv_t = int32 /* types.h:75:14 */
  765. type X__register_t = int32 /* types.h:77:14 */
  766. // $NetBSD: ansi.h,v 1.18 2019/05/07 03:49:26 kamil Exp $
  767. // $NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
  768. // -
  769. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  770. // All rights reserved.
  771. //
  772. // This code is derived from software contributed to The NetBSD Foundation
  773. // by Matt Thomas of 3am Software Foundry.
  774. //
  775. // Redistribution and use in source and binary forms, with or without
  776. // modification, are permitted provided that the following conditions
  777. // are met:
  778. // 1. Redistributions of source code must retain the above copyright
  779. // notice, this list of conditions and the following disclaimer.
  780. // 2. Redistributions in binary form must reproduce the above copyright
  781. // notice, this list of conditions and the following disclaimer in the
  782. // documentation and/or other materials provided with the distribution.
  783. //
  784. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  785. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  786. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  787. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  788. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  789. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  790. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  791. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  792. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  793. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  794. // POSSIBILITY OF SUCH DAMAGE.
  795. // $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $
  796. // -
  797. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  798. // All rights reserved.
  799. //
  800. // This code is derived from software contributed to The NetBSD Foundation
  801. // by Matt Thomas of 3am Software Foundry.
  802. //
  803. // Redistribution and use in source and binary forms, with or without
  804. // modification, are permitted provided that the following conditions
  805. // are met:
  806. // 1. Redistributions of source code must retain the above copyright
  807. // notice, this list of conditions and the following disclaimer.
  808. // 2. Redistributions in binary form must reproduce the above copyright
  809. // notice, this list of conditions and the following disclaimer in the
  810. // documentation and/or other materials provided with the distribution.
  811. //
  812. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  813. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  814. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  815. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  816. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  817. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  818. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  819. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  820. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  821. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  822. // POSSIBILITY OF SUCH DAMAGE.
  823. // $NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
  824. // -
  825. // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
  826. // All rights reserved.
  827. //
  828. // This code is derived from software contributed to The NetBSD Foundation
  829. // by Jun-ichiro itojun Hagino and by Klaus Klein.
  830. //
  831. // Redistribution and use in source and binary forms, with or without
  832. // modification, are permitted provided that the following conditions
  833. // are met:
  834. // 1. Redistributions of source code must retain the above copyright
  835. // notice, this list of conditions and the following disclaimer.
  836. // 2. Redistributions in binary form must reproduce the above copyright
  837. // notice, this list of conditions and the following disclaimer in the
  838. // documentation and/or other materials provided with the distribution.
  839. //
  840. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  841. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  842. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  843. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  844. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  845. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  846. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  847. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  848. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  849. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  850. // POSSIBILITY OF SUCH DAMAGE.
  851. // $NetBSD: ansi.h,v 1.18 2019/05/07 03:49:26 kamil Exp $
  852. // $NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $
  853. // -
  854. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  855. // All rights reserved.
  856. //
  857. // This code is derived from software contributed to The NetBSD Foundation
  858. // by Matt Thomas of 3am Software Foundry.
  859. //
  860. // Redistribution and use in source and binary forms, with or without
  861. // modification, are permitted provided that the following conditions
  862. // are met:
  863. // 1. Redistributions of source code must retain the above copyright
  864. // notice, this list of conditions and the following disclaimer.
  865. // 2. Redistributions in binary form must reproduce the above copyright
  866. // notice, this list of conditions and the following disclaimer in the
  867. // documentation and/or other materials provided with the distribution.
  868. //
  869. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  870. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  871. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  872. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  873. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  874. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  875. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  876. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  877. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  878. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  879. // POSSIBILITY OF SUCH DAMAGE.
  880. type X__caddr_t = uintptr /* ansi.h:37:14 */ // core address
  881. type X__gid_t = X__uint32_t /* ansi.h:38:20 */ // group id
  882. type X__in_addr_t = X__uint32_t /* ansi.h:39:20 */ // IP(v4) address
  883. type X__in_port_t = X__uint16_t /* ansi.h:40:20 */ // "Internet" port number
  884. type X__mode_t = X__uint32_t /* ansi.h:41:20 */ // file permissions
  885. type X__off_t = X__int64_t /* ansi.h:42:19 */ // file offset
  886. type X__pid_t = X__int32_t /* ansi.h:43:19 */ // process id
  887. type X__sa_family_t = X__uint8_t /* ansi.h:44:19 */ // socket address family
  888. type X__socklen_t = uint32 /* ansi.h:45:22 */ // socket-related datum length
  889. type X__uid_t = X__uint32_t /* ansi.h:46:20 */ // user id
  890. type X__fsblkcnt_t = X__uint64_t /* ansi.h:47:20 */ // fs block count (statvfs)
  891. type X__fsfilcnt_t = X__uint64_t /* ansi.h:48:20 */
  892. type X__wctrans_t = uintptr /* ansi.h:51:32 */
  893. type X__wctype_t = uintptr /* ansi.h:54:31 */
  894. // mbstate_t is an opaque object to keep conversion state, during multibyte
  895. // stream conversions. The content must not be referenced by user programs.
  896. type X__mbstate_t = struct {
  897. F__mbstateL X__int64_t
  898. F__ccgo_pad1 [120]byte
  899. } /* ansi.h:63:3 */
  900. type X__va_list = X__builtin_va_list /* ansi.h:72:27 */
  901. type Int8_t = X__int8_t /* types.h:54:18 */
  902. type Uint8_t = X__uint8_t /* types.h:59:19 */
  903. type Int16_t = X__int16_t /* types.h:64:19 */
  904. type Uint16_t = X__uint16_t /* types.h:69:20 */
  905. type Int32_t = X__int32_t /* types.h:74:19 */
  906. type Uint32_t = X__uint32_t /* types.h:79:20 */
  907. type Int64_t = X__int64_t /* types.h:84:19 */
  908. type Uint64_t = X__uint64_t /* types.h:89:20 */
  909. type U_int8_t = Uint8_t /* types.h:93:18 */
  910. type U_int16_t = Uint16_t /* types.h:94:18 */
  911. type U_int32_t = Uint32_t /* types.h:95:18 */
  912. type U_int64_t = Uint64_t /* types.h:96:18 */
  913. // $NetBSD: endian.h,v 1.3 2001/06/23 12:20:27 bjh21 Exp $
  914. // $NetBSD: endian.h,v 1.30 2016/02/27 21:37:35 christos Exp $
  915. // Copyright (c) 1987, 1991, 1993
  916. // The Regents of the University of California. All rights reserved.
  917. //
  918. // Redistribution and use in source and binary forms, with or without
  919. // modification, are permitted provided that the following conditions
  920. // are met:
  921. // 1. Redistributions of source code must retain the above copyright
  922. // notice, this list of conditions and the following disclaimer.
  923. // 2. Redistributions in binary form must reproduce the above copyright
  924. // notice, this list of conditions and the following disclaimer in the
  925. // documentation and/or other materials provided with the distribution.
  926. // 3. Neither the name of the University nor the names of its contributors
  927. // may be used to endorse or promote products derived from this software
  928. // without specific prior written permission.
  929. //
  930. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  931. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  932. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  933. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  934. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  935. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  936. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  937. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  938. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  939. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  940. // SUCH DAMAGE.
  941. //
  942. // @(#)endian.h 8.1 (Berkeley) 6/11/93
  943. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  944. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  945. // Public domain.
  946. //
  947. // NOTE: Do not protect this header against multiple inclusion. Doing
  948. // so can have subtle side-effects due to header file inclusion order
  949. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  950. // protect each CPP macro that we want to supply.
  951. // Feature-test macros are defined by several standards, and allow an
  952. // application to specify what symbols they want the system headers to
  953. // expose, and hence what standard they want them to conform to.
  954. // There are two classes of feature-test macros. The first class
  955. // specify complete standards, and if one of these is defined, header
  956. // files will try to conform to the relevant standard. They are:
  957. //
  958. // ANSI macros:
  959. // _ANSI_SOURCE ANSI C89
  960. //
  961. // POSIX macros:
  962. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  963. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  964. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  965. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  966. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  967. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  968. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  969. //
  970. // X/Open macros:
  971. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  972. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  973. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  974. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  975. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  976. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  977. //
  978. // NetBSD macros:
  979. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  980. //
  981. // If more than one of these "major" feature-test macros is defined,
  982. // then the set of facilities provided (and namespace used) is the
  983. // union of that specified by the relevant standards, and in case of
  984. // conflict, the earlier standard in the above list has precedence (so
  985. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  986. // of rename() that's used is the POSIX one). If none of the "major"
  987. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  988. //
  989. // There are also "minor" feature-test macros, which enable extra
  990. // functionality in addition to some base standard. They should be
  991. // defined along with one of the "major" macros. The "minor" macros
  992. // are:
  993. //
  994. // _REENTRANT
  995. // _ISOC99_SOURCE
  996. // _ISOC11_SOURCE
  997. // _LARGEFILE_SOURCE Large File Support
  998. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  999. // Definitions for byte order, according to byte significance from low
  1000. // address to high.
  1001. // C-family endian-ness definitions
  1002. // $NetBSD: ansi.h,v 1.14 2011/07/17 20:54:54 joerg Exp $
  1003. // -
  1004. // Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
  1005. // All rights reserved.
  1006. //
  1007. // This code is derived from software contributed to The NetBSD Foundation
  1008. // by Jun-ichiro itojun Hagino and by Klaus Klein.
  1009. //
  1010. // Redistribution and use in source and binary forms, with or without
  1011. // modification, are permitted provided that the following conditions
  1012. // are met:
  1013. // 1. Redistributions of source code must retain the above copyright
  1014. // notice, this list of conditions and the following disclaimer.
  1015. // 2. Redistributions in binary form must reproduce the above copyright
  1016. // notice, this list of conditions and the following disclaimer in the
  1017. // documentation and/or other materials provided with the distribution.
  1018. //
  1019. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1020. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1021. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1022. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1023. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1024. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1025. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1026. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1027. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1028. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1029. // POSSIBILITY OF SUCH DAMAGE.
  1030. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  1031. // * Copyright (c) 1991, 1993
  1032. // The Regents of the University of California. All rights reserved.
  1033. //
  1034. // This code is derived from software contributed to Berkeley by
  1035. // Berkeley Software Design, Inc.
  1036. //
  1037. // Redistribution and use in source and binary forms, with or without
  1038. // modification, are permitted provided that the following conditions
  1039. // are met:
  1040. // 1. Redistributions of source code must retain the above copyright
  1041. // notice, this list of conditions and the following disclaimer.
  1042. // 2. Redistributions in binary form must reproduce the above copyright
  1043. // notice, this list of conditions and the following disclaimer in the
  1044. // documentation and/or other materials provided with the distribution.
  1045. // 3. Neither the name of the University nor the names of its contributors
  1046. // may be used to endorse or promote products derived from this software
  1047. // without specific prior written permission.
  1048. //
  1049. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1050. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1051. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1052. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1053. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1054. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1055. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1056. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1057. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1058. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1059. // SUCH DAMAGE.
  1060. //
  1061. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1062. // $NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
  1063. // -
  1064. // Copyright (c) 1982, 1986, 1991, 1993, 1994
  1065. // The Regents of the University of California. All rights reserved.
  1066. // (c) UNIX System Laboratories, Inc.
  1067. // All or some portions of this file are derived from material licensed
  1068. // to the University of California by American Telephone and Telegraph
  1069. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1070. // the permission of UNIX System Laboratories, Inc.
  1071. //
  1072. // Redistribution and use in source and binary forms, with or without
  1073. // modification, are permitted provided that the following conditions
  1074. // are met:
  1075. // 1. Redistributions of source code must retain the above copyright
  1076. // notice, this list of conditions and the following disclaimer.
  1077. // 2. Redistributions in binary form must reproduce the above copyright
  1078. // notice, this list of conditions and the following disclaimer in the
  1079. // documentation and/or other materials provided with the distribution.
  1080. // 3. Neither the name of the University nor the names of its contributors
  1081. // may be used to endorse or promote products derived from this software
  1082. // without specific prior written permission.
  1083. //
  1084. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1085. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1086. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1087. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1088. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1089. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1090. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1091. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1092. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1093. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1094. // SUCH DAMAGE.
  1095. //
  1096. // @(#)types.h 8.4 (Berkeley) 1/21/94
  1097. type In_addr_t = X__in_addr_t /* endian.h:58:21 */
  1098. type In_port_t = X__in_port_t /* endian.h:63:21 */
  1099. // $NetBSD: bswap.h,v 1.19 2015/03/12 15:28:16 christos Exp $
  1100. // Written by Manuel Bouyer. Public domain
  1101. // $NetBSD: stdint.h,v 1.8 2018/11/06 16:26:44 maya Exp $
  1102. // -
  1103. // Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
  1104. // All rights reserved.
  1105. //
  1106. // This code is derived from software contributed to The NetBSD Foundation
  1107. // by Klaus Klein.
  1108. //
  1109. // Redistribution and use in source and binary forms, with or without
  1110. // modification, are permitted provided that the following conditions
  1111. // are met:
  1112. // 1. Redistributions of source code must retain the above copyright
  1113. // notice, this list of conditions and the following disclaimer.
  1114. // 2. Redistributions in binary form must reproduce the above copyright
  1115. // notice, this list of conditions and the following disclaimer in the
  1116. // documentation and/or other materials provided with the distribution.
  1117. //
  1118. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1119. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1120. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1121. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1122. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1123. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1124. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1125. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1126. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1127. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1128. // POSSIBILITY OF SUCH DAMAGE.
  1129. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  1130. // * Copyright (c) 1991, 1993
  1131. // The Regents of the University of California. All rights reserved.
  1132. //
  1133. // This code is derived from software contributed to Berkeley by
  1134. // Berkeley Software Design, Inc.
  1135. //
  1136. // Redistribution and use in source and binary forms, with or without
  1137. // modification, are permitted provided that the following conditions
  1138. // are met:
  1139. // 1. Redistributions of source code must retain the above copyright
  1140. // notice, this list of conditions and the following disclaimer.
  1141. // 2. Redistributions in binary form must reproduce the above copyright
  1142. // notice, this list of conditions and the following disclaimer in the
  1143. // documentation and/or other materials provided with the distribution.
  1144. // 3. Neither the name of the University nor the names of its contributors
  1145. // may be used to endorse or promote products derived from this software
  1146. // without specific prior written permission.
  1147. //
  1148. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1149. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1150. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1151. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1152. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1153. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1154. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1155. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1156. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1157. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1158. // SUCH DAMAGE.
  1159. //
  1160. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1161. // $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $
  1162. // -
  1163. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  1164. // All rights reserved.
  1165. //
  1166. // This code is derived from software contributed to The NetBSD Foundation
  1167. // by Matt Thomas of 3am Software Foundry.
  1168. //
  1169. // Redistribution and use in source and binary forms, with or without
  1170. // modification, are permitted provided that the following conditions
  1171. // are met:
  1172. // 1. Redistributions of source code must retain the above copyright
  1173. // notice, this list of conditions and the following disclaimer.
  1174. // 2. Redistributions in binary form must reproduce the above copyright
  1175. // notice, this list of conditions and the following disclaimer in the
  1176. // documentation and/or other materials provided with the distribution.
  1177. //
  1178. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1179. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1180. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1181. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1182. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1183. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1184. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1185. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1186. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1187. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1188. // POSSIBILITY OF SUCH DAMAGE.
  1189. type Intptr_t = X__intptr_t /* stdint.h:79:20 */
  1190. type Uintptr_t = X__uintptr_t /* stdint.h:84:21 */
  1191. // $NetBSD: int_mwgwtypes.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  1192. // -
  1193. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  1194. // All rights reserved.
  1195. //
  1196. // This code is derived from software contributed to The NetBSD Foundation
  1197. // by Matt Thomas of 3am Software Foundry.
  1198. //
  1199. // Redistribution and use in source and binary forms, with or without
  1200. // modification, are permitted provided that the following conditions
  1201. // are met:
  1202. // 1. Redistributions of source code must retain the above copyright
  1203. // notice, this list of conditions and the following disclaimer.
  1204. // 2. Redistributions in binary form must reproduce the above copyright
  1205. // notice, this list of conditions and the following disclaimer in the
  1206. // documentation and/or other materials provided with the distribution.
  1207. //
  1208. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1209. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1210. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1211. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1212. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1213. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1214. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1215. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1216. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1217. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1218. // POSSIBILITY OF SUCH DAMAGE.
  1219. // $NetBSD: common_int_mwgwtypes.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
  1220. // -
  1221. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  1222. // All rights reserved.
  1223. //
  1224. // This code is derived from software contributed to The NetBSD Foundation
  1225. // by Joerg Sonnenberger.
  1226. //
  1227. // Redistribution and use in source and binary forms, with or without
  1228. // modification, are permitted provided that the following conditions
  1229. // are met:
  1230. // 1. Redistributions of source code must retain the above copyright
  1231. // notice, this list of conditions and the following disclaimer.
  1232. // 2. Redistributions in binary form must reproduce the above copyright
  1233. // notice, this list of conditions and the following disclaimer in the
  1234. // documentation and/or other materials provided with the distribution.
  1235. //
  1236. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1237. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1238. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1239. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1240. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1241. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1242. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1243. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1244. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1245. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1246. // POSSIBILITY OF SUCH DAMAGE.
  1247. // 7.18.1 Integer types
  1248. // 7.18.1.2 Minimum-width integer types
  1249. type Int_least8_t = int8 /* common_int_mwgwtypes.h:45:32 */
  1250. type Uint_least8_t = uint8 /* common_int_mwgwtypes.h:46:32 */
  1251. type Int_least16_t = int16 /* common_int_mwgwtypes.h:47:32 */
  1252. type Uint_least16_t = uint16 /* common_int_mwgwtypes.h:48:32 */
  1253. type Int_least32_t = int32 /* common_int_mwgwtypes.h:49:32 */
  1254. type Uint_least32_t = uint32 /* common_int_mwgwtypes.h:50:32 */
  1255. type Int_least64_t = int64 /* common_int_mwgwtypes.h:51:32 */
  1256. type Uint_least64_t = uint64 /* common_int_mwgwtypes.h:52:32 */
  1257. // 7.18.1.3 Fastest minimum-width integer types
  1258. type Int_fast8_t = int32 /* common_int_mwgwtypes.h:55:32 */
  1259. type Uint_fast8_t = uint32 /* common_int_mwgwtypes.h:56:32 */
  1260. type Int_fast16_t = int32 /* common_int_mwgwtypes.h:57:32 */
  1261. type Uint_fast16_t = uint32 /* common_int_mwgwtypes.h:58:32 */
  1262. type Int_fast32_t = int32 /* common_int_mwgwtypes.h:59:32 */
  1263. type Uint_fast32_t = uint32 /* common_int_mwgwtypes.h:60:32 */
  1264. type Int_fast64_t = int64 /* common_int_mwgwtypes.h:61:32 */
  1265. type Uint_fast64_t = uint64 /* common_int_mwgwtypes.h:62:32 */
  1266. // 7.18.1.5 Greatest-width integer types
  1267. type Intmax_t = int64 /* common_int_mwgwtypes.h:66:33 */
  1268. type Uintmax_t = uint64 /* common_int_mwgwtypes.h:67:32 */
  1269. type U_char = uint8 /* types.h:101:23 */
  1270. type U_short = uint16 /* types.h:102:24 */
  1271. type U_int = uint32 /* types.h:103:22 */
  1272. type U_long = uint32 /* types.h:104:23 */
  1273. type Unchar = uint8 /* types.h:106:23 */ // Sys V compatibility
  1274. type Ushort = uint16 /* types.h:107:24 */ // Sys V compatibility
  1275. type Uint = uint32 /* types.h:108:22 */ // Sys V compatibility
  1276. type Ulong = uint32 /* types.h:109:23 */ // Sys V compatibility
  1277. type U_quad_t = Uint64_t /* types.h:112:18 */ // quads
  1278. type Quad_t = Int64_t /* types.h:113:18 */
  1279. type Qaddr_t = uintptr /* types.h:114:16 */
  1280. // The types longlong_t and u_longlong_t exist for use with the
  1281. // Sun-derived XDR routines involving these types, and their usage
  1282. // in other contexts is discouraged. Further note that these types
  1283. // may not be equivalent to "long long" and "unsigned long long",
  1284. // they are only guaranteed to be signed and unsigned 64-bit types
  1285. // respectively. Portable programs that need 64-bit types should use
  1286. // the C99 types int64_t and uint64_t instead.
  1287. type Longlong_t = Int64_t /* types.h:126:18 */ // for XDR
  1288. type U_longlong_t = Uint64_t /* types.h:127:18 */ // for XDR
  1289. type Blkcnt_t = Int64_t /* types.h:129:18 */ // fs block count
  1290. type Blksize_t = Int32_t /* types.h:130:18 */ // fs optimal block size
  1291. type Fsblkcnt_t = X__fsblkcnt_t /* types.h:133:22 */ // fs block count (statvfs)
  1292. type Fsfilcnt_t = X__fsfilcnt_t /* types.h:138:22 */ // fs file count
  1293. // We don't and shouldn't use caddr_t in the kernel anymore
  1294. type Caddr_t = X__caddr_t /* types.h:145:19 */ // core address
  1295. type Daddr_t = Int64_t /* types.h:154:18 */ // disk address
  1296. type Dev_t = Uint64_t /* types.h:157:18 */ // device number
  1297. type Fixpt_t = Uint32_t /* types.h:158:18 */ // fixed point number
  1298. type Gid_t = X__gid_t /* types.h:161:18 */ // group id
  1299. type Id_t = Uint32_t /* types.h:165:18 */ // group id, process id or user id
  1300. type Ino_t = Uint64_t /* types.h:166:18 */ // inode number
  1301. type Key_t = int32 /* types.h:167:15 */ // IPC key (for Sys V IPC)
  1302. type Mode_t = X__mode_t /* types.h:170:18 */ // permissions
  1303. type Nlink_t = Uint32_t /* types.h:174:18 */ // link count
  1304. type Off_t = X__off_t /* types.h:177:18 */ // file offset
  1305. type Pid_t = X__pid_t /* types.h:182:18 */ // process id
  1306. type Lwpid_t = Int32_t /* types.h:185:18 */ // LWP id
  1307. type Rlim_t = Uint64_t /* types.h:186:18 */ // resource limit
  1308. type Segsz_t = Int32_t /* types.h:187:18 */ // segment size
  1309. type Swblk_t = Int32_t /* types.h:188:18 */ // swap offset
  1310. type Uid_t = X__uid_t /* types.h:191:18 */ // user id
  1311. type Mqd_t = int32 /* types.h:195:14 */
  1312. type Cpuid_t = uint32 /* types.h:197:23 */
  1313. type Psetid_t = int32 /* types.h:199:14 */
  1314. type X__cpu_simple_lock_t = X__cpu_simple_lock_nv_t /* types.h:201:41 */
  1315. // Major, minor numbers, dev_t's.
  1316. type X__devmajor_t = Int32_t /* types.h:255:17 */
  1317. type X__devminor_t = Int32_t /* types.h:255:31 */
  1318. type Clock_t = uint32 /* types.h:268:24 */
  1319. type Ssize_t = int32 /* types.h:284:24 */
  1320. type Time_t = X__int64_t /* types.h:289:23 */
  1321. type Clockid_t = int32 /* types.h:294:26 */
  1322. type Timer_t = int32 /* types.h:299:24 */
  1323. type Suseconds_t = int32 /* types.h:304:27 */
  1324. type Useconds_t = uint32 /* types.h:309:26 */
  1325. // $NetBSD: fd_set.h,v 1.7 2018/06/24 12:05:40 kamil Exp $
  1326. // -
  1327. // Copyright (c) 1992, 1993
  1328. // The Regents of the University of California. All rights reserved.
  1329. //
  1330. // Redistribution and use in source and binary forms, with or without
  1331. // modification, are permitted provided that the following conditions
  1332. // are met:
  1333. // 1. Redistributions of source code must retain the above copyright
  1334. // notice, this list of conditions and the following disclaimer.
  1335. // 2. Redistributions in binary form must reproduce the above copyright
  1336. // notice, this list of conditions and the following disclaimer in the
  1337. // documentation and/or other materials provided with the distribution.
  1338. // 3. Neither the name of the University nor the names of its contributors
  1339. // may be used to endorse or promote products derived from this software
  1340. // without specific prior written permission.
  1341. //
  1342. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1343. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1344. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1345. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1346. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1347. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1348. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1349. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1350. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1351. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1352. // SUCH DAMAGE.
  1353. //
  1354. // from: @(#)types.h 8.4 (Berkeley) 1/21/94
  1355. // $NetBSD: cdefs.h,v 1.141 2019/02/21 21:34:05 christos Exp $
  1356. // * Copyright (c) 1991, 1993
  1357. // The Regents of the University of California. All rights reserved.
  1358. //
  1359. // This code is derived from software contributed to Berkeley by
  1360. // Berkeley Software Design, Inc.
  1361. //
  1362. // Redistribution and use in source and binary forms, with or without
  1363. // modification, are permitted provided that the following conditions
  1364. // are met:
  1365. // 1. Redistributions of source code must retain the above copyright
  1366. // notice, this list of conditions and the following disclaimer.
  1367. // 2. Redistributions in binary form must reproduce the above copyright
  1368. // notice, this list of conditions and the following disclaimer in the
  1369. // documentation and/or other materials provided with the distribution.
  1370. // 3. Neither the name of the University nor the names of its contributors
  1371. // may be used to endorse or promote products derived from this software
  1372. // without specific prior written permission.
  1373. //
  1374. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1375. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1376. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1377. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1378. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1379. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1380. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1381. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1382. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1383. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1384. // SUCH DAMAGE.
  1385. //
  1386. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1387. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  1388. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  1389. // Public domain.
  1390. //
  1391. // NOTE: Do not protect this header against multiple inclusion. Doing
  1392. // so can have subtle side-effects due to header file inclusion order
  1393. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  1394. // protect each CPP macro that we want to supply.
  1395. // Feature-test macros are defined by several standards, and allow an
  1396. // application to specify what symbols they want the system headers to
  1397. // expose, and hence what standard they want them to conform to.
  1398. // There are two classes of feature-test macros. The first class
  1399. // specify complete standards, and if one of these is defined, header
  1400. // files will try to conform to the relevant standard. They are:
  1401. //
  1402. // ANSI macros:
  1403. // _ANSI_SOURCE ANSI C89
  1404. //
  1405. // POSIX macros:
  1406. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  1407. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  1408. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  1409. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  1410. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  1411. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  1412. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  1413. //
  1414. // X/Open macros:
  1415. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  1416. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  1417. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  1418. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  1419. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  1420. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  1421. //
  1422. // NetBSD macros:
  1423. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  1424. //
  1425. // If more than one of these "major" feature-test macros is defined,
  1426. // then the set of facilities provided (and namespace used) is the
  1427. // union of that specified by the relevant standards, and in case of
  1428. // conflict, the earlier standard in the above list has precedence (so
  1429. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  1430. // of rename() that's used is the POSIX one). If none of the "major"
  1431. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  1432. //
  1433. // There are also "minor" feature-test macros, which enable extra
  1434. // functionality in addition to some base standard. They should be
  1435. // defined along with one of the "major" macros. The "minor" macros
  1436. // are:
  1437. //
  1438. // _REENTRANT
  1439. // _ISOC99_SOURCE
  1440. // _ISOC11_SOURCE
  1441. // _LARGEFILE_SOURCE Large File Support
  1442. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  1443. // $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $
  1444. // -
  1445. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  1446. // All rights reserved.
  1447. //
  1448. // This code is derived from software contributed to The NetBSD Foundation
  1449. // by Matt Thomas of 3am Software Foundry.
  1450. //
  1451. // Redistribution and use in source and binary forms, with or without
  1452. // modification, are permitted provided that the following conditions
  1453. // are met:
  1454. // 1. Redistributions of source code must retain the above copyright
  1455. // notice, this list of conditions and the following disclaimer.
  1456. // 2. Redistributions in binary form must reproduce the above copyright
  1457. // notice, this list of conditions and the following disclaimer in the
  1458. // documentation and/or other materials provided with the distribution.
  1459. //
  1460. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1461. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1462. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1463. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1464. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1465. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1466. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1467. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1468. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1469. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1470. // POSSIBILITY OF SUCH DAMAGE.
  1471. // Implementation dependent defines, hidden from user space.
  1472. // POSIX does not specify them.
  1473. type X__fd_mask = X__uint32_t /* fd_set.h:46:20 */
  1474. // 32 = 2 ^ 5
  1475. // Select uses bit fields of file descriptors. These macros manipulate
  1476. // such bit fields. Note: FD_SETSIZE may be defined by the user.
  1477. type Fd_set1 = struct{ Ffds_bits [8]X__fd_mask } /* fd_set.h:66:9 */
  1478. // 32 = 2 ^ 5
  1479. // Select uses bit fields of file descriptors. These macros manipulate
  1480. // such bit fields. Note: FD_SETSIZE may be defined by the user.
  1481. type Fd_set = Fd_set1 /* fd_set.h:68:3 */
  1482. // Expose our internals if we are not required to hide them.
  1483. type Kauth_cred_t = uintptr /* types.h:318:27 */
  1484. type Pri_t = int32 /* types.h:320:13 */
  1485. // $NetBSD: pthread_types.h,v 1.23 2017/09/09 23:21:45 kamil Exp $
  1486. // -
  1487. // Copyright (c) 2001, 2008 The NetBSD Foundation, Inc.
  1488. // All rights reserved.
  1489. //
  1490. // This code is derived from software contributed to The NetBSD Foundation
  1491. // by Nathan J. Williams.
  1492. //
  1493. // Redistribution and use in source and binary forms, with or without
  1494. // modification, are permitted provided that the following conditions
  1495. // are met:
  1496. // 1. Redistributions of source code must retain the above copyright
  1497. // notice, this list of conditions and the following disclaimer.
  1498. // 2. Redistributions in binary form must reproduce the above copyright
  1499. // notice, this list of conditions and the following disclaimer in the
  1500. // documentation and/or other materials provided with the distribution.
  1501. //
  1502. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  1503. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  1504. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  1505. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  1506. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  1507. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  1508. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  1509. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  1510. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  1511. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  1512. // POSSIBILITY OF SUCH DAMAGE.
  1513. // We use the "pthread_spin_t" name internally; "pthread_spinlock_t" is the
  1514. // POSIX spinlock object.
  1515. //
  1516. // C++ expects to be using PTHREAD_FOO_INITIALIZER as a member initializer.
  1517. // This does not work for volatile types. Since C++ does not touch the guts
  1518. // of those types, we do not include volatile in the C++ definitions.
  1519. type Pthread_spin_t = X__cpu_simple_lock_t /* pthread_types.h:43:29 */
  1520. type X__pthread_spin_t = Pthread_spin_t /* pthread_types.h:48:24 */
  1521. // Copied from PTQ_HEAD in pthread_queue.h
  1522. type Pthread_queue_struct_t = struct {
  1523. Fptqh_first uintptr
  1524. Fptqh_last uintptr
  1525. } /* pthread_types.h:61:1 */
  1526. type Pthread_queue_t = Pthread_queue_struct_t /* pthread_types.h:62:39 */
  1527. type X__pthread_attr_st = struct {
  1528. Fpta_magic uint32
  1529. Fpta_flags int32
  1530. Fpta_private uintptr
  1531. } /* pthread_types.h:65:1 */
  1532. type X__pthread_mutex_st = struct {
  1533. Fptm_magic uint32
  1534. Fptm_errorcheck X__pthread_spin_t
  1535. F__8 struct {
  1536. F__ccgo_pad1 [0]uint32
  1537. Fptm_ceiling uint8
  1538. F__ccgo_pad2 [3]byte
  1539. }
  1540. Fptm_owner Pthread_t
  1541. Fptm_waiters uintptr
  1542. Fptm_recursed uint32
  1543. Fptm_spare2 uintptr
  1544. } /* pthread_types.h:66:1 */
  1545. type X__pthread_mutexattr_st = struct {
  1546. Fptma_magic uint32
  1547. Fptma_private uintptr
  1548. } /* pthread_types.h:67:1 */
  1549. type X__pthread_cond_st = struct {
  1550. Fptc_magic uint32
  1551. Fptc_lock X__pthread_spin_t
  1552. Fptc_waiters Pthread_queue_t
  1553. Fptc_mutex uintptr
  1554. Fptc_private uintptr
  1555. } /* pthread_types.h:68:1 */
  1556. type X__pthread_condattr_st = struct {
  1557. Fptca_magic uint32
  1558. Fptca_private uintptr
  1559. } /* pthread_types.h:69:1 */
  1560. type X__pthread_rwlock_st = struct {
  1561. Fptr_magic uint32
  1562. Fptr_interlock X__pthread_spin_t
  1563. Fptr_rblocked Pthread_queue_t
  1564. Fptr_wblocked Pthread_queue_t
  1565. Fptr_nreaders uint32
  1566. Fptr_owner Pthread_t
  1567. Fptr_private uintptr
  1568. } /* pthread_types.h:71:1 */
  1569. type X__pthread_rwlockattr_st = struct {
  1570. Fptra_magic uint32
  1571. Fptra_private uintptr
  1572. } /* pthread_types.h:72:1 */
  1573. type X__pthread_barrier_st = struct {
  1574. Fptb_magic uint32
  1575. Fptb_lock Pthread_spin_t
  1576. Fptb_waiters Pthread_queue_t
  1577. Fptb_initcount uint32
  1578. Fptb_curcount uint32
  1579. Fptb_generation uint32
  1580. Fptb_private uintptr
  1581. } /* pthread_types.h:73:1 */
  1582. type X__pthread_barrierattr_st = struct {
  1583. Fptba_magic uint32
  1584. Fptba_private uintptr
  1585. } /* pthread_types.h:74:1 */
  1586. type Pthread_t = uintptr /* pthread_types.h:76:29 */
  1587. type Pthread_attr_t = X__pthread_attr_st /* pthread_types.h:77:34 */
  1588. type Pthread_mutex_t = X__pthread_mutex_st /* pthread_types.h:78:35 */
  1589. type Pthread_mutexattr_t = X__pthread_mutexattr_st /* pthread_types.h:79:39 */
  1590. type Pthread_cond_t = X__pthread_cond_st /* pthread_types.h:80:34 */
  1591. type Pthread_condattr_t = X__pthread_condattr_st /* pthread_types.h:81:38 */
  1592. type X__pthread_once_st = struct {
  1593. Fpto_mutex Pthread_mutex_t
  1594. Fpto_done int32
  1595. } /* pthread_types.h:82:9 */
  1596. type Pthread_once_t = X__pthread_once_st /* pthread_types.h:82:34 */
  1597. type X__pthread_spinlock_st = struct {
  1598. Fpts_magic uint32
  1599. Fpts_spin X__pthread_spin_t
  1600. Fpts_flags int32
  1601. } /* pthread_types.h:83:9 */
  1602. type Pthread_spinlock_t = X__pthread_spinlock_st /* pthread_types.h:83:38 */
  1603. type Pthread_rwlock_t = X__pthread_rwlock_st /* pthread_types.h:84:36 */
  1604. type Pthread_rwlockattr_t = X__pthread_rwlockattr_st /* pthread_types.h:85:40 */
  1605. type Pthread_barrier_t = X__pthread_barrier_st /* pthread_types.h:86:37 */
  1606. type Pthread_barrierattr_t = X__pthread_barrierattr_st /* pthread_types.h:87:41 */
  1607. type Pthread_key_t = int32 /* pthread_types.h:88:13 */ // getsubopt(3) external variable
  1608. var _ uint8 /* gen.c:2:13: */