fts_freebsd_arm.go 108 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314
  1. // Code generated by 'ccgo fts/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 fts/fts_freebsd_arm.go -pkgname fts', DO NOT EDIT.
  2. package fts
  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. ACCESSPERMS = 511 // stat.h:298:1:
  15. ALLPERMS = 4095 // stat.h:300:1:
  16. BIG_ENDIAN = 4321 // _endian.h:70:1:
  17. BYTE_ORDER = 1234 // _endian.h:72:1:
  18. CLK_TCK = 128 // time.h:56:1:
  19. CLOCKS_PER_SEC = 128 // time.h:60:1:
  20. CLOCK_BOOTTIME = 5 // _clock_id.h:92:1:
  21. CLOCK_MONOTONIC = 4 // _clock_id.h:67:1:
  22. CLOCK_MONOTONIC_COARSE = 12 // _clock_id.h:94:1:
  23. CLOCK_MONOTONIC_FAST = 12 // _clock_id.h:79:1:
  24. CLOCK_MONOTONIC_PRECISE = 11 // _clock_id.h:78:1:
  25. CLOCK_PROCESS_CPUTIME_ID = 15 // _clock_id.h:85:1:
  26. CLOCK_PROF = 2 // _clock_id.h:64:1:
  27. CLOCK_REALTIME = 0 // _clock_id.h:60:1:
  28. CLOCK_REALTIME_COARSE = 10 // _clock_id.h:93:1:
  29. CLOCK_REALTIME_FAST = 10 // _clock_id.h:77:1:
  30. CLOCK_REALTIME_PRECISE = 9 // _clock_id.h:76:1:
  31. CLOCK_SECOND = 13 // _clock_id.h:80:1:
  32. CLOCK_THREAD_CPUTIME_ID = 14 // _clock_id.h:84:1:
  33. CLOCK_UPTIME = 5 // _clock_id.h:74:1:
  34. CLOCK_UPTIME_FAST = 8 // _clock_id.h:68:1:
  35. CLOCK_UPTIME_PRECISE = 7 // _clock_id.h:75:1:
  36. CLOCK_VIRTUAL = 1 // _clock_id.h:63:1:
  37. CPUCLOCK_WHICH_PID = 0 // time.h:476:1:
  38. CPUCLOCK_WHICH_TID = 1 // time.h:477:1:
  39. DEFFILEMODE = 438 // stat.h:302:1:
  40. DST_AUST = 2 // time.h:49:1:
  41. DST_CAN = 6 // time.h:53:1:
  42. DST_EET = 5 // time.h:52:1:
  43. DST_MET = 4 // time.h:51:1:
  44. DST_NONE = 0 // time.h:47:1:
  45. DST_USA = 1 // time.h:48:1:
  46. DST_WET = 3 // time.h:50:1:
  47. FD_SETSIZE = 1024 // select.h:61:1:
  48. FTS_AGAIN = 1 // fts.h:111:1:
  49. FTS_COMFOLLOW = 0x001 // fts.h:52:1:
  50. FTS_D = 1 // fts.h:90:1:
  51. FTS_DC = 2 // fts.h:91:1:
  52. FTS_DEFAULT = 3 // fts.h:92:1:
  53. FTS_DNR = 4 // fts.h:93:1:
  54. FTS_DONTCHDIR = 0x01 // fts.h:106:1:
  55. FTS_DOT = 5 // fts.h:94:1:
  56. FTS_DP = 6 // fts.h:95:1:
  57. FTS_ERR = 7 // fts.h:96:1:
  58. FTS_F = 8 // fts.h:97:1:
  59. FTS_FOLLOW = 2 // fts.h:112:1:
  60. FTS_INIT = 9 // fts.h:98:1:
  61. FTS_ISW = 0x04 // fts.h:108:1:
  62. FTS_LOGICAL = 0x002 // fts.h:53:1:
  63. FTS_NAMEONLY = 0x100 // fts.h:62:1:
  64. FTS_NOCHDIR = 0x004 // fts.h:54:1:
  65. FTS_NOINSTR = 3 // fts.h:113:1:
  66. FTS_NOSTAT = 0x008 // fts.h:55:1:
  67. FTS_NS = 10 // fts.h:99:1:
  68. FTS_NSOK = 11 // fts.h:100:1:
  69. FTS_OPTIONMASK = 0x0ff // fts.h:60:1:
  70. FTS_PHYSICAL = 0x010 // fts.h:56:1:
  71. FTS_ROOTLEVEL = 0 // fts.h:87:1:
  72. FTS_ROOTPARENTLEVEL = -1 // fts.h:86:1:
  73. FTS_SEEDOT = 0x020 // fts.h:57:1:
  74. FTS_SKIP = 4 // fts.h:114:1:
  75. FTS_SL = 12 // fts.h:101:1:
  76. FTS_SLNONE = 13 // fts.h:102:1:
  77. FTS_STOP = 0x200 // fts.h:63:1:
  78. FTS_SYMFOLLOW = 0x02 // fts.h:107:1:
  79. FTS_W = 14 // fts.h:103:1:
  80. FTS_WHITEOUT = 0x080 // fts.h:59:1:
  81. FTS_XDEV = 0x040 // fts.h:58:1:
  82. ITIMER_PROF = 2 // time.h:457:1:
  83. ITIMER_REAL = 0 // time.h:455:1:
  84. ITIMER_VIRTUAL = 1 // time.h:456:1:
  85. LITTLE_ENDIAN = 1234 // _endian.h:69:1:
  86. PDP_ENDIAN = 3412 // _endian.h:71:1:
  87. SBT_MAX = 0x7fffffffffffffff // time.h:135:1:
  88. SF_APPEND = 0x00040000 // stat.h:341:1:
  89. SF_ARCHIVED = 0x00010000 // stat.h:339:1:
  90. SF_IMMUTABLE = 0x00020000 // stat.h:340:1:
  91. SF_NOUNLINK = 0x00100000 // stat.h:342:1:
  92. SF_SETTABLE = 0xffff0000 // stat.h:338:1:
  93. SF_SNAPSHOT = 0x00200000 // stat.h:343:1:
  94. S_BLKSIZE = 512 // stat.h:304:1:
  95. S_IEXEC = 64 // stat.h:256:1:
  96. S_IFBLK = 0060000 // stat.h:274:1:
  97. S_IFCHR = 0020000 // stat.h:272:1:
  98. S_IFDIR = 0040000 // stat.h:273:1:
  99. S_IFIFO = 0010000 // stat.h:271:1:
  100. S_IFLNK = 0120000 // stat.h:276:1:
  101. S_IFMT = 0170000 // stat.h:270:1:
  102. S_IFREG = 0100000 // stat.h:275:1:
  103. S_IFSOCK = 0140000 // stat.h:277:1:
  104. S_IFWHT = 0160000 // stat.h:281:1:
  105. S_IREAD = 256 // stat.h:254:1:
  106. S_IRGRP = 0000040 // stat.h:260:1:
  107. S_IROTH = 0000004 // stat.h:265:1:
  108. S_IRUSR = 0000400 // stat.h:249:1:
  109. S_IRWXG = 0000070 // stat.h:259:1:
  110. S_IRWXO = 0000007 // stat.h:264:1:
  111. S_IRWXU = 0000700 // stat.h:248:1:
  112. S_ISGID = 0002000 // stat.h:243:1:
  113. S_ISTXT = 0001000 // stat.h:245:1:
  114. S_ISUID = 0004000 // stat.h:242:1:
  115. S_ISVTX = 0001000 // stat.h:278:1:
  116. S_IWGRP = 0000020 // stat.h:261:1:
  117. S_IWOTH = 0000002 // stat.h:266:1:
  118. S_IWRITE = 128 // stat.h:255:1:
  119. S_IWUSR = 0000200 // stat.h:250:1:
  120. S_IXGRP = 0000010 // stat.h:262:1:
  121. S_IXOTH = 0000001 // stat.h:267:1:
  122. S_IXUSR = 0000100 // stat.h:251:1:
  123. TIMER_ABSTIME = 0x1 // _clock_id.h:101:1:
  124. TIMER_RELTIME = 0x0 // _clock_id.h:98:1:
  125. TIME_UTC = 1 // time.h:188:1:
  126. UF_APPEND = 0x00000004 // stat.h:314:1:
  127. UF_ARCHIVE = 0x00000800 // stat.h:330:1:
  128. UF_HIDDEN = 0x00008000 // stat.h:333:1:
  129. UF_IMMUTABLE = 0x00000002 // stat.h:313:1:
  130. UF_NODUMP = 0x00000001 // stat.h:312:1:
  131. UF_NOUNLINK = 0x00000010 // stat.h:316:1:
  132. UF_OFFLINE = 0x00000200 // stat.h:328:1:
  133. UF_OPAQUE = 0x00000008 // stat.h:315:1:
  134. UF_READONLY = 0x00001000 // stat.h:331:1:
  135. UF_REPARSE = 0x00000400 // stat.h:329:1:
  136. UF_SETTABLE = 0x0000ffff // stat.h:311:1:
  137. UF_SPARSE = 0x00000100 // stat.h:327:1:
  138. UF_SYSTEM = 0x00000080 // stat.h:326:1:
  139. UTIME_NOW = -1 // stat.h:358:1:
  140. UTIME_OMIT = -2 // stat.h:359:1:
  141. X_ACCMODE_T_DECLARED = 0 // types.h:166:1:
  142. X_BIG_ENDIAN = 4321 // _endian.h:47:1:
  143. X_BLKCNT_T_DECLARED = 0 // types.h:90:1:
  144. X_BLKSIZE_T_DECLARED = 0 // types.h:81:1:
  145. X_BYTE_ORDER = 1234 // _endian.h:40:1:
  146. X_CAP_IOCTL_T_DECLARED = 0 // types.h:243:1:
  147. X_CAP_RIGHTS_T_DECLARED = 0 // types.h:248:1:
  148. X_CLOCKID_T_DECLARED = 0 // types.h:100:1:
  149. X_CLOCK_T_DECLARED = 0 // types.h:95:1:
  150. X_DEV_T_DECLARED = 0 // types.h:108:1:
  151. X_FFLAGS_T_DECLARED = 0 // types.h:113:1:
  152. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  153. X_FSBLKCNT_T_DECLARED = 0 // types.h:121:1:
  154. X_FTRUNCATE_DECLARED = 0 // types.h:417:1:
  155. X_FTS_H_ = 0 // fts.h:36:1:
  156. X_GID_T_DECLARED = 0 // types.h:126:1:
  157. X_ID_T_DECLARED = 0 // types.h:141:1:
  158. X_ILP32 = 1 // <predefined>:1:1:
  159. X_INO_T_DECLARED = 0 // types.h:146:1:
  160. X_INT16_T_DECLARED = 0 // _stdint.h:42:1:
  161. X_INT32_T_DECLARED = 0 // _stdint.h:47:1:
  162. X_INT64_T_DECLARED = 0 // _stdint.h:52:1:
  163. X_INT8_T_DECLARED = 0 // _stdint.h:37:1:
  164. X_INTMAX_T_DECLARED = 0 // _stdint.h:85:1:
  165. X_INTPTR_T_DECLARED = 0 // _stdint.h:77:1:
  166. X_IN_ADDR_T_DECLARED = 0 // types.h:131:1:
  167. X_IN_PORT_T_DECLARED = 0 // types.h:136:1:
  168. X_KEY_T_DECLARED = 0 // types.h:151:1:
  169. X_LITTLE_ENDIAN = 1234 // _endian.h:46:1:
  170. X_LOCALE_T_DEFINED = 0 // _time.h:34:1:
  171. X_LSEEK_DECLARED = 0 // types.h:421:1:
  172. X_LWPID_T_DECLARED = 0 // types.h:156:1:
  173. X_MACHINE_ENDIAN_H_ = 0 // endian.h:36:1:
  174. X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
  175. X_MKNOD_DECLARED = 0 // stat.h:393:1:
  176. X_MMAP_DECLARED = 0 // types.h:425:1:
  177. X_MODE_T_DECLARED = 0 // types.h:161:1:
  178. X_MQD_T_DECLARED = 0 // types.h:227:1:
  179. X_NLINK_T_DECLARED = 0 // types.h:171:1:
  180. X_Nonnull = 0 // cdefs.h:790:1:
  181. X_Null_unspecified = 0 // cdefs.h:792:1:
  182. X_Nullable = 0 // cdefs.h:791:1:
  183. X_OFF64_T_DECLARED = 0 // types.h:181:1:
  184. X_OFF_T_DECLARED = 0 // types.h:176:1:
  185. X_PDP_ENDIAN = 3412 // _endian.h:48:1:
  186. X_PID_T_DECLARED = 0 // types.h:186:1:
  187. X_PTHREAD_T_DECLARED = 0 // _pthreadtypes.h:68:1:
  188. X_QUAD_HIGHWORD = 1 // _endian.h:55:1:
  189. X_QUAD_LOWWORD = 0 // _endian.h:56:1:
  190. X_RLIM_T_DECLARED = 0 // types.h:193:1:
  191. X_SELECT_DECLARED = 0 // select.h:103:1:
  192. X_SIGSET_T_DECLARED = 0 // select.h:50:1:
  193. X_SIG_MAXSIG = 128 // _sigset.h:47:1:
  194. X_SIG_WORDS = 4 // _sigset.h:46:1:
  195. X_SIZE_T_DECLARED = 0 // types.h:202:1:
  196. X_SSIZE_T_DECLARED = 0 // types.h:207:1:
  197. X_SUSECONDS_T_DECLARED = 0 // types.h:212:1:
  198. X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
  199. X_SYS_SELECT_H_ = 0 // select.h:35:1:
  200. X_SYS_STAT_H_ = 0 // stat.h:41:1:
  201. X_SYS_SYS__CLOCK_ID_H = 0 // _clock_id.h:40:1:
  202. X_SYS_TIMESPEC_H_ = 0 // timespec.h:37:1:
  203. X_SYS_TIME_H_ = 0 // time.h:36:1:
  204. X_SYS_TYPES_H_ = 0 // types.h:41:1:
  205. X_SYS__ENDIAN_H_ = 0 // _endian.h:33:1:
  206. X_SYS__PTHREADTYPES_H_ = 0 // _pthreadtypes.h:39:1:
  207. X_SYS__SIGSET_H_ = 0 // _sigset.h:41:1:
  208. X_SYS__STDINT_H_ = 0 // _stdint.h:33:1:
  209. X_SYS__TIMESPEC_H_ = 0 // _timespec.h:37:1:
  210. X_SYS__TIMEVAL_H_ = 0 // _timeval.h:32:1:
  211. X_SYS__TYPES_H_ = 0 // _types.h:32:1:
  212. X_TIMER_T_DECLARED = 0 // types.h:222:1:
  213. X_TIME_H_ = 0 // time.h:44:1:
  214. X_TIME_T_DECLARED = 0 // types.h:217:1:
  215. X_TRUNCATE_DECLARED = 0 // types.h:429:1:
  216. X_UID_T_DECLARED = 0 // types.h:234:1:
  217. X_UINT16_T_DECLARED = 0 // _stdint.h:62:1:
  218. X_UINT32_T_DECLARED = 0 // _stdint.h:67:1:
  219. X_UINT64_T_DECLARED = 0 // _stdint.h:72:1:
  220. X_UINT8_T_DECLARED = 0 // _stdint.h:57:1:
  221. X_UINTMAX_T_DECLARED = 0 // _stdint.h:89:1:
  222. X_UINTPTR_T_DECLARED = 0 // _stdint.h:81:1:
  223. X_USECONDS_T_DECLARED = 0 // types.h:239:1:
  224. X_XLOCALE_LOCALE1_H = 0 // _time.h:44:1:
  225. Unix = 1 // <predefined>:367:1:
  226. )
  227. type Ptrdiff_t = int32 /* <builtin>:3:26 */
  228. type Size_t = uint32 /* <builtin>:9:23 */
  229. type Wchar_t = uint32 /* <builtin>:15:24 */
  230. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  231. type X__float128 = float64 /* <builtin>:47:21 */
  232. // -
  233. // SPDX-License-Identifier: BSD-3-Clause
  234. //
  235. // Copyright (c) 1982, 1986, 1991, 1993, 1994
  236. // The Regents of the University of California. All rights reserved.
  237. // (c) UNIX System Laboratories, Inc.
  238. // All or some portions of this file are derived from material licensed
  239. // to the University of California by American Telephone and Telegraph
  240. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  241. // the permission of UNIX System Laboratories, Inc.
  242. //
  243. // Redistribution and use in source and binary forms, with or without
  244. // modification, are permitted provided that the following conditions
  245. // are met:
  246. // 1. Redistributions of source code must retain the above copyright
  247. // notice, this list of conditions and the following disclaimer.
  248. // 2. Redistributions in binary form must reproduce the above copyright
  249. // notice, this list of conditions and the following disclaimer in the
  250. // documentation and/or other materials provided with the distribution.
  251. // 3. Neither the name of the University nor the names of its contributors
  252. // may be used to endorse or promote products derived from this software
  253. // without specific prior written permission.
  254. //
  255. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  256. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  257. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  258. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  259. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  260. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  261. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  262. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  263. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  264. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  265. // SUCH DAMAGE.
  266. //
  267. // @(#)types.h 8.6 (Berkeley) 2/19/95
  268. // $FreeBSD$
  269. // -
  270. // SPDX-License-Identifier: BSD-3-Clause
  271. //
  272. // Copyright (c) 1991, 1993
  273. // The Regents of the University of California. All rights reserved.
  274. //
  275. // This code is derived from software contributed to Berkeley by
  276. // Berkeley Software Design, Inc.
  277. //
  278. // Redistribution and use in source and binary forms, with or without
  279. // modification, are permitted provided that the following conditions
  280. // are met:
  281. // 1. Redistributions of source code must retain the above copyright
  282. // notice, this list of conditions and the following disclaimer.
  283. // 2. Redistributions in binary form must reproduce the above copyright
  284. // notice, this list of conditions and the following disclaimer in the
  285. // documentation and/or other materials provided with the distribution.
  286. // 3. Neither the name of the University nor the names of its contributors
  287. // may be used to endorse or promote products derived from this software
  288. // without specific prior written permission.
  289. //
  290. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  291. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  292. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  293. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  294. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  295. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  296. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  297. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  298. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  299. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  300. // SUCH DAMAGE.
  301. //
  302. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  303. // $FreeBSD$
  304. // Testing against Clang-specific extensions.
  305. // This code has been put in place to help reduce the addition of
  306. // compiler specific defines in FreeBSD code. It helps to aid in
  307. // having a compiler-agnostic source tree.
  308. // Compiler memory barriers, specific to gcc and clang.
  309. // XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced
  310. // Macro to test if we're using a specific version of gcc or later.
  311. // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  312. // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  313. // The __CONCAT macro is a bit tricky to use if it must work in non-ANSI
  314. // mode -- there must be no spaces between its arguments, and for nested
  315. // __CONCAT's, all the __CONCAT's must be at the left. __CONCAT can also
  316. // concatenate double-quoted strings produced by the __STRING macro, but
  317. // this only works with ANSI C.
  318. //
  319. // __XSTRING is like __STRING, but it expands any macros in its argument
  320. // first. It is only available with ANSI C.
  321. // Compiler-dependent macros to help declare dead (non-returning) and
  322. // pure (no side effects) functions, and unused variables. They are
  323. // null except for versions of gcc that are known to support the features
  324. // properly (old versions of gcc-2 supported the dead and pure features
  325. // in a different (wrong) way). If we do not provide an implementation
  326. // for a given compiler, let the compile fail if it is told to use
  327. // a feature that we cannot live without.
  328. // Keywords added in C11.
  329. // Emulation of C11 _Generic(). Unlike the previously defined C11
  330. // keywords, it is not possible to implement this using exactly the same
  331. // syntax. Therefore implement something similar under the name
  332. // __generic(). Unlike _Generic(), this macro can only distinguish
  333. // between a single type, so it requires nested invocations to
  334. // distinguish multiple cases.
  335. // C99 Static array indices in function parameter declarations. Syntax such as:
  336. // void bar(int myArray[static 10]);
  337. // is allowed in C99 but not in C++. Define __min_size appropriately so
  338. // headers using it can be compiled in either language. Use like this:
  339. // void bar(int myArray[__min_size(10)]);
  340. // XXX: should use `#if __STDC_VERSION__ < 199901'.
  341. // C++11 exposes a load of C99 stuff
  342. // GCC 2.95 provides `__restrict' as an extension to C90 to support the
  343. // C99-specific `restrict' type qualifier. We happen to use `__restrict' as
  344. // a way to define the `restrict' type qualifier without disturbing older
  345. // software that is unaware of C99 keywords.
  346. // GNU C version 2.96 adds explicit branch prediction so that
  347. // the CPU back-end can hint the processor and also so that
  348. // code blocks can be reordered such that the predicted path
  349. // sees a more linear flow, thus improving cache behavior, etc.
  350. //
  351. // The following two macros provide us with a way to utilize this
  352. // compiler feature. Use __predict_true() if you expect the expression
  353. // to evaluate to true, and __predict_false() if you expect the
  354. // expression to evaluate to false.
  355. //
  356. // A few notes about usage:
  357. //
  358. // * Generally, __predict_false() error condition checks (unless
  359. // you have some _strong_ reason to do otherwise, in which case
  360. // document it), and/or __predict_true() `no-error' condition
  361. // checks, assuming you want to optimize for the no-error case.
  362. //
  363. // * Other than that, if you don't know the likelihood of a test
  364. // succeeding from empirical or other `hard' evidence, don't
  365. // make predictions.
  366. //
  367. // * These are meant to be used in places that are run `a lot'.
  368. // It is wasteful to make predictions in code that is run
  369. // seldomly (e.g. at subsystem initialization time) as the
  370. // basic block reordering that this affects can often generate
  371. // larger code.
  372. // We define this here since <stddef.h>, <sys/queue.h>, and <sys/types.h>
  373. // require it.
  374. // Given the pointer x to the member m of the struct s, return
  375. // a pointer to the containing structure. When using GCC, we first
  376. // assign pointer x to a local variable, to check that its type is
  377. // compatible with member m.
  378. // Compiler-dependent macros to declare that functions take printf-like
  379. // or scanf-like arguments. They are null except for versions of gcc
  380. // that are known to support the features properly (old versions of gcc-2
  381. // didn't permit keeping the keywords out of the application namespace).
  382. // Compiler-dependent macros that rely on FreeBSD-specific extensions.
  383. // Embed the rcs id of a source file in the resulting library. Note that in
  384. // more recent ELF binutils, we use .ident allowing the ID to be stripped.
  385. // Usage:
  386. // __FBSDID("$FreeBSD$");
  387. // -
  388. // The following definitions are an extension of the behavior originally
  389. // implemented in <sys/_posix.h>, but with a different level of granularity.
  390. // POSIX.1 requires that the macros we test be defined before any standard
  391. // header file is included.
  392. //
  393. // Here's a quick run-down of the versions:
  394. // defined(_POSIX_SOURCE) 1003.1-1988
  395. // _POSIX_C_SOURCE == 1 1003.1-1990
  396. // _POSIX_C_SOURCE == 2 1003.2-1992 C Language Binding Option
  397. // _POSIX_C_SOURCE == 199309 1003.1b-1993
  398. // _POSIX_C_SOURCE == 199506 1003.1c-1995, 1003.1i-1995,
  399. // and the omnibus ISO/IEC 9945-1: 1996
  400. // _POSIX_C_SOURCE == 200112 1003.1-2001
  401. // _POSIX_C_SOURCE == 200809 1003.1-2008
  402. //
  403. // In addition, the X/Open Portability Guide, which is now the Single UNIX
  404. // Specification, defines a feature-test macro which indicates the version of
  405. // that specification, and which subsumes _POSIX_C_SOURCE.
  406. //
  407. // Our macros begin with two underscores to avoid namespace screwage.
  408. // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1.
  409. // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2.
  410. // Deal with various X/Open Portability Guides and Single UNIX Spec.
  411. // Deal with all versions of POSIX. The ordering relative to the tests above is
  412. // important.
  413. // -
  414. // Deal with _ANSI_SOURCE:
  415. // If it is defined, and no other compilation environment is explicitly
  416. // requested, then define our internal feature-test macros to zero. This
  417. // makes no difference to the preprocessor (undefined symbols in preprocessing
  418. // expressions are defined to have value zero), but makes it more convenient for
  419. // a test program to print out the values.
  420. //
  421. // If a program mistakenly defines _ANSI_SOURCE and some other macro such as
  422. // _POSIX_C_SOURCE, we will assume that it wants the broader compilation
  423. // environment (and in fact we will never get here).
  424. // User override __EXT1_VISIBLE
  425. // Old versions of GCC use non-standard ARM arch symbols; acle-compat.h
  426. // translates them to __ARM_ARCH and the modern feature symbols defined by ARM.
  427. // Nullability qualifiers: currently only supported by Clang.
  428. // Type Safety Checking
  429. //
  430. // Clang provides additional attributes to enable checking type safety
  431. // properties that cannot be enforced by the C type system.
  432. // Lock annotations.
  433. //
  434. // Clang provides support for doing basic thread-safety tests at
  435. // compile-time, by marking which locks will/should be held when
  436. // entering/leaving a functions.
  437. //
  438. // Furthermore, it is also possible to annotate variables and structure
  439. // members to enforce that they are only accessed when certain locks are
  440. // held.
  441. // Structure implements a lock.
  442. // Function acquires an exclusive or shared lock.
  443. // Function attempts to acquire an exclusive or shared lock.
  444. // Function releases a lock.
  445. // Function asserts that an exclusive or shared lock is held.
  446. // Function requires that an exclusive or shared lock is or is not held.
  447. // Function should not be analyzed.
  448. // Function or variable should not be sanitized, e.g., by AddressSanitizer.
  449. // GCC has the nosanitize attribute, but as a function attribute only, and
  450. // warns on use as a variable attribute.
  451. // Guard variables and structure members by lock.
  452. // Alignment builtins for better type checking and improved code generation.
  453. // Provide fallback versions for other compilers (GCC/Clang < 10):
  454. // Machine type dependent parameters.
  455. // -
  456. // SPDX-License-Identifier: BSD-3-Clause
  457. //
  458. // Copyright (c) 2001 David E. O'Brien
  459. //
  460. // Redistribution and use in source and binary forms, with or without
  461. // modification, are permitted provided that the following conditions
  462. // are met:
  463. // 1. Redistributions of source code must retain the above copyright
  464. // notice, this list of conditions and the following disclaimer.
  465. // 2. Redistributions in binary form must reproduce the above copyright
  466. // notice, this list of conditions and the following disclaimer in the
  467. // documentation and/or other materials provided with the distribution.
  468. // 3. Neither the name of the University nor the names of its contributors
  469. // may be used to endorse or promote products derived from this software
  470. // without specific prior written permission.
  471. //
  472. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  473. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  474. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  475. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  476. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  477. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  478. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  479. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  480. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  481. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  482. // SUCH DAMAGE.
  483. //
  484. // @(#)endian.h 8.1 (Berkeley) 6/10/93
  485. // $NetBSD: endian.h,v 1.7 1999/08/21 05:53:51 simonb Exp $
  486. // $FreeBSD$
  487. // -
  488. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  489. //
  490. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  491. // All rights reserved.
  492. //
  493. // Redistribution and use in source and binary forms, with or without
  494. // modification, are permitted provided that the following conditions
  495. // are met:
  496. // 1. Redistributions of source code must retain the above copyright
  497. // notice, this list of conditions and the following disclaimer.
  498. // 2. Redistributions in binary form must reproduce the above copyright
  499. // notice, this list of conditions and the following disclaimer in the
  500. // documentation and/or other materials provided with the distribution.
  501. //
  502. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  503. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  504. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  505. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  506. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  507. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  508. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  509. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  510. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  511. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  512. // SUCH DAMAGE.
  513. //
  514. // $FreeBSD$
  515. // -
  516. // SPDX-License-Identifier: BSD-3-Clause
  517. //
  518. // Copyright (c) 1991, 1993
  519. // The Regents of the University of California. All rights reserved.
  520. //
  521. // This code is derived from software contributed to Berkeley by
  522. // Berkeley Software Design, Inc.
  523. //
  524. // Redistribution and use in source and binary forms, with or without
  525. // modification, are permitted provided that the following conditions
  526. // are met:
  527. // 1. Redistributions of source code must retain the above copyright
  528. // notice, this list of conditions and the following disclaimer.
  529. // 2. Redistributions in binary form must reproduce the above copyright
  530. // notice, this list of conditions and the following disclaimer in the
  531. // documentation and/or other materials provided with the distribution.
  532. // 3. Neither the name of the University nor the names of its contributors
  533. // may be used to endorse or promote products derived from this software
  534. // without specific prior written permission.
  535. //
  536. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  537. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  538. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  539. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  540. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  541. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  542. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  543. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  544. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  545. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  546. // SUCH DAMAGE.
  547. //
  548. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  549. // $FreeBSD$
  550. // -
  551. // SPDX-License-Identifier: BSD-4-Clause
  552. //
  553. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  554. // Copyright (c) 1990, 1993
  555. // The Regents of the University of California. All rights reserved.
  556. //
  557. // Redistribution and use in source and binary forms, with or without
  558. // modification, are permitted provided that the following conditions
  559. // are met:
  560. // 1. Redistributions of source code must retain the above copyright
  561. // notice, this list of conditions and the following disclaimer.
  562. // 2. Redistributions in binary form must reproduce the above copyright
  563. // notice, this list of conditions and the following disclaimer in the
  564. // documentation and/or other materials provided with the distribution.
  565. // 3. All advertising materials mentioning features or use of this software
  566. // must display the following acknowledgement:
  567. // This product includes software developed by the University of
  568. // California, Berkeley and its contributors.
  569. // 4. Neither the name of the University nor the names of its contributors
  570. // may be used to endorse or promote products derived from this software
  571. // without specific prior written permission.
  572. //
  573. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  574. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  575. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  576. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  577. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  578. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  579. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  580. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  581. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  582. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  583. // SUCH DAMAGE.
  584. //
  585. // From: @(#)ansi.h 8.2 (Berkeley) 1/4/94
  586. // From: @(#)types.h 8.3 (Berkeley) 1/5/94
  587. // $FreeBSD$
  588. // Basic types upon which most other types are built.
  589. type X__int8_t = int8 /* _types.h:51:22 */
  590. type X__uint8_t = uint8 /* _types.h:52:24 */
  591. type X__int16_t = int16 /* _types.h:53:17 */
  592. type X__uint16_t = uint16 /* _types.h:54:25 */
  593. type X__int32_t = int32 /* _types.h:55:15 */
  594. type X__uint32_t = uint32 /* _types.h:56:23 */
  595. // LONGLONG
  596. type X__int64_t = int64 /* _types.h:61:20 */
  597. // LONGLONG
  598. type X__uint64_t = uint64 /* _types.h:66:28 */
  599. // Standard type definitions.
  600. type X__clock_t = X__uint32_t /* _types.h:71:20 */ // clock()...
  601. type X__critical_t = X__int32_t /* _types.h:72:19 */
  602. type X__double_t = float64 /* _types.h:74:17 */
  603. type X__float_t = float32 /* _types.h:75:16 */
  604. type X__intfptr_t = X__int32_t /* _types.h:77:19 */
  605. type X__intmax_t = X__int64_t /* _types.h:78:19 */
  606. type X__intptr_t = X__int32_t /* _types.h:79:19 */
  607. type X__int_fast8_t = X__int32_t /* _types.h:80:19 */
  608. type X__int_fast16_t = X__int32_t /* _types.h:81:19 */
  609. type X__int_fast32_t = X__int32_t /* _types.h:82:19 */
  610. type X__int_fast64_t = X__int64_t /* _types.h:83:19 */
  611. type X__int_least8_t = X__int8_t /* _types.h:84:18 */
  612. type X__int_least16_t = X__int16_t /* _types.h:85:19 */
  613. type X__int_least32_t = X__int32_t /* _types.h:86:19 */
  614. type X__int_least64_t = X__int64_t /* _types.h:87:19 */
  615. type X__ptrdiff_t = X__int32_t /* _types.h:88:19 */ // ptr1 - ptr2
  616. type X__register_t = X__int32_t /* _types.h:89:19 */
  617. type X__segsz_t = X__int32_t /* _types.h:90:19 */ // segment size (in pages)
  618. type X__size_t = X__uint32_t /* _types.h:91:20 */ // sizeof()
  619. type X__ssize_t = X__int32_t /* _types.h:92:19 */ // byte count or error
  620. type X__time_t = X__int64_t /* _types.h:93:19 */ // time()...
  621. type X__uintfptr_t = X__uint32_t /* _types.h:94:20 */
  622. type X__uintmax_t = X__uint64_t /* _types.h:95:20 */
  623. type X__uintptr_t = X__uint32_t /* _types.h:96:20 */
  624. type X__uint_fast8_t = X__uint32_t /* _types.h:97:20 */
  625. type X__uint_fast16_t = X__uint32_t /* _types.h:98:20 */
  626. type X__uint_fast32_t = X__uint32_t /* _types.h:99:20 */
  627. type X__uint_fast64_t = X__uint64_t /* _types.h:100:20 */
  628. type X__uint_least8_t = X__uint8_t /* _types.h:101:19 */
  629. type X__uint_least16_t = X__uint16_t /* _types.h:102:20 */
  630. type X__uint_least32_t = X__uint32_t /* _types.h:103:20 */
  631. type X__uint_least64_t = X__uint64_t /* _types.h:104:20 */
  632. type X__u_register_t = X__uint32_t /* _types.h:105:20 */
  633. type X__vm_offset_t = X__uint32_t /* _types.h:106:20 */
  634. type X__vm_paddr_t = X__uint32_t /* _types.h:107:20 */
  635. type X__vm_size_t = X__uint32_t /* _types.h:108:20 */
  636. type X___wchar_t = uint32 /* _types.h:110:22 */
  637. // Standard type definitions.
  638. type X__blksize_t = X__int32_t /* _types.h:40:19 */ // file block size
  639. type X__blkcnt_t = X__int64_t /* _types.h:41:19 */ // file block count
  640. type X__clockid_t = X__int32_t /* _types.h:42:19 */ // clock_gettime()...
  641. type X__fflags_t = X__uint32_t /* _types.h:43:20 */ // file flags
  642. type X__fsblkcnt_t = X__uint64_t /* _types.h:44:20 */
  643. type X__fsfilcnt_t = X__uint64_t /* _types.h:45:20 */
  644. type X__gid_t = X__uint32_t /* _types.h:46:20 */
  645. type X__id_t = X__int64_t /* _types.h:47:19 */ // can hold a gid_t, pid_t, or uid_t
  646. type X__ino_t = X__uint64_t /* _types.h:48:20 */ // inode number
  647. type X__key_t = int32 /* _types.h:49:15 */ // IPC key (for Sys V IPC)
  648. type X__lwpid_t = X__int32_t /* _types.h:50:19 */ // Thread ID (a.k.a. LWP)
  649. type X__mode_t = X__uint16_t /* _types.h:51:20 */ // permissions
  650. type X__accmode_t = int32 /* _types.h:52:14 */ // access permissions
  651. type X__nl_item = int32 /* _types.h:53:14 */
  652. type X__nlink_t = X__uint64_t /* _types.h:54:20 */ // link count
  653. type X__off_t = X__int64_t /* _types.h:55:19 */ // file offset
  654. type X__off64_t = X__int64_t /* _types.h:56:19 */ // file offset (alias)
  655. type X__pid_t = X__int32_t /* _types.h:57:19 */ // process [group]
  656. type X__rlim_t = X__int64_t /* _types.h:58:19 */ // resource limit - intentionally
  657. // signed, because of legacy code
  658. // that uses -1 for RLIM_INFINITY
  659. type X__sa_family_t = X__uint8_t /* _types.h:61:19 */
  660. type X__socklen_t = X__uint32_t /* _types.h:62:20 */
  661. type X__suseconds_t = int32 /* _types.h:63:15 */ // microseconds (signed)
  662. type X__timer_t = uintptr /* _types.h:64:24 */ // timer_gettime()...
  663. type X__mqd_t = uintptr /* _types.h:65:21 */ // mq_open()...
  664. type X__uid_t = X__uint32_t /* _types.h:66:20 */
  665. type X__useconds_t = uint32 /* _types.h:67:22 */ // microseconds (unsigned)
  666. type X__cpuwhich_t = int32 /* _types.h:68:14 */ // which parameter for cpuset.
  667. type X__cpulevel_t = int32 /* _types.h:69:14 */ // level parameter for cpuset.
  668. type X__cpusetid_t = int32 /* _types.h:70:14 */ // cpuset identifier.
  669. type X__daddr_t = X__int64_t /* _types.h:71:19 */ // bwrite(3), FIOBMAP2, etc
  670. // Unusual type definitions.
  671. // rune_t is declared to be an “int” instead of the more natural
  672. // “unsigned long” or “long”. Two things are happening here. It is not
  673. // unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
  674. // it looks like 10646 will be a 31 bit standard. This means that if your
  675. // ints cannot hold 32 bits, you will be in trouble. The reason an int was
  676. // chosen over a long is that the is*() and to*() routines take ints (says
  677. // ANSI C), but they use __ct_rune_t instead of int.
  678. //
  679. // NOTE: rune_t is not covered by ANSI nor other standards, and should not
  680. // be instantiated outside of lib/libc/locale. Use wchar_t. wint_t and
  681. // rune_t must be the same type. Also, wint_t should be able to hold all
  682. // members of the largest character set plus one extra value (WEOF), and
  683. // must be at least 16 bits.
  684. type X__ct_rune_t = int32 /* _types.h:91:14 */ // arg type for ctype funcs
  685. type X__rune_t = X__ct_rune_t /* _types.h:92:21 */ // rune_t (see above)
  686. type X__wint_t = X__ct_rune_t /* _types.h:93:21 */ // wint_t (see above)
  687. // Clang already provides these types as built-ins, but only in C++ mode.
  688. type X__char16_t = X__uint_least16_t /* _types.h:97:26 */
  689. type X__char32_t = X__uint_least32_t /* _types.h:98:26 */
  690. // In C++11, char16_t and char32_t are built-in types.
  691. type X__max_align_t = struct {
  692. F__max_align1 int64
  693. F__max_align2 float64
  694. } /* _types.h:111:3 */
  695. type X__dev_t = X__uint64_t /* _types.h:113:20 */ // device number
  696. type X__fixpt_t = X__uint32_t /* _types.h:115:20 */ // fixed point number
  697. // mbstate_t is an opaque object to keep conversion state during multibyte
  698. // stream conversions.
  699. type X__mbstate_t = struct {
  700. F__ccgo_pad1 [0]uint64
  701. F__mbstate8 [128]uint8
  702. } /* _types.h:124:3 */
  703. type X__rman_res_t = X__uintmax_t /* _types.h:126:25 */
  704. // Types for varargs. These are all provided by builtin types these
  705. // days, so centralize their definition.
  706. type X__va_list = X__builtin_va_list /* _types.h:133:27 */ // internally known to gcc
  707. type X__gnuc_va_list = X__va_list /* _types.h:140:20 */
  708. type Pthread_once = struct {
  709. Fstate int32
  710. Fmutex Pthread_mutex_t
  711. } /* _pthreadtypes.h:52:1 */
  712. // Primitive system data type definitions required by P1003.1c.
  713. //
  714. // Note that P1003.1c specifies that there are no defined comparison
  715. // or assignment operators for the types pthread_attr_t, pthread_cond_t,
  716. // pthread_condattr_t, pthread_mutex_t, pthread_mutexattr_t.
  717. type Pthread_t = uintptr /* _pthreadtypes.h:67:26 */
  718. type Pthread_attr_t = uintptr /* _pthreadtypes.h:70:30 */
  719. type Pthread_mutex_t = uintptr /* _pthreadtypes.h:71:31 */
  720. type Pthread_mutexattr_t = uintptr /* _pthreadtypes.h:72:35 */
  721. type Pthread_cond_t = uintptr /* _pthreadtypes.h:73:30 */
  722. type Pthread_condattr_t = uintptr /* _pthreadtypes.h:74:34 */
  723. type Pthread_key_t = int32 /* _pthreadtypes.h:75:20 */
  724. type Pthread_once_t = Pthread_once /* _pthreadtypes.h:76:30 */
  725. type Pthread_rwlock_t = uintptr /* _pthreadtypes.h:77:32 */
  726. type Pthread_rwlockattr_t = uintptr /* _pthreadtypes.h:78:35 */
  727. type Pthread_barrier_t = uintptr /* _pthreadtypes.h:79:33 */
  728. type Pthread_barrierattr_t = uintptr /* _pthreadtypes.h:80:36 */
  729. type Pthread_spinlock_t = uintptr /* _pthreadtypes.h:81:33 */
  730. // Additional type definitions:
  731. //
  732. // Note that P1003.1c reserves the prefixes pthread_ and PTHREAD_ for
  733. // use in header symbols.
  734. type Pthread_addr_t = uintptr /* _pthreadtypes.h:89:14 */
  735. type Pthread_startroutine_t = uintptr /* _pthreadtypes.h:90:14 */
  736. type U_char = uint8 /* types.h:52:23 */
  737. type U_short = uint16 /* types.h:53:24 */
  738. type U_int = uint32 /* types.h:54:22 */
  739. type U_long = uint32 /* types.h:55:23 */
  740. type Ushort = uint16 /* types.h:57:24 */ // Sys V compatibility
  741. type Uint = uint32 /* types.h:58:22 */ // Sys V compatibility
  742. // XXX POSIX sized integrals that should appear only in <sys/stdint.h>.
  743. // -
  744. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  745. //
  746. // Copyright (c) 2011 David E. O'Brien <obrien@FreeBSD.org>
  747. // Copyright (c) 2001 Mike Barcroft <mike@FreeBSD.org>
  748. // All rights reserved.
  749. //
  750. // Redistribution and use in source and binary forms, with or without
  751. // modification, are permitted provided that the following conditions
  752. // are met:
  753. // 1. Redistributions of source code must retain the above copyright
  754. // notice, this list of conditions and the following disclaimer.
  755. // 2. Redistributions in binary form must reproduce the above copyright
  756. // notice, this list of conditions and the following disclaimer in the
  757. // documentation and/or other materials provided with the distribution.
  758. //
  759. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  760. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  761. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  762. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  763. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  764. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  765. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  766. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  767. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  768. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  769. // SUCH DAMAGE.
  770. //
  771. // $FreeBSD$
  772. type Int8_t = X__int8_t /* _stdint.h:36:19 */
  773. type Int16_t = X__int16_t /* _stdint.h:41:20 */
  774. type Int32_t = X__int32_t /* _stdint.h:46:20 */
  775. type Int64_t = X__int64_t /* _stdint.h:51:20 */
  776. type Uint8_t = X__uint8_t /* _stdint.h:56:20 */
  777. type Uint16_t = X__uint16_t /* _stdint.h:61:21 */
  778. type Uint32_t = X__uint32_t /* _stdint.h:66:21 */
  779. type Uint64_t = X__uint64_t /* _stdint.h:71:21 */
  780. type Intptr_t = X__intptr_t /* _stdint.h:76:21 */
  781. type Uintptr_t = X__uintptr_t /* _stdint.h:80:22 */
  782. type Intmax_t = X__intmax_t /* _stdint.h:84:21 */
  783. type Uintmax_t = X__uintmax_t /* _stdint.h:88:22 */
  784. type U_int8_t = X__uint8_t /* types.h:67:19 */ // unsigned integrals (deprecated)
  785. type U_int16_t = X__uint16_t /* types.h:68:20 */
  786. type U_int32_t = X__uint32_t /* types.h:69:20 */
  787. type U_int64_t = X__uint64_t /* types.h:70:20 */
  788. type U_quad_t = X__uint64_t /* types.h:72:20 */ // quads (deprecated)
  789. type Quad_t = X__int64_t /* types.h:73:19 */
  790. type Qaddr_t = uintptr /* types.h:74:16 */
  791. type Caddr_t = uintptr /* types.h:76:14 */ // core address
  792. type C_caddr_t = uintptr /* types.h:77:20 */ // core address, pointer to const
  793. type Blksize_t = X__blksize_t /* types.h:80:21 */
  794. type Cpuwhich_t = X__cpuwhich_t /* types.h:84:22 */
  795. type Cpulevel_t = X__cpulevel_t /* types.h:85:22 */
  796. type Cpusetid_t = X__cpusetid_t /* types.h:86:22 */
  797. type Blkcnt_t = X__blkcnt_t /* types.h:89:20 */
  798. type Clock_t = X__clock_t /* types.h:94:19 */
  799. type Clockid_t = X__clockid_t /* types.h:99:21 */
  800. type Critical_t = X__critical_t /* types.h:103:22 */ // Critical section value
  801. type Daddr_t = X__daddr_t /* types.h:104:19 */ // disk address
  802. type Dev_t = X__dev_t /* types.h:107:18 */ // device number or struct cdev
  803. type Fflags_t = X__fflags_t /* types.h:112:20 */ // file flags
  804. type Fixpt_t = X__fixpt_t /* types.h:116:19 */ // fixed point number
  805. type Fsblkcnt_t = X__fsblkcnt_t /* types.h:119:22 */
  806. type Fsfilcnt_t = X__fsfilcnt_t /* types.h:120:22 */
  807. type Gid_t = X__gid_t /* types.h:125:18 */ // group id
  808. type In_addr_t = X__uint32_t /* types.h:130:20 */ // base type for internet address
  809. type In_port_t = X__uint16_t /* types.h:135:20 */
  810. type Id_t = X__id_t /* types.h:140:17 */ // can hold a uid_t or pid_t
  811. type Ino_t = X__ino_t /* types.h:145:18 */ // inode number
  812. type Key_t = X__key_t /* types.h:150:18 */ // IPC key (for Sys V IPC)
  813. type Lwpid_t = X__lwpid_t /* types.h:155:19 */ // Thread ID (a.k.a. LWP)
  814. type Mode_t = X__mode_t /* types.h:160:18 */ // permissions
  815. type Accmode_t = X__accmode_t /* types.h:165:21 */ // access permissions
  816. type Nlink_t = X__nlink_t /* types.h:170:19 */ // link count
  817. type Off_t = X__off_t /* types.h:175:18 */ // file offset
  818. type Off64_t = X__off64_t /* types.h:180:19 */ // file offset (alias)
  819. type Pid_t = X__pid_t /* types.h:185:18 */ // process id
  820. type Register_t = X__register_t /* types.h:189:22 */
  821. type Rlim_t = X__rlim_t /* types.h:192:18 */ // resource limit
  822. type Sbintime_t = X__int64_t /* types.h:196:19 */
  823. type Segsz_t = X__segsz_t /* types.h:198:19 */
  824. type Ssize_t = X__ssize_t /* types.h:206:19 */
  825. type Suseconds_t = X__suseconds_t /* types.h:211:23 */ // microseconds (signed)
  826. type Time_t = X__time_t /* types.h:216:18 */
  827. type Timer_t = X__timer_t /* types.h:221:19 */
  828. type Mqd_t = X__mqd_t /* types.h:226:17 */
  829. type U_register_t = X__u_register_t /* types.h:230:24 */
  830. type Uid_t = X__uid_t /* types.h:233:18 */ // user id
  831. type Useconds_t = X__useconds_t /* types.h:238:22 */ // microseconds (unsigned)
  832. type Cap_ioctl_t = uint32 /* types.h:244:23 */
  833. // Types suitable for exporting physical addresses, virtual addresses
  834. // (pointers), and memory object sizes from the kernel independent of native
  835. // word size. These should be used in place of vm_paddr_t, (u)intptr_t, and
  836. // size_t in structs which contain such types that are shared with userspace.
  837. type Kpaddr_t = X__uint64_t /* types.h:260:20 */
  838. type Kvaddr_t = X__uint64_t /* types.h:261:20 */
  839. type Ksize_t = X__uint64_t /* types.h:262:20 */
  840. type Kssize_t = X__int64_t /* types.h:263:19 */
  841. type Vm_offset_t = X__vm_offset_t /* types.h:265:23 */
  842. type Vm_ooffset_t = X__uint64_t /* types.h:266:20 */
  843. type Vm_paddr_t = X__vm_paddr_t /* types.h:267:22 */
  844. type Vm_pindex_t = X__uint64_t /* types.h:268:20 */
  845. type Vm_size_t = X__vm_size_t /* types.h:269:21 */
  846. type Rman_res_t = X__rman_res_t /* types.h:271:25 */
  847. // -
  848. // SPDX-License-Identifier: BSD-3-Clause
  849. //
  850. // Copyright (c) 1992, 1993
  851. // The Regents of the University of California. All rights reserved.
  852. //
  853. // Redistribution and use in source and binary forms, with or without
  854. // modification, are permitted provided that the following conditions
  855. // are met:
  856. // 1. Redistributions of source code must retain the above copyright
  857. // notice, this list of conditions and the following disclaimer.
  858. // 2. Redistributions in binary form must reproduce the above copyright
  859. // notice, this list of conditions and the following disclaimer in the
  860. // documentation and/or other materials provided with the distribution.
  861. // 3. Neither the name of the University nor the names of its contributors
  862. // may be used to endorse or promote products derived from this software
  863. // without specific prior written permission.
  864. //
  865. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  866. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  867. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  868. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  869. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  870. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  871. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  872. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  873. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  874. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  875. // SUCH DAMAGE.
  876. //
  877. // $FreeBSD$
  878. // -
  879. // SPDX-License-Identifier: BSD-3-Clause
  880. //
  881. // Copyright (c) 1991, 1993
  882. // The Regents of the University of California. All rights reserved.
  883. //
  884. // This code is derived from software contributed to Berkeley by
  885. // Berkeley Software Design, Inc.
  886. //
  887. // Redistribution and use in source and binary forms, with or without
  888. // modification, are permitted provided that the following conditions
  889. // are met:
  890. // 1. Redistributions of source code must retain the above copyright
  891. // notice, this list of conditions and the following disclaimer.
  892. // 2. Redistributions in binary form must reproduce the above copyright
  893. // notice, this list of conditions and the following disclaimer in the
  894. // documentation and/or other materials provided with the distribution.
  895. // 3. Neither the name of the University nor the names of its contributors
  896. // may be used to endorse or promote products derived from this software
  897. // without specific prior written permission.
  898. //
  899. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  900. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  901. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  902. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  903. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  904. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  905. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  906. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  907. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  908. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  909. // SUCH DAMAGE.
  910. //
  911. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  912. // $FreeBSD$
  913. // -
  914. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  915. //
  916. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  917. // All rights reserved.
  918. //
  919. // Redistribution and use in source and binary forms, with or without
  920. // modification, are permitted provided that the following conditions
  921. // are met:
  922. // 1. Redistributions of source code must retain the above copyright
  923. // notice, this list of conditions and the following disclaimer.
  924. // 2. Redistributions in binary form must reproduce the above copyright
  925. // notice, this list of conditions and the following disclaimer in the
  926. // documentation and/or other materials provided with the distribution.
  927. //
  928. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  929. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  930. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  931. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  932. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  933. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  934. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  935. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  936. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  937. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  938. // SUCH DAMAGE.
  939. //
  940. // $FreeBSD$
  941. // -
  942. // SPDX-License-Identifier: BSD-3-Clause
  943. //
  944. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  945. // The Regents of the University of California. All rights reserved.
  946. // (c) UNIX System Laboratories, Inc.
  947. // All or some portions of this file are derived from material licensed
  948. // to the University of California by American Telephone and Telegraph
  949. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  950. // the permission of UNIX System Laboratories, Inc.
  951. //
  952. // Redistribution and use in source and binary forms, with or without
  953. // modification, are permitted provided that the following conditions
  954. // are met:
  955. // 1. Redistributions of source code must retain the above copyright
  956. // notice, this list of conditions and the following disclaimer.
  957. // 2. Redistributions in binary form must reproduce the above copyright
  958. // notice, this list of conditions and the following disclaimer in the
  959. // documentation and/or other materials provided with the distribution.
  960. // 3. Neither the name of the University nor the names of its contributors
  961. // may be used to endorse or promote products derived from this software
  962. // without specific prior written permission.
  963. //
  964. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  965. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  966. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  967. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  968. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  969. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  970. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  971. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  972. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  973. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  974. // SUCH DAMAGE.
  975. //
  976. // @(#)signal.h 8.4 (Berkeley) 5/4/95
  977. // $FreeBSD$
  978. // sigset_t macros.
  979. type X__sigset = struct{ F__bits [4]X__uint32_t } /* _sigset.h:53:9 */
  980. // -
  981. // SPDX-License-Identifier: BSD-3-Clause
  982. //
  983. // Copyright (c) 1992, 1993
  984. // The Regents of the University of California. All rights reserved.
  985. //
  986. // Redistribution and use in source and binary forms, with or without
  987. // modification, are permitted provided that the following conditions
  988. // are met:
  989. // 1. Redistributions of source code must retain the above copyright
  990. // notice, this list of conditions and the following disclaimer.
  991. // 2. Redistributions in binary form must reproduce the above copyright
  992. // notice, this list of conditions and the following disclaimer in the
  993. // documentation and/or other materials provided with the distribution.
  994. // 3. Neither the name of the University nor the names of its contributors
  995. // may be used to endorse or promote products derived from this software
  996. // without specific prior written permission.
  997. //
  998. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  999. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1000. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1001. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1002. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1003. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1004. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1005. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1006. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1007. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1008. // SUCH DAMAGE.
  1009. //
  1010. // $FreeBSD$
  1011. // -
  1012. // SPDX-License-Identifier: BSD-3-Clause
  1013. //
  1014. // Copyright (c) 1991, 1993
  1015. // The Regents of the University of California. All rights reserved.
  1016. //
  1017. // This code is derived from software contributed to Berkeley by
  1018. // Berkeley Software Design, Inc.
  1019. //
  1020. // Redistribution and use in source and binary forms, with or without
  1021. // modification, are permitted provided that the following conditions
  1022. // are met:
  1023. // 1. Redistributions of source code must retain the above copyright
  1024. // notice, this list of conditions and the following disclaimer.
  1025. // 2. Redistributions in binary form must reproduce the above copyright
  1026. // notice, this list of conditions and the following disclaimer in the
  1027. // documentation and/or other materials provided with the distribution.
  1028. // 3. Neither the name of the University nor the names of its contributors
  1029. // may be used to endorse or promote products derived from this software
  1030. // without specific prior written permission.
  1031. //
  1032. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1033. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1034. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1035. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1036. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1037. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1038. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1039. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1040. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1041. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1042. // SUCH DAMAGE.
  1043. //
  1044. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1045. // $FreeBSD$
  1046. // -
  1047. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1048. //
  1049. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1050. // All rights reserved.
  1051. //
  1052. // Redistribution and use in source and binary forms, with or without
  1053. // modification, are permitted provided that the following conditions
  1054. // are met:
  1055. // 1. Redistributions of source code must retain the above copyright
  1056. // notice, this list of conditions and the following disclaimer.
  1057. // 2. Redistributions in binary form must reproduce the above copyright
  1058. // notice, this list of conditions and the following disclaimer in the
  1059. // documentation and/or other materials provided with the distribution.
  1060. //
  1061. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1062. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1063. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1064. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1065. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1066. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1067. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1068. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1069. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1070. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1071. // SUCH DAMAGE.
  1072. //
  1073. // $FreeBSD$
  1074. // -
  1075. // SPDX-License-Identifier: BSD-3-Clause
  1076. //
  1077. // Copyright (c) 1982, 1986, 1989, 1991, 1993
  1078. // The Regents of the University of California. All rights reserved.
  1079. // (c) UNIX System Laboratories, Inc.
  1080. // All or some portions of this file are derived from material licensed
  1081. // to the University of California by American Telephone and Telegraph
  1082. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1083. // the permission of UNIX System Laboratories, Inc.
  1084. //
  1085. // Redistribution and use in source and binary forms, with or without
  1086. // modification, are permitted provided that the following conditions
  1087. // are met:
  1088. // 1. Redistributions of source code must retain the above copyright
  1089. // notice, this list of conditions and the following disclaimer.
  1090. // 2. Redistributions in binary form must reproduce the above copyright
  1091. // notice, this list of conditions and the following disclaimer in the
  1092. // documentation and/or other materials provided with the distribution.
  1093. // 3. Neither the name of the University nor the names of its contributors
  1094. // may be used to endorse or promote products derived from this software
  1095. // without specific prior written permission.
  1096. //
  1097. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1098. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1099. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1100. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1101. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1102. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1103. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1104. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1105. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1106. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1107. // SUCH DAMAGE.
  1108. //
  1109. // @(#)signal.h 8.4 (Berkeley) 5/4/95
  1110. // $FreeBSD$
  1111. // sigset_t macros.
  1112. type X__sigset_t = X__sigset /* _sigset.h:55:3 */
  1113. // -
  1114. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1115. //
  1116. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1117. // All rights reserved.
  1118. //
  1119. // Redistribution and use in source and binary forms, with or without
  1120. // modification, are permitted provided that the following conditions
  1121. // are met:
  1122. // 1. Redistributions of source code must retain the above copyright
  1123. // notice, this list of conditions and the following disclaimer.
  1124. // 2. Redistributions in binary form must reproduce the above copyright
  1125. // notice, this list of conditions and the following disclaimer in the
  1126. // documentation and/or other materials provided with the distribution.
  1127. //
  1128. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1129. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1130. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1131. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1132. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1133. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1134. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1135. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1136. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1137. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1138. // SUCH DAMAGE.
  1139. //
  1140. // $FreeBSD$
  1141. // -
  1142. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1143. //
  1144. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1145. // All rights reserved.
  1146. //
  1147. // Redistribution and use in source and binary forms, with or without
  1148. // modification, are permitted provided that the following conditions
  1149. // are met:
  1150. // 1. Redistributions of source code must retain the above copyright
  1151. // notice, this list of conditions and the following disclaimer.
  1152. // 2. Redistributions in binary form must reproduce the above copyright
  1153. // notice, this list of conditions and the following disclaimer in the
  1154. // documentation and/or other materials provided with the distribution.
  1155. //
  1156. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1157. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1158. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1159. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1160. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1161. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1162. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1163. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1164. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1165. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1166. // SUCH DAMAGE.
  1167. //
  1168. // $FreeBSD$
  1169. // Structure returned by gettimeofday(2) system call, and used in other calls.
  1170. type Timeval = struct {
  1171. Ftv_sec Time_t
  1172. Ftv_usec Suseconds_t
  1173. F__ccgo_pad1 [4]byte
  1174. } /* _timeval.h:49:1 */
  1175. // -
  1176. // SPDX-License-Identifier: BSD-3-Clause
  1177. //
  1178. // Copyright (c) 1982, 1986, 1993
  1179. // The Regents of the University of California. All rights reserved.
  1180. //
  1181. // Redistribution and use in source and binary forms, with or without
  1182. // modification, are permitted provided that the following conditions
  1183. // are met:
  1184. // 1. Redistributions of source code must retain the above copyright
  1185. // notice, this list of conditions and the following disclaimer.
  1186. // 2. Redistributions in binary form must reproduce the above copyright
  1187. // notice, this list of conditions and the following disclaimer in the
  1188. // documentation and/or other materials provided with the distribution.
  1189. // 3. Neither the name of the University nor the names of its contributors
  1190. // may be used to endorse or promote products derived from this software
  1191. // without specific prior written permission.
  1192. //
  1193. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1194. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1195. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1196. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1197. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1198. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1199. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1200. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1201. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1202. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1203. // SUCH DAMAGE.
  1204. //
  1205. // @(#)time.h 8.5 (Berkeley) 5/4/95
  1206. // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
  1207. // $FreeBSD$
  1208. // -
  1209. // SPDX-License-Identifier: BSD-3-Clause
  1210. //
  1211. // Copyright (c) 1991, 1993
  1212. // The Regents of the University of California. All rights reserved.
  1213. //
  1214. // This code is derived from software contributed to Berkeley by
  1215. // Berkeley Software Design, Inc.
  1216. //
  1217. // Redistribution and use in source and binary forms, with or without
  1218. // modification, are permitted provided that the following conditions
  1219. // are met:
  1220. // 1. Redistributions of source code must retain the above copyright
  1221. // notice, this list of conditions and the following disclaimer.
  1222. // 2. Redistributions in binary form must reproduce the above copyright
  1223. // notice, this list of conditions and the following disclaimer in the
  1224. // documentation and/or other materials provided with the distribution.
  1225. // 3. Neither the name of the University nor the names of its contributors
  1226. // may be used to endorse or promote products derived from this software
  1227. // without specific prior written permission.
  1228. //
  1229. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1230. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1231. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1232. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1233. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1234. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1235. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1236. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1237. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1238. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1239. // SUCH DAMAGE.
  1240. //
  1241. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1242. // $FreeBSD$
  1243. // -
  1244. // SPDX-License-Identifier: BSD-3-Clause
  1245. //
  1246. // Copyright (c) 1982, 1986, 1993
  1247. // The Regents of the University of California. All rights reserved.
  1248. //
  1249. // Redistribution and use in source and binary forms, with or without
  1250. // modification, are permitted provided that the following conditions
  1251. // are met:
  1252. // 1. Redistributions of source code must retain the above copyright
  1253. // notice, this list of conditions and the following disclaimer.
  1254. // 2. Redistributions in binary form must reproduce the above copyright
  1255. // notice, this list of conditions and the following disclaimer in the
  1256. // documentation and/or other materials provided with the distribution.
  1257. // 3. Neither the name of the University nor the names of its contributors
  1258. // may be used to endorse or promote products derived from this software
  1259. // without specific prior written permission.
  1260. //
  1261. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1262. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1263. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1264. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1265. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1266. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1267. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1268. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1269. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1270. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1271. // SUCH DAMAGE.
  1272. //
  1273. // @(#)time.h 8.5 (Berkeley) 5/4/95
  1274. // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
  1275. // $FreeBSD$
  1276. // -
  1277. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1278. //
  1279. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1280. // All rights reserved.
  1281. //
  1282. // Redistribution and use in source and binary forms, with or without
  1283. // modification, are permitted provided that the following conditions
  1284. // are met:
  1285. // 1. Redistributions of source code must retain the above copyright
  1286. // notice, this list of conditions and the following disclaimer.
  1287. // 2. Redistributions in binary form must reproduce the above copyright
  1288. // notice, this list of conditions and the following disclaimer in the
  1289. // documentation and/or other materials provided with the distribution.
  1290. //
  1291. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1292. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1293. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1294. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1295. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1296. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1297. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1298. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1299. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1300. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1301. // SUCH DAMAGE.
  1302. //
  1303. // $FreeBSD$
  1304. type Timespec = struct {
  1305. Ftv_sec Time_t
  1306. Ftv_nsec int32
  1307. F__ccgo_pad1 [4]byte
  1308. } /* _timespec.h:46:1 */
  1309. // Structure defined by POSIX.1b to be like a itimerval, but with
  1310. // timespecs. Used in the timer_*() system calls.
  1311. type Itimerspec = struct {
  1312. Fit_interval struct {
  1313. Ftv_sec Time_t
  1314. Ftv_nsec int32
  1315. F__ccgo_pad1 [4]byte
  1316. }
  1317. Fit_value struct {
  1318. Ftv_sec Time_t
  1319. Ftv_nsec int32
  1320. F__ccgo_pad1 [4]byte
  1321. }
  1322. } /* timespec.h:60:1 */
  1323. type X__fd_mask = uint32 /* select.h:44:23 */
  1324. type Fd_mask = X__fd_mask /* select.h:46:19 */
  1325. type Sigset_t = X__sigset_t /* select.h:51:20 */
  1326. // Select uses bit masks of file descriptors in longs. These macros
  1327. // manipulate such bit fields (the filesystem macros use chars).
  1328. // FD_SETSIZE may be defined by the user, but the default here should
  1329. // be enough for most uses.
  1330. type Fd_set1 = struct{ F__fds_bits [32]X__fd_mask } /* select.h:73:9 */
  1331. // Select uses bit masks of file descriptors in longs. These macros
  1332. // manipulate such bit fields (the filesystem macros use chars).
  1333. // FD_SETSIZE may be defined by the user, but the default here should
  1334. // be enough for most uses.
  1335. type Fd_set = Fd_set1 /* select.h:75:3 */
  1336. // -
  1337. // SPDX-License-Identifier: BSD-3-Clause
  1338. //
  1339. // Copyright (c) 1982, 1986, 1989, 1993
  1340. // The Regents of the University of California. All rights reserved.
  1341. // (c) UNIX System Laboratories, Inc.
  1342. // All or some portions of this file are derived from material licensed
  1343. // to the University of California by American Telephone and Telegraph
  1344. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1345. // the permission of UNIX System Laboratories, Inc.
  1346. //
  1347. // Redistribution and use in source and binary forms, with or without
  1348. // modification, are permitted provided that the following conditions
  1349. // are met:
  1350. // 1. Redistributions of source code must retain the above copyright
  1351. // notice, this list of conditions and the following disclaimer.
  1352. // 2. Redistributions in binary form must reproduce the above copyright
  1353. // notice, this list of conditions and the following disclaimer in the
  1354. // documentation and/or other materials provided with the distribution.
  1355. // 3. Neither the name of the University nor the names of its contributors
  1356. // may be used to endorse or promote products derived from this software
  1357. // without specific prior written permission.
  1358. //
  1359. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1360. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1361. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1362. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1363. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1364. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1365. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1366. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1367. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1368. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1369. // SUCH DAMAGE.
  1370. //
  1371. // @(#)stat.h 8.12 (Berkeley) 6/16/95
  1372. // $FreeBSD$
  1373. // -
  1374. // SPDX-License-Identifier: BSD-3-Clause
  1375. //
  1376. // Copyright (c) 1991, 1993
  1377. // The Regents of the University of California. All rights reserved.
  1378. //
  1379. // This code is derived from software contributed to Berkeley by
  1380. // Berkeley Software Design, Inc.
  1381. //
  1382. // Redistribution and use in source and binary forms, with or without
  1383. // modification, are permitted provided that the following conditions
  1384. // are met:
  1385. // 1. Redistributions of source code must retain the above copyright
  1386. // notice, this list of conditions and the following disclaimer.
  1387. // 2. Redistributions in binary form must reproduce the above copyright
  1388. // notice, this list of conditions and the following disclaimer in the
  1389. // documentation and/or other materials provided with the distribution.
  1390. // 3. Neither the name of the University nor the names of its contributors
  1391. // may be used to endorse or promote products derived from this software
  1392. // without specific prior written permission.
  1393. //
  1394. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1395. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1396. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1397. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1398. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1399. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1400. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1401. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1402. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1403. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1404. // SUCH DAMAGE.
  1405. //
  1406. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1407. // $FreeBSD$
  1408. // -
  1409. // SPDX-License-Identifier: BSD-3-Clause
  1410. //
  1411. // Copyright (c) 1982, 1986, 1993
  1412. // The Regents of the University of California. All rights reserved.
  1413. //
  1414. // Redistribution and use in source and binary forms, with or without
  1415. // modification, are permitted provided that the following conditions
  1416. // are met:
  1417. // 1. Redistributions of source code must retain the above copyright
  1418. // notice, this list of conditions and the following disclaimer.
  1419. // 2. Redistributions in binary form must reproduce the above copyright
  1420. // notice, this list of conditions and the following disclaimer in the
  1421. // documentation and/or other materials provided with the distribution.
  1422. // 3. Neither the name of the University nor the names of its contributors
  1423. // may be used to endorse or promote products derived from this software
  1424. // without specific prior written permission.
  1425. //
  1426. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1427. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1428. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1429. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1430. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1431. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1432. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1433. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1434. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1435. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1436. // SUCH DAMAGE.
  1437. //
  1438. // @(#)time.h 8.5 (Berkeley) 5/4/95
  1439. // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
  1440. // $FreeBSD$
  1441. // -
  1442. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1443. //
  1444. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1445. // All rights reserved.
  1446. //
  1447. // Redistribution and use in source and binary forms, with or without
  1448. // modification, are permitted provided that the following conditions
  1449. // are met:
  1450. // 1. Redistributions of source code must retain the above copyright
  1451. // notice, this list of conditions and the following disclaimer.
  1452. // 2. Redistributions in binary form must reproduce the above copyright
  1453. // notice, this list of conditions and the following disclaimer in the
  1454. // documentation and/or other materials provided with the distribution.
  1455. //
  1456. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1457. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1458. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1459. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1460. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1461. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1462. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1463. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1464. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1465. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1466. // SUCH DAMAGE.
  1467. //
  1468. // $FreeBSD$
  1469. // XXX We get miscellaneous namespace pollution with this.
  1470. // -
  1471. // SPDX-License-Identifier: BSD-3-Clause
  1472. //
  1473. // Copyright (c) 1982, 1986, 1993
  1474. // The Regents of the University of California. All rights reserved.
  1475. //
  1476. // Redistribution and use in source and binary forms, with or without
  1477. // modification, are permitted provided that the following conditions
  1478. // are met:
  1479. // 1. Redistributions of source code must retain the above copyright
  1480. // notice, this list of conditions and the following disclaimer.
  1481. // 2. Redistributions in binary form must reproduce the above copyright
  1482. // notice, this list of conditions and the following disclaimer in the
  1483. // documentation and/or other materials provided with the distribution.
  1484. // 3. Neither the name of the University nor the names of its contributors
  1485. // may be used to endorse or promote products derived from this software
  1486. // without specific prior written permission.
  1487. //
  1488. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1489. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1490. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1491. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1492. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1493. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1494. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1495. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1496. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1497. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1498. // SUCH DAMAGE.
  1499. //
  1500. // @(#)time.h 8.5 (Berkeley) 5/4/95
  1501. // $FreeBSD$
  1502. // -
  1503. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1504. //
  1505. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1506. // All rights reserved.
  1507. //
  1508. // Redistribution and use in source and binary forms, with or without
  1509. // modification, are permitted provided that the following conditions
  1510. // are met:
  1511. // 1. Redistributions of source code must retain the above copyright
  1512. // notice, this list of conditions and the following disclaimer.
  1513. // 2. Redistributions in binary form must reproduce the above copyright
  1514. // notice, this list of conditions and the following disclaimer in the
  1515. // documentation and/or other materials provided with the distribution.
  1516. //
  1517. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1518. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1519. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1520. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1521. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1522. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1523. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1524. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1525. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1526. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1527. // SUCH DAMAGE.
  1528. //
  1529. // $FreeBSD$
  1530. // -
  1531. // SPDX-License-Identifier: BSD-3-Clause
  1532. //
  1533. // Copyright (c) 1982, 1986, 1991, 1993, 1994
  1534. // The Regents of the University of California. All rights reserved.
  1535. // (c) UNIX System Laboratories, Inc.
  1536. // All or some portions of this file are derived from material licensed
  1537. // to the University of California by American Telephone and Telegraph
  1538. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1539. // the permission of UNIX System Laboratories, Inc.
  1540. //
  1541. // Redistribution and use in source and binary forms, with or without
  1542. // modification, are permitted provided that the following conditions
  1543. // are met:
  1544. // 1. Redistributions of source code must retain the above copyright
  1545. // notice, this list of conditions and the following disclaimer.
  1546. // 2. Redistributions in binary form must reproduce the above copyright
  1547. // notice, this list of conditions and the following disclaimer in the
  1548. // documentation and/or other materials provided with the distribution.
  1549. // 3. Neither the name of the University nor the names of its contributors
  1550. // may be used to endorse or promote products derived from this software
  1551. // without specific prior written permission.
  1552. //
  1553. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1554. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1555. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1556. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1557. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1558. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1559. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1560. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1561. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1562. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1563. // SUCH DAMAGE.
  1564. //
  1565. // @(#)types.h 8.6 (Berkeley) 2/19/95
  1566. // $FreeBSD$
  1567. // -
  1568. // SPDX-License-Identifier: BSD-3-Clause
  1569. //
  1570. // Copyright (c) 1982, 1986, 1993
  1571. // The Regents of the University of California. All rights reserved.
  1572. //
  1573. // Redistribution and use in source and binary forms, with or without
  1574. // modification, are permitted provided that the following conditions
  1575. // are met:
  1576. // 1. Redistributions of source code must retain the above copyright
  1577. // notice, this list of conditions and the following disclaimer.
  1578. // 2. Redistributions in binary form must reproduce the above copyright
  1579. // notice, this list of conditions and the following disclaimer in the
  1580. // documentation and/or other materials provided with the distribution.
  1581. // 3. Neither the name of the University nor the names of its contributors
  1582. // may be used to endorse or promote products derived from this software
  1583. // without specific prior written permission.
  1584. //
  1585. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1586. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1587. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1588. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1589. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1590. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1591. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1592. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1593. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1594. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1595. // SUCH DAMAGE.
  1596. //
  1597. // @(#)time.h 8.5 (Berkeley) 5/4/95
  1598. // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
  1599. // $FreeBSD$
  1600. // -
  1601. // SPDX-License-Identifier: BSD-3-Clause
  1602. //
  1603. // Copyright (c) 1989, 1993
  1604. // The Regents of the University of California. All rights reserved.
  1605. // (c) UNIX System Laboratories, Inc.
  1606. // All or some portions of this file are derived from material licensed
  1607. // to the University of California by American Telephone and Telegraph
  1608. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1609. // the permission of UNIX System Laboratories, Inc.
  1610. //
  1611. // Redistribution and use in source and binary forms, with or without
  1612. // modification, are permitted provided that the following conditions
  1613. // are met:
  1614. // 1. Redistributions of source code must retain the above copyright
  1615. // notice, this list of conditions and the following disclaimer.
  1616. // 2. Redistributions in binary form must reproduce the above copyright
  1617. // notice, this list of conditions and the following disclaimer in the
  1618. // documentation and/or other materials provided with the distribution.
  1619. // 3. Neither the name of the University nor the names of its contributors
  1620. // may be used to endorse or promote products derived from this software
  1621. // without specific prior written permission.
  1622. //
  1623. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1624. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1625. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1626. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1627. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1628. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1629. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1630. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1631. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1632. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1633. // SUCH DAMAGE.
  1634. //
  1635. // @(#)time.h 8.3 (Berkeley) 1/21/94
  1636. // These macros are shared between time.h and sys/time.h.
  1637. // Note: The values shown below as a comment for the __POSIX_VISIBLE values are
  1638. // the ones FreeBSD traditionally used based on our reading of the POSIX
  1639. // standards. However, glibc uses 199309 for all of them, even those many were
  1640. // not defined there. To remain bug compatible with glibc means more software
  1641. // that relied on the glibc behavior will compile easily on FreeBSD.
  1642. //
  1643. // Also, CLOCK_UPTIME_FAST is improperly visible temporarily for the lang/pocl
  1644. // port until it can be updated properly. It incorrectly assumes that this was a
  1645. // standard value. It will be moved back to the __BSD_VISIBLE section once the
  1646. // issue is corrected.
  1647. // FreeBSD-specific clocks.
  1648. // Linux compatible names.
  1649. type Timezone = struct {
  1650. Ftz_minuteswest int32
  1651. Ftz_dsttime int32
  1652. } /* time.h:43:1 */
  1653. type Bintime = struct {
  1654. Fsec Time_t
  1655. Ffrac Uint64_t
  1656. } /* time.h:56:1 */
  1657. // Operations on timespecs
  1658. // Names of the interval timers, and structure
  1659. // defining a timer setting.
  1660. type Itimerval = struct {
  1661. Fit_interval struct {
  1662. Ftv_sec Time_t
  1663. Ftv_usec Suseconds_t
  1664. F__ccgo_pad1 [4]byte
  1665. }
  1666. Fit_value struct {
  1667. Ftv_sec Time_t
  1668. Ftv_usec Suseconds_t
  1669. F__ccgo_pad1 [4]byte
  1670. }
  1671. } /* time.h:459:1 */
  1672. // Getkerninfo clock information structure
  1673. type Clockinfo = struct {
  1674. Fhz int32
  1675. Ftick int32
  1676. Fspare int32
  1677. Fstathz int32
  1678. Fprofhz int32
  1679. } /* time.h:467:1 */
  1680. // -
  1681. // SPDX-License-Identifier: BSD-3-Clause
  1682. //
  1683. // Copyright (c) 1989, 1993
  1684. // The Regents of the University of California. All rights reserved.
  1685. // (c) UNIX System Laboratories, Inc.
  1686. // All or some portions of this file are derived from material licensed
  1687. // to the University of California by American Telephone and Telegraph
  1688. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1689. // the permission of UNIX System Laboratories, Inc.
  1690. //
  1691. // Redistribution and use in source and binary forms, with or without
  1692. // modification, are permitted provided that the following conditions
  1693. // are met:
  1694. // 1. Redistributions of source code must retain the above copyright
  1695. // notice, this list of conditions and the following disclaimer.
  1696. // 2. Redistributions in binary form must reproduce the above copyright
  1697. // notice, this list of conditions and the following disclaimer in the
  1698. // documentation and/or other materials provided with the distribution.
  1699. // 3. Neither the name of the University nor the names of its contributors
  1700. // may be used to endorse or promote products derived from this software
  1701. // without specific prior written permission.
  1702. //
  1703. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1704. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1705. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1706. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1707. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1708. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1709. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1710. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1711. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1712. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1713. // SUCH DAMAGE.
  1714. //
  1715. // @(#)time.h 8.3 (Berkeley) 1/21/94
  1716. // $FreeBSD$
  1717. // -
  1718. // SPDX-License-Identifier: BSD-3-Clause
  1719. //
  1720. // Copyright (c) 1991, 1993
  1721. // The Regents of the University of California. All rights reserved.
  1722. //
  1723. // This code is derived from software contributed to Berkeley by
  1724. // Berkeley Software Design, Inc.
  1725. //
  1726. // Redistribution and use in source and binary forms, with or without
  1727. // modification, are permitted provided that the following conditions
  1728. // are met:
  1729. // 1. Redistributions of source code must retain the above copyright
  1730. // notice, this list of conditions and the following disclaimer.
  1731. // 2. Redistributions in binary form must reproduce the above copyright
  1732. // notice, this list of conditions and the following disclaimer in the
  1733. // documentation and/or other materials provided with the distribution.
  1734. // 3. Neither the name of the University nor the names of its contributors
  1735. // may be used to endorse or promote products derived from this software
  1736. // without specific prior written permission.
  1737. //
  1738. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1739. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1740. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1741. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1742. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1743. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1744. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1745. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1746. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1747. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1748. // SUCH DAMAGE.
  1749. //
  1750. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1751. // $FreeBSD$
  1752. // -
  1753. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1754. //
  1755. // Copyright (c) 2003 Marcel Moolenaar
  1756. // All rights reserved.
  1757. //
  1758. // Redistribution and use in source and binary forms, with or without
  1759. // modification, are permitted provided that the following conditions
  1760. // are met:
  1761. //
  1762. // 1. Redistributions of source code must retain the above copyright
  1763. // notice, this list of conditions and the following disclaimer.
  1764. // 2. Redistributions in binary form must reproduce the above copyright
  1765. // notice, this list of conditions and the following disclaimer in the
  1766. // documentation and/or other materials provided with the distribution.
  1767. //
  1768. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  1769. // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  1770. // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  1771. // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  1772. // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  1773. // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  1774. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  1775. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  1776. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  1777. // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1778. //
  1779. // $FreeBSD$
  1780. // -
  1781. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1782. //
  1783. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1784. // All rights reserved.
  1785. //
  1786. // Redistribution and use in source and binary forms, with or without
  1787. // modification, are permitted provided that the following conditions
  1788. // are met:
  1789. // 1. Redistributions of source code must retain the above copyright
  1790. // notice, this list of conditions and the following disclaimer.
  1791. // 2. Redistributions in binary form must reproduce the above copyright
  1792. // notice, this list of conditions and the following disclaimer in the
  1793. // documentation and/or other materials provided with the distribution.
  1794. //
  1795. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1796. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1797. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1798. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1799. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1800. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1801. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1802. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1803. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1804. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1805. // SUCH DAMAGE.
  1806. //
  1807. // $FreeBSD$
  1808. // -
  1809. // SPDX-License-Identifier: BSD-3-Clause
  1810. //
  1811. // Copyright (c) 1989, 1993
  1812. // The Regents of the University of California. All rights reserved.
  1813. // (c) UNIX System Laboratories, Inc.
  1814. // All or some portions of this file are derived from material licensed
  1815. // to the University of California by American Telephone and Telegraph
  1816. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  1817. // the permission of UNIX System Laboratories, Inc.
  1818. //
  1819. // Redistribution and use in source and binary forms, with or without
  1820. // modification, are permitted provided that the following conditions
  1821. // are met:
  1822. // 1. Redistributions of source code must retain the above copyright
  1823. // notice, this list of conditions and the following disclaimer.
  1824. // 2. Redistributions in binary form must reproduce the above copyright
  1825. // notice, this list of conditions and the following disclaimer in the
  1826. // documentation and/or other materials provided with the distribution.
  1827. // 3. Neither the name of the University nor the names of its contributors
  1828. // may be used to endorse or promote products derived from this software
  1829. // without specific prior written permission.
  1830. //
  1831. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1832. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1833. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1834. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1835. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1836. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1837. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1838. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1839. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1840. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1841. // SUCH DAMAGE.
  1842. //
  1843. // @(#)time.h 8.3 (Berkeley) 1/21/94
  1844. // Frequency of the clock ticks reported by times(). Deprecated - use
  1845. // sysconf(_SC_CLK_TCK) instead. (Removed in 1003.1-2001.)
  1846. // Frequency of the clock ticks reported by clock().
  1847. // New in POSIX 1003.1b-1993.
  1848. // -
  1849. // SPDX-License-Identifier: BSD-3-Clause
  1850. //
  1851. // Copyright (c) 1982, 1986, 1993
  1852. // The Regents of the University of California. All rights reserved.
  1853. //
  1854. // Redistribution and use in source and binary forms, with or without
  1855. // modification, are permitted provided that the following conditions
  1856. // are met:
  1857. // 1. Redistributions of source code must retain the above copyright
  1858. // notice, this list of conditions and the following disclaimer.
  1859. // 2. Redistributions in binary form must reproduce the above copyright
  1860. // notice, this list of conditions and the following disclaimer in the
  1861. // documentation and/or other materials provided with the distribution.
  1862. // 3. Neither the name of the University nor the names of its contributors
  1863. // may be used to endorse or promote products derived from this software
  1864. // without specific prior written permission.
  1865. //
  1866. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1867. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1868. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1869. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1870. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1871. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1872. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1873. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1874. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1875. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1876. // SUCH DAMAGE.
  1877. //
  1878. // @(#)time.h 8.5 (Berkeley) 5/4/95
  1879. // from: FreeBSD: src/sys/sys/time.h,v 1.43 2000/03/20 14:09:05 phk Exp
  1880. // $FreeBSD$
  1881. type Tm = struct {
  1882. Ftm_sec int32
  1883. Ftm_min int32
  1884. Ftm_hour int32
  1885. Ftm_mday int32
  1886. Ftm_mon int32
  1887. Ftm_year int32
  1888. Ftm_wday int32
  1889. Ftm_yday int32
  1890. Ftm_isdst int32
  1891. Ftm_gmtoff int32
  1892. Ftm_zone uintptr
  1893. } /* time.h:101:1 */
  1894. // -
  1895. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1896. //
  1897. // Copyright (c) 2011, 2012 The FreeBSD Foundation
  1898. //
  1899. // This software was developed by David Chisnall under sponsorship from
  1900. // the FreeBSD Foundation.
  1901. //
  1902. // Redistribution and use in source and binary forms, with or without
  1903. // modification, are permitted provided that the following conditions
  1904. // are met:
  1905. // 1. Redistributions of source code must retain the above copyright
  1906. // notice, this list of conditions and the following disclaimer.
  1907. // 2. Redistributions in binary form must reproduce the above copyright
  1908. // notice, this list of conditions and the following disclaimer in the
  1909. // documentation and/or other materials provided with the distribution.
  1910. //
  1911. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  1912. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1913. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1914. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  1915. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1916. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1917. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1918. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1919. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1920. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1921. // SUCH DAMAGE.
  1922. //
  1923. // $FreeBSD$
  1924. type Locale_t = uintptr /* _time.h:35:25 */
  1925. type Stat = struct {
  1926. Fst_dev Dev_t
  1927. Fst_ino Ino_t
  1928. Fst_nlink Nlink_t
  1929. Fst_mode Mode_t
  1930. Fst_padding0 X__int16_t
  1931. Fst_uid Uid_t
  1932. Fst_gid Gid_t
  1933. Fst_padding1 X__int32_t
  1934. Fst_rdev Dev_t
  1935. Fst_atim struct {
  1936. Ftv_sec Time_t
  1937. Ftv_nsec int32
  1938. F__ccgo_pad1 [4]byte
  1939. }
  1940. Fst_mtim struct {
  1941. Ftv_sec Time_t
  1942. Ftv_nsec int32
  1943. F__ccgo_pad1 [4]byte
  1944. }
  1945. Fst_ctim struct {
  1946. Ftv_sec Time_t
  1947. Ftv_nsec int32
  1948. F__ccgo_pad1 [4]byte
  1949. }
  1950. Fst_birthtim struct {
  1951. Ftv_sec Time_t
  1952. Ftv_nsec int32
  1953. F__ccgo_pad1 [4]byte
  1954. }
  1955. Fst_size Off_t
  1956. Fst_blocks Blkcnt_t
  1957. Fst_blksize Blksize_t
  1958. Fst_flags Fflags_t
  1959. Fst_gen X__uint64_t
  1960. Fst_spare [10]X__uint64_t
  1961. } /* stat.h:160:1 */
  1962. // -
  1963. // SPDX-License-Identifier: BSD-3-Clause
  1964. //
  1965. // Copyright (c) 1989, 1993
  1966. // The Regents of the University of California. All rights reserved.
  1967. //
  1968. // Redistribution and use in source and binary forms, with or without
  1969. // modification, are permitted provided that the following conditions
  1970. // are met:
  1971. // 1. Redistributions of source code must retain the above copyright
  1972. // notice, this list of conditions and the following disclaimer.
  1973. // 2. Redistributions in binary form must reproduce the above copyright
  1974. // notice, this list of conditions and the following disclaimer in the
  1975. // documentation and/or other materials provided with the distribution.
  1976. // 3. Neither the name of the University nor the names of its contributors
  1977. // may be used to endorse or promote products derived from this software
  1978. // without specific prior written permission.
  1979. //
  1980. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1981. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1982. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1983. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1984. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1985. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1986. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1987. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1988. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1989. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1990. // SUCH DAMAGE.
  1991. //
  1992. // @(#)fts.h 8.3 (Berkeley) 8/14/94
  1993. // $FreeBSD$
  1994. // -
  1995. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  1996. //
  1997. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  1998. // All rights reserved.
  1999. //
  2000. // Redistribution and use in source and binary forms, with or without
  2001. // modification, are permitted provided that the following conditions
  2002. // are met:
  2003. // 1. Redistributions of source code must retain the above copyright
  2004. // notice, this list of conditions and the following disclaimer.
  2005. // 2. Redistributions in binary form must reproduce the above copyright
  2006. // notice, this list of conditions and the following disclaimer in the
  2007. // documentation and/or other materials provided with the distribution.
  2008. //
  2009. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  2010. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2011. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2012. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  2013. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2014. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2015. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2016. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2017. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2018. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2019. // SUCH DAMAGE.
  2020. //
  2021. // $FreeBSD$
  2022. type X_ftsent = struct {
  2023. Ffts_cycle uintptr
  2024. Ffts_parent uintptr
  2025. Ffts_link uintptr
  2026. F__ccgo_pad1 [4]byte
  2027. Ffts_number int64
  2028. Ffts_pointer uintptr
  2029. Ffts_accpath uintptr
  2030. Ffts_path uintptr
  2031. Ffts_errno int32
  2032. Ffts_symfd int32
  2033. Ffts_pathlen X__size_t
  2034. Ffts_namelen X__size_t
  2035. F__ccgo_pad2 [4]byte
  2036. Ffts_ino X__ino_t
  2037. Ffts_dev X__dev_t
  2038. Ffts_nlink X__nlink_t
  2039. Ffts_level int32
  2040. Ffts_info int32
  2041. Ffts_flags uint32
  2042. Ffts_instr int32
  2043. Ffts_statp uintptr
  2044. Ffts_name uintptr
  2045. Ffts_fts uintptr
  2046. F__ccgo_pad3 [4]byte
  2047. } /* fts.h:41:2 */
  2048. // -
  2049. // SPDX-License-Identifier: BSD-3-Clause
  2050. //
  2051. // Copyright (c) 1989, 1993
  2052. // The Regents of the University of California. All rights reserved.
  2053. //
  2054. // Redistribution and use in source and binary forms, with or without
  2055. // modification, are permitted provided that the following conditions
  2056. // are met:
  2057. // 1. Redistributions of source code must retain the above copyright
  2058. // notice, this list of conditions and the following disclaimer.
  2059. // 2. Redistributions in binary form must reproduce the above copyright
  2060. // notice, this list of conditions and the following disclaimer in the
  2061. // documentation and/or other materials provided with the distribution.
  2062. // 3. Neither the name of the University nor the names of its contributors
  2063. // may be used to endorse or promote products derived from this software
  2064. // without specific prior written permission.
  2065. //
  2066. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  2067. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2068. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2069. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  2070. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2071. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2072. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2073. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2074. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2075. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2076. // SUCH DAMAGE.
  2077. //
  2078. // @(#)fts.h 8.3 (Berkeley) 8/14/94
  2079. // $FreeBSD$
  2080. // -
  2081. // SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  2082. //
  2083. // Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
  2084. // All rights reserved.
  2085. //
  2086. // Redistribution and use in source and binary forms, with or without
  2087. // modification, are permitted provided that the following conditions
  2088. // are met:
  2089. // 1. Redistributions of source code must retain the above copyright
  2090. // notice, this list of conditions and the following disclaimer.
  2091. // 2. Redistributions in binary form must reproduce the above copyright
  2092. // notice, this list of conditions and the following disclaimer in the
  2093. // documentation and/or other materials provided with the distribution.
  2094. //
  2095. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  2096. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  2097. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  2098. // ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  2099. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  2100. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  2101. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  2102. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  2103. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  2104. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  2105. // SUCH DAMAGE.
  2106. //
  2107. // $FreeBSD$
  2108. type FTS = struct {
  2109. Ffts_cur uintptr
  2110. Ffts_child uintptr
  2111. Ffts_array uintptr
  2112. F__ccgo_pad1 [4]byte
  2113. Ffts_dev X__dev_t
  2114. Ffts_path uintptr
  2115. Ffts_rfd int32
  2116. Ffts_pathlen X__size_t
  2117. Ffts_nitems X__size_t
  2118. Ffts_compar uintptr
  2119. Ffts_options int32
  2120. Ffts_clientptr uintptr
  2121. F__ccgo_pad2 [4]byte
  2122. } /* fts.h:66:3 */
  2123. type FTSENT = X_ftsent /* fts.h:120:3 */
  2124. var _ uint8 /* gen.c:5:13: */