fts_openbsd_amd64.go 57 KB

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