fts_freebsd_arm64.go 111 KB

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