fts_openbsd_386.go 57 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254
  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_openbsd_386.go -pkgname fts', DO NOT EDIT.
  2. package fts
  3. import (
  4. "math"
  5. "reflect"
  6. "sync/atomic"
  7. "unsafe"
  8. )
  9. var _ = math.Pi
  10. var _ reflect.Kind
  11. var _ atomic.Value
  12. var _ unsafe.Pointer
  13. const (
  14. ACCESSPERMS = 511 // stat.h:151:1:
  15. ALLPERMS = 4095 // stat.h:153:1:
  16. BIG_ENDIAN = 4321 // endian.h:45:1:
  17. BYTE_ORDER = 1234 // endian.h:47:1:
  18. CLK_TCK = 100 // time.h:68:1:
  19. CLOCKS_PER_SEC = 100 // time.h:71:1:
  20. CLOCK_BOOTTIME = 6 // _time.h:40:1:
  21. CLOCK_MONOTONIC = 3 // _time.h:37:1:
  22. CLOCK_PROCESS_CPUTIME_ID = 2 // _time.h:36:1:
  23. CLOCK_REALTIME = 0 // _time.h:35:1:
  24. CLOCK_THREAD_CPUTIME_ID = 4 // _time.h:38:1:
  25. CLOCK_UPTIME = 5 // _time.h:39:1:
  26. DEFFILEMODE = 438 // stat.h:155:1:
  27. DST_AUST = 2 // time.h:78:1:
  28. DST_CAN = 6 // time.h:82:1:
  29. DST_EET = 5 // time.h:81:1:
  30. DST_MET = 4 // time.h:80:1:
  31. DST_NONE = 0 // time.h:76:1:
  32. DST_USA = 1 // time.h:77:1:
  33. DST_WET = 3 // time.h:79:1:
  34. FD_SETSIZE = 1024 // select.h:62:1:
  35. FTS_AGAIN = 1 // fts.h:104:1:
  36. FTS_COMFOLLOW = 0x0001 // fts.h:49:1:
  37. FTS_D = 1 // fts.h:85:1:
  38. FTS_DC = 2 // fts.h:86:1:
  39. FTS_DEFAULT = 3 // fts.h:87:1:
  40. FTS_DNR = 4 // fts.h:88:1:
  41. FTS_DONTCHDIR = 0x01 // fts.h:100:1:
  42. FTS_DOT = 5 // fts.h:89:1:
  43. FTS_DP = 6 // fts.h:90:1:
  44. FTS_ERR = 7 // fts.h:91:1:
  45. FTS_F = 8 // fts.h:92:1:
  46. FTS_FOLLOW = 2 // fts.h:105:1:
  47. FTS_INIT = 9 // fts.h:93:1:
  48. FTS_LOGICAL = 0x0002 // fts.h:50:1:
  49. FTS_MAXLEVEL = 0x7fffffff // fts.h:82:1:
  50. FTS_NAMEONLY = 0x1000 // fts.h:58:1:
  51. FTS_NOCHDIR = 0x0004 // fts.h:51:1:
  52. FTS_NOINSTR = 3 // fts.h:106:1:
  53. FTS_NOSTAT = 0x0008 // fts.h:52:1:
  54. FTS_NS = 10 // fts.h:94:1:
  55. FTS_NSOK = 11 // fts.h:95:1:
  56. FTS_OPTIONMASK = 0x00ff // fts.h:56:1:
  57. FTS_PHYSICAL = 0x0010 // fts.h:53:1:
  58. FTS_ROOTLEVEL = 0 // fts.h:81:1:
  59. FTS_ROOTPARENTLEVEL = -1 // fts.h:80:1:
  60. FTS_SEEDOT = 0x0020 // fts.h:54:1:
  61. FTS_SKIP = 4 // fts.h:107:1:
  62. FTS_SL = 12 // fts.h:96:1:
  63. FTS_SLNONE = 13 // fts.h:97:1:
  64. FTS_STOP = 0x2000 // fts.h:59:1:
  65. FTS_SYMFOLLOW = 0x02 // fts.h:101:1:
  66. FTS_XDEV = 0x0040 // fts.h:55:1:
  67. ITIMER_PROF = 2 // time.h:146:1:
  68. ITIMER_REAL = 0 // time.h:144:1:
  69. ITIMER_VIRTUAL = 1 // time.h:145:1:
  70. LITTLE_ENDIAN = 1234 // endian.h:44:1:
  71. NBBY = 8 // select.h:111:1:
  72. PDP_ENDIAN = 3412 // endian.h:46:1:
  73. SF_APPEND = 0x00040000 // stat.h:175:1:
  74. SF_ARCHIVED = 0x00010000 // stat.h:173:1:
  75. SF_IMMUTABLE = 0x00020000 // stat.h:174:1:
  76. SF_SETTABLE = 0xffff0000 // stat.h:172:1:
  77. S_BLKSIZE = 512 // stat.h:157:1:
  78. S_IEXEC = 64 // stat.h:108:1:
  79. S_IFBLK = 0060000 // stat.h:126:1:
  80. S_IFCHR = 0020000 // stat.h:124:1:
  81. S_IFDIR = 0040000 // stat.h:125:1:
  82. S_IFIFO = 0010000 // stat.h:123:1:
  83. S_IFLNK = 0120000 // stat.h:128:1:
  84. S_IFMT = 0170000 // stat.h:122:1:
  85. S_IFREG = 0100000 // stat.h:127:1:
  86. S_IFSOCK = 0140000 // stat.h:129:1:
  87. S_IREAD = 256 // stat.h:106:1:
  88. S_IRGRP = 0000040 // stat.h:112:1:
  89. S_IROTH = 0000004 // stat.h:117:1:
  90. S_IRUSR = 0000400 // stat.h:101:1:
  91. S_IRWXG = 0000070 // stat.h:111:1:
  92. S_IRWXO = 0000007 // stat.h:116:1:
  93. S_IRWXU = 0000700 // stat.h:100:1:
  94. S_ISGID = 0002000 // stat.h:95:1:
  95. S_ISTXT = 0001000 // stat.h:97:1:
  96. S_ISUID = 0004000 // stat.h:94:1:
  97. S_ISVTX = 0001000 // stat.h:130:1:
  98. S_IWGRP = 0000020 // stat.h:113:1:
  99. S_IWOTH = 0000002 // stat.h:118:1:
  100. S_IWRITE = 128 // stat.h:107:1:
  101. S_IWUSR = 0000200 // stat.h:102:1:
  102. S_IXGRP = 0000010 // stat.h:114:1:
  103. S_IXOTH = 0000001 // stat.h:119:1:
  104. S_IXUSR = 0000100 // stat.h:103:1:
  105. TIMER_ABSTIME = 0x1 // _time.h:62:1:
  106. TIMER_RELTIME = 0x0 // _time.h:61:1:
  107. TIME_UTC = 1 // time.h:179:1:
  108. UF_APPEND = 0x00000004 // stat.h:167:1:
  109. UF_IMMUTABLE = 0x00000002 // stat.h:166:1:
  110. UF_NODUMP = 0x00000001 // stat.h:165:1:
  111. UF_OPAQUE = 0x00000008 // stat.h:168:1:
  112. UF_SETTABLE = 0x0000ffff // stat.h:164:1:
  113. UTIME_NOW = -2 // stat.h:188:1:
  114. UTIME_OMIT = -1 // stat.h:189:1:
  115. X_BIG_ENDIAN = 4321 // _endian.h:43:1:
  116. X_BYTE_ORDER = 1234 // endian.h:58:1:
  117. X_CLOCKID_T_DEFINED_ = 0 // types.h:162:1:
  118. X_CLOCK_T_DEFINED_ = 0 // types.h:157:1:
  119. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  120. X_FTS_H_ = 0 // fts.h:36:1:
  121. X_ILP32 = 1 // <predefined>:1:1:
  122. X_INT16_T_DEFINED_ = 0 // types.h:84:1:
  123. X_INT32_T_DEFINED_ = 0 // types.h:94:1:
  124. X_INT64_T_DEFINED_ = 0 // types.h:104:1:
  125. X_INT8_T_DEFINED_ = 0 // types.h:74:1:
  126. X_LITTLE_ENDIAN = 1234 // _endian.h:42:1:
  127. X_LOCALE_T_DEFINED_ = 0 // time.h:106:1:
  128. X_MACHINE_CDEFS_H_ = 0 // cdefs.h:9:1:
  129. X_MACHINE_ENDIAN_H_ = 0 // endian.h:28:1:
  130. X_MACHINE__TYPES_H_ = 0 // _types.h:36:1:
  131. X_MAX_PAGE_SHIFT = 12 // _types.h:52:1:
  132. X_OFF_T_DEFINED_ = 0 // types.h:192:1:
  133. X_PDP_ENDIAN = 3412 // _endian.h:44:1:
  134. X_PID_T_DEFINED_ = 0 // types.h:167:1:
  135. X_QUAD_HIGHWORD = 1 // _endian.h:95:1:
  136. X_QUAD_LOWWORD = 0 // _endian.h:96:1:
  137. X_SELECT_DEFINED_ = 0 // select.h:126:1:
  138. X_SIGSET_T_DEFINED_ = 0 // select.h:121:1:
  139. X_SIZE_T_DEFINED_ = 0 // types.h:172:1:
  140. X_SSIZE_T_DEFINED_ = 0 // types.h:177:1:
  141. X_STACKALIGNBYTES = 15 // _types.h:49:1:
  142. X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
  143. X_SYS_ENDIAN_H_ = 0 // endian.h:38:1:
  144. X_SYS_SELECT_H_ = 0 // select.h:35:1:
  145. X_SYS_STAT_H_ = 0 // stat.h:41:1:
  146. X_SYS_TIME_H_ = 0 // time.h:36:1:
  147. X_SYS_TYPES_H_ = 0 // types.h:41:1:
  148. X_SYS__ENDIAN_H_ = 0 // _endian.h:34:1:
  149. X_SYS__TIME_H_ = 0 // _time.h:33:1:
  150. X_SYS__TYPES_H_ = 0 // _types.h:35:1:
  151. X_TIMER_T_DEFINED_ = 0 // types.h:187:1:
  152. X_TIMESPEC_DECLARED = 0 // select.h:48:1:
  153. X_TIMEVAL_DECLARED = 0 // select.h:40:1:
  154. X_TIME_H_ = 0 // time.h:42:1:
  155. X_TIME_T_DEFINED_ = 0 // types.h:182:1:
  156. X_UINT16_T_DEFINED_ = 0 // types.h:89:1:
  157. X_UINT32_T_DEFINED_ = 0 // types.h:99:1:
  158. X_UINT64_T_DEFINED_ = 0 // types.h:109:1:
  159. X_UINT8_T_DEFINED_ = 0 // types.h:79:1:
  160. I386 = 1 // <predefined>:339:1:
  161. Unix = 1 // <predefined>:340:1:
  162. )
  163. type Ptrdiff_t = int32 /* <builtin>:3:26 */
  164. type Size_t = uint32 /* <builtin>:9:23 */
  165. type Wchar_t = int32 /* <builtin>:15:24 */
  166. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  167. type X__float128 = float64 /* <builtin>:47:21 */
  168. // $OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $
  169. // $NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $
  170. // -
  171. // Copyright (c) 1982, 1986, 1991, 1993
  172. // The Regents of the University of California. All rights reserved.
  173. // (c) UNIX System Laboratories, Inc.
  174. // All or some portions of this file are derived from material licensed
  175. // to the University of California by American Telephone and Telegraph
  176. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  177. // the permission of UNIX System Laboratories, Inc.
  178. //
  179. // Redistribution and use in source and binary forms, with or without
  180. // modification, are permitted provided that the following conditions
  181. // are met:
  182. // 1. Redistributions of source code must retain the above copyright
  183. // notice, this list of conditions and the following disclaimer.
  184. // 2. Redistributions in binary form must reproduce the above copyright
  185. // notice, this list of conditions and the following disclaimer in the
  186. // documentation and/or other materials provided with the distribution.
  187. // 3. Neither the name of the University nor the names of its contributors
  188. // may be used to endorse or promote products derived from this software
  189. // without specific prior written permission.
  190. //
  191. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  192. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  193. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  194. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  195. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  196. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  197. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  198. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  199. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  200. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  201. // SUCH DAMAGE.
  202. //
  203. // @(#)types.h 8.4 (Berkeley) 1/21/94
  204. // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
  205. // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
  206. // Copyright (c) 1991, 1993
  207. // The Regents of the University of California. All rights reserved.
  208. //
  209. // This code is derived from software contributed to Berkeley by
  210. // Berkeley Software Design, Inc.
  211. //
  212. // Redistribution and use in source and binary forms, with or without
  213. // modification, are permitted provided that the following conditions
  214. // are met:
  215. // 1. Redistributions of source code must retain the above copyright
  216. // notice, this list of conditions and the following disclaimer.
  217. // 2. Redistributions in binary form must reproduce the above copyright
  218. // notice, this list of conditions and the following disclaimer in the
  219. // documentation and/or other materials provided with the distribution.
  220. // 3. Neither the name of the University nor the names of its contributors
  221. // may be used to endorse or promote products derived from this software
  222. // without specific prior written permission.
  223. //
  224. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  225. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  226. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  227. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  228. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  229. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  230. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  231. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  232. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  233. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  234. // SUCH DAMAGE.
  235. //
  236. // @(#)cdefs.h 8.7 (Berkeley) 1/21/94
  237. // $OpenBSD: cdefs.h,v 1.10 2013/03/28 17:30:45 martynas Exp $
  238. // Written by J.T. Conklin <jtc@wimsey.com> 01/17/95.
  239. // Public domain.
  240. // Macro to test if we're using a specific version of gcc or later.
  241. // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  242. // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  243. // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
  244. // in between its arguments. Do not use __CONCAT on double-quoted strings,
  245. // such as those from the __STRING macro: to concatenate strings just put
  246. // them next to each other.
  247. // GCC1 and some versions of GCC2 declare dead (non-returning) and
  248. // pure (no side effects) functions using "volatile" and "const";
  249. // unfortunately, these then cause warnings under "-ansi -pedantic".
  250. // GCC >= 2.5 uses the __attribute__((attrs)) style. All of these
  251. // work for GNU C++ (modulo a slight glitch in the C++ grammar in
  252. // the distribution version of 2.5.5).
  253. // __returns_twice makes the compiler not assume the function
  254. // only returns once. This affects registerisation of variables:
  255. // even local variables need to be in memory across such a call.
  256. // Example: setjmp()
  257. // __only_inline makes the compiler only use this function definition
  258. // for inlining; references that can't be inlined will be left as
  259. // external references instead of generating a local copy. The
  260. // matching library should include a simple extern definition for
  261. // the function to handle those references. c.f. ctype.h
  262. // GNU C version 2.96 adds explicit branch prediction so that
  263. // the CPU back-end can hint the processor and also so that
  264. // code blocks can be reordered such that the predicted path
  265. // sees a more linear flow, thus improving cache behavior, etc.
  266. //
  267. // The following two macros provide us with a way to utilize this
  268. // compiler feature. Use __predict_true() if you expect the expression
  269. // to evaluate to true, and __predict_false() if you expect the
  270. // expression to evaluate to false.
  271. //
  272. // A few notes about usage:
  273. //
  274. // * Generally, __predict_false() error condition checks (unless
  275. // you have some _strong_ reason to do otherwise, in which case
  276. // document it), and/or __predict_true() `no-error' condition
  277. // checks, assuming you want to optimize for the no-error case.
  278. //
  279. // * Other than that, if you don't know the likelihood of a test
  280. // succeeding from empirical or other `hard' evidence, don't
  281. // make predictions.
  282. //
  283. // * These are meant to be used in places that are run `a lot'.
  284. // It is wasteful to make predictions in code that is run
  285. // seldomly (e.g. at subsystem initialization time) as the
  286. // basic block reordering that this affects can often generate
  287. // larger code.
  288. // Delete pseudo-keywords wherever they are not available or needed.
  289. // The __packed macro indicates that a variable or structure members
  290. // should have the smallest possible alignment, despite any host CPU
  291. // alignment requirements.
  292. //
  293. // The __aligned(x) macro specifies the minimum alignment of a
  294. // variable or structure.
  295. //
  296. // These macros together are useful for describing the layout and
  297. // alignment of messages exchanged with hardware or other systems.
  298. // "The nice thing about standards is that there are so many to choose from."
  299. // There are a number of "feature test macros" specified by (different)
  300. // standards that determine which interfaces and types the header files
  301. // should expose.
  302. //
  303. // Because of inconsistencies in these macros, we define our own
  304. // set in the private name space that end in _VISIBLE. These are
  305. // always defined and so headers can test their values easily.
  306. // Things can get tricky when multiple feature macros are defined.
  307. // We try to take the union of all the features requested.
  308. //
  309. // The following macros are guaranteed to have a value after cdefs.h
  310. // has been included:
  311. // __POSIX_VISIBLE
  312. // __XPG_VISIBLE
  313. // __ISO_C_VISIBLE
  314. // __BSD_VISIBLE
  315. // X/Open Portability Guides and Single Unix Specifications.
  316. // _XOPEN_SOURCE XPG3
  317. // _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4
  318. // _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2
  319. // _XOPEN_SOURCE == 500 XPG5
  320. // _XOPEN_SOURCE == 520 XPG5v2
  321. // _XOPEN_SOURCE == 600 POSIX 1003.1-2001 with XSI
  322. // _XOPEN_SOURCE == 700 POSIX 1003.1-2008 with XSI
  323. //
  324. // The XPG spec implies a specific value for _POSIX_C_SOURCE.
  325. // POSIX macros, these checks must follow the XOPEN ones above.
  326. //
  327. // _POSIX_SOURCE == 1 1003.1-1988 (superseded by _POSIX_C_SOURCE)
  328. // _POSIX_C_SOURCE == 1 1003.1-1990
  329. // _POSIX_C_SOURCE == 2 1003.2-1992
  330. // _POSIX_C_SOURCE == 199309L 1003.1b-1993
  331. // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
  332. // and the omnibus ISO/IEC 9945-1:1996
  333. // _POSIX_C_SOURCE == 200112L 1003.1-2001
  334. // _POSIX_C_SOURCE == 200809L 1003.1-2008
  335. //
  336. // The POSIX spec implies a specific value for __ISO_C_VISIBLE, though
  337. // this may be overridden by the _ISOC99_SOURCE macro later.
  338. // _ANSI_SOURCE means to expose ANSI C89 interfaces only.
  339. // If the user defines it in addition to one of the POSIX or XOPEN
  340. // macros, assume the POSIX/XOPEN macro(s) should take precedence.
  341. // _ISOC99_SOURCE, _ISOC11_SOURCE, __STDC_VERSION__, and __cplusplus
  342. // override any of the other macros since they are non-exclusive.
  343. // Finally deal with BSD-specific interfaces that are not covered
  344. // by any standards. We expose these when none of the POSIX or XPG
  345. // macros is defined or if the user explicitly asks for them.
  346. // Default values.
  347. // $OpenBSD: endian.h,v 1.25 2014/12/21 04:49:00 guenther Exp $
  348. // -
  349. // Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
  350. //
  351. // Redistribution and use in source and binary forms, with or without
  352. // modification, are permitted provided that the following conditions
  353. // are met:
  354. // 1. Redistributions of source code must retain the above copyright
  355. // notice, this list of conditions and the following disclaimer.
  356. // 2. Redistributions in binary form must reproduce the above copyright
  357. // notice, this list of conditions and the following disclaimer in the
  358. // documentation and/or other materials provided with the distribution.
  359. //
  360. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  361. // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  362. // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  363. // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  364. // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  365. // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  366. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  367. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  368. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  369. // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  370. // Public definitions for little- and big-endian systems.
  371. // This file should be included as <endian.h> in userspace and as
  372. // <sys/endian.h> in the kernel.
  373. //
  374. // System headers that need endian information but that can't or don't
  375. // want to export the public names here should include <sys/_endian.h>
  376. // and use the internal names: _BYTE_ORDER, _*_ENDIAN, etc.
  377. // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
  378. // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
  379. // Copyright (c) 1991, 1993
  380. // The Regents of the University of California. All rights reserved.
  381. //
  382. // This code is derived from software contributed to Berkeley by
  383. // Berkeley Software Design, Inc.
  384. //
  385. // Redistribution and use in source and binary forms, with or without
  386. // modification, are permitted provided that the following conditions
  387. // are met:
  388. // 1. Redistributions of source code must retain the above copyright
  389. // notice, this list of conditions and the following disclaimer.
  390. // 2. Redistributions in binary form must reproduce the above copyright
  391. // notice, this list of conditions and the following disclaimer in the
  392. // documentation and/or other materials provided with the distribution.
  393. // 3. Neither the name of the University nor the names of its contributors
  394. // may be used to endorse or promote products derived from this software
  395. // without specific prior written permission.
  396. //
  397. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  398. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  399. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  400. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  401. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  402. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  403. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  404. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  405. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  406. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  407. // SUCH DAMAGE.
  408. //
  409. // @(#)cdefs.h 8.7 (Berkeley) 1/21/94
  410. // $OpenBSD: _endian.h,v 1.8 2018/01/11 23:13:37 dlg Exp $
  411. // -
  412. // Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
  413. //
  414. // Redistribution and use in source and binary forms, with or without
  415. // modification, are permitted provided that the following conditions
  416. // are met:
  417. // 1. Redistributions of source code must retain the above copyright
  418. // notice, this list of conditions and the following disclaimer.
  419. // 2. Redistributions in binary form must reproduce the above copyright
  420. // notice, this list of conditions and the following disclaimer in the
  421. // documentation and/or other materials provided with the distribution.
  422. //
  423. // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  424. // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  425. // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  426. // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  427. // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  428. // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  429. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  430. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  431. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  432. // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  433. // Internal endianness macros. This pulls in <machine/endian.h> to
  434. // get the correct setting direction for the platform and sets internal
  435. // ('__' prefix) macros appropriately.
  436. // $OpenBSD: _types.h,v 1.10 2022/08/06 13:31:13 semarie Exp $
  437. // -
  438. // Copyright (c) 1990, 1993
  439. // The Regents of the University of California. All rights reserved.
  440. //
  441. // Redistribution and use in source and binary forms, with or without
  442. // modification, are permitted provided that the following conditions
  443. // are met:
  444. // 1. Redistributions of source code must retain the above copyright
  445. // notice, this list of conditions and the following disclaimer.
  446. // 2. Redistributions in binary form must reproduce the above copyright
  447. // notice, this list of conditions and the following disclaimer in the
  448. // documentation and/or other materials provided with the distribution.
  449. // 3. Neither the name of the University nor the names of its contributors
  450. // may be used to endorse or promote products derived from this software
  451. // without specific prior written permission.
  452. //
  453. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  454. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  455. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  456. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  457. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  458. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  459. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  460. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  461. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  462. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  463. // SUCH DAMAGE.
  464. //
  465. // @(#)types.h 8.3 (Berkeley) 1/5/94
  466. // $OpenBSD: _types.h,v 1.23 2018/03/05 01:15:25 deraadt Exp $
  467. // -
  468. // Copyright (c) 1990, 1993
  469. // The Regents of the University of California. All rights reserved.
  470. //
  471. // Redistribution and use in source and binary forms, with or without
  472. // modification, are permitted provided that the following conditions
  473. // are met:
  474. // 1. Redistributions of source code must retain the above copyright
  475. // notice, this list of conditions and the following disclaimer.
  476. // 2. Redistributions in binary form must reproduce the above copyright
  477. // notice, this list of conditions and the following disclaimer in the
  478. // documentation and/or other materials provided with the distribution.
  479. // 3. Neither the name of the University nor the names of its contributors
  480. // may be used to endorse or promote products derived from this software
  481. // without specific prior written permission.
  482. //
  483. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  484. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  485. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  486. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  487. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  488. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  489. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  490. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  491. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  492. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  493. // SUCH DAMAGE.
  494. //
  495. // @(#)types.h 8.3 (Berkeley) 1/5/94
  496. // @(#)ansi.h 8.2 (Berkeley) 1/4/94
  497. // _ALIGN(p) rounds p (pointer or byte index) up to a correctly-aligned
  498. // value for all data types (int, long, ...). The result is an
  499. // unsigned long and must be cast to any desired pointer type.
  500. //
  501. // _ALIGNED_POINTER is a boolean macro that checks whether an address
  502. // is valid to fetch data elements of type t from on this architecture.
  503. // This does not reflect the optimal alignment, just the possibility
  504. // (within reasonable limits).
  505. // 7.18.1.1 Exact-width integer types
  506. type X__int8_t = int8 /* _types.h:61:22 */
  507. type X__uint8_t = uint8 /* _types.h:62:24 */
  508. type X__int16_t = int16 /* _types.h:63:17 */
  509. type X__uint16_t = uint16 /* _types.h:64:25 */
  510. type X__int32_t = int32 /* _types.h:65:15 */
  511. type X__uint32_t = uint32 /* _types.h:66:23 */
  512. type X__int64_t = int64 /* _types.h:67:20 */
  513. type X__uint64_t = uint64 /* _types.h:68:28 */
  514. // 7.18.1.2 Minimum-width integer types
  515. type X__int_least8_t = X__int8_t /* _types.h:71:19 */
  516. type X__uint_least8_t = X__uint8_t /* _types.h:72:20 */
  517. type X__int_least16_t = X__int16_t /* _types.h:73:20 */
  518. type X__uint_least16_t = X__uint16_t /* _types.h:74:21 */
  519. type X__int_least32_t = X__int32_t /* _types.h:75:20 */
  520. type X__uint_least32_t = X__uint32_t /* _types.h:76:21 */
  521. type X__int_least64_t = X__int64_t /* _types.h:77:20 */
  522. type X__uint_least64_t = X__uint64_t /* _types.h:78:21 */
  523. // 7.18.1.3 Fastest minimum-width integer types
  524. type X__int_fast8_t = X__int32_t /* _types.h:81:20 */
  525. type X__uint_fast8_t = X__uint32_t /* _types.h:82:21 */
  526. type X__int_fast16_t = X__int32_t /* _types.h:83:20 */
  527. type X__uint_fast16_t = X__uint32_t /* _types.h:84:21 */
  528. type X__int_fast32_t = X__int32_t /* _types.h:85:20 */
  529. type X__uint_fast32_t = X__uint32_t /* _types.h:86:21 */
  530. type X__int_fast64_t = X__int64_t /* _types.h:87:20 */
  531. type X__uint_fast64_t = X__uint64_t /* _types.h:88:21 */
  532. // 7.18.1.4 Integer types capable of holding object pointers
  533. type X__intptr_t = int32 /* _types.h:103:16 */
  534. type X__uintptr_t = uint32 /* _types.h:104:24 */
  535. // 7.18.1.5 Greatest-width integer types
  536. type X__intmax_t = X__int64_t /* _types.h:107:20 */
  537. type X__uintmax_t = X__uint64_t /* _types.h:108:21 */
  538. // Register size
  539. type X__register_t = int32 /* _types.h:111:16 */
  540. // VM system types
  541. type X__vaddr_t = uint32 /* _types.h:114:24 */
  542. type X__paddr_t = uint32 /* _types.h:115:24 */
  543. type X__vsize_t = uint32 /* _types.h:116:24 */
  544. type X__psize_t = uint32 /* _types.h:117:24 */
  545. // Standard system types
  546. type X__double_t = float64 /* _types.h:120:22 */
  547. type X__float_t = float64 /* _types.h:121:22 */
  548. type X__ptrdiff_t = int32 /* _types.h:122:16 */
  549. type X__size_t = uint32 /* _types.h:123:24 */
  550. type X__ssize_t = int32 /* _types.h:124:16 */
  551. type X__va_list = X__builtin_va_list /* _types.h:126:27 */
  552. // Wide character support types
  553. type X__wchar_t = int32 /* _types.h:133:15 */
  554. type X__wint_t = int32 /* _types.h:135:15 */
  555. type X__rune_t = int32 /* _types.h:136:15 */
  556. type X__wctrans_t = uintptr /* _types.h:137:14 */
  557. type X__wctype_t = uintptr /* _types.h:138:14 */
  558. type X__blkcnt_t = X__int64_t /* _types.h:39:19 */ // blocks allocated for file
  559. type X__blksize_t = X__int32_t /* _types.h:40:19 */ // optimal blocksize for I/O
  560. type X__clock_t = X__int64_t /* _types.h:41:19 */ // ticks in CLOCKS_PER_SEC
  561. type X__clockid_t = X__int32_t /* _types.h:42:19 */ // CLOCK_* identifiers
  562. type X__cpuid_t = uint32 /* _types.h:43:23 */ // CPU id
  563. type X__dev_t = X__int32_t /* _types.h:44:19 */ // device number
  564. type X__fixpt_t = X__uint32_t /* _types.h:45:20 */ // fixed point number
  565. type X__fsblkcnt_t = X__uint64_t /* _types.h:46:20 */ // file system block count
  566. type X__fsfilcnt_t = X__uint64_t /* _types.h:47:20 */ // file system file count
  567. type X__gid_t = X__uint32_t /* _types.h:48:20 */ // group id
  568. type X__id_t = X__uint32_t /* _types.h:49:20 */ // may contain pid, uid or gid
  569. type X__in_addr_t = X__uint32_t /* _types.h:50:20 */ // base type for internet address
  570. type X__in_port_t = X__uint16_t /* _types.h:51:20 */ // IP port type
  571. type X__ino_t = X__uint64_t /* _types.h:52:20 */ // inode number
  572. type X__key_t = int32 /* _types.h:53:15 */ // IPC key (for Sys V IPC)
  573. type X__mode_t = X__uint32_t /* _types.h:54:20 */ // permissions
  574. type X__nlink_t = X__uint32_t /* _types.h:55:20 */ // link count
  575. type X__off_t = X__int64_t /* _types.h:56:19 */ // file offset or size
  576. type X__pid_t = X__int32_t /* _types.h:57:19 */ // process id
  577. type X__rlim_t = X__uint64_t /* _types.h:58:20 */ // resource limit
  578. type X__sa_family_t = X__uint8_t /* _types.h:59:19 */ // sockaddr address family type
  579. type X__segsz_t = X__int32_t /* _types.h:60:19 */ // segment size
  580. type X__socklen_t = X__uint32_t /* _types.h:61:20 */ // length type for network syscalls
  581. type X__suseconds_t = int32 /* _types.h:62:15 */ // microseconds (signed)
  582. type X__time_t = X__int64_t /* _types.h:63:19 */ // epoch time
  583. type X__timer_t = X__int32_t /* _types.h:64:19 */ // POSIX timer identifiers
  584. type X__uid_t = X__uint32_t /* _types.h:65:20 */ // user id
  585. type X__useconds_t = X__uint32_t /* _types.h:66:20 */ // microseconds
  586. // mbstate_t is an opaque object to keep conversion state, during multibyte
  587. // stream conversions. The content must not be referenced by user programs.
  588. type X__mbstate_t = struct {
  589. F__ccgo_pad1 [0]uint32
  590. F__mbstate8 [128]int8
  591. } /* _types.h:75:3 */
  592. // Tell sys/endian.h we have MD variants of the swap macros.
  593. // Note that these macros evaluate their arguments several times.
  594. // Public names
  595. // These are specified to be function-like macros to match the spec
  596. // POSIX names
  597. // original BSD names
  598. // these were exposed here before
  599. // ancient stuff
  600. type U_char = uint8 /* types.h:51:23 */
  601. type U_short = uint16 /* types.h:52:24 */
  602. type U_int = uint32 /* types.h:53:22 */
  603. type U_long = uint32 /* types.h:54:23 */
  604. type Unchar = uint8 /* types.h:56:23 */ // Sys V compatibility
  605. type Ushort = uint16 /* types.h:57:24 */ // Sys V compatibility
  606. type Uint = uint32 /* types.h:58:22 */ // Sys V compatibility
  607. type Ulong = uint32 /* types.h:59:23 */ // Sys V compatibility
  608. type Cpuid_t = X__cpuid_t /* types.h:61:19 */ // CPU id
  609. type Register_t = X__register_t /* types.h:62:22 */ // register-sized type
  610. // XXX The exact-width bit types should only be exposed if __BSD_VISIBLE
  611. // but the rest of the includes are not ready for that yet.
  612. type Int8_t = X__int8_t /* types.h:75:19 */
  613. type Uint8_t = X__uint8_t /* types.h:80:20 */
  614. type Int16_t = X__int16_t /* types.h:85:20 */
  615. type Uint16_t = X__uint16_t /* types.h:90:21 */
  616. type Int32_t = X__int32_t /* types.h:95:20 */
  617. type Uint32_t = X__uint32_t /* types.h:100:21 */
  618. type Int64_t = X__int64_t /* types.h:105:20 */
  619. type Uint64_t = X__uint64_t /* types.h:110:21 */
  620. // BSD-style unsigned bits types
  621. type U_int8_t = X__uint8_t /* types.h:114:19 */
  622. type U_int16_t = X__uint16_t /* types.h:115:20 */
  623. type U_int32_t = X__uint32_t /* types.h:116:20 */
  624. type U_int64_t = X__uint64_t /* types.h:117:20 */
  625. // quads, deprecated in favor of 64 bit int types
  626. type Quad_t = X__int64_t /* types.h:120:19 */
  627. type U_quad_t = X__uint64_t /* types.h:121:20 */
  628. // VM system types
  629. type Vaddr_t = X__vaddr_t /* types.h:125:19 */
  630. type Paddr_t = X__paddr_t /* types.h:126:19 */
  631. type Vsize_t = X__vsize_t /* types.h:127:19 */
  632. type Psize_t = X__psize_t /* types.h:128:19 */
  633. // Standard system types
  634. type Blkcnt_t = X__blkcnt_t /* types.h:132:20 */ // blocks allocated for file
  635. type Blksize_t = X__blksize_t /* types.h:133:21 */ // optimal blocksize for I/O
  636. type Caddr_t = uintptr /* types.h:134:14 */ // core address
  637. type Daddr32_t = X__int32_t /* types.h:135:19 */ // 32-bit disk address
  638. type Daddr_t = X__int64_t /* types.h:136:19 */ // 64-bit disk address
  639. type Dev_t = X__dev_t /* types.h:137:18 */ // device number
  640. type Fixpt_t = X__fixpt_t /* types.h:138:19 */ // fixed point number
  641. type Gid_t = X__gid_t /* types.h:139:18 */ // group id
  642. type Id_t = X__id_t /* types.h:140:17 */ // may contain pid, uid or gid
  643. type Ino_t = X__ino_t /* types.h:141:18 */ // inode number
  644. type Key_t = X__key_t /* types.h:142:18 */ // IPC key (for Sys V IPC)
  645. type Mode_t = X__mode_t /* types.h:143:18 */ // permissions
  646. type Nlink_t = X__nlink_t /* types.h:144:19 */ // link count
  647. type Rlim_t = X__rlim_t /* types.h:145:18 */ // resource limit
  648. type Segsz_t = X__segsz_t /* types.h:146:19 */ // segment size
  649. type Uid_t = X__uid_t /* types.h:147:18 */ // user id
  650. type Useconds_t = X__useconds_t /* types.h:148:22 */ // microseconds
  651. type Suseconds_t = X__suseconds_t /* types.h:149:23 */ // microseconds (signed)
  652. type Fsblkcnt_t = X__fsblkcnt_t /* types.h:150:22 */ // file system block count
  653. type Fsfilcnt_t = X__fsfilcnt_t /* types.h:151:22 */ // file system file count
  654. // The following types may be defined in multiple header files.
  655. type Clock_t = X__clock_t /* types.h:158:19 */
  656. type Clockid_t = X__clockid_t /* types.h:163:21 */
  657. type Pid_t = X__pid_t /* types.h:168:18 */
  658. type Ssize_t = X__ssize_t /* types.h:178:19 */
  659. type Time_t = X__time_t /* types.h:183:18 */
  660. type Timer_t = X__timer_t /* types.h:188:19 */
  661. type Off_t = X__off_t /* types.h:193:18 */
  662. // Major, minor numbers, dev_t's.
  663. // $OpenBSD: stat.h,v 1.29 2022/01/11 23:59:55 jsg Exp $
  664. // $NetBSD: stat.h,v 1.20 1996/05/16 22:17:49 cgd Exp $
  665. // -
  666. // Copyright (c) 1982, 1986, 1989, 1993
  667. // The Regents of the University of California. All rights reserved.
  668. // (c) UNIX System Laboratories, Inc.
  669. // All or some portions of this file are derived from material licensed
  670. // to the University of California by American Telephone and Telegraph
  671. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  672. // the permission of UNIX System Laboratories, Inc.
  673. //
  674. // Redistribution and use in source and binary forms, with or without
  675. // modification, are permitted provided that the following conditions
  676. // are met:
  677. // 1. Redistributions of source code must retain the above copyright
  678. // notice, this list of conditions and the following disclaimer.
  679. // 2. Redistributions in binary form must reproduce the above copyright
  680. // notice, this list of conditions and the following disclaimer in the
  681. // documentation and/or other materials provided with the distribution.
  682. // 3. Neither the name of the University nor the names of its contributors
  683. // may be used to endorse or promote products derived from this software
  684. // without specific prior written permission.
  685. //
  686. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  687. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  688. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  689. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  690. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  691. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  692. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  693. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  694. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  695. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  696. // SUCH DAMAGE.
  697. //
  698. // @(#)stat.h 8.9 (Berkeley) 8/17/94
  699. // $OpenBSD: time.h,v 1.62 2022/07/23 22:58:51 cheloha Exp $
  700. // $NetBSD: time.h,v 1.18 1996/04/23 10:29:33 mycroft Exp $
  701. // Copyright (c) 1982, 1986, 1993
  702. // The Regents of the University of California. All rights reserved.
  703. //
  704. // Redistribution and use in source and binary forms, with or without
  705. // modification, are permitted provided that the following conditions
  706. // are met:
  707. // 1. Redistributions of source code must retain the above copyright
  708. // notice, this list of conditions and the following disclaimer.
  709. // 2. Redistributions in binary form must reproduce the above copyright
  710. // notice, this list of conditions and the following disclaimer in the
  711. // documentation and/or other materials provided with the distribution.
  712. // 3. Neither the name of the University nor the names of its contributors
  713. // may be used to endorse or promote products derived from this software
  714. // without specific prior written permission.
  715. //
  716. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  717. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  718. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  719. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  720. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  721. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  722. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  723. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  724. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  725. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  726. // SUCH DAMAGE.
  727. //
  728. // @(#)time.h 8.2 (Berkeley) 7/10/94
  729. // $OpenBSD: select.h,v 1.17 2016/09/12 19:41:20 guenther Exp $
  730. // -
  731. // Copyright (c) 1992, 1993
  732. // The Regents of the University of California. All rights reserved.
  733. //
  734. // Redistribution and use in source and binary forms, with or without
  735. // modification, are permitted provided that the following conditions
  736. // are met:
  737. // 1. Redistributions of source code must retain the above copyright
  738. // notice, this list of conditions and the following disclaimer.
  739. // 2. Redistributions in binary form must reproduce the above copyright
  740. // notice, this list of conditions and the following disclaimer in the
  741. // documentation and/or other materials provided with the distribution.
  742. // 3. Neither the name of the University nor the names of its contributors
  743. // may be used to endorse or promote products derived from this software
  744. // without specific prior written permission.
  745. //
  746. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  747. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  748. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  749. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  750. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  751. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  752. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  753. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  754. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  755. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  756. // SUCH DAMAGE.
  757. //
  758. // @(#)select.h 8.2 (Berkeley) 1/4/94
  759. // $OpenBSD: types.h,v 1.49 2022/08/06 13:31:13 semarie Exp $
  760. // $NetBSD: types.h,v 1.29 1996/11/15 22:48:25 jtc Exp $
  761. // -
  762. // Copyright (c) 1982, 1986, 1991, 1993
  763. // The Regents of the University of California. All rights reserved.
  764. // (c) UNIX System Laboratories, Inc.
  765. // All or some portions of this file are derived from material licensed
  766. // to the University of California by American Telephone and Telegraph
  767. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  768. // the permission of UNIX System Laboratories, Inc.
  769. //
  770. // Redistribution and use in source and binary forms, with or without
  771. // modification, are permitted provided that the following conditions
  772. // are met:
  773. // 1. Redistributions of source code must retain the above copyright
  774. // notice, this list of conditions and the following disclaimer.
  775. // 2. Redistributions in binary form must reproduce the above copyright
  776. // notice, this list of conditions and the following disclaimer in the
  777. // documentation and/or other materials provided with the distribution.
  778. // 3. Neither the name of the University nor the names of its contributors
  779. // may be used to endorse or promote products derived from this software
  780. // without specific prior written permission.
  781. //
  782. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  783. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  784. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  785. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  786. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  787. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  788. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  789. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  790. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  791. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  792. // SUCH DAMAGE.
  793. //
  794. // @(#)types.h 8.4 (Berkeley) 1/21/94
  795. type Timeval = struct {
  796. Ftv_sec Time_t
  797. Ftv_usec Suseconds_t
  798. } /* select.h:41:1 */
  799. type Timespec = struct {
  800. Ftv_sec Time_t
  801. Ftv_nsec int32
  802. } /* select.h:49:1 */
  803. // Select uses bit masks of file descriptors in longs. These macros
  804. // manipulate such bit fields (the filesystem macros use chars).
  805. // FD_SETSIZE may be defined by the user, but the default here should
  806. // be enough for most uses.
  807. // We don't want to pollute the namespace with select(2) internals.
  808. // Non-underscore versions are exposed later #if __BSD_VISIBLE
  809. type X__fd_mask = Uint32_t /* select.h:70:18 */
  810. type Fd_set1 = struct{ Ffds_bits [32]X__fd_mask } /* select.h:74:9 */
  811. type Fd_set = Fd_set1 /* select.h:76:3 */
  812. type Sigset_t = uint32 /* select.h:122:22 */
  813. type Timezone = struct {
  814. Ftz_minuteswest int32
  815. Ftz_dsttime int32
  816. } /* time.h:72:1 */
  817. // Operations on timevals.
  818. // Operations on timespecs.
  819. // Names of the interval timers, and structure
  820. // defining a timer setting.
  821. type Itimerval = struct {
  822. Fit_interval struct {
  823. Ftv_sec Time_t
  824. Ftv_usec Suseconds_t
  825. }
  826. Fit_value struct {
  827. Ftv_sec Time_t
  828. Ftv_usec Suseconds_t
  829. }
  830. } /* time.h:148:1 */
  831. // clock information structure for sysctl({CTL_KERN, KERN_CLOCKRATE})
  832. type Clockinfo = struct {
  833. Fhz int32
  834. Ftick int32
  835. Fstathz int32
  836. Fprofhz int32
  837. } /* time.h:157:1 */
  838. // $OpenBSD: time.h,v 1.31 2018/10/30 16:28:42 guenther Exp $
  839. // $NetBSD: time.h,v 1.9 1994/10/26 00:56:35 cgd Exp $
  840. // Copyright (c) 1989 The Regents of the University of California.
  841. // All rights reserved.
  842. //
  843. // (c) UNIX System Laboratories, Inc.
  844. // All or some portions of this file are derived from material licensed
  845. // to the University of California by American Telephone and Telegraph
  846. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  847. // the permission of UNIX System Laboratories, Inc.
  848. //
  849. // Redistribution and use in source and binary forms, with or without
  850. // modification, are permitted provided that the following conditions
  851. // are met:
  852. // 1. Redistributions of source code must retain the above copyright
  853. // notice, this list of conditions and the following disclaimer.
  854. // 2. Redistributions in binary form must reproduce the above copyright
  855. // notice, this list of conditions and the following disclaimer in the
  856. // documentation and/or other materials provided with the distribution.
  857. // 3. Neither the name of the University nor the names of its contributors
  858. // may be used to endorse or promote products derived from this software
  859. // without specific prior written permission.
  860. //
  861. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  862. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  863. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  864. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  865. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  866. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  867. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  868. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  869. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  870. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  871. // SUCH DAMAGE.
  872. //
  873. // @(#)time.h 5.12 (Berkeley) 3/9/91
  874. // $OpenBSD: cdefs.h,v 1.43 2018/10/29 17:10:40 guenther Exp $
  875. // $NetBSD: cdefs.h,v 1.16 1996/04/03 20:46:39 christos Exp $
  876. // Copyright (c) 1991, 1993
  877. // The Regents of the University of California. All rights reserved.
  878. //
  879. // This code is derived from software contributed to Berkeley by
  880. // Berkeley Software Design, Inc.
  881. //
  882. // Redistribution and use in source and binary forms, with or without
  883. // modification, are permitted provided that the following conditions
  884. // are met:
  885. // 1. Redistributions of source code must retain the above copyright
  886. // notice, this list of conditions and the following disclaimer.
  887. // 2. Redistributions in binary form must reproduce the above copyright
  888. // notice, this list of conditions and the following disclaimer in the
  889. // documentation and/or other materials provided with the distribution.
  890. // 3. Neither the name of the University nor the names of its contributors
  891. // may be used to endorse or promote products derived from this software
  892. // without specific prior written permission.
  893. //
  894. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  895. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  896. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  897. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  898. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  899. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  900. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  901. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  902. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  903. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  904. // SUCH DAMAGE.
  905. //
  906. // @(#)cdefs.h 8.7 (Berkeley) 1/21/94
  907. // $OpenBSD: _null.h,v 1.2 2016/09/09 22:07:58 millert Exp $
  908. // Written by Todd C. Miller, September 9, 2016
  909. // Public domain.
  910. // $OpenBSD: _types.h,v 1.10 2022/08/06 13:31:13 semarie Exp $
  911. // -
  912. // Copyright (c) 1990, 1993
  913. // The Regents of the University of California. All rights reserved.
  914. //
  915. // Redistribution and use in source and binary forms, with or without
  916. // modification, are permitted provided that the following conditions
  917. // are met:
  918. // 1. Redistributions of source code must retain the above copyright
  919. // notice, this list of conditions and the following disclaimer.
  920. // 2. Redistributions in binary form must reproduce the above copyright
  921. // notice, this list of conditions and the following disclaimer in the
  922. // documentation and/or other materials provided with the distribution.
  923. // 3. Neither the name of the University nor the names of its contributors
  924. // may be used to endorse or promote products derived from this software
  925. // without specific prior written permission.
  926. //
  927. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  928. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  929. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  930. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  931. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  932. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  933. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  934. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  935. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  936. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  937. // SUCH DAMAGE.
  938. //
  939. // @(#)types.h 8.3 (Berkeley) 1/5/94
  940. // Frequency of the clock ticks reported by times(). Deprecated - use
  941. // sysconf(_SC_CLK_TCK) instead. (Removed in 1003.1-2001.)
  942. // $OpenBSD: _time.h,v 1.9 2017/12/18 05:51:53 cheloha Exp $
  943. // Copyright (c) 1982, 1986, 1993
  944. // The Regents of the University of California. All rights reserved.
  945. //
  946. // Redistribution and use in source and binary forms, with or without
  947. // modification, are permitted provided that the following conditions
  948. // are met:
  949. // 1. Redistributions of source code must retain the above copyright
  950. // notice, this list of conditions and the following disclaimer.
  951. // 2. Redistributions in binary form must reproduce the above copyright
  952. // notice, this list of conditions and the following disclaimer in the
  953. // documentation and/or other materials provided with the distribution.
  954. // 3. Neither the name of the University nor the names of its contributors
  955. // may be used to endorse or promote products derived from this software
  956. // without specific prior written permission.
  957. //
  958. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  959. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  960. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  961. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  962. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  963. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  964. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  965. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  966. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  967. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  968. // SUCH DAMAGE.
  969. // Per-process and per-thread clocks encode the PID or TID into the
  970. // high bits, with the type in the bottom bits
  971. // Structure defined by POSIX 1003.1b to be like a itimerval,
  972. // but with timespecs. Used in the timer_*() system calls.
  973. type Itimerspec = struct {
  974. Fit_interval struct {
  975. Ftv_sec Time_t
  976. Ftv_nsec int32
  977. }
  978. Fit_value struct {
  979. Ftv_sec Time_t
  980. Ftv_nsec int32
  981. }
  982. } /* _time.h:56:1 */
  983. type Locale_t = uintptr /* time.h:107:14 */
  984. type Tm = struct {
  985. Ftm_sec int32
  986. Ftm_min int32
  987. Ftm_hour int32
  988. Ftm_mday int32
  989. Ftm_mon int32
  990. Ftm_year int32
  991. Ftm_wday int32
  992. Ftm_yday int32
  993. Ftm_isdst int32
  994. Ftm_gmtoff int32
  995. Ftm_zone uintptr
  996. } /* time.h:111:1 */
  997. type Stat = struct {
  998. Fst_mode Mode_t
  999. Fst_dev Dev_t
  1000. Fst_ino Ino_t
  1001. Fst_nlink Nlink_t
  1002. Fst_uid Uid_t
  1003. Fst_gid Gid_t
  1004. Fst_rdev Dev_t
  1005. Fst_atim struct {
  1006. Ftv_sec Time_t
  1007. Ftv_nsec int32
  1008. }
  1009. Fst_mtim struct {
  1010. Ftv_sec Time_t
  1011. Ftv_nsec int32
  1012. }
  1013. Fst_ctim struct {
  1014. Ftv_sec Time_t
  1015. Ftv_nsec int32
  1016. }
  1017. Fst_size Off_t
  1018. Fst_blocks Blkcnt_t
  1019. Fst_blksize Blksize_t
  1020. Fst_flags U_int32_t
  1021. Fst_gen U_int32_t
  1022. F__st_birthtim struct {
  1023. Ftv_sec Time_t
  1024. Ftv_nsec int32
  1025. }
  1026. } /* stat.h:45:1 */
  1027. // $OpenBSD: fts.h,v 1.14 2012/12/05 23:19:57 deraadt Exp $
  1028. // $NetBSD: fts.h,v 1.5 1994/12/28 01:41:50 mycroft Exp $
  1029. // Copyright (c) 1989, 1993
  1030. // The Regents of the University of California. All rights reserved.
  1031. //
  1032. // Redistribution and use in source and binary forms, with or without
  1033. // modification, are permitted provided that the following conditions
  1034. // are met:
  1035. // 1. Redistributions of source code must retain the above copyright
  1036. // notice, this list of conditions and the following disclaimer.
  1037. // 2. Redistributions in binary form must reproduce the above copyright
  1038. // notice, this list of conditions and the following disclaimer in the
  1039. // documentation and/or other materials provided with the distribution.
  1040. // 3. Neither the name of the University nor the names of its contributors
  1041. // may be used to endorse or promote products derived from this software
  1042. // without specific prior written permission.
  1043. //
  1044. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1045. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1046. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1047. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1048. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1049. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1050. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1051. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1052. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1053. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1054. // SUCH DAMAGE.
  1055. //
  1056. // @(#)fts.h 8.3 (Berkeley) 8/14/94
  1057. type X_ftsent = struct {
  1058. Ffts_cycle uintptr
  1059. Ffts_parent uintptr
  1060. Ffts_link uintptr
  1061. Ffts_number int32
  1062. Ffts_pointer uintptr
  1063. Ffts_accpath uintptr
  1064. Ffts_path uintptr
  1065. Ffts_errno int32
  1066. Ffts_symfd int32
  1067. Ffts_pathlen Size_t
  1068. Ffts_namelen Size_t
  1069. Ffts_ino Ino_t
  1070. Ffts_dev Dev_t
  1071. Ffts_nlink Nlink_t
  1072. Ffts_level int32
  1073. Ffts_info uint16
  1074. Ffts_flags uint16
  1075. Ffts_instr uint16
  1076. Ffts_spare uint16
  1077. Ffts_statp uintptr
  1078. Ffts_name [1]int8
  1079. F__ccgo_pad1 [3]byte
  1080. } /* fts.h:39:2 */
  1081. // $OpenBSD: fts.h,v 1.14 2012/12/05 23:19:57 deraadt Exp $
  1082. // $NetBSD: fts.h,v 1.5 1994/12/28 01:41:50 mycroft Exp $
  1083. // Copyright (c) 1989, 1993
  1084. // The Regents of the University of California. All rights reserved.
  1085. //
  1086. // Redistribution and use in source and binary forms, with or without
  1087. // modification, are permitted provided that the following conditions
  1088. // are met:
  1089. // 1. Redistributions of source code must retain the above copyright
  1090. // notice, this list of conditions and the following disclaimer.
  1091. // 2. Redistributions in binary form must reproduce the above copyright
  1092. // notice, this list of conditions and the following disclaimer in the
  1093. // documentation and/or other materials provided with the distribution.
  1094. // 3. Neither the name of the University nor the names of its contributors
  1095. // may be used to endorse or promote products derived from this software
  1096. // without specific prior written permission.
  1097. //
  1098. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1099. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1100. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1101. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1102. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1103. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1104. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1105. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1106. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1107. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1108. // SUCH DAMAGE.
  1109. //
  1110. // @(#)fts.h 8.3 (Berkeley) 8/14/94
  1111. type FTS = struct {
  1112. Ffts_cur uintptr
  1113. Ffts_child uintptr
  1114. Ffts_array uintptr
  1115. Ffts_dev Dev_t
  1116. Ffts_path uintptr
  1117. Ffts_rfd int32
  1118. Ffts_pathlen Size_t
  1119. Ffts_nitems int32
  1120. Ffts_compar uintptr
  1121. Ffts_options int32
  1122. } /* fts.h:61:3 */
  1123. type FTSENT = X_ftsent /* fts.h:114:3 */
  1124. var _ int8 /* gen.c:5:13: */