unistd_freebsd_arm64.go 89 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780
  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_freebsd_amd64.go -pkgname unistd', DO NOT EDIT.
  2. package unistd
  3. import (
  4. "math"
  5. "reflect"
  6. "sync/atomic"
  7. "unsafe"
  8. )
  9. var _ = math.Pi
  10. var _ reflect.Kind
  11. var _ atomic.Value
  12. var _ unsafe.Pointer
  13. const (
  14. BIG_ENDIAN = 4321 // _endian.h:70:1:
  15. BYTE_ORDER = 1234 // _endian.h:72:1:
  16. CLOSE_RANGE_CLOEXEC = 4 // unistd.h:205:1:
  17. FD_SETSIZE = 1024 // select.h:61:1:
  18. F_LOCK = 1 // unistd.h:85:1:
  19. F_OK = 0 // unistd.h:102:1:
  20. F_TEST = 3 // unistd.h:87:1:
  21. F_TLOCK = 2 // unistd.h:86:1:
  22. F_ULOCK = 0 // unistd.h:84:1:
  23. LITTLE_ENDIAN = 1234 // _endian.h:69:1:
  24. L_INCR = 1 // unistd.h:121:1:
  25. L_SET = 0 // unistd.h:120:1:
  26. L_XTND = 2 // unistd.h:122:1:
  27. PDP_ENDIAN = 3412 // _endian.h:71:1:
  28. RFCENVG = 2048 // unistd.h:178:1:
  29. RFCFDG = 4096 // unistd.h:179:1:
  30. RFCNAMEG = 1024 // unistd.h:177:1:
  31. RFENVG = 2 // unistd.h:171:1:
  32. RFFDG = 4 // unistd.h:172:1:
  33. RFFLAGS = 2416930932 // unistd.h:195:1:
  34. RFHIGHPID = 262144 // unistd.h:184:1:
  35. RFKERNELONLY = 268828672 // unistd.h:198:1:
  36. RFLINUXTHPN = 65536 // unistd.h:182:1:
  37. RFMEM = 32 // unistd.h:175:1:
  38. RFNAMEG = 1 // unistd.h:170:1:
  39. RFNOTEG = 8 // unistd.h:173:1:
  40. RFNOWAIT = 64 // unistd.h:176:1:
  41. RFPPWAIT = 2147483648 // unistd.h:192:1:
  42. RFPROC = 16 // unistd.h:174:1:
  43. RFPROCDESC = 268435456 // unistd.h:190:1:
  44. RFSIGSHARE = 16384 // unistd.h:181:1:
  45. RFSPAWN = 2147483648 // unistd.h:194:1:
  46. RFSTOPPED = 131072 // unistd.h:183:1:
  47. RFTHREAD = 8192 // unistd.h:180:1:
  48. RFTSIGMASK = 0xFF // unistd.h:187:1:
  49. RFTSIGSHIFT = 20 // unistd.h:186:1:
  50. RFTSIGZMB = 524288 // unistd.h:185:1:
  51. R_OK = 0x04 // unistd.h:105:1:
  52. SEEK_CUR = 1 // unistd.h:110:1:
  53. SEEK_DATA = 3 // unistd.h:114:1:
  54. SEEK_END = 2 // unistd.h:111:1:
  55. SEEK_HOLE = 4 // unistd.h:115:1:
  56. SEEK_SET = 0 // unistd.h:109:1:
  57. STDERR_FILENO = 2 // unistd.h:81:1:
  58. STDIN_FILENO = 0 // unistd.h:79:1:
  59. STDOUT_FILENO = 1 // unistd.h:80:1:
  60. SWAPOFF_FORCE = 0x00000001 // unistd.h:200:1:
  61. W_OK = 0x02 // unistd.h:104:1:
  62. X_OK = 0x01 // unistd.h:103:1:
  63. X_ACCMODE_T_DECLARED = 0 // types.h:166:1:
  64. X_BIG_ENDIAN = 4321 // _endian.h:47:1:
  65. X_BLKCNT_T_DECLARED = 0 // types.h:90:1:
  66. X_BLKSIZE_T_DECLARED = 0 // types.h:81:1:
  67. X_BYTE_ORDER = 1234 // _endian.h:40:1:
  68. X_CAP_IOCTL_T_DECLARED = 0 // types.h:243:1:
  69. X_CAP_RIGHTS_T_DECLARED = 0 // types.h:248:1:
  70. X_CLOCKID_T_DECLARED = 0 // types.h:100:1:
  71. X_CLOCK_T_DECLARED = 0 // types.h:95:1:
  72. X_CS_PATH = 1 // unistd.h:302:1:
  73. X_CS_POSIX_V6_ILP32_OFF32_CFLAGS = 2 // unistd.h:306:1:
  74. X_CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 3 // unistd.h:307:1:
  75. X_CS_POSIX_V6_ILP32_OFF32_LIBS = 4 // unistd.h:308:1:
  76. X_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 5 // unistd.h:309:1:
  77. X_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 6 // unistd.h:310:1:
  78. X_CS_POSIX_V6_ILP32_OFFBIG_LIBS = 7 // unistd.h:311:1:
  79. X_CS_POSIX_V6_LP64_OFF64_CFLAGS = 8 // unistd.h:312:1:
  80. X_CS_POSIX_V6_LP64_OFF64_LDFLAGS = 9 // unistd.h:313:1:
  81. X_CS_POSIX_V6_LP64_OFF64_LIBS = 10 // unistd.h:314:1:
  82. X_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 11 // unistd.h:315:1:
  83. X_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 12 // unistd.h:316:1:
  84. X_CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 13 // unistd.h:317:1:
  85. X_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 14 // unistd.h:318:1:
  86. X_DEV_T_DECLARED = 0 // types.h:108:1:
  87. X_FFLAGS_T_DECLARED = 0 // types.h:113:1:
  88. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  89. X_FSBLKCNT_T_DECLARED = 0 // types.h:121:1:
  90. X_FTRUNCATE_DECLARED = 0 // types.h:417:1:
  91. X_GETOPT_DECLARED = 0 // unistd.h:378:1:
  92. X_GID_T_DECLARED = 0 // types.h:126:1:
  93. X_ID_T_DECLARED = 0 // types.h:141:1:
  94. X_INO_T_DECLARED = 0 // types.h:146:1:
  95. X_INT16_T_DECLARED = 0 // _stdint.h:42:1:
  96. X_INT32_T_DECLARED = 0 // _stdint.h:47:1:
  97. X_INT64_T_DECLARED = 0 // _stdint.h:52:1:
  98. X_INT8_T_DECLARED = 0 // _stdint.h:37:1:
  99. X_INTMAX_T_DECLARED = 0 // _stdint.h:85:1:
  100. X_INTPTR_T_DECLARED = 0 // _stdint.h:77:1:
  101. X_IN_ADDR_T_DECLARED = 0 // types.h:131:1:
  102. X_IN_PORT_T_DECLARED = 0 // types.h:136:1:
  103. X_KEY_T_DECLARED = 0 // types.h:151:1:
  104. X_LITTLE_ENDIAN = 1234 // _endian.h:46:1:
  105. X_LP64 = 1 // <predefined>:1:1:
  106. X_LSEEK_DECLARED = 0 // types.h:421:1:
  107. X_LWPID_T_DECLARED = 0 // types.h:156:1:
  108. X_MACHINE_ENDIAN_H_ = 0 // endian.h:36:1:
  109. X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
  110. X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
  111. X_MKDTEMP_DECLARED = 0 // unistd.h:528:1:
  112. X_MKNOD_DECLARED = 0 // unistd.h:532:1:
  113. X_MKSTEMP_DECLARED = 0 // unistd.h:536:1:
  114. X_MKTEMP_DECLARED = 0 // unistd.h:541:1:
  115. X_MMAP_DECLARED = 0 // types.h:425:1:
  116. X_MODE_T_DECLARED = 0 // types.h:161:1:
  117. X_MQD_T_DECLARED = 0 // types.h:227:1:
  118. X_NLINK_T_DECLARED = 0 // types.h:171:1:
  119. X_Nonnull = 0 // cdefs.h:790:1:
  120. X_Null_unspecified = 0 // cdefs.h:792:1:
  121. X_Nullable = 0 // cdefs.h:791:1:
  122. X_OFF64_T_DECLARED = 0 // types.h:181:1:
  123. X_OFF_T_DECLARED = 0 // types.h:176:1:
  124. X_OPTRESET_DECLARED = 0 // unistd.h:592:1:
  125. X_PC_ACL_EXTENDED = 59 // unistd.h:153:1:
  126. X_PC_ACL_NFS4 = 64 // unistd.h:158:1:
  127. X_PC_ACL_PATH_MAX = 60 // unistd.h:154:1:
  128. X_PC_ALLOC_SIZE_MIN = 10 // unistd.h:143:1:
  129. X_PC_ASYNC_IO = 53 // unistd.h:137:1:
  130. X_PC_CAP_PRESENT = 61 // unistd.h:155:1:
  131. X_PC_CHOWN_RESTRICTED = 7 // unistd.h:132:1:
  132. X_PC_FILESIZEBITS = 12 // unistd.h:144:1:
  133. X_PC_INF_PRESENT = 62 // unistd.h:156:1:
  134. X_PC_LINK_MAX = 1 // unistd.h:126:1:
  135. X_PC_MAC_PRESENT = 63 // unistd.h:157:1:
  136. X_PC_MAX_CANON = 2 // unistd.h:127:1:
  137. X_PC_MAX_INPUT = 3 // unistd.h:128:1:
  138. X_PC_MIN_HOLE_SIZE = 21 // unistd.h:162:1:
  139. X_PC_NAME_MAX = 4 // unistd.h:129:1:
  140. X_PC_NO_TRUNC = 8 // unistd.h:133:1:
  141. X_PC_PATH_MAX = 5 // unistd.h:130:1:
  142. X_PC_PIPE_BUF = 6 // unistd.h:131:1:
  143. X_PC_PRIO_IO = 54 // unistd.h:138:1:
  144. X_PC_REC_INCR_XFER_SIZE = 14 // unistd.h:145:1:
  145. X_PC_REC_MAX_XFER_SIZE = 15 // unistd.h:146:1:
  146. X_PC_REC_MIN_XFER_SIZE = 16 // unistd.h:147:1:
  147. X_PC_REC_XFER_ALIGN = 17 // unistd.h:148:1:
  148. X_PC_SYMLINK_MAX = 18 // unistd.h:149:1:
  149. X_PC_SYNC_IO = 55 // unistd.h:139:1:
  150. X_PC_VDISABLE = 9 // unistd.h:134:1:
  151. X_PDP_ENDIAN = 3412 // _endian.h:48:1:
  152. X_PID_T_DECLARED = 0 // types.h:186:1:
  153. X_POSIX2_CHAR_TERM = 1 // unistd.h:127:1:
  154. X_POSIX2_C_BIND = 200112 // unistd.h:125:1:
  155. X_POSIX2_C_DEV = -1 // unistd.h:126:1:
  156. X_POSIX2_FORT_DEV = -1 // unistd.h:128:1:
  157. X_POSIX2_FORT_RUN = 200112 // unistd.h:129:1:
  158. X_POSIX2_LOCALEDEF = -1 // unistd.h:130:1:
  159. X_POSIX2_PBS = -1 // unistd.h:131:1:
  160. X_POSIX2_PBS_ACCOUNTING = -1 // unistd.h:132:1:
  161. X_POSIX2_PBS_CHECKPOINT = -1 // unistd.h:133:1:
  162. X_POSIX2_PBS_LOCATE = -1 // unistd.h:134:1:
  163. X_POSIX2_PBS_MESSAGE = -1 // unistd.h:135:1:
  164. X_POSIX2_PBS_TRACK = -1 // unistd.h:136:1:
  165. X_POSIX2_SW_DEV = -1 // unistd.h:137:1:
  166. X_POSIX2_UPE = 200112 // unistd.h:138:1:
  167. X_POSIX2_VERSION = 199212 // unistd.h:154:1:
  168. X_POSIX_ADVISORY_INFO = 200112 // unistd.h:54:1:
  169. X_POSIX_ASYNCHRONOUS_IO = 200112 // unistd.h:55:1:
  170. X_POSIX_BARRIERS = 200112 // unistd.h:104:1:
  171. X_POSIX_CHOWN_RESTRICTED = 1 // unistd.h:56:1:
  172. X_POSIX_CLOCK_SELECTION = -1 // unistd.h:57:1:
  173. X_POSIX_CPUTIME = 200112 // unistd.h:105:1:
  174. X_POSIX_FSYNC = 200112 // unistd.h:59:1:
  175. X_POSIX_IPV6 = 0 // unistd.h:60:1:
  176. X_POSIX_JOB_CONTROL = 1 // unistd.h:61:1:
  177. X_POSIX_MAPPED_FILES = 200112 // unistd.h:62:1:
  178. X_POSIX_MEMLOCK = -1 // unistd.h:63:1:
  179. X_POSIX_MEMLOCK_RANGE = 200112 // unistd.h:64:1:
  180. X_POSIX_MEMORY_PROTECTION = 200112 // unistd.h:65:1:
  181. X_POSIX_MESSAGE_PASSING = 200112 // unistd.h:66:1:
  182. X_POSIX_MONOTONIC_CLOCK = 200112 // unistd.h:67:1:
  183. X_POSIX_NO_TRUNC = 1 // unistd.h:68:1:
  184. X_POSIX_PRIORITIZED_IO = -1 // unistd.h:69:1:
  185. X_POSIX_PRIORITY_SCHEDULING = 0 // unistd.h:70:1:
  186. X_POSIX_RAW_SOCKETS = 200112 // unistd.h:71:1:
  187. X_POSIX_READER_WRITER_LOCKS = 200112 // unistd.h:106:1:
  188. X_POSIX_REALTIME_SIGNALS = 200112 // unistd.h:72:1:
  189. X_POSIX_REGEXP = 1 // unistd.h:107:1:
  190. X_POSIX_SEMAPHORES = 200112 // unistd.h:73:1:
  191. X_POSIX_SHARED_MEMORY_OBJECTS = 200112 // unistd.h:74:1:
  192. X_POSIX_SHELL = 1 // unistd.h:108:1:
  193. X_POSIX_SPAWN = 200112 // unistd.h:109:1:
  194. X_POSIX_SPIN_LOCKS = 200112 // unistd.h:110:1:
  195. X_POSIX_SPORADIC_SERVER = -1 // unistd.h:75:1:
  196. X_POSIX_SYNCHRONIZED_IO = -1 // unistd.h:76:1:
  197. X_POSIX_THREADS = 200112 // unistd.h:120:1:
  198. X_POSIX_THREAD_ATTR_STACKADDR = 200112 // unistd.h:111:1:
  199. X_POSIX_THREAD_ATTR_STACKSIZE = 200112 // unistd.h:112:1:
  200. X_POSIX_THREAD_CPUTIME = 200112 // unistd.h:113:1:
  201. X_POSIX_THREAD_PRIORITY_SCHEDULING = 200112 // unistd.h:116:1:
  202. X_POSIX_THREAD_PRIO_INHERIT = 200112 // unistd.h:114:1:
  203. X_POSIX_THREAD_PRIO_PROTECT = 200112 // unistd.h:115:1:
  204. X_POSIX_THREAD_PROCESS_SHARED = 200112 // unistd.h:117:1:
  205. X_POSIX_THREAD_SAFE_FUNCTIONS = -1 // unistd.h:118:1:
  206. X_POSIX_THREAD_SPORADIC_SERVER = -1 // unistd.h:119:1:
  207. X_POSIX_TIMEOUTS = 200112 // unistd.h:77:1:
  208. X_POSIX_TIMERS = 200112 // unistd.h:78:1:
  209. X_POSIX_TRACE = -1 // unistd.h:121:1:
  210. X_POSIX_TRACE_EVENT_FILTER = -1 // unistd.h:122:1:
  211. X_POSIX_TRACE_INHERIT = -1 // unistd.h:123:1:
  212. X_POSIX_TRACE_LOG = -1 // unistd.h:124:1:
  213. X_POSIX_TYPED_MEMORY_OBJECTS = -1 // unistd.h:79:1:
  214. X_POSIX_VDISABLE = 0xff // unistd.h:80:1:
  215. X_POSIX_VERSION = 200112 // unistd.h:99:1:
  216. X_PTHREAD_T_DECLARED = 0 // _pthreadtypes.h:68:1:
  217. X_QUAD_HIGHWORD = 1 // _endian.h:55:1:
  218. X_QUAD_LOWWORD = 0 // _endian.h:56:1:
  219. X_RLIM_T_DECLARED = 0 // types.h:193:1:
  220. X_SC_2_CHAR_TERM = 20 // unistd.h:184:1:
  221. X_SC_2_C_BIND = 18 // unistd.h:182:1:
  222. X_SC_2_C_DEV = 19 // unistd.h:183:1:
  223. X_SC_2_FORT_DEV = 21 // unistd.h:185:1:
  224. X_SC_2_FORT_RUN = 22 // unistd.h:186:1:
  225. X_SC_2_LOCALEDEF = 23 // unistd.h:187:1:
  226. X_SC_2_PBS = 59 // unistd.h:222:1:
  227. X_SC_2_PBS_ACCOUNTING = 60 // unistd.h:223:1:
  228. X_SC_2_PBS_CHECKPOINT = 61 // unistd.h:224:1:
  229. X_SC_2_PBS_LOCATE = 62 // unistd.h:225:1:
  230. X_SC_2_PBS_MESSAGE = 63 // unistd.h:226:1:
  231. X_SC_2_PBS_TRACK = 64 // unistd.h:227:1:
  232. X_SC_2_SW_DEV = 24 // unistd.h:188:1:
  233. X_SC_2_UPE = 25 // unistd.h:189:1:
  234. X_SC_2_VERSION = 17 // unistd.h:181:1:
  235. X_SC_ADVISORY_INFO = 65 // unistd.h:228:1:
  236. X_SC_AIO_LISTIO_MAX = 42 // unistd.h:208:1:
  237. X_SC_AIO_MAX = 43 // unistd.h:209:1:
  238. X_SC_AIO_PRIO_DELTA_MAX = 44 // unistd.h:210:1:
  239. X_SC_ARG_MAX = 1 // unistd.h:165:1:
  240. X_SC_ASYNCHRONOUS_IO = 28 // unistd.h:194:1:
  241. X_SC_ATEXIT_MAX = 107 // unistd.h:276:1:
  242. X_SC_BARRIERS = 66 // unistd.h:229:1:
  243. X_SC_BC_BASE_MAX = 9 // unistd.h:173:1:
  244. X_SC_BC_DIM_MAX = 10 // unistd.h:174:1:
  245. X_SC_BC_SCALE_MAX = 11 // unistd.h:175:1:
  246. X_SC_BC_STRING_MAX = 12 // unistd.h:176:1:
  247. X_SC_CHILD_MAX = 2 // unistd.h:166:1:
  248. X_SC_CLK_TCK = 3 // unistd.h:167:1:
  249. X_SC_CLOCK_SELECTION = 67 // unistd.h:230:1:
  250. X_SC_COLL_WEIGHTS_MAX = 13 // unistd.h:177:1:
  251. X_SC_CPUSET_SIZE = 122 // unistd.h:294:1:
  252. X_SC_CPUTIME = 68 // unistd.h:231:1:
  253. X_SC_DELAYTIMER_MAX = 45 // unistd.h:211:1:
  254. X_SC_EXPR_NEST_MAX = 14 // unistd.h:178:1:
  255. X_SC_FILE_LOCKING = 69 // unistd.h:232:1:
  256. X_SC_FSYNC = 38 // unistd.h:204:1:
  257. X_SC_GETGR_R_SIZE_MAX = 70 // unistd.h:233:1:
  258. X_SC_GETPW_R_SIZE_MAX = 71 // unistd.h:234:1:
  259. X_SC_HOST_NAME_MAX = 72 // unistd.h:235:1:
  260. X_SC_IOV_MAX = 56 // unistd.h:277:1:
  261. X_SC_IPV6 = 118 // unistd.h:270:1:
  262. X_SC_JOB_CONTROL = 6 // unistd.h:170:1:
  263. X_SC_LINE_MAX = 15 // unistd.h:179:1:
  264. X_SC_LOGIN_NAME_MAX = 73 // unistd.h:236:1:
  265. X_SC_MAPPED_FILES = 29 // unistd.h:195:1:
  266. X_SC_MEMLOCK = 30 // unistd.h:196:1:
  267. X_SC_MEMLOCK_RANGE = 31 // unistd.h:197:1:
  268. X_SC_MEMORY_PROTECTION = 32 // unistd.h:198:1:
  269. X_SC_MESSAGE_PASSING = 33 // unistd.h:199:1:
  270. X_SC_MONOTONIC_CLOCK = 74 // unistd.h:237:1:
  271. X_SC_MQ_OPEN_MAX = 46 // unistd.h:212:1:
  272. X_SC_MQ_PRIO_MAX = 75 // unistd.h:238:1:
  273. X_SC_NGROUPS_MAX = 4 // unistd.h:168:1:
  274. X_SC_NPROCESSORS_CONF = 57 // unistd.h:292:1:
  275. X_SC_NPROCESSORS_ONLN = 58 // unistd.h:293:1:
  276. X_SC_OPEN_MAX = 5 // unistd.h:169:1:
  277. X_SC_PAGESIZE = 47 // unistd.h:213:1:
  278. X_SC_PAGE_SIZE = 47 // unistd.h:278:1:
  279. X_SC_PHYS_PAGES = 121 // unistd.h:298:1:
  280. X_SC_PRIORITIZED_IO = 34 // unistd.h:200:1:
  281. X_SC_PRIORITY_SCHEDULING = 35 // unistd.h:201:1:
  282. X_SC_RAW_SOCKETS = 119 // unistd.h:271:1:
  283. X_SC_READER_WRITER_LOCKS = 76 // unistd.h:239:1:
  284. X_SC_REALTIME_SIGNALS = 36 // unistd.h:202:1:
  285. X_SC_REGEXP = 77 // unistd.h:240:1:
  286. X_SC_RE_DUP_MAX = 16 // unistd.h:180:1:
  287. X_SC_RTSIG_MAX = 48 // unistd.h:214:1:
  288. X_SC_SAVED_IDS = 7 // unistd.h:171:1:
  289. X_SC_SEMAPHORES = 37 // unistd.h:203:1:
  290. X_SC_SEM_NSEMS_MAX = 49 // unistd.h:215:1:
  291. X_SC_SEM_VALUE_MAX = 50 // unistd.h:216:1:
  292. X_SC_SHARED_MEMORY_OBJECTS = 39 // unistd.h:205:1:
  293. X_SC_SHELL = 78 // unistd.h:241:1:
  294. X_SC_SIGQUEUE_MAX = 51 // unistd.h:217:1:
  295. X_SC_SPAWN = 79 // unistd.h:242:1:
  296. X_SC_SPIN_LOCKS = 80 // unistd.h:243:1:
  297. X_SC_SPORADIC_SERVER = 81 // unistd.h:244:1:
  298. X_SC_STREAM_MAX = 26 // unistd.h:190:1:
  299. X_SC_SYMLOOP_MAX = 120 // unistd.h:272:1:
  300. X_SC_SYNCHRONIZED_IO = 40 // unistd.h:206:1:
  301. X_SC_THREADS = 96 // unistd.h:259:1:
  302. X_SC_THREAD_ATTR_STACKADDR = 82 // unistd.h:245:1:
  303. X_SC_THREAD_ATTR_STACKSIZE = 83 // unistd.h:246:1:
  304. X_SC_THREAD_CPUTIME = 84 // unistd.h:247:1:
  305. X_SC_THREAD_DESTRUCTOR_ITERATIONS = 85 // unistd.h:248:1:
  306. X_SC_THREAD_KEYS_MAX = 86 // unistd.h:249:1:
  307. X_SC_THREAD_PRIORITY_SCHEDULING = 89 // unistd.h:252:1:
  308. X_SC_THREAD_PRIO_INHERIT = 87 // unistd.h:250:1:
  309. X_SC_THREAD_PRIO_PROTECT = 88 // unistd.h:251:1:
  310. X_SC_THREAD_PROCESS_SHARED = 90 // unistd.h:253:1:
  311. X_SC_THREAD_SAFE_FUNCTIONS = 91 // unistd.h:254:1:
  312. X_SC_THREAD_SPORADIC_SERVER = 92 // unistd.h:255:1:
  313. X_SC_THREAD_STACK_MIN = 93 // unistd.h:256:1:
  314. X_SC_THREAD_THREADS_MAX = 94 // unistd.h:257:1:
  315. X_SC_TIMEOUTS = 95 // unistd.h:258:1:
  316. X_SC_TIMERS = 41 // unistd.h:207:1:
  317. X_SC_TIMER_MAX = 52 // unistd.h:218:1:
  318. X_SC_TRACE = 97 // unistd.h:260:1:
  319. X_SC_TRACE_EVENT_FILTER = 98 // unistd.h:261:1:
  320. X_SC_TRACE_INHERIT = 99 // unistd.h:262:1:
  321. X_SC_TRACE_LOG = 100 // unistd.h:263:1:
  322. X_SC_TTY_NAME_MAX = 101 // unistd.h:264:1:
  323. X_SC_TYPED_MEMORY_OBJECTS = 102 // unistd.h:265:1:
  324. X_SC_TZNAME_MAX = 27 // unistd.h:191:1:
  325. X_SC_V6_ILP32_OFF32 = 103 // unistd.h:266:1:
  326. X_SC_V6_ILP32_OFFBIG = 104 // unistd.h:267:1:
  327. X_SC_V6_LP64_OFF64 = 105 // unistd.h:268:1:
  328. X_SC_V6_LPBIG_OFFBIG = 106 // unistd.h:269:1:
  329. X_SC_VERSION = 8 // unistd.h:172:1:
  330. X_SC_XOPEN_CRYPT = 108 // unistd.h:279:1:
  331. X_SC_XOPEN_ENH_I18N = 109 // unistd.h:280:1:
  332. X_SC_XOPEN_LEGACY = 110 // unistd.h:281:1:
  333. X_SC_XOPEN_REALTIME = 111 // unistd.h:282:1:
  334. X_SC_XOPEN_REALTIME_THREADS = 112 // unistd.h:283:1:
  335. X_SC_XOPEN_SHM = 113 // unistd.h:284:1:
  336. X_SC_XOPEN_STREAMS = 114 // unistd.h:285:1:
  337. X_SC_XOPEN_UNIX = 115 // unistd.h:286:1:
  338. X_SC_XOPEN_VERSION = 116 // unistd.h:287:1:
  339. X_SC_XOPEN_XCU_VERSION = 117 // unistd.h:288:1:
  340. X_SELECT_DECLARED = 0 // select.h:103:1:
  341. X_SIGSET_T_DECLARED = 0 // select.h:50:1:
  342. X_SIG_MAXSIG = 128 // _sigset.h:47:1:
  343. X_SIG_WORDS = 4 // _sigset.h:46:1:
  344. X_SIZE_T_DECLARED = 0 // types.h:202:1:
  345. X_SSIZE_T_DECLARED = 0 // types.h:207:1:
  346. X_SUSECONDS_T_DECLARED = 0 // types.h:212:1:
  347. X_SWAB_DECLARED = 0 // unistd.h:461:1:
  348. X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
  349. X_SYS_SELECT_H_ = 0 // select.h:35:1:
  350. X_SYS_TIMESPEC_H_ = 0 // timespec.h:37:1:
  351. X_SYS_TYPES_H_ = 0 // types.h:41:1:
  352. X_SYS_UNISTD_H_ = 0 // unistd.h:36:1:
  353. X_SYS__ENDIAN_H_ = 0 // _endian.h:33:1:
  354. X_SYS__PTHREADTYPES_H_ = 0 // _pthreadtypes.h:39:1:
  355. X_SYS__SIGSET_H_ = 0 // _sigset.h:41:1:
  356. X_SYS__STDINT_H_ = 0 // _stdint.h:33:1:
  357. X_SYS__TIMESPEC_H_ = 0 // _timespec.h:37:1:
  358. X_SYS__TIMEVAL_H_ = 0 // _timeval.h:32:1:
  359. X_SYS__TYPES_H_ = 0 // _types.h:32:1:
  360. X_TIMER_T_DECLARED = 0 // types.h:222:1:
  361. X_TIME_T_DECLARED = 0 // types.h:217:1:
  362. X_TRUNCATE_DECLARED = 0 // types.h:429:1:
  363. X_UID_T_DECLARED = 0 // types.h:234:1:
  364. X_UINT16_T_DECLARED = 0 // _stdint.h:62:1:
  365. X_UINT32_T_DECLARED = 0 // _stdint.h:67:1:
  366. X_UINT64_T_DECLARED = 0 // _stdint.h:72:1:
  367. X_UINT8_T_DECLARED = 0 // _stdint.h:57:1:
  368. X_UINTMAX_T_DECLARED = 0 // _stdint.h:89:1:
  369. X_UINTPTR_T_DECLARED = 0 // _stdint.h:81:1:
  370. X_UNISTD_H_ = 0 // unistd.h:36:1:
  371. X_USECONDS_T_DECLARED = 0 // types.h:239:1:
  372. X_V6_ILP32_OFF32 = -1 // unistd.h:139:1:
  373. X_V6_ILP32_OFFBIG = 0 // unistd.h:140:1:
  374. X_V6_LP64_OFF64 = 0 // unistd.h:141:1:
  375. X_V6_LPBIG_OFFBIG = -1 // unistd.h:142:1:
  376. X_XOPEN_CRYPT = -1 // unistd.h:145:1:
  377. X_XOPEN_ENH_I18N = -1 // unistd.h:146:1:
  378. X_XOPEN_LEGACY = -1 // unistd.h:147:1:
  379. X_XOPEN_REALTIME = -1 // unistd.h:148:1:
  380. X_XOPEN_REALTIME_THREADS = -1 // unistd.h:149:1:
  381. X_XOPEN_SHM = 1 // unistd.h:83:1:
  382. X_XOPEN_STREAMS = -1 // unistd.h:84:1:
  383. X_XOPEN_UNIX = -1 // unistd.h:150:1:
  384. Unix = 1 // <predefined>:340:1:
  385. )
  386. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  387. type Size_t = uint64 /* <builtin>:9:23 */
  388. type Wchar_t = int32 /* <builtin>:15:24 */
  389. type X__int128_t = struct {
  390. Flo int64
  391. Fhi int64
  392. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  393. type X__uint128_t = struct {
  394. Flo uint64
  395. Fhi uint64
  396. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  397. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  398. type X__float128 = float64 /* <builtin>:47:21 */
  399. // -
  400. // SPDX-License-Identifier: BSD-3-Clause
  401. //
  402. // Copyright (c) 1991, 1993, 1994
  403. // The Regents of the University of California. All rights reserved.
  404. //
  405. // Redistribution and use in source and binary forms, with or without
  406. // modification, are permitted provided that the following conditions
  407. // are met:
  408. // 1. Redistributions of source code must retain the above copyright
  409. // notice, this list of conditions and the following disclaimer.
  410. // 2. Redistributions in binary form must reproduce the above copyright
  411. // notice, this list of conditions and the following disclaimer in the
  412. // documentation and/or other materials provided with the distribution.
  413. // 3. Neither the name of the University nor the names of its contributors
  414. // may be used to endorse or promote products derived from this software
  415. // without specific prior written permission.
  416. //
  417. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  418. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  419. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  420. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  421. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  422. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  423. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  424. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  425. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  426. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  427. // SUCH DAMAGE.
  428. //
  429. // @(#)unistd.h 8.12 (Berkeley) 4/27/95
  430. // $FreeBSD$
  431. // -
  432. // SPDX-License-Identifier: BSD-3-Clause
  433. //
  434. // Copyright (c) 1991, 1993
  435. // The Regents of the University of California. All rights reserved.
  436. //
  437. // This code is derived from software contributed to Berkeley by
  438. // Berkeley Software Design, Inc.
  439. //
  440. // Redistribution and use in source and binary forms, with or without
  441. // modification, are permitted provided that the following conditions
  442. // are met:
  443. // 1. Redistributions of source code must retain the above copyright
  444. // notice, this list of conditions and the following disclaimer.
  445. // 2. Redistributions in binary form must reproduce the above copyright
  446. // notice, this list of conditions and the following disclaimer in the
  447. // documentation and/or other materials provided with the distribution.
  448. // 3. Neither the name of the University nor the names of its contributors
  449. // may be used to endorse or promote products derived from this software
  450. // without specific prior written permission.
  451. //
  452. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  453. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  454. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  455. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  456. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  457. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  458. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  459. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  460. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  461. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  462. // SUCH DAMAGE.
  463. //
  464. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  465. // $FreeBSD$
  466. // Testing against Clang-specific extensions.
  467. // This code has been put in place to help reduce the addition of
  468. // compiler specific defines in FreeBSD code. It helps to aid in
  469. // having a compiler-agnostic source tree.
  470. // Compiler memory barriers, specific to gcc and clang.
  471. // XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced
  472. // Macro to test if we're using a specific version of gcc or later.
  473. // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  474. // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  475. // The __CONCAT macro is a bit tricky to use if it must work in non-ANSI
  476. // mode -- there must be no spaces between its arguments, and for nested
  477. // __CONCAT's, all the __CONCAT's must be at the left. __CONCAT can also
  478. // concatenate double-quoted strings produced by the __STRING macro, but
  479. // this only works with ANSI C.
  480. //
  481. // __XSTRING is like __STRING, but it expands any macros in its argument
  482. // first. It is only available with ANSI C.
  483. // Compiler-dependent macros to help declare dead (non-returning) and
  484. // pure (no side effects) functions, and unused variables. They are
  485. // null except for versions of gcc that are known to support the features
  486. // properly (old versions of gcc-2 supported the dead and pure features
  487. // in a different (wrong) way). If we do not provide an implementation
  488. // for a given compiler, let the compile fail if it is told to use
  489. // a feature that we cannot live without.
  490. // Keywords added in C11.
  491. // Emulation of C11 _Generic(). Unlike the previously defined C11
  492. // keywords, it is not possible to implement this using exactly the same
  493. // syntax. Therefore implement something similar under the name
  494. // __generic(). Unlike _Generic(), this macro can only distinguish
  495. // between a single type, so it requires nested invocations to
  496. // distinguish multiple cases.
  497. // C99 Static array indices in function parameter declarations. Syntax such as:
  498. // void bar(int myArray[static 10]);
  499. // is allowed in C99 but not in C++. Define __min_size appropriately so
  500. // headers using it can be compiled in either language. Use like this:
  501. // void bar(int myArray[__min_size(10)]);
  502. // XXX: should use `#if __STDC_VERSION__ < 199901'.
  503. // C++11 exposes a load of C99 stuff
  504. // GCC 2.95 provides `__restrict' as an extension to C90 to support the
  505. // C99-specific `restrict' type qualifier. We happen to use `__restrict' as
  506. // a way to define the `restrict' type qualifier without disturbing older
  507. // software that is unaware of C99 keywords.
  508. // GNU C version 2.96 adds explicit branch prediction so that
  509. // the CPU back-end can hint the processor and also so that
  510. // code blocks can be reordered such that the predicted path
  511. // sees a more linear flow, thus improving cache behavior, etc.
  512. //
  513. // The following two macros provide us with a way to utilize this
  514. // compiler feature. Use __predict_true() if you expect the expression
  515. // to evaluate to true, and __predict_false() if you expect the
  516. // expression to evaluate to false.
  517. //
  518. // A few notes about usage:
  519. //
  520. // * Generally, __predict_false() error condition checks (unless
  521. // you have some _strong_ reason to do otherwise, in which case
  522. // document it), and/or __predict_true() `no-error' condition
  523. // checks, assuming you want to optimize for the no-error case.
  524. //
  525. // * Other than that, if you don't know the likelihood of a test
  526. // succeeding from empirical or other `hard' evidence, don't
  527. // make predictions.
  528. //
  529. // * These are meant to be used in places that are run `a lot'.
  530. // It is wasteful to make predictions in code that is run
  531. // seldomly (e.g. at subsystem initialization time) as the
  532. // basic block reordering that this affects can often generate
  533. // larger code.
  534. // We define this here since <stddef.h>, <sys/queue.h>, and <sys/types.h>
  535. // require it.
  536. // Given the pointer x to the member m of the struct s, return
  537. // a pointer to the containing structure. When using GCC, we first
  538. // assign pointer x to a local variable, to check that its type is
  539. // compatible with member m.
  540. // Compiler-dependent macros to declare that functions take printf-like
  541. // or scanf-like arguments. They are null except for versions of gcc
  542. // that are known to support the features properly (old versions of gcc-2
  543. // didn't permit keeping the keywords out of the application namespace).
  544. // Compiler-dependent macros that rely on FreeBSD-specific extensions.
  545. // Embed the rcs id of a source file in the resulting library. Note that in
  546. // more recent ELF binutils, we use .ident allowing the ID to be stripped.
  547. // Usage:
  548. // __FBSDID("$FreeBSD$");
  549. // -
  550. // The following definitions are an extension of the behavior originally
  551. // implemented in <sys/_posix.h>, but with a different level of granularity.
  552. // POSIX.1 requires that the macros we test be defined before any standard
  553. // header file is included.
  554. //
  555. // Here's a quick run-down of the versions:
  556. // defined(_POSIX_SOURCE) 1003.1-1988
  557. // _POSIX_C_SOURCE == 1 1003.1-1990
  558. // _POSIX_C_SOURCE == 2 1003.2-1992 C Language Binding Option
  559. // _POSIX_C_SOURCE == 199309 1003.1b-1993
  560. // _POSIX_C_SOURCE == 199506 1003.1c-1995, 1003.1i-1995,
  561. // and the omnibus ISO/IEC 9945-1: 1996
  562. // _POSIX_C_SOURCE == 200112 1003.1-2001
  563. // _POSIX_C_SOURCE == 200809 1003.1-2008
  564. //
  565. // In addition, the X/Open Portability Guide, which is now the Single UNIX
  566. // Specification, defines a feature-test macro which indicates the version of
  567. // that specification, and which subsumes _POSIX_C_SOURCE.
  568. //
  569. // Our macros begin with two underscores to avoid namespace screwage.
  570. // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1.
  571. // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2.
  572. // Deal with various X/Open Portability Guides and Single UNIX Spec.
  573. // Deal with all versions of POSIX. The ordering relative to the tests above is
  574. // important.
  575. // -
  576. // Deal with _ANSI_SOURCE:
  577. // If it is defined, and no other compilation environment is explicitly
  578. // requested, then define our internal feature-test macros to zero. This
  579. // makes no difference to the preprocessor (undefined symbols in preprocessing
  580. // expressions are defined to have value zero), but makes it more convenient for
  581. // a test program to print out the values.
  582. //
  583. // If a program mistakenly defines _ANSI_SOURCE and some other macro such as
  584. // _POSIX_C_SOURCE, we will assume that it wants the broader compilation
  585. // environment (and in fact we will never get here).
  586. // User override __EXT1_VISIBLE
  587. // Old versions of GCC use non-standard ARM arch symbols; acle-compat.h
  588. // translates them to __ARM_ARCH and the modern feature symbols defined by ARM.
  589. // Nullability qualifiers: currently only supported by Clang.
  590. // Type Safety Checking
  591. //
  592. // Clang provides additional attributes to enable checking type safety
  593. // properties that cannot be enforced by the C type system.
  594. // Lock annotations.
  595. //
  596. // Clang provides support for doing basic thread-safety tests at
  597. // compile-time, by marking which locks will/should be held when
  598. // entering/leaving a functions.
  599. //
  600. // Furthermore, it is also possible to annotate variables and structure
  601. // members to enforce that they are only accessed when certain locks are
  602. // held.
  603. // Structure implements a lock.
  604. // Function acquires an exclusive or shared lock.
  605. // Function attempts to acquire an exclusive or shared lock.
  606. // Function releases a lock.
  607. // Function asserts that an exclusive or shared lock is held.
  608. // Function requires that an exclusive or shared lock is or is not held.
  609. // Function should not be analyzed.
  610. // Function or variable should not be sanitized, e.g., by AddressSanitizer.
  611. // GCC has the nosanitize attribute, but as a function attribute only, and
  612. // warns on use as a variable attribute.
  613. // Guard variables and structure members by lock.
  614. // Alignment builtins for better type checking and improved code generation.
  615. // Provide fallback versions for other compilers (GCC/Clang < 10):
  616. // -
  617. // SPDX-License-Identifier: BSD-3-Clause
  618. //
  619. // Copyright (c) 1982, 1986, 1991, 1993, 1994
  620. // The Regents of the University of California. All rights reserved.
  621. // (c) UNIX System Laboratories, Inc.
  622. // All or some portions of this file are derived from material licensed
  623. // to the University of California by American Telephone and Telegraph
  624. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  625. // the permission of UNIX System Laboratories, Inc.
  626. //
  627. // Redistribution and use in source and binary forms, with or without
  628. // modification, are permitted provided that the following conditions
  629. // are met:
  630. // 1. Redistributions of source code must retain the above copyright
  631. // notice, this list of conditions and the following disclaimer.
  632. // 2. Redistributions in binary form must reproduce the above copyright
  633. // notice, this list of conditions and the following disclaimer in the
  634. // documentation and/or other materials provided with the distribution.
  635. // 3. Neither the name of the University nor the names of its contributors
  636. // may be used to endorse or promote products derived from this software
  637. // without specific prior written permission.
  638. //
  639. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  640. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  641. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  642. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  643. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  644. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  645. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  646. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  647. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  648. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  649. // SUCH DAMAGE.
  650. //
  651. // @(#)types.h 8.6 (Berkeley) 2/19/95
  652. // $FreeBSD$
  653. // -
  654. // SPDX-License-Identifier: BSD-3-Clause
  655. //
  656. // Copyright (c) 1991, 1993
  657. // The Regents of the University of California. All rights reserved.
  658. //
  659. // This code is derived from software contributed to Berkeley by
  660. // Berkeley Software Design, Inc.
  661. //
  662. // Redistribution and use in source and binary forms, with or without
  663. // modification, are permitted provided that the following conditions
  664. // are met:
  665. // 1. Redistributions of source code must retain the above copyright
  666. // notice, this list of conditions and the following disclaimer.
  667. // 2. Redistributions in binary form must reproduce the above copyright
  668. // notice, this list of conditions and the following disclaimer in the
  669. // documentation and/or other materials provided with the distribution.
  670. // 3. Neither the name of the University nor the names of its contributors
  671. // may be used to endorse or promote products derived from this software
  672. // without specific prior written permission.
  673. //
  674. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  675. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  676. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  677. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  678. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  679. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  680. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  681. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  682. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  683. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  684. // SUCH DAMAGE.
  685. //
  686. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  687. // $FreeBSD$
  688. // Machine type dependent parameters.
  689. // -
  690. // This file is in the public domain.
  691. // $FreeBSD$
  692. // -
  693. // SPDX-License-Identifier: BSD-3-Clause
  694. //
  695. // Copyright (c) 1987, 1991 Regents of the University of California.
  696. // All rights reserved.
  697. //
  698. // Redistribution and use in source and binary forms, with or without
  699. // modification, are permitted provided that the following conditions
  700. // are met:
  701. // 1. Redistributions of source code must retain the above copyright
  702. // notice, this list of conditions and the following disclaimer.
  703. // 2. Redistributions in binary form must reproduce the above copyright
  704. // notice, this list of conditions and the following disclaimer in the
  705. // documentation and/or other materials provided with the distribution.
  706. // 3. Neither the name of the University nor the names of its contributors
  707. // may be used to endorse or promote products derived from this software
  708. // without specific prior written permission.
  709. //
  710. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  711. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  712. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  713. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  714. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  715. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  716. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  717. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  718. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  719. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  720. // SUCH DAMAGE.
  721. //
  722. // @(#)endian.h 7.8 (Berkeley) 4/3/91
  723. // $FreeBSD$
  724. // -
  725. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  726. //
  727. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  728. // All rights reserved.
  729. //
  730. // Redistribution and use in source and binary forms, with or without
  731. // modification, are permitted provided that the following conditions
  732. // are met:
  733. // 1. Redistributions of source code must retain the above copyright
  734. // notice, this list of conditions and the following disclaimer.
  735. // 2. Redistributions in binary form must reproduce the above copyright
  736. // notice, this list of conditions and the following disclaimer in the
  737. // documentation and/or other materials provided with the distribution.
  738. //
  739. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  740. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  741. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  742. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  743. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  744. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  745. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  746. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  747. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  748. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  749. // SUCH DAMAGE.
  750. //
  751. // $FreeBSD$
  752. // -
  753. // SPDX-License-Identifier: BSD-3-Clause
  754. //
  755. // Copyright (c) 1991, 1993
  756. // The Regents of the University of California. All rights reserved.
  757. //
  758. // This code is derived from software contributed to Berkeley by
  759. // Berkeley Software Design, Inc.
  760. //
  761. // Redistribution and use in source and binary forms, with or without
  762. // modification, are permitted provided that the following conditions
  763. // are met:
  764. // 1. Redistributions of source code must retain the above copyright
  765. // notice, this list of conditions and the following disclaimer.
  766. // 2. Redistributions in binary form must reproduce the above copyright
  767. // notice, this list of conditions and the following disclaimer in the
  768. // documentation and/or other materials provided with the distribution.
  769. // 3. Neither the name of the University nor the names of its contributors
  770. // may be used to endorse or promote products derived from this software
  771. // without specific prior written permission.
  772. //
  773. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  774. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  775. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  776. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  777. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  778. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  779. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  780. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  781. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  782. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  783. // SUCH DAMAGE.
  784. //
  785. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  786. // $FreeBSD$
  787. // -
  788. // This file is in the public domain.
  789. // $FreeBSD$
  790. // -
  791. // SPDX-License-Identifier: BSD-4-Clause
  792. //
  793. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  794. // Copyright (c) 1990, 1993
  795. // The Regents of the University of California. All rights reserved.
  796. //
  797. // Redistribution and use in source and binary forms, with or without
  798. // modification, are permitted provided that the following conditions
  799. // are met:
  800. // 1. Redistributions of source code must retain the above copyright
  801. // notice, this list of conditions and the following disclaimer.
  802. // 2. Redistributions in binary form must reproduce the above copyright
  803. // notice, this list of conditions and the following disclaimer in the
  804. // documentation and/or other materials provided with the distribution.
  805. // 3. All advertising materials mentioning features or use of this software
  806. // must display the following acknowledgement:
  807. // This product includes software developed by the University of
  808. // California, Berkeley and its contributors.
  809. // 4. Neither the name of the University nor the names of its contributors
  810. // may be used to endorse or promote products derived from this software
  811. // without specific prior written permission.
  812. //
  813. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  814. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  815. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  816. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  817. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  818. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  819. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  820. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  821. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  822. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  823. // SUCH DAMAGE.
  824. //
  825. // From: @(#)ansi.h 8.2 (Berkeley) 1/4/94
  826. // From: @(#)types.h 8.3 (Berkeley) 1/5/94
  827. // $FreeBSD$
  828. // -
  829. // This file is in the public domain.
  830. // $FreeBSD$
  831. // -
  832. // SPDX-License-Identifier: BSD-3-Clause
  833. //
  834. // Copyright (c) 1988, 1993
  835. // The Regents of the University of California. All rights reserved.
  836. //
  837. // Redistribution and use in source and binary forms, with or without
  838. // modification, are permitted provided that the following conditions
  839. // are met:
  840. // 1. Redistributions of source code must retain the above copyright
  841. // notice, this list of conditions and the following disclaimer.
  842. // 2. Redistributions in binary form must reproduce the above copyright
  843. // notice, this list of conditions and the following disclaimer in the
  844. // documentation and/or other materials provided with the distribution.
  845. // 3. Neither the name of the University nor the names of its contributors
  846. // may be used to endorse or promote products derived from this software
  847. // without specific prior written permission.
  848. //
  849. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  850. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  851. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  852. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  853. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  854. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  855. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  856. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  857. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  858. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  859. // SUCH DAMAGE.
  860. //
  861. // @(#)limits.h 8.3 (Berkeley) 1/4/94
  862. // $FreeBSD$
  863. // According to ANSI (section 2.2.4.2), the values below must be usable by
  864. // #if preprocessing directives. Additionally, the expression must have the
  865. // same type as would an expression that is an object of the corresponding
  866. // type converted according to the integral promotions. The subtraction for
  867. // INT_MIN, etc., is so the value is not unsigned; e.g., 0x80000000 is an
  868. // unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2).
  869. // max value for an unsigned long long
  870. // Quads and longs are the same on the amd64. Ensure they stay in sync.
  871. // Minimum signal stack size.
  872. // Basic types upon which most other types are built.
  873. type X__int8_t = int8 /* _types.h:55:22 */
  874. type X__uint8_t = uint8 /* _types.h:56:24 */
  875. type X__int16_t = int16 /* _types.h:57:17 */
  876. type X__uint16_t = uint16 /* _types.h:58:25 */
  877. type X__int32_t = int32 /* _types.h:59:15 */
  878. type X__uint32_t = uint32 /* _types.h:60:23 */
  879. type X__int64_t = int64 /* _types.h:62:16 */
  880. type X__uint64_t = uint64 /* _types.h:63:24 */
  881. // Standard type definitions.
  882. type X__clock_t = X__int32_t /* _types.h:75:19 */ // clock()...
  883. type X__critical_t = X__int64_t /* _types.h:76:19 */
  884. type X__double_t = float64 /* _types.h:78:17 */
  885. type X__float_t = float32 /* _types.h:79:16 */
  886. type X__intfptr_t = X__int64_t /* _types.h:81:19 */
  887. type X__intptr_t = X__int64_t /* _types.h:82:19 */
  888. type X__intmax_t = X__int64_t /* _types.h:93:19 */
  889. type X__int_fast8_t = X__int32_t /* _types.h:94:19 */
  890. type X__int_fast16_t = X__int32_t /* _types.h:95:19 */
  891. type X__int_fast32_t = X__int32_t /* _types.h:96:19 */
  892. type X__int_fast64_t = X__int64_t /* _types.h:97:19 */
  893. type X__int_least8_t = X__int8_t /* _types.h:98:18 */
  894. type X__int_least16_t = X__int16_t /* _types.h:99:19 */
  895. type X__int_least32_t = X__int32_t /* _types.h:100:19 */
  896. type X__int_least64_t = X__int64_t /* _types.h:101:19 */
  897. type X__ptrdiff_t = X__int64_t /* _types.h:103:19 */ // ptr1 - ptr2
  898. type X__register_t = X__int64_t /* _types.h:104:19 */
  899. type X__segsz_t = X__int64_t /* _types.h:105:19 */ // segment size (in pages)
  900. type X__size_t = X__uint64_t /* _types.h:106:20 */ // sizeof()
  901. type X__ssize_t = X__int64_t /* _types.h:107:19 */ // byte count or error
  902. type X__time_t = X__int64_t /* _types.h:108:19 */ // time()...
  903. type X__uintfptr_t = X__uint64_t /* _types.h:109:20 */
  904. type X__uintptr_t = X__uint64_t /* _types.h:110:20 */
  905. type X__uintmax_t = X__uint64_t /* _types.h:121:20 */
  906. type X__uint_fast8_t = X__uint32_t /* _types.h:122:20 */
  907. type X__uint_fast16_t = X__uint32_t /* _types.h:123:20 */
  908. type X__uint_fast32_t = X__uint32_t /* _types.h:124:20 */
  909. type X__uint_fast64_t = X__uint64_t /* _types.h:125:20 */
  910. type X__uint_least8_t = X__uint8_t /* _types.h:126:19 */
  911. type X__uint_least16_t = X__uint16_t /* _types.h:127:20 */
  912. type X__uint_least32_t = X__uint32_t /* _types.h:128:20 */
  913. type X__uint_least64_t = X__uint64_t /* _types.h:129:20 */
  914. type X__u_register_t = X__uint64_t /* _types.h:131:20 */
  915. type X__vm_offset_t = X__uint64_t /* _types.h:132:20 */
  916. type X__vm_paddr_t = X__uint64_t /* _types.h:133:20 */
  917. type X__vm_size_t = X__uint64_t /* _types.h:134:20 */
  918. type X___wchar_t = int32 /* _types.h:141:14 */
  919. // Standard type definitions.
  920. type X__blksize_t = X__int32_t /* _types.h:40:19 */ // file block size
  921. type X__blkcnt_t = X__int64_t /* _types.h:41:19 */ // file block count
  922. type X__clockid_t = X__int32_t /* _types.h:42:19 */ // clock_gettime()...
  923. type X__fflags_t = X__uint32_t /* _types.h:43:20 */ // file flags
  924. type X__fsblkcnt_t = X__uint64_t /* _types.h:44:20 */
  925. type X__fsfilcnt_t = X__uint64_t /* _types.h:45:20 */
  926. type X__gid_t = X__uint32_t /* _types.h:46:20 */
  927. type X__id_t = X__int64_t /* _types.h:47:19 */ // can hold a gid_t, pid_t, or uid_t
  928. type X__ino_t = X__uint64_t /* _types.h:48:20 */ // inode number
  929. type X__key_t = int64 /* _types.h:49:15 */ // IPC key (for Sys V IPC)
  930. type X__lwpid_t = X__int32_t /* _types.h:50:19 */ // Thread ID (a.k.a. LWP)
  931. type X__mode_t = X__uint16_t /* _types.h:51:20 */ // permissions
  932. type X__accmode_t = int32 /* _types.h:52:14 */ // access permissions
  933. type X__nl_item = int32 /* _types.h:53:14 */
  934. type X__nlink_t = X__uint64_t /* _types.h:54:20 */ // link count
  935. type X__off_t = X__int64_t /* _types.h:55:19 */ // file offset
  936. type X__off64_t = X__int64_t /* _types.h:56:19 */ // file offset (alias)
  937. type X__pid_t = X__int32_t /* _types.h:57:19 */ // process [group]
  938. type X__rlim_t = X__int64_t /* _types.h:58:19 */ // resource limit - intentionally
  939. // signed, because of legacy code
  940. // that uses -1 for RLIM_INFINITY
  941. type X__sa_family_t = X__uint8_t /* _types.h:61:19 */
  942. type X__socklen_t = X__uint32_t /* _types.h:62:20 */
  943. type X__suseconds_t = int64 /* _types.h:63:15 */ // microseconds (signed)
  944. type X__timer_t = uintptr /* _types.h:64:24 */ // timer_gettime()...
  945. type X__mqd_t = uintptr /* _types.h:65:21 */ // mq_open()...
  946. type X__uid_t = X__uint32_t /* _types.h:66:20 */
  947. type X__useconds_t = uint32 /* _types.h:67:22 */ // microseconds (unsigned)
  948. type X__cpuwhich_t = int32 /* _types.h:68:14 */ // which parameter for cpuset.
  949. type X__cpulevel_t = int32 /* _types.h:69:14 */ // level parameter for cpuset.
  950. type X__cpusetid_t = int32 /* _types.h:70:14 */ // cpuset identifier.
  951. type X__daddr_t = X__int64_t /* _types.h:71:19 */ // bwrite(3), FIOBMAP2, etc
  952. // Unusual type definitions.
  953. // rune_t is declared to be an “int” instead of the more natural
  954. // “unsigned long” or “long”. Two things are happening here. It is not
  955. // unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
  956. // it looks like 10646 will be a 31 bit standard. This means that if your
  957. // ints cannot hold 32 bits, you will be in trouble. The reason an int was
  958. // chosen over a long is that the is*() and to*() routines take ints (says
  959. // ANSI C), but they use __ct_rune_t instead of int.
  960. //
  961. // NOTE: rune_t is not covered by ANSI nor other standards, and should not
  962. // be instantiated outside of lib/libc/locale. Use wchar_t. wint_t and
  963. // rune_t must be the same type. Also, wint_t should be able to hold all
  964. // members of the largest character set plus one extra value (WEOF), and
  965. // must be at least 16 bits.
  966. type X__ct_rune_t = int32 /* _types.h:91:14 */ // arg type for ctype funcs
  967. type X__rune_t = X__ct_rune_t /* _types.h:92:21 */ // rune_t (see above)
  968. type X__wint_t = X__ct_rune_t /* _types.h:93:21 */ // wint_t (see above)
  969. // Clang already provides these types as built-ins, but only in C++ mode.
  970. type X__char16_t = X__uint_least16_t /* _types.h:97:26 */
  971. type X__char32_t = X__uint_least32_t /* _types.h:98:26 */
  972. // In C++11, char16_t and char32_t are built-in types.
  973. type X__max_align_t = struct {
  974. F__max_align1 int64
  975. F__max_align2 float64
  976. } /* _types.h:111:3 */
  977. type X__dev_t = X__uint64_t /* _types.h:113:20 */ // device number
  978. type X__fixpt_t = X__uint32_t /* _types.h:115:20 */ // fixed point number
  979. // mbstate_t is an opaque object to keep conversion state during multibyte
  980. // stream conversions.
  981. type X__mbstate_t = struct {
  982. F__ccgo_pad1 [0]uint64
  983. F__mbstate8 [128]int8
  984. } /* _types.h:124:3 */
  985. type X__rman_res_t = X__uintmax_t /* _types.h:126:25 */
  986. // Types for varargs. These are all provided by builtin types these
  987. // days, so centralize their definition.
  988. type X__va_list = X__builtin_va_list /* _types.h:133:27 */ // internally known to gcc
  989. type X__gnuc_va_list = X__va_list /* _types.h:140:20 */
  990. type Pthread_once = struct {
  991. Fstate int32
  992. F__ccgo_pad1 [4]byte
  993. Fmutex Pthread_mutex_t
  994. } /* _pthreadtypes.h:52:1 */
  995. // Primitive system data type definitions required by P1003.1c.
  996. //
  997. // Note that P1003.1c specifies that there are no defined comparison
  998. // or assignment operators for the types pthread_attr_t, pthread_cond_t,
  999. // pthread_condattr_t, pthread_mutex_t, pthread_mutexattr_t.
  1000. type Pthread_t = uintptr /* _pthreadtypes.h:67:26 */
  1001. type Pthread_attr_t = uintptr /* _pthreadtypes.h:70:30 */
  1002. type Pthread_mutex_t = uintptr /* _pthreadtypes.h:71:31 */
  1003. type Pthread_mutexattr_t = uintptr /* _pthreadtypes.h:72:35 */
  1004. type Pthread_cond_t = uintptr /* _pthreadtypes.h:73:30 */
  1005. type Pthread_condattr_t = uintptr /* _pthreadtypes.h:74:34 */
  1006. type Pthread_key_t = int32 /* _pthreadtypes.h:75:20 */
  1007. type Pthread_once_t = Pthread_once /* _pthreadtypes.h:76:30 */
  1008. type Pthread_rwlock_t = uintptr /* _pthreadtypes.h:77:32 */
  1009. type Pthread_rwlockattr_t = uintptr /* _pthreadtypes.h:78:35 */
  1010. type Pthread_barrier_t = uintptr /* _pthreadtypes.h:79:33 */
  1011. type Pthread_barrierattr_t = uintptr /* _pthreadtypes.h:80:36 */
  1012. type Pthread_spinlock_t = uintptr /* _pthreadtypes.h:81:33 */
  1013. // Additional type definitions:
  1014. //
  1015. // Note that P1003.1c reserves the prefixes pthread_ and PTHREAD_ for
  1016. // use in header symbols.
  1017. type Pthread_addr_t = uintptr /* _pthreadtypes.h:89:14 */
  1018. type Pthread_startroutine_t = uintptr /* _pthreadtypes.h:90:14 */
  1019. type U_char = uint8 /* types.h:52:23 */
  1020. type U_short = uint16 /* types.h:53:24 */
  1021. type U_int = uint32 /* types.h:54:22 */
  1022. type U_long = uint64 /* types.h:55:23 */
  1023. type Ushort = uint16 /* types.h:57:24 */ // Sys V compatibility
  1024. type Uint = uint32 /* types.h:58:22 */ // Sys V compatibility
  1025. // XXX POSIX sized integrals that should appear only in <sys/stdint.h>.
  1026. // -
  1027. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1028. //
  1029. // Copyright (c) 2011 David E. O'Brien <obrien@FreeBSD.org>
  1030. // Copyright (c) 2001 Mike Barcroft <mike@FreeBSD.org>
  1031. // All rights reserved.
  1032. //
  1033. // Redistribution and use in source and binary forms, with or without
  1034. // modification, are permitted provided that the following conditions
  1035. // are met:
  1036. // 1. Redistributions of source code must retain the above copyright
  1037. // notice, this list of conditions and the following disclaimer.
  1038. // 2. Redistributions in binary form must reproduce the above copyright
  1039. // notice, this list of conditions and the following disclaimer in the
  1040. // documentation and/or other materials provided with the distribution.
  1041. //
  1042. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1043. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1044. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1045. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1046. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1047. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1048. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1049. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1050. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1051. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1052. // SUCH DAMAGE.
  1053. //
  1054. // $FreeBSD$
  1055. type Int8_t = X__int8_t /* _stdint.h:36:19 */
  1056. type Int16_t = X__int16_t /* _stdint.h:41:20 */
  1057. type Int32_t = X__int32_t /* _stdint.h:46:20 */
  1058. type Int64_t = X__int64_t /* _stdint.h:51:20 */
  1059. type Uint8_t = X__uint8_t /* _stdint.h:56:20 */
  1060. type Uint16_t = X__uint16_t /* _stdint.h:61:21 */
  1061. type Uint32_t = X__uint32_t /* _stdint.h:66:21 */
  1062. type Uint64_t = X__uint64_t /* _stdint.h:71:21 */
  1063. type Intptr_t = X__intptr_t /* _stdint.h:76:21 */
  1064. type Uintptr_t = X__uintptr_t /* _stdint.h:80:22 */
  1065. type Intmax_t = X__intmax_t /* _stdint.h:84:21 */
  1066. type Uintmax_t = X__uintmax_t /* _stdint.h:88:22 */
  1067. type U_int8_t = X__uint8_t /* types.h:67:19 */ // unsigned integrals (deprecated)
  1068. type U_int16_t = X__uint16_t /* types.h:68:20 */
  1069. type U_int32_t = X__uint32_t /* types.h:69:20 */
  1070. type U_int64_t = X__uint64_t /* types.h:70:20 */
  1071. type U_quad_t = X__uint64_t /* types.h:72:20 */ // quads (deprecated)
  1072. type Quad_t = X__int64_t /* types.h:73:19 */
  1073. type Qaddr_t = uintptr /* types.h:74:16 */
  1074. type Caddr_t = uintptr /* types.h:76:14 */ // core address
  1075. type C_caddr_t = uintptr /* types.h:77:20 */ // core address, pointer to const
  1076. type Blksize_t = X__blksize_t /* types.h:80:21 */
  1077. type Cpuwhich_t = X__cpuwhich_t /* types.h:84:22 */
  1078. type Cpulevel_t = X__cpulevel_t /* types.h:85:22 */
  1079. type Cpusetid_t = X__cpusetid_t /* types.h:86:22 */
  1080. type Blkcnt_t = X__blkcnt_t /* types.h:89:20 */
  1081. type Clock_t = X__clock_t /* types.h:94:19 */
  1082. type Clockid_t = X__clockid_t /* types.h:99:21 */
  1083. type Critical_t = X__critical_t /* types.h:103:22 */ // Critical section value
  1084. type Daddr_t = X__daddr_t /* types.h:104:19 */ // disk address
  1085. type Dev_t = X__dev_t /* types.h:107:18 */ // device number or struct cdev
  1086. type Fflags_t = X__fflags_t /* types.h:112:20 */ // file flags
  1087. type Fixpt_t = X__fixpt_t /* types.h:116:19 */ // fixed point number
  1088. type Fsblkcnt_t = X__fsblkcnt_t /* types.h:119:22 */
  1089. type Fsfilcnt_t = X__fsfilcnt_t /* types.h:120:22 */
  1090. type Gid_t = X__gid_t /* types.h:125:18 */ // group id
  1091. type In_addr_t = X__uint32_t /* types.h:130:20 */ // base type for internet address
  1092. type In_port_t = X__uint16_t /* types.h:135:20 */
  1093. type Id_t = X__id_t /* types.h:140:17 */ // can hold a uid_t or pid_t
  1094. type Ino_t = X__ino_t /* types.h:145:18 */ // inode number
  1095. type Key_t = X__key_t /* types.h:150:18 */ // IPC key (for Sys V IPC)
  1096. type Lwpid_t = X__lwpid_t /* types.h:155:19 */ // Thread ID (a.k.a. LWP)
  1097. type Mode_t = X__mode_t /* types.h:160:18 */ // permissions
  1098. type Accmode_t = X__accmode_t /* types.h:165:21 */ // access permissions
  1099. type Nlink_t = X__nlink_t /* types.h:170:19 */ // link count
  1100. type Off_t = X__off_t /* types.h:175:18 */ // file offset
  1101. type Off64_t = X__off64_t /* types.h:180:19 */ // file offset (alias)
  1102. type Pid_t = X__pid_t /* types.h:185:18 */ // process id
  1103. type Register_t = X__register_t /* types.h:189:22 */
  1104. type Rlim_t = X__rlim_t /* types.h:192:18 */ // resource limit
  1105. type Sbintime_t = X__int64_t /* types.h:196:19 */
  1106. type Segsz_t = X__segsz_t /* types.h:198:19 */
  1107. type Ssize_t = X__ssize_t /* types.h:206:19 */
  1108. type Suseconds_t = X__suseconds_t /* types.h:211:23 */ // microseconds (signed)
  1109. type Time_t = X__time_t /* types.h:216:18 */
  1110. type Timer_t = X__timer_t /* types.h:221:19 */
  1111. type Mqd_t = X__mqd_t /* types.h:226:17 */
  1112. type U_register_t = X__u_register_t /* types.h:230:24 */
  1113. type Uid_t = X__uid_t /* types.h:233:18 */ // user id
  1114. type Useconds_t = X__useconds_t /* types.h:238:22 */ // microseconds (unsigned)
  1115. type Cap_ioctl_t = uint64 /* types.h:244:23 */
  1116. // Types suitable for exporting physical addresses, virtual addresses
  1117. // (pointers), and memory object sizes from the kernel independent of native
  1118. // word size. These should be used in place of vm_paddr_t, (u)intptr_t, and
  1119. // size_t in structs which contain such types that are shared with userspace.
  1120. type Kpaddr_t = X__uint64_t /* types.h:260:20 */
  1121. type Kvaddr_t = X__uint64_t /* types.h:261:20 */
  1122. type Ksize_t = X__uint64_t /* types.h:262:20 */
  1123. type Kssize_t = X__int64_t /* types.h:263:19 */
  1124. type Vm_offset_t = X__vm_offset_t /* types.h:265:23 */
  1125. type Vm_ooffset_t = X__uint64_t /* types.h:266:20 */
  1126. type Vm_paddr_t = X__vm_paddr_t /* types.h:267:22 */
  1127. type Vm_pindex_t = X__uint64_t /* types.h:268:20 */
  1128. type Vm_size_t = X__vm_size_t /* types.h:269:21 */
  1129. type Rman_res_t = X__rman_res_t /* types.h:271:25 */
  1130. // -
  1131. // SPDX-License-Identifier: BSD-3-Clause
  1132. //
  1133. // Copyright (c) 1992, 1993
  1134. // The Regents of the University of California. All rights reserved.
  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. // $FreeBSD$
  1161. // -
  1162. // SPDX-License-Identifier: BSD-3-Clause
  1163. //
  1164. // Copyright (c) 1991, 1993
  1165. // The Regents of the University of California. All rights reserved.
  1166. //
  1167. // This code is derived from software contributed to Berkeley by
  1168. // Berkeley Software Design, Inc.
  1169. //
  1170. // Redistribution and use in source and binary forms, with or without
  1171. // modification, are permitted provided that the following conditions
  1172. // are met:
  1173. // 1. Redistributions of source code must retain the above copyright
  1174. // notice, this list of conditions and the following disclaimer.
  1175. // 2. Redistributions in binary form must reproduce the above copyright
  1176. // notice, this list of conditions and the following disclaimer in the
  1177. // documentation and/or other materials provided with the distribution.
  1178. // 3. Neither the name of the University nor the names of its contributors
  1179. // may be used to endorse or promote products derived from this software
  1180. // without specific prior written permission.
  1181. //
  1182. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1183. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1184. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1185. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1186. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1187. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1188. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1189. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1190. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1191. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1192. // SUCH DAMAGE.
  1193. //
  1194. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1195. // $FreeBSD$
  1196. // -
  1197. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1198. //
  1199. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1200. // All rights reserved.
  1201. //
  1202. // Redistribution and use in source and binary forms, with or without
  1203. // modification, are permitted provided that the following conditions
  1204. // are met:
  1205. // 1. Redistributions of source code must retain the above copyright
  1206. // notice, this list of conditions and the following disclaimer.
  1207. // 2. Redistributions in binary form must reproduce the above copyright
  1208. // notice, this list of conditions and the following disclaimer in the
  1209. // documentation and/or other materials provided with the distribution.
  1210. //
  1211. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1212. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1213. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1214. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1215. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1216. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1217. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1218. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1219. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1220. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1221. // SUCH DAMAGE.
  1222. //
  1223. // $FreeBSD$
  1224. // -
  1225. // SPDX-License-Identifier: BSD-3-Clause
  1226. //
  1227. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  1228. // The Regents of the University of California. All rights reserved.
  1229. // (c) UNIX System Laboratories, Inc.
  1230. // All or some portions of this file are derived from material licensed
  1231. // to the University of California by American Telephone and Telegraph
  1232. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1233. // the permission of UNIX System Laboratories, Inc.
  1234. //
  1235. // Redistribution and use in source and binary forms, with or without
  1236. // modification, are permitted provided that the following conditions
  1237. // are met:
  1238. // 1. Redistributions of source code must retain the above copyright
  1239. // notice, this list of conditions and the following disclaimer.
  1240. // 2. Redistributions in binary form must reproduce the above copyright
  1241. // notice, this list of conditions and the following disclaimer in the
  1242. // documentation and/or other materials provided with the distribution.
  1243. // 3. Neither the name of the University nor the names of its contributors
  1244. // may be used to endorse or promote products derived from this software
  1245. // without specific prior written permission.
  1246. //
  1247. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1248. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1249. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1250. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1251. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1252. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1253. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1254. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1255. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1256. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1257. // SUCH DAMAGE.
  1258. //
  1259. // @(#)signal.h 8.4 (Berkeley) 5/4/95
  1260. // $FreeBSD$
  1261. // sigset_t macros.
  1262. type X__sigset = struct{ F__bits [4]X__uint32_t } /* _sigset.h:53:9 */
  1263. // -
  1264. // SPDX-License-Identifier: BSD-3-Clause
  1265. //
  1266. // Copyright (c) 1992, 1993
  1267. // The Regents of the University of California. All rights reserved.
  1268. //
  1269. // Redistribution and use in source and binary forms, with or without
  1270. // modification, are permitted provided that the following conditions
  1271. // are met:
  1272. // 1. Redistributions of source code must retain the above copyright
  1273. // notice, this list of conditions and the following disclaimer.
  1274. // 2. Redistributions in binary form must reproduce the above copyright
  1275. // notice, this list of conditions and the following disclaimer in the
  1276. // documentation and/or other materials provided with the distribution.
  1277. // 3. Neither the name of the University nor the names of its contributors
  1278. // may be used to endorse or promote products derived from this software
  1279. // without specific prior written permission.
  1280. //
  1281. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1282. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1283. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1284. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1285. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1286. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1287. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1288. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1289. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1290. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1291. // SUCH DAMAGE.
  1292. //
  1293. // $FreeBSD$
  1294. // -
  1295. // SPDX-License-Identifier: BSD-3-Clause
  1296. //
  1297. // Copyright (c) 1991, 1993
  1298. // The Regents of the University of California. All rights reserved.
  1299. //
  1300. // This code is derived from software contributed to Berkeley by
  1301. // Berkeley Software Design, Inc.
  1302. //
  1303. // Redistribution and use in source and binary forms, with or without
  1304. // modification, are permitted provided that the following conditions
  1305. // are met:
  1306. // 1. Redistributions of source code must retain the above copyright
  1307. // notice, this list of conditions and the following disclaimer.
  1308. // 2. Redistributions in binary form must reproduce the above copyright
  1309. // notice, this list of conditions and the following disclaimer in the
  1310. // documentation and/or other materials provided with the distribution.
  1311. // 3. Neither the name of the University nor the names of its contributors
  1312. // may be used to endorse or promote products derived from this software
  1313. // without specific prior written permission.
  1314. //
  1315. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1316. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1317. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1318. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1319. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1320. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1321. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1322. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1323. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1324. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1325. // SUCH DAMAGE.
  1326. //
  1327. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1328. // $FreeBSD$
  1329. // -
  1330. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1331. //
  1332. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1333. // All rights reserved.
  1334. //
  1335. // Redistribution and use in source and binary forms, with or without
  1336. // modification, are permitted provided that the following conditions
  1337. // are met:
  1338. // 1. Redistributions of source code must retain the above copyright
  1339. // notice, this list of conditions and the following disclaimer.
  1340. // 2. Redistributions in binary form must reproduce the above copyright
  1341. // notice, this list of conditions and the following disclaimer in the
  1342. // documentation and/or other materials provided with the distribution.
  1343. //
  1344. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1345. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1346. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1347. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1348. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1349. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1350. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1351. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1352. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1353. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1354. // SUCH DAMAGE.
  1355. //
  1356. // $FreeBSD$
  1357. // -
  1358. // SPDX-License-Identifier: BSD-3-Clause
  1359. //
  1360. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  1361. // The Regents of the University of California. All rights reserved.
  1362. // (c) UNIX System Laboratories, Inc.
  1363. // All or some portions of this file are derived from material licensed
  1364. // to the University of California by American Telephone and Telegraph
  1365. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1366. // the permission of UNIX System Laboratories, Inc.
  1367. //
  1368. // Redistribution and use in source and binary forms, with or without
  1369. // modification, are permitted provided that the following conditions
  1370. // are met:
  1371. // 1. Redistributions of source code must retain the above copyright
  1372. // notice, this list of conditions and the following disclaimer.
  1373. // 2. Redistributions in binary form must reproduce the above copyright
  1374. // notice, this list of conditions and the following disclaimer in the
  1375. // documentation and/or other materials provided with the distribution.
  1376. // 3. Neither the name of the University nor the names of its contributors
  1377. // may be used to endorse or promote products derived from this software
  1378. // without specific prior written permission.
  1379. //
  1380. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1381. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1382. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1383. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1384. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1385. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1386. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1387. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1388. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1389. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1390. // SUCH DAMAGE.
  1391. //
  1392. // @(#)signal.h 8.4 (Berkeley) 5/4/95
  1393. // $FreeBSD$
  1394. // sigset_t macros.
  1395. type X__sigset_t = X__sigset /* _sigset.h:55:3 */
  1396. // -
  1397. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1398. //
  1399. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1400. // All rights reserved.
  1401. //
  1402. // Redistribution and use in source and binary forms, with or without
  1403. // modification, are permitted provided that the following conditions
  1404. // are met:
  1405. // 1. Redistributions of source code must retain the above copyright
  1406. // notice, this list of conditions and the following disclaimer.
  1407. // 2. Redistributions in binary form must reproduce the above copyright
  1408. // notice, this list of conditions and the following disclaimer in the
  1409. // documentation and/or other materials provided with the distribution.
  1410. //
  1411. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1412. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1413. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1414. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1415. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1416. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1417. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1418. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1419. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1420. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1421. // SUCH DAMAGE.
  1422. //
  1423. // $FreeBSD$
  1424. // -
  1425. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1426. //
  1427. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1428. // All rights reserved.
  1429. //
  1430. // Redistribution and use in source and binary forms, with or without
  1431. // modification, are permitted provided that the following conditions
  1432. // are met:
  1433. // 1. Redistributions of source code must retain the above copyright
  1434. // notice, this list of conditions and the following disclaimer.
  1435. // 2. Redistributions in binary form must reproduce the above copyright
  1436. // notice, this list of conditions and the following disclaimer in the
  1437. // documentation and/or other materials provided with the distribution.
  1438. //
  1439. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1440. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1441. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1442. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1443. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1444. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1445. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1446. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1447. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1448. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1449. // SUCH DAMAGE.
  1450. //
  1451. // $FreeBSD$
  1452. // Structure returned by gettimeofday(2) system call, and used in other calls.
  1453. type Timeval = struct {
  1454. Ftv_sec Time_t
  1455. Ftv_usec Suseconds_t
  1456. } /* _timeval.h:49:1 */
  1457. // -
  1458. // SPDX-License-Identifier: BSD-3-Clause
  1459. //
  1460. // Copyright (c) 1982, 1986, 1993
  1461. // The Regents of the University of California. All rights reserved.
  1462. //
  1463. // Redistribution and use in source and binary forms, with or without
  1464. // modification, are permitted provided that the following conditions
  1465. // are met:
  1466. // 1. Redistributions of source code must retain the above copyright
  1467. // notice, this list of conditions and the following disclaimer.
  1468. // 2. Redistributions in binary form must reproduce the above copyright
  1469. // notice, this list of conditions and the following disclaimer in the
  1470. // documentation and/or other materials provided with the distribution.
  1471. // 3. Neither the name of the University nor the names of its contributors
  1472. // may be used to endorse or promote products derived from this software
  1473. // without specific prior written permission.
  1474. //
  1475. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1476. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1477. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1478. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1479. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1480. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1481. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1482. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1483. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1484. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1485. // SUCH DAMAGE.
  1486. //
  1487. // @(#)time.h 8.5 (Berkeley) 5/4/95
  1488. // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
  1489. // $FreeBSD$
  1490. // -
  1491. // SPDX-License-Identifier: BSD-3-Clause
  1492. //
  1493. // Copyright (c) 1991, 1993
  1494. // The Regents of the University of California. All rights reserved.
  1495. //
  1496. // This code is derived from software contributed to Berkeley by
  1497. // Berkeley Software Design, Inc.
  1498. //
  1499. // Redistribution and use in source and binary forms, with or without
  1500. // modification, are permitted provided that the following conditions
  1501. // are met:
  1502. // 1. Redistributions of source code must retain the above copyright
  1503. // notice, this list of conditions and the following disclaimer.
  1504. // 2. Redistributions in binary form must reproduce the above copyright
  1505. // notice, this list of conditions and the following disclaimer in the
  1506. // documentation and/or other materials provided with the distribution.
  1507. // 3. Neither the name of the University nor the names of its contributors
  1508. // may be used to endorse or promote products derived from this software
  1509. // without specific prior written permission.
  1510. //
  1511. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1512. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1513. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1514. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1515. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1516. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1517. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1518. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1519. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1520. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1521. // SUCH DAMAGE.
  1522. //
  1523. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1524. // $FreeBSD$
  1525. // -
  1526. // SPDX-License-Identifier: BSD-3-Clause
  1527. //
  1528. // Copyright (c) 1982, 1986, 1993
  1529. // The Regents of the University of California. All rights reserved.
  1530. //
  1531. // Redistribution and use in source and binary forms, with or without
  1532. // modification, are permitted provided that the following conditions
  1533. // are met:
  1534. // 1. Redistributions of source code must retain the above copyright
  1535. // notice, this list of conditions and the following disclaimer.
  1536. // 2. Redistributions in binary form must reproduce the above copyright
  1537. // notice, this list of conditions and the following disclaimer in the
  1538. // documentation and/or other materials provided with the distribution.
  1539. // 3. Neither the name of the University nor the names of its contributors
  1540. // may be used to endorse or promote products derived from this software
  1541. // without specific prior written permission.
  1542. //
  1543. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1544. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1545. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1546. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1547. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1548. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1549. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1550. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1551. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1552. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1553. // SUCH DAMAGE.
  1554. //
  1555. // @(#)time.h 8.5 (Berkeley) 5/4/95
  1556. // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
  1557. // $FreeBSD$
  1558. // -
  1559. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1560. //
  1561. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1562. // All rights reserved.
  1563. //
  1564. // Redistribution and use in source and binary forms, with or without
  1565. // modification, are permitted provided that the following conditions
  1566. // are met:
  1567. // 1. Redistributions of source code must retain the above copyright
  1568. // notice, this list of conditions and the following disclaimer.
  1569. // 2. Redistributions in binary form must reproduce the above copyright
  1570. // notice, this list of conditions and the following disclaimer in the
  1571. // documentation and/or other materials provided with the distribution.
  1572. //
  1573. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1574. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1575. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1576. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1577. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1578. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1579. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1580. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1581. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1582. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1583. // SUCH DAMAGE.
  1584. //
  1585. // $FreeBSD$
  1586. type Timespec = struct {
  1587. Ftv_sec Time_t
  1588. Ftv_nsec int64
  1589. } /* _timespec.h:46:1 */
  1590. // Structure defined by POSIX.1b to be like a itimerval, but with
  1591. // timespecs. Used in the timer_*() system calls.
  1592. type Itimerspec = struct {
  1593. Fit_interval struct {
  1594. Ftv_sec Time_t
  1595. Ftv_nsec int64
  1596. }
  1597. Fit_value struct {
  1598. Ftv_sec Time_t
  1599. Ftv_nsec int64
  1600. }
  1601. } /* timespec.h:60:1 */
  1602. type X__fd_mask = uint64 /* select.h:44:23 */
  1603. type Fd_mask = X__fd_mask /* select.h:46:19 */
  1604. type Sigset_t = X__sigset_t /* select.h:51:20 */
  1605. // Select uses bit masks of file descriptors in longs. These macros
  1606. // manipulate such bit fields (the filesystem macros use chars).
  1607. // FD_SETSIZE may be defined by the user, but the default here should
  1608. // be enough for most uses.
  1609. type Fd_set1 = struct{ F__fds_bits [16]X__fd_mask } /* select.h:73:9 */
  1610. // Select uses bit masks of file descriptors in longs. These macros
  1611. // manipulate such bit fields (the filesystem macros use chars).
  1612. // FD_SETSIZE may be defined by the user, but the default here should
  1613. // be enough for most uses.
  1614. type Fd_set = Fd_set1 /* select.h:75:3 */ // select(2)
  1615. type Crypt_data = struct {
  1616. Finitialized int32
  1617. F__buf [256]int8
  1618. } /* unistd.h:489:1 */
  1619. // getopt(3) external variable
  1620. var _ int8 /* gen.c:2:13: */