fts_freebsd_386.go 110 KB

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