stat_darwin_arm64.go 114 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332
  1. // Code generated by 'ccgo sys/stat/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 sys/stat/stat_darwin_arm64.go -pkgname stat', DO NOT EDIT.
  2. package stat
  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:297:1:
  15. ALLPERMS = 4095 // stat.h:299:1:
  16. DEFFILEMODE = 438 // stat.h:301:1:
  17. EF_IS_PURGEABLE = 0x00000008 // stat.h:371:1:
  18. EF_IS_SPARSE = 0x00000010 // stat.h:372:1:
  19. EF_IS_SYNC_ROOT = 0x00000004 // stat.h:370:1:
  20. EF_IS_SYNTHETIC = 0x00000020 // stat.h:373:1:
  21. EF_MAY_SHARE_BLOCKS = 0x00000001 // stat.h:368:1:
  22. EF_NO_XATTRS = 0x00000002 // stat.h:369:1:
  23. MAC_OS_VERSION_11_0 = 110000 // AvailabilityVersions.h:238:1:
  24. MAC_OS_VERSION_12_0 = 120000 // AvailabilityVersions.h:239:1:
  25. MAC_OS_X_VERSION_10_0 = 1000 // AvailabilityVersions.h:206:1:
  26. MAC_OS_X_VERSION_10_1 = 1010 // AvailabilityVersions.h:207:1:
  27. MAC_OS_X_VERSION_10_10 = 101000 // AvailabilityVersions.h:216:1:
  28. MAC_OS_X_VERSION_10_10_2 = 101002 // AvailabilityVersions.h:217:1:
  29. MAC_OS_X_VERSION_10_10_3 = 101003 // AvailabilityVersions.h:218:1:
  30. MAC_OS_X_VERSION_10_11 = 101100 // AvailabilityVersions.h:219:1:
  31. MAC_OS_X_VERSION_10_11_2 = 101102 // AvailabilityVersions.h:220:1:
  32. MAC_OS_X_VERSION_10_11_3 = 101103 // AvailabilityVersions.h:221:1:
  33. MAC_OS_X_VERSION_10_11_4 = 101104 // AvailabilityVersions.h:222:1:
  34. MAC_OS_X_VERSION_10_12 = 101200 // AvailabilityVersions.h:223:1:
  35. MAC_OS_X_VERSION_10_12_1 = 101201 // AvailabilityVersions.h:224:1:
  36. MAC_OS_X_VERSION_10_12_2 = 101202 // AvailabilityVersions.h:225:1:
  37. MAC_OS_X_VERSION_10_12_4 = 101204 // AvailabilityVersions.h:226:1:
  38. MAC_OS_X_VERSION_10_13 = 101300 // AvailabilityVersions.h:227:1:
  39. MAC_OS_X_VERSION_10_13_1 = 101301 // AvailabilityVersions.h:228:1:
  40. MAC_OS_X_VERSION_10_13_2 = 101302 // AvailabilityVersions.h:229:1:
  41. MAC_OS_X_VERSION_10_13_4 = 101304 // AvailabilityVersions.h:230:1:
  42. MAC_OS_X_VERSION_10_14 = 101400 // AvailabilityVersions.h:231:1:
  43. MAC_OS_X_VERSION_10_14_1 = 101401 // AvailabilityVersions.h:232:1:
  44. MAC_OS_X_VERSION_10_14_4 = 101404 // AvailabilityVersions.h:233:1:
  45. MAC_OS_X_VERSION_10_14_6 = 101406 // AvailabilityVersions.h:234:1:
  46. MAC_OS_X_VERSION_10_15 = 101500 // AvailabilityVersions.h:235:1:
  47. MAC_OS_X_VERSION_10_15_1 = 101501 // AvailabilityVersions.h:236:1:
  48. MAC_OS_X_VERSION_10_16 = 101600 // AvailabilityVersions.h:237:1:
  49. MAC_OS_X_VERSION_10_2 = 1020 // AvailabilityVersions.h:208:1:
  50. MAC_OS_X_VERSION_10_3 = 1030 // AvailabilityVersions.h:209:1:
  51. MAC_OS_X_VERSION_10_4 = 1040 // AvailabilityVersions.h:210:1:
  52. MAC_OS_X_VERSION_10_5 = 1050 // AvailabilityVersions.h:211:1:
  53. MAC_OS_X_VERSION_10_6 = 1060 // AvailabilityVersions.h:212:1:
  54. MAC_OS_X_VERSION_10_7 = 1070 // AvailabilityVersions.h:213:1:
  55. MAC_OS_X_VERSION_10_8 = 1080 // AvailabilityVersions.h:214:1:
  56. MAC_OS_X_VERSION_10_9 = 1090 // AvailabilityVersions.h:215:1:
  57. SF_APPEND = 0x00040000 // stat.h:340:1:
  58. SF_ARCHIVED = 0x00010000 // stat.h:338:1:
  59. SF_DATALESS = 0x40000000 // stat.h:359:1:
  60. SF_FIRMLINK = 0x00800000 // stat.h:351:1:
  61. SF_IMMUTABLE = 0x00020000 // stat.h:339:1:
  62. SF_NOUNLINK = 0x00100000 // stat.h:342:1:
  63. SF_RESTRICTED = 0x00080000 // stat.h:341:1:
  64. SF_SETTABLE = 0x3fff0000 // stat.h:336:1:
  65. SF_SUPPORTED = 0x009f0000 // stat.h:335:1:
  66. SF_SYNTHETIC = 0xc0000000 // stat.h:337:1:
  67. S_BLKSIZE = 512 // stat.h:303:1:
  68. S_IEXEC = 64 // _s_ifmt.h:72:1:
  69. S_IFBLK = 0060000 // _s_ifmt.h:39:1:
  70. S_IFCHR = 0020000 // _s_ifmt.h:37:1:
  71. S_IFDIR = 0040000 // _s_ifmt.h:38:1:
  72. S_IFIFO = 0010000 // _s_ifmt.h:36:1:
  73. S_IFLNK = 0120000 // _s_ifmt.h:41:1:
  74. S_IFMT = 0170000 // _s_ifmt.h:35:1:
  75. S_IFREG = 0100000 // _s_ifmt.h:40:1:
  76. S_IFSOCK = 0140000 // _s_ifmt.h:42:1:
  77. S_IFWHT = 0160000 // _s_ifmt.h:44:1:
  78. S_IREAD = 256 // _s_ifmt.h:70:1:
  79. S_IRGRP = 0000040 // _s_ifmt.h:55:1:
  80. S_IROTH = 0000004 // _s_ifmt.h:60:1:
  81. S_IRUSR = 0000400 // _s_ifmt.h:50:1:
  82. S_IRWXG = 0000070 // _s_ifmt.h:54:1:
  83. S_IRWXO = 0000007 // _s_ifmt.h:59:1:
  84. S_IRWXU = 0000700 // _s_ifmt.h:49:1:
  85. S_ISGID = 0002000 // _s_ifmt.h:65:1:
  86. S_ISTXT = 512 // _s_ifmt.h:69:1:
  87. S_ISUID = 0004000 // _s_ifmt.h:64:1:
  88. S_ISVTX = 0001000 // _s_ifmt.h:66:1:
  89. S_IWGRP = 0000020 // _s_ifmt.h:56:1:
  90. S_IWOTH = 0000002 // _s_ifmt.h:61:1:
  91. S_IWRITE = 128 // _s_ifmt.h:71:1:
  92. S_IWUSR = 0000200 // _s_ifmt.h:51:1:
  93. S_IXGRP = 0000010 // _s_ifmt.h:57:1:
  94. S_IXOTH = 0000001 // _s_ifmt.h:62:1:
  95. S_IXUSR = 0000100 // _s_ifmt.h:52:1:
  96. UF_APPEND = 0x00000004 // stat.h:313:1:
  97. UF_COMPRESSED = 0x00000020 // stat.h:320:1:
  98. UF_DATAVAULT = 0x00000080 // stat.h:326:1:
  99. UF_HIDDEN = 0x00008000 // stat.h:330:1:
  100. UF_IMMUTABLE = 0x00000002 // stat.h:312:1:
  101. UF_NODUMP = 0x00000001 // stat.h:311:1:
  102. UF_OPAQUE = 0x00000008 // stat.h:314:1:
  103. UF_SETTABLE = 0x0000ffff // stat.h:310:1:
  104. UF_TRACKED = 0x00000040 // stat.h:324:1:
  105. UTIME_NOW = -1 // stat.h:395:1:
  106. UTIME_OMIT = -2 // stat.h:396:1:
  107. X_ARM_MACHTYPES_H_ = 0 // types.h:43:1:
  108. X_BLKCNT_T = 0 // _blkcnt_t.h:29:1:
  109. X_BLKSIZE_T = 0 // _blksize_t.h:29:1:
  110. X_BSD_ARM__TYPES_H_ = 0 // _types.h:5:1:
  111. X_BSD_MACHINE_TYPES_H_ = 0 // types.h:32:1:
  112. X_BSD_MACHINE__TYPES_H_ = 0 // _types.h:29:1:
  113. X_CDEFS_H_ = 0 // cdefs.h:68:1:
  114. X_DARWIN_FEATURE_64_BIT_INODE = 1 // cdefs.h:774:1:
  115. X_DARWIN_FEATURE_ONLY_64_BIT_INODE = 1 // cdefs.h:784:1:
  116. X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:800:1:
  117. X_DARWIN_FEATURE_ONLY_VERS_1050 = 1 // cdefs.h:792:1:
  118. X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:808:1:
  119. X_DEV_T = 0 // _dev_t.h:29:1:
  120. X_FILESEC_T = 0 // _filesec_t.h:29:1:
  121. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  122. X_GID_T = 0 // _gid_t.h:29:1:
  123. X_INO64_T = 0 // _ino64_t.h:29:1:
  124. X_INO_T = 0 // _ino_t.h:29:1:
  125. X_INT16_T = 0 // _int16_t.h:29:1:
  126. X_INT32_T = 0 // _int32_t.h:29:1:
  127. X_INT64_T = 0 // _int64_t.h:29:1:
  128. X_INT8_T = 0 // _int8_t.h:29:1:
  129. X_INTPTR_T = 0 // _intptr_t.h:29:1:
  130. X_LP64 = 1 // <predefined>:1:1:
  131. X_MACHTYPES_H_ = 0 // types.h:44:1:
  132. X_MODE_T = 0 // _mode_t.h:29:1:
  133. X_NLINK_T = 0 // _nlink_t.h:29:1:
  134. X_Nonnull = 0 // cdefs.h:268:1:
  135. X_Null_unspecified = 0 // cdefs.h:271:1:
  136. X_Nullable = 0 // cdefs.h:265:1:
  137. X_OFF_T = 0 // _off_t.h:29:1:
  138. X_SYS_STAT_H_ = 0 // stat.h:71:1:
  139. X_SYS__PTHREAD_TYPES_H_ = 0 // _pthread_types.h:30:1:
  140. X_SYS__TYPES_H_ = 0 // _types.h:30:1:
  141. X_TIME_T = 0 // _time_t.h:29:1:
  142. X_UID_T = 0 // _uid_t.h:29:1:
  143. X_UINTPTR_T = 0 // _uintptr_t.h:29:1:
  144. X_U_INT16_T = 0 // _u_int16_t.h:29:1:
  145. X_U_INT32_T = 0 // _u_int32_t.h:29:1:
  146. X_U_INT64_T = 0 // _u_int64_t.h:29:1:
  147. X_U_INT8_T = 0 // _u_int8_t.h:29:1:
  148. )
  149. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  150. type Size_t = uint64 /* <builtin>:9:23 */
  151. type Wchar_t = int32 /* <builtin>:15:24 */
  152. type X__int128_t = struct {
  153. Flo int64
  154. Fhi int64
  155. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  156. type X__uint128_t = struct {
  157. Flo uint64
  158. Fhi uint64
  159. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  160. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  161. type X__float128 = float64 /* <builtin>:47:21 */
  162. var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
  163. // Copyright (c) 2000-2014 Apple Inc. All rights reserved.
  164. //
  165. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  166. //
  167. // This file contains Original Code and/or Modifications of Original Code
  168. // as defined in and that are subject to the Apple Public Source License
  169. // Version 2.0 (the 'License'). You may not use this file except in
  170. // compliance with the License. The rights granted to you under the License
  171. // may not be used to create, or enable the creation or redistribution of,
  172. // unlawful or unlicensed copies of an Apple operating system, or to
  173. // circumvent, violate, or enable the circumvention or violation of, any
  174. // terms of an Apple operating system software license agreement.
  175. //
  176. // Please obtain a copy of the License at
  177. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  178. //
  179. // The Original Code and all software distributed under the License are
  180. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  181. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  182. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  183. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  184. // Please see the License for the specific language governing rights and
  185. // limitations under the License.
  186. //
  187. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  188. // Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
  189. // -
  190. // Copyright (c) 1982, 1986, 1989, 1993
  191. // The Regents of the University of California. All rights reserved.
  192. // (c) UNIX System Laboratories, Inc.
  193. // All or some portions of this file are derived from material licensed
  194. // to the University of California by American Telephone and Telegraph
  195. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  196. // the permission of UNIX System Laboratories, Inc.
  197. //
  198. // Redistribution and use in source and binary forms, with or without
  199. // modification, are permitted provided that the following conditions
  200. // are met:
  201. // 1. Redistributions of source code must retain the above copyright
  202. // notice, this list of conditions and the following disclaimer.
  203. // 2. Redistributions in binary form must reproduce the above copyright
  204. // notice, this list of conditions and the following disclaimer in the
  205. // documentation and/or other materials provided with the distribution.
  206. // 3. All advertising materials mentioning features or use of this software
  207. // must display the following acknowledgement:
  208. // This product includes software developed by the University of
  209. // California, Berkeley and its contributors.
  210. // 4. Neither the name of the University nor the names of its contributors
  211. // may be used to endorse or promote products derived from this software
  212. // without specific prior written permission.
  213. //
  214. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  215. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  216. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  217. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  218. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  219. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  220. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  221. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  222. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  223. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  224. // SUCH DAMAGE.
  225. //
  226. // @(#)stat.h 8.9 (Berkeley) 8/17/94
  227. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  228. //
  229. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  230. //
  231. // This file contains Original Code and/or Modifications of Original Code
  232. // as defined in and that are subject to the Apple Public Source License
  233. // Version 2.0 (the 'License'). You may not use this file except in
  234. // compliance with the License. The rights granted to you under the License
  235. // may not be used to create, or enable the creation or redistribution of,
  236. // unlawful or unlicensed copies of an Apple operating system, or to
  237. // circumvent, violate, or enable the circumvention or violation of, any
  238. // terms of an Apple operating system software license agreement.
  239. //
  240. // Please obtain a copy of the License at
  241. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  242. //
  243. // The Original Code and all software distributed under the License are
  244. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  245. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  246. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  247. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  248. // Please see the License for the specific language governing rights and
  249. // limitations under the License.
  250. //
  251. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  252. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  253. //
  254. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  255. //
  256. // This file contains Original Code and/or Modifications of Original Code
  257. // as defined in and that are subject to the Apple Public Source License
  258. // Version 2.0 (the 'License'). You may not use this file except in
  259. // compliance with the License. The rights granted to you under the License
  260. // may not be used to create, or enable the creation or redistribution of,
  261. // unlawful or unlicensed copies of an Apple operating system, or to
  262. // circumvent, violate, or enable the circumvention or violation of, any
  263. // terms of an Apple operating system software license agreement.
  264. //
  265. // Please obtain a copy of the License at
  266. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  267. //
  268. // The Original Code and all software distributed under the License are
  269. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  270. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  271. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  272. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  273. // Please see the License for the specific language governing rights and
  274. // limitations under the License.
  275. //
  276. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  277. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  278. // Copyright (c) 1991, 1993
  279. // The Regents of the University of California. All rights reserved.
  280. //
  281. // This code is derived from software contributed to Berkeley by
  282. // Berkeley Software Design, Inc.
  283. //
  284. // Redistribution and use in source and binary forms, with or without
  285. // modification, are permitted provided that the following conditions
  286. // are met:
  287. // 1. Redistributions of source code must retain the above copyright
  288. // notice, this list of conditions and the following disclaimer.
  289. // 2. Redistributions in binary form must reproduce the above copyright
  290. // notice, this list of conditions and the following disclaimer in the
  291. // documentation and/or other materials provided with the distribution.
  292. // 3. All advertising materials mentioning features or use of this software
  293. // must display the following acknowledgement:
  294. // This product includes software developed by the University of
  295. // California, Berkeley and its contributors.
  296. // 4. Neither the name of the University nor the names of its contributors
  297. // may be used to endorse or promote products derived from this software
  298. // without specific prior written permission.
  299. //
  300. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  301. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  302. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  303. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  304. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  305. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  306. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  307. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  308. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  309. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  310. // SUCH DAMAGE.
  311. //
  312. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  313. // This SDK is designed to work with clang and specific versions of
  314. // gcc >= 4.0 with Apple's patch sets
  315. // Compatibility with compilers and environments that don't support compiler
  316. // feature checking function-like macros.
  317. // The __CONCAT macro is used to concatenate parts of symbol names, e.g.
  318. // with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
  319. // The __CONCAT macro is a bit tricky -- make sure you don't put spaces
  320. // in between its arguments. __CONCAT can also concatenate double-quoted
  321. // strings produced by the __STRING macro, but this only works with ANSI C.
  322. // In non-ANSI C environments, new programs will want ANSI-only C keywords
  323. // deleted from the program and old programs will want them left alone.
  324. // When using a compiler other than gcc, programs using the ANSI C keywords
  325. // const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
  326. // When using "gcc -traditional", we assume that this is the intent; if
  327. // __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
  328. // __pure2 can be used for functions that are only a function of their scalar
  329. // arguments (meaning they can't dereference pointers).
  330. //
  331. // __stateful_pure can be used for functions that have no side effects,
  332. // but depend on the state of the memory.
  333. // __unused denotes variables and functions that may not be used, preventing
  334. // the compiler from warning about it if not used.
  335. // __used forces variables and functions to be included even if it appears
  336. // to the compiler that they are not used (and would thust be discarded).
  337. // __cold marks code used for debugging or that is rarely taken
  338. // and tells the compiler to optimize for size and outline code.
  339. // __exported denotes symbols that should be exported even when symbols
  340. // are hidden by default.
  341. // __exported_push/_exported_pop are pragmas used to delimit a range of
  342. // symbols that should be exported even when symbols are hidden by default.
  343. // __deprecated causes the compiler to produce a warning when encountering
  344. // code using the deprecated functionality.
  345. // __deprecated_msg() does the same, and compilers that support it will print
  346. // a message along with the deprecation warning.
  347. // This may require turning on such warning with the -Wdeprecated flag.
  348. // __deprecated_enum_msg() should be used on enums, and compilers that support
  349. // it will print the deprecation warning.
  350. // __kpi_deprecated() specifically indicates deprecation of kernel programming
  351. // interfaces in Kernel.framework used by KEXTs.
  352. // __unavailable causes the compiler to error out when encountering
  353. // code using the tagged function
  354. // Delete pseudo-keywords wherever they are not available or needed.
  355. // We use `__restrict' as a way to define the `restrict' type qualifier
  356. // without disturbing older software that is unaware of C99 keywords.
  357. // Compatibility with compilers and environments that don't support the
  358. // nullability feature.
  359. // __disable_tail_calls causes the compiler to not perform tail call
  360. // optimization inside the marked function.
  361. // __not_tail_called causes the compiler to prevent tail call optimization
  362. // on statically bound calls to the function. It has no effect on indirect
  363. // calls. Virtual functions, objective-c methods, and functions marked as
  364. // "always_inline" cannot be marked as __not_tail_called.
  365. // __result_use_check warns callers of a function that not using the function
  366. // return value is a bug, i.e. dismissing malloc() return value results in a
  367. // memory leak.
  368. // __swift_unavailable causes the compiler to mark a symbol as specifically
  369. // unavailable in Swift, regardless of any other availability in C.
  370. // __abortlike is the attribute to put on functions like abort() that are
  371. // typically used to mark assertions. These optimize the codegen
  372. // for outlining while still maintaining debugability.
  373. // Declaring inline functions within headers is error-prone due to differences
  374. // across various versions of the C language and extensions. __header_inline
  375. // can be used to declare inline functions within system headers. In cases
  376. // where you want to force inlining instead of letting the compiler make
  377. // the decision, you can use __header_always_inline.
  378. //
  379. // Be aware that using inline for functions which compilers may also provide
  380. // builtins can behave differently under various compilers. If you intend to
  381. // provide an inline version of such a function, you may want to use a macro
  382. // instead.
  383. //
  384. // The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
  385. // support c99 inline in some cases:
  386. // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
  387. // Compiler-dependent macros that bracket portions of code where the
  388. // "-Wunreachable-code" warning should be ignored. Please use sparingly.
  389. // Compiler-dependent macros to declare that functions take printf-like
  390. // or scanf-like arguments. They are null except for versions of gcc
  391. // that are known to support the features properly. Functions declared
  392. // with these attributes will cause compilation warnings if there is a
  393. // mismatch between the format string and subsequent function parameter
  394. // types.
  395. // Source compatibility only, ID string not emitted in object file
  396. // __alloc_size can be used to label function arguments that represent the
  397. // size of memory that the function allocates and returns. The one-argument
  398. // form labels a single argument that gives the allocation size (where the
  399. // arguments are numbered from 1):
  400. //
  401. // void *malloc(size_t __size) __alloc_size(1);
  402. //
  403. // The two-argument form handles the case where the size is calculated as the
  404. // product of two arguments:
  405. //
  406. // void *calloc(size_t __count, size_t __size) __alloc_size(1,2);
  407. // COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
  408. //
  409. // DEFAULT By default newly complied code will get POSIX APIs plus
  410. // Apple API extensions in scope.
  411. //
  412. // Most users will use this compilation environment to avoid
  413. // behavioral differences between 32 and 64 bit code.
  414. //
  415. // LEGACY Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
  416. // API extensions in scope.
  417. //
  418. // This is generally equivalent to the Tiger release compilation
  419. // environment, except that it cannot be applied to 64 bit code;
  420. // its use is discouraged.
  421. //
  422. // We expect this environment to be deprecated in the future.
  423. //
  424. // STRICT Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
  425. // available APIs to exactly the set of APIs defined by the
  426. // corresponding standard, based on the value defined.
  427. //
  428. // A correct, portable definition for _POSIX_C_SOURCE is 200112L.
  429. // A correct, portable definition for _XOPEN_SOURCE is 600L.
  430. //
  431. // Apple API extensions are not visible in this environment,
  432. // which can cause Apple specific code to fail to compile,
  433. // or behave incorrectly if prototypes are not in scope or
  434. // warnings about missing prototypes are not enabled or ignored.
  435. //
  436. // In any compilation environment, for correct symbol resolution to occur,
  437. // function prototypes must be in scope. It is recommended that all Apple
  438. // tools users add either the "-Wall" or "-Wimplicit-function-declaration"
  439. // compiler flags to their projects to be warned when a function is being
  440. // used without a prototype in scope.
  441. // These settings are particular to each product.
  442. // Platform: MacOSX
  443. // The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
  444. // legacy code to use the old symbol, thus maintaining binary compatibility
  445. // while new code can use a standards compliant version of the same function.
  446. //
  447. // __DARWIN_ALIAS is used by itself if the function signature has not
  448. // changed, it is used along with a #ifdef check for __DARWIN_UNIX03
  449. // if the signature has changed. Because the __LP64__ environment
  450. // only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
  451. // defined, but causes __DARWIN_ALIAS to do no symbol mangling.
  452. //
  453. // As a special case, when XCode is used to target a specific version of the
  454. // OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  455. // will be defined by the compiler, with the digits representing major version
  456. // time 100 + minor version times 10 (e.g. 10.5 := 1050). If we are targeting
  457. // pre-10.5, and it is the default compilation environment, revert the
  458. // compilation environment to pre-__DARWIN_UNIX03.
  459. // symbol suffixes used for symbol versioning
  460. // symbol versioning macros
  461. // symbol release macros
  462. // Copyright (c) 2010 Apple Inc. All rights reserved.
  463. //
  464. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  465. //
  466. // This file contains Original Code and/or Modifications of Original Code
  467. // as defined in and that are subject to the Apple Public Source License
  468. // Version 2.0 (the 'License'). You may not use this file except in
  469. // compliance with the License. The rights granted to you under the License
  470. // may not be used to create, or enable the creation or redistribution of,
  471. // unlawful or unlicensed copies of an Apple operating system, or to
  472. // circumvent, violate, or enable the circumvention or violation of, any
  473. // terms of an Apple operating system software license agreement.
  474. //
  475. // Please obtain a copy of the License at
  476. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  477. //
  478. // The Original Code and all software distributed under the License are
  479. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  480. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  481. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  482. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  483. // Please see the License for the specific language governing rights and
  484. // limitations under the License.
  485. //
  486. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  487. // POSIX.1 requires that the macros we test be defined before any standard
  488. // header file is included. This permits us to convert values for feature
  489. // testing, as necessary, using only _POSIX_C_SOURCE.
  490. //
  491. // Here's a quick run-down of the versions:
  492. // defined(_POSIX_SOURCE) 1003.1-1988
  493. // _POSIX_C_SOURCE == 1L 1003.1-1990
  494. // _POSIX_C_SOURCE == 2L 1003.2-1992 C Language Binding Option
  495. // _POSIX_C_SOURCE == 199309L 1003.1b-1993
  496. // _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
  497. // and the omnibus ISO/IEC 9945-1: 1996
  498. // _POSIX_C_SOURCE == 200112L 1003.1-2001
  499. // _POSIX_C_SOURCE == 200809L 1003.1-2008
  500. //
  501. // In addition, the X/Open Portability Guide, which is now the Single UNIX
  502. // Specification, defines a feature-test macro which indicates the version of
  503. // that specification, and which subsumes _POSIX_C_SOURCE.
  504. // Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
  505. // Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
  506. // Deal with various X/Open Portability Guides and Single UNIX Spec.
  507. // Deal with all versions of POSIX. The ordering relative to the tests above is
  508. // important.
  509. // POSIX C deprecation macros
  510. // Copyright (c) 2010 Apple Inc. All rights reserved.
  511. //
  512. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  513. //
  514. // This file contains Original Code and/or Modifications of Original Code
  515. // as defined in and that are subject to the Apple Public Source License
  516. // Version 2.0 (the 'License'). You may not use this file except in
  517. // compliance with the License. The rights granted to you under the License
  518. // may not be used to create, or enable the creation or redistribution of,
  519. // unlawful or unlicensed copies of an Apple operating system, or to
  520. // circumvent, violate, or enable the circumvention or violation of, any
  521. // terms of an Apple operating system software license agreement.
  522. //
  523. // Please obtain a copy of the License at
  524. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  525. //
  526. // The Original Code and all software distributed under the License are
  527. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  528. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  529. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  530. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  531. // Please see the License for the specific language governing rights and
  532. // limitations under the License.
  533. //
  534. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  535. // Set a single macro which will always be defined and can be used to determine
  536. // the appropriate namespace. For POSIX, these values will correspond to
  537. // _POSIX_C_SOURCE value. Currently there are two additional levels corresponding
  538. // to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
  539. // If the developer has neither requested a strict language mode nor a version
  540. // of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
  541. // of __DARWIN_C_FULL.
  542. // long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
  543. // c99 still want long longs. While not perfect, we allow long longs for
  544. // g++.
  545. // ****************************************
  546. //
  547. // Public darwin-specific feature macros
  548. //
  549. // _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
  550. // structures modified for 64-bit inodes (like struct stat) will be used.
  551. // _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
  552. // be 64-bit; there is no support for 32-bit ino_t when this macro is defined
  553. // (and non-zero). There is no struct stat64 either, as the regular
  554. // struct stat will already be the 64-bit version.
  555. // _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
  556. // in 10.5 exists; no pre-10.5 variants are available.
  557. // _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
  558. // are available (the legacy BSD APIs are not available)
  559. // _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
  560. // and specifies the conformance level (3 is SUSv3)
  561. // This macro casts away the qualifier from the variable
  562. //
  563. // Note: use at your own risk, removing qualifiers can result in
  564. // catastrophic run-time failures.
  565. // __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
  566. // used from other compilation units, but not other libraries or executables.
  567. // We intentionally define to nothing pointer attributes which do not have an
  568. // impact on the ABI. __indexable and __bidi_indexable are not defined because
  569. // of the ABI incompatibility that makes the diagnostic preferable.
  570. // Similarly, we intentionally define to nothing the
  571. // __ptrcheck_abi_assume_single and __ptrcheck_abi_assume_unsafe_indexable
  572. // macros because they do not lead to an ABI incompatibility. However, we do not
  573. // define the indexable and unsafe_indexable ones because the diagnostic is
  574. // better than the silent ABI break.
  575. // __unsafe_forge intrinsics are defined as regular C casts.
  576. // decay operates normally; attribute is meaningless without pointer checks.
  577. // Architecture validation for current SDK
  578. // Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
  579. //
  580. // This provides more advanced type checking on compilers supporting
  581. // the proper extensions, even in C.
  582. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  583. //
  584. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  585. //
  586. // This file contains Original Code and/or Modifications of Original Code
  587. // as defined in and that are subject to the Apple Public Source License
  588. // Version 2.0 (the 'License'). You may not use this file except in
  589. // compliance with the License. The rights granted to you under the License
  590. // may not be used to create, or enable the creation or redistribution of,
  591. // unlawful or unlicensed copies of an Apple operating system, or to
  592. // circumvent, violate, or enable the circumvention or violation of, any
  593. // terms of an Apple operating system software license agreement.
  594. //
  595. // Please obtain a copy of the License at
  596. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  597. //
  598. // The Original Code and all software distributed under the License are
  599. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  600. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  601. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  602. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  603. // Please see the License for the specific language governing rights and
  604. // limitations under the License.
  605. //
  606. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  607. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  608. // This header file contains integer types. It's intended to also contain
  609. // flotaing point and other arithmetic types, as needed, later.
  610. type X__int8_t = int8 /* _types.h:15:33 */
  611. type X__uint8_t = uint8 /* _types.h:19:33 */
  612. type X__int16_t = int16 /* _types.h:20:33 */
  613. type X__uint16_t = uint16 /* _types.h:21:33 */
  614. type X__int32_t = int32 /* _types.h:22:33 */
  615. type X__uint32_t = uint32 /* _types.h:23:33 */
  616. type X__int64_t = int64 /* _types.h:24:33 */
  617. type X__uint64_t = uint64 /* _types.h:25:33 */
  618. type X__darwin_intptr_t = int64 /* _types.h:27:33 */
  619. type X__darwin_natural_t = uint32 /* _types.h:28:33 */
  620. // The rune type below is declared to be an ``int'' instead of the more natural
  621. // ``unsigned long'' or ``long''. Two things are happening here. It is not
  622. // unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
  623. // it looks like 10646 will be a 31 bit standard. This means that if your
  624. // ints cannot hold 32 bits, you will be in trouble. The reason an int was
  625. // chosen over a long is that the is*() and to*() routines take ints (says
  626. // ANSI C), but they use __darwin_ct_rune_t instead of int. By changing it
  627. // here, you lose a bit of ANSI conformance, but your programs will still
  628. // work.
  629. //
  630. // NOTE: rune_t is not covered by ANSI nor other standards, and should not
  631. // be instantiated outside of lib/libc/locale. Use wchar_t. wchar_t and
  632. // rune_t must be the same type. Also wint_t must be no narrower than
  633. // wchar_t, and should also be able to hold all members of the largest
  634. // character set plus one extra value (WEOF). wint_t must be at least 16 bits.
  635. type X__darwin_ct_rune_t = int32 /* _types.h:48:33 */ // ct_rune_t
  636. // mbstate_t is an opaque object to keep conversion state, during multibyte
  637. // stream conversions. The content must not be referenced by user programs.
  638. type X__mbstate_t = struct {
  639. F__ccgo_pad1 [0]uint64
  640. F__mbstate8 [128]int8
  641. } /* _types.h:57:3 */
  642. type X__darwin_mbstate_t = X__mbstate_t /* _types.h:59:33 */ // mbstate_t
  643. type X__darwin_ptrdiff_t = int64 /* _types.h:62:33 */ // ptr1 - ptr2
  644. type X__darwin_size_t = uint64 /* _types.h:70:33 */ // sizeof()
  645. type X__darwin_va_list = X__builtin_va_list /* _types.h:76:33 */ // va_list
  646. type X__darwin_wchar_t = int32 /* _types.h:82:33 */ // wchar_t
  647. type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:87:33 */ // rune_t
  648. type X__darwin_wint_t = int32 /* _types.h:90:33 */ // wint_t
  649. type X__darwin_clock_t = uint64 /* _types.h:95:33 */ // clock()
  650. type X__darwin_socklen_t = X__uint32_t /* _types.h:96:33 */ // socklen_t (duh)
  651. type X__darwin_ssize_t = int64 /* _types.h:97:33 */ // byte count or error
  652. type X__darwin_time_t = int64 /* _types.h:98:33 */ // time()
  653. // Type definitions; takes common type definitions that must be used
  654. // in multiple header files due to [XSI], removes them from the system
  655. // space, and puts them in the implementation space.
  656. type X__darwin_blkcnt_t = X__int64_t /* _types.h:55:25 */ // total blocks
  657. type X__darwin_blksize_t = X__int32_t /* _types.h:56:25 */ // preferred block size
  658. type X__darwin_dev_t = X__int32_t /* _types.h:57:25 */ // dev_t
  659. type X__darwin_fsblkcnt_t = uint32 /* _types.h:58:25 */ // Used by statvfs and fstatvfs
  660. type X__darwin_fsfilcnt_t = uint32 /* _types.h:59:25 */ // Used by statvfs and fstatvfs
  661. type X__darwin_gid_t = X__uint32_t /* _types.h:60:25 */ // [???] process and group IDs
  662. type X__darwin_id_t = X__uint32_t /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t
  663. type X__darwin_ino64_t = X__uint64_t /* _types.h:62:25 */ // [???] Used for 64 bit inodes
  664. type X__darwin_ino_t = X__darwin_ino64_t /* _types.h:64:26 */ // [???] Used for inodes
  665. type X__darwin_mach_port_name_t = X__darwin_natural_t /* _types.h:68:28 */ // Used by mach
  666. type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach
  667. type X__darwin_mode_t = X__uint16_t /* _types.h:70:25 */ // [???] Some file attributes
  668. type X__darwin_off_t = X__int64_t /* _types.h:71:25 */ // [???] Used for file sizes
  669. type X__darwin_pid_t = X__int32_t /* _types.h:72:25 */ // [???] process and group IDs
  670. type X__darwin_sigset_t = X__uint32_t /* _types.h:73:25 */ // [???] signal set
  671. type X__darwin_suseconds_t = X__int32_t /* _types.h:74:25 */ // [???] microseconds
  672. type X__darwin_uid_t = X__uint32_t /* _types.h:75:25 */ // [???] user IDs
  673. type X__darwin_useconds_t = X__uint32_t /* _types.h:76:25 */ // [???] microseconds
  674. type X__darwin_uuid_t = [16]uint8 /* _types.h:77:25 */
  675. type X__darwin_uuid_string_t = [37]int8 /* _types.h:78:17 */
  676. // Copyright (c) 2003-2013 Apple Inc. All rights reserved.
  677. //
  678. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  679. //
  680. // This file contains Original Code and/or Modifications of Original Code
  681. // as defined in and that are subject to the Apple Public Source License
  682. // Version 2.0 (the 'License'). You may not use this file except in
  683. // compliance with the License. The rights granted to you under the License
  684. // may not be used to create, or enable the creation or redistribution of,
  685. // unlawful or unlicensed copies of an Apple operating system, or to
  686. // circumvent, violate, or enable the circumvention or violation of, any
  687. // terms of an Apple operating system software license agreement.
  688. //
  689. // Please obtain a copy of the License at
  690. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  691. //
  692. // The Original Code and all software distributed under the License are
  693. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  694. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  695. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  696. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  697. // Please see the License for the specific language governing rights and
  698. // limitations under the License.
  699. //
  700. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  701. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  702. //
  703. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  704. //
  705. // This file contains Original Code and/or Modifications of Original Code
  706. // as defined in and that are subject to the Apple Public Source License
  707. // Version 2.0 (the 'License'). You may not use this file except in
  708. // compliance with the License. The rights granted to you under the License
  709. // may not be used to create, or enable the creation or redistribution of,
  710. // unlawful or unlicensed copies of an Apple operating system, or to
  711. // circumvent, violate, or enable the circumvention or violation of, any
  712. // terms of an Apple operating system software license agreement.
  713. //
  714. // Please obtain a copy of the License at
  715. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  716. //
  717. // The Original Code and all software distributed under the License are
  718. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  719. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  720. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  721. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  722. // Please see the License for the specific language governing rights and
  723. // limitations under the License.
  724. //
  725. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  726. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  727. // Copyright (c) 1991, 1993
  728. // The Regents of the University of California. All rights reserved.
  729. //
  730. // This code is derived from software contributed to Berkeley by
  731. // Berkeley Software Design, Inc.
  732. //
  733. // Redistribution and use in source and binary forms, with or without
  734. // modification, are permitted provided that the following conditions
  735. // are met:
  736. // 1. Redistributions of source code must retain the above copyright
  737. // notice, this list of conditions and the following disclaimer.
  738. // 2. Redistributions in binary form must reproduce the above copyright
  739. // notice, this list of conditions and the following disclaimer in the
  740. // documentation and/or other materials provided with the distribution.
  741. // 3. All advertising materials mentioning features or use of this software
  742. // must display the following acknowledgement:
  743. // This product includes software developed by the University of
  744. // California, Berkeley and its contributors.
  745. // 4. Neither the name of the University nor the names of its contributors
  746. // may be used to endorse or promote products derived from this software
  747. // without specific prior written permission.
  748. //
  749. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  750. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  751. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  752. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  753. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  754. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  755. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  756. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  757. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  758. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  759. // SUCH DAMAGE.
  760. //
  761. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  762. // pthread opaque structures
  763. type X__darwin_pthread_handler_rec = struct {
  764. F__routine uintptr
  765. F__arg uintptr
  766. F__next uintptr
  767. } /* _pthread_types.h:57:1 */
  768. type X_opaque_pthread_attr_t = struct {
  769. F__sig int64
  770. F__opaque [56]int8
  771. } /* _pthread_types.h:63:1 */
  772. type X_opaque_pthread_cond_t = struct {
  773. F__sig int64
  774. F__opaque [40]int8
  775. } /* _pthread_types.h:68:1 */
  776. type X_opaque_pthread_condattr_t = struct {
  777. F__sig int64
  778. F__opaque [8]int8
  779. } /* _pthread_types.h:73:1 */
  780. type X_opaque_pthread_mutex_t = struct {
  781. F__sig int64
  782. F__opaque [56]int8
  783. } /* _pthread_types.h:78:1 */
  784. type X_opaque_pthread_mutexattr_t = struct {
  785. F__sig int64
  786. F__opaque [8]int8
  787. } /* _pthread_types.h:83:1 */
  788. type X_opaque_pthread_once_t = struct {
  789. F__sig int64
  790. F__opaque [8]int8
  791. } /* _pthread_types.h:88:1 */
  792. type X_opaque_pthread_rwlock_t = struct {
  793. F__sig int64
  794. F__opaque [192]int8
  795. } /* _pthread_types.h:93:1 */
  796. type X_opaque_pthread_rwlockattr_t = struct {
  797. F__sig int64
  798. F__opaque [16]int8
  799. } /* _pthread_types.h:98:1 */
  800. type X_opaque_pthread_t = struct {
  801. F__sig int64
  802. F__cleanup_stack uintptr
  803. F__opaque [8176]int8
  804. } /* _pthread_types.h:103:1 */
  805. type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t /* _pthread_types.h:109:39 */
  806. type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t /* _pthread_types.h:110:39 */
  807. type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t /* _pthread_types.h:111:43 */
  808. type X__darwin_pthread_key_t = uint64 /* _pthread_types.h:112:23 */
  809. type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t /* _pthread_types.h:113:40 */
  810. type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t /* _pthread_types.h:114:44 */
  811. type X__darwin_pthread_once_t = X_opaque_pthread_once_t /* _pthread_types.h:115:39 */
  812. type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t /* _pthread_types.h:116:41 */
  813. type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
  814. type X__darwin_pthread_t = uintptr /* _pthread_types.h:118:34 */
  815. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  816. //
  817. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  818. //
  819. // This file contains Original Code and/or Modifications of Original Code
  820. // as defined in and that are subject to the Apple Public Source License
  821. // Version 2.0 (the 'License'). You may not use this file except in
  822. // compliance with the License. The rights granted to you under the License
  823. // may not be used to create, or enable the creation or redistribution of,
  824. // unlawful or unlicensed copies of an Apple operating system, or to
  825. // circumvent, violate, or enable the circumvention or violation of, any
  826. // terms of an Apple operating system software license agreement.
  827. //
  828. // Please obtain a copy of the License at
  829. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  830. //
  831. // The Original Code and all software distributed under the License are
  832. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  833. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  834. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  835. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  836. // Please see the License for the specific language governing rights and
  837. // limitations under the License.
  838. //
  839. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  840. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  841. // Copyright (c) 1991, 1993
  842. // The Regents of the University of California. All rights reserved.
  843. //
  844. // This code is derived from software contributed to Berkeley by
  845. // Berkeley Software Design, Inc.
  846. //
  847. // Redistribution and use in source and binary forms, with or without
  848. // modification, are permitted provided that the following conditions
  849. // are met:
  850. // 1. Redistributions of source code must retain the above copyright
  851. // notice, this list of conditions and the following disclaimer.
  852. // 2. Redistributions in binary form must reproduce the above copyright
  853. // notice, this list of conditions and the following disclaimer in the
  854. // documentation and/or other materials provided with the distribution.
  855. // 3. All advertising materials mentioning features or use of this software
  856. // must display the following acknowledgement:
  857. // This product includes software developed by the University of
  858. // California, Berkeley and its contributors.
  859. // 4. Neither the name of the University nor the names of its contributors
  860. // may be used to endorse or promote products derived from this software
  861. // without specific prior written permission.
  862. //
  863. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  864. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  865. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  866. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  867. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  868. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  869. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  870. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  871. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  872. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  873. // SUCH DAMAGE.
  874. //
  875. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  876. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  877. //
  878. // @APPLE_LICENSE_HEADER_START@
  879. //
  880. // This file contains Original Code and/or Modifications of Original Code
  881. // as defined in and that are subject to the Apple Public Source License
  882. // Version 2.0 (the 'License'). You may not use this file except in
  883. // compliance with the License. Please obtain a copy of the License at
  884. // http://www.opensource.apple.com/apsl/ and read it before using this
  885. // file.
  886. //
  887. // The Original Code and all software distributed under the License are
  888. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  889. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  890. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  891. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  892. // Please see the License for the specific language governing rights and
  893. // limitations under the License.
  894. //
  895. // @APPLE_LICENSE_HEADER_END@
  896. //
  897. // These macros are for use in OS header files. They enable function prototypes
  898. // and Objective-C methods to be tagged with the OS version in which they
  899. // were first available; and, if applicable, the OS version in which they
  900. // became deprecated.
  901. //
  902. // The desktop Mac OS X and iOS each have different version numbers.
  903. // The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
  904. // and iOS version numbers. For instance:
  905. // __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
  906. // means the function/method was first available on Mac OS X 10.2 on the desktop
  907. // and first available in iOS 2.0 on the iPhone.
  908. //
  909. // If a function is available on one platform, but not the other a _NA (not
  910. // applicable) parameter is used. For instance:
  911. // __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
  912. // means that the function/method was first available on Mac OS X 10.3, and it
  913. // currently not implemented on the iPhone.
  914. //
  915. // At some point, a function/method may be deprecated. That means Apple
  916. // recommends applications stop using the function, either because there is a
  917. // better replacement or the functionality is being phased out. Deprecated
  918. // functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
  919. // macro which specifies the OS version where the function became available
  920. // as well as the OS version in which it became deprecated. For instance:
  921. // __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
  922. // means that the function/method was introduced in Mac OS X 10.0, then
  923. // became deprecated beginning in Mac OS X 10.5. On iOS the function
  924. // has never been available.
  925. //
  926. // For these macros to function properly, a program must specify the OS version range
  927. // it is targeting. The min OS version is specified as an option to the compiler:
  928. // -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
  929. // when building for the iPhone. The upper bound for the OS version is rarely needed,
  930. // but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
  931. // Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
  932. //
  933. // Examples:
  934. //
  935. // A function available in Mac OS X 10.5 and later, but not on the phone:
  936. //
  937. // extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  938. //
  939. //
  940. // An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
  941. //
  942. // @interface MyClass : NSObject
  943. // -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
  944. // @end
  945. //
  946. //
  947. // An enum available on the phone, but not available on Mac OS X:
  948. //
  949. // #if __IPHONE_OS_VERSION_MIN_REQUIRED
  950. // enum { myEnum = 1 };
  951. // #endif
  952. // Note: this works when targeting the Mac OS X platform because
  953. // __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
  954. //
  955. //
  956. // An enum with values added in different iPhoneOS versions:
  957. //
  958. // enum {
  959. // myX = 1, // Usable on iPhoneOS 2.1 and later
  960. // myY = 2, // Usable on iPhoneOS 3.0 and later
  961. // myZ = 3, // Usable on iPhoneOS 3.0 and later
  962. // ...
  963. // Note: you do not want to use #if with enumeration values
  964. // when a client needs to see all values at compile time
  965. // and use runtime logic to only use the viable values.
  966. //
  967. //
  968. // It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
  969. // source base that can be compiled to target a range of OS versions. It is best
  970. // to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
  971. // That is because you might get compiled on an old OS that does not define a later
  972. // OS version macro, and in the C preprocessor undefined values evaluate to zero
  973. // in expresssions, which could cause the #if expression to evaluate in an unexpected
  974. // way.
  975. //
  976. // #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
  977. // // code only compiled when targeting Mac OS X and not iPhone
  978. // // note use of 1050 instead of __MAC_10_5
  979. // #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
  980. // // code in here might run on pre-Leopard OS
  981. // #else
  982. // // code here can assume Leopard or later
  983. // #endif
  984. // #endif
  985. //
  986. //
  987. // __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
  988. // in an upcoming release. This soft deprecation is an intermediate step before formal
  989. // deprecation to notify developers about the API before compiler warnings are generated.
  990. // You can find all places in your code that use soft deprecated API by redefining the
  991. // value of this macro to your current minimum deployment target, for example:
  992. // (macOS)
  993. // clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
  994. // (iOS)
  995. // clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
  996. // Copyright (c) 2019 by Apple Inc.. All rights reserved.
  997. //
  998. // @APPLE_LICENSE_HEADER_START@
  999. //
  1000. // This file contains Original Code and/or Modifications of Original Code
  1001. // as defined in and that are subject to the Apple Public Source License
  1002. // Version 2.0 (the 'License'). You may not use this file except in
  1003. // compliance with the License. Please obtain a copy of the License at
  1004. // http://www.opensource.apple.com/apsl/ and read it before using this
  1005. // file.
  1006. //
  1007. // The Original Code and all software distributed under the License are
  1008. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1009. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1010. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1011. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1012. // Please see the License for the specific language governing rights and
  1013. // limitations under the License.
  1014. //
  1015. // @APPLE_LICENSE_HEADER_END@
  1016. // __MAC_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  1017. // __IPHONE_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
  1018. // Set up standard Mac OS X versions
  1019. // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
  1020. //
  1021. // @APPLE_LICENSE_HEADER_START@
  1022. //
  1023. // This file contains Original Code and/or Modifications of Original Code
  1024. // as defined in and that are subject to the Apple Public Source License
  1025. // Version 2.0 (the 'License'). You may not use this file except in
  1026. // compliance with the License. Please obtain a copy of the License at
  1027. // http://www.opensource.apple.com/apsl/ and read it before using this
  1028. // file.
  1029. //
  1030. // The Original Code and all software distributed under the License are
  1031. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1032. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1033. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1034. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1035. // Please see the License for the specific language governing rights and
  1036. // limitations under the License.
  1037. //
  1038. // @APPLE_LICENSE_HEADER_END@
  1039. //
  1040. // File: AvailabilityInternal.h
  1041. //
  1042. // Contains: implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
  1043. //
  1044. // compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
  1045. // make sure a default max version is set
  1046. //
  1047. // Macros for defining which versions/platform a given symbol can be used.
  1048. //
  1049. // @see http://clang.llvm.org/docs/AttributeReference.html#availability
  1050. //
  1051. // Evaluate to nothing for compilers that don't support availability.
  1052. // Swift compiler version
  1053. // Allows for project-agnostic "epochs" for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
  1054. // Example:
  1055. //
  1056. // #if __swift_compiler_version_at_least(800, 2, 20)
  1057. // - (nonnull NSString *)description;
  1058. // #else
  1059. // - (NSString *)description;
  1060. // #endif
  1061. // If __SPI_AVAILABLE has not been defined elsewhere, disable it.
  1062. // for use to document app extension usage
  1063. // for use marking APIs available info for Mac OSX
  1064. // for use marking APIs available info for iOS
  1065. // for use marking APIs available info for tvOS
  1066. // for use marking APIs available info for Watch OS
  1067. // for use marking APIs unavailable for swift
  1068. //
  1069. // Macros for defining which versions/platform a given symbol can be used.
  1070. //
  1071. // @see http://clang.llvm.org/docs/AttributeReference.html#availability
  1072. //
  1073. // * Note that these macros are only compatible with clang compilers that
  1074. // * support the following target selection options:
  1075. // *
  1076. // * -mmacosx-version-min
  1077. // * -miphoneos-version-min
  1078. // * -mwatchos-version-min
  1079. // * -mtvos-version-min
  1080. //
  1081. // Evaluate to nothing for compilers that don't support availability.
  1082. // If SPI decorations have not been defined elsewhere, disable them.
  1083. // [XSI] The timespec structure may be defined as described in <time.h>
  1084. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1085. //
  1086. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1087. //
  1088. // This file contains Original Code and/or Modifications of Original Code
  1089. // as defined in and that are subject to the Apple Public Source License
  1090. // Version 2.0 (the 'License'). You may not use this file except in
  1091. // compliance with the License. The rights granted to you under the License
  1092. // may not be used to create, or enable the creation or redistribution of,
  1093. // unlawful or unlicensed copies of an Apple operating system, or to
  1094. // circumvent, violate, or enable the circumvention or violation of, any
  1095. // terms of an Apple operating system software license agreement.
  1096. //
  1097. // Please obtain a copy of the License at
  1098. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1099. //
  1100. // The Original Code and all software distributed under the License are
  1101. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1102. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1103. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1104. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1105. // Please see the License for the specific language governing rights and
  1106. // limitations under the License.
  1107. //
  1108. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1109. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1110. //
  1111. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1112. //
  1113. // This file contains Original Code and/or Modifications of Original Code
  1114. // as defined in and that are subject to the Apple Public Source License
  1115. // Version 2.0 (the 'License'). You may not use this file except in
  1116. // compliance with the License. The rights granted to you under the License
  1117. // may not be used to create, or enable the creation or redistribution of,
  1118. // unlawful or unlicensed copies of an Apple operating system, or to
  1119. // circumvent, violate, or enable the circumvention or violation of, any
  1120. // terms of an Apple operating system software license agreement.
  1121. //
  1122. // Please obtain a copy of the License at
  1123. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1124. //
  1125. // The Original Code and all software distributed under the License are
  1126. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1127. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1128. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1129. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1130. // Please see the License for the specific language governing rights and
  1131. // limitations under the License.
  1132. //
  1133. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1134. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1135. // Copyright (c) 2000-2008 Apple Inc. All rights reserved.
  1136. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1137. // Copyright (c) 1990, 1993
  1138. // The Regents of the University of California. All rights reserved.
  1139. //
  1140. // Redistribution and use in source and binary forms, with or without
  1141. // modification, are permitted provided that the following conditions
  1142. // are met:
  1143. // 1. Redistributions of source code must retain the above copyright
  1144. // notice, this list of conditions and the following disclaimer.
  1145. // 2. Redistributions in binary form must reproduce the above copyright
  1146. // notice, this list of conditions and the following disclaimer in the
  1147. // documentation and/or other materials provided with the distribution.
  1148. // 3. All advertising materials mentioning features or use of this software
  1149. // must display the following acknowledgement:
  1150. // This product includes software developed by the University of
  1151. // California, Berkeley and its contributors.
  1152. // 4. Neither the name of the University nor the names of its contributors
  1153. // may be used to endorse or promote products derived from this software
  1154. // without specific prior written permission.
  1155. //
  1156. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1157. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1158. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1159. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1160. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1161. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1162. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1163. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1164. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1165. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1166. // SUCH DAMAGE.
  1167. //
  1168. // @(#)types.h 8.3 (Berkeley) 1/5/94
  1169. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1170. // Copyright (c) 2000-2018 Apple Inc. All rights reserved.
  1171. //
  1172. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1173. //
  1174. // This file contains Original Code and/or Modifications of Original Code
  1175. // as defined in and that are subject to the Apple Public Source License
  1176. // Version 2.0 (the 'License'). You may not use this file except in
  1177. // compliance with the License. The rights granted to you under the License
  1178. // may not be used to create, or enable the creation or redistribution of,
  1179. // unlawful or unlicensed copies of an Apple operating system, or to
  1180. // circumvent, violate, or enable the circumvention or violation of, any
  1181. // terms of an Apple operating system software license agreement.
  1182. //
  1183. // Please obtain a copy of the License at
  1184. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1185. //
  1186. // The Original Code and all software distributed under the License are
  1187. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1188. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1189. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1190. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1191. // Please see the License for the specific language governing rights and
  1192. // limitations under the License.
  1193. //
  1194. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1195. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1196. // Copyright (c) 1991, 1993
  1197. // The Regents of the University of California. All rights reserved.
  1198. //
  1199. // This code is derived from software contributed to Berkeley by
  1200. // Berkeley Software Design, Inc.
  1201. //
  1202. // Redistribution and use in source and binary forms, with or without
  1203. // modification, are permitted provided that the following conditions
  1204. // are met:
  1205. // 1. Redistributions of source code must retain the above copyright
  1206. // notice, this list of conditions and the following disclaimer.
  1207. // 2. Redistributions in binary form must reproduce the above copyright
  1208. // notice, this list of conditions and the following disclaimer in the
  1209. // documentation and/or other materials provided with the distribution.
  1210. // 3. All advertising materials mentioning features or use of this software
  1211. // must display the following acknowledgement:
  1212. // This product includes software developed by the University of
  1213. // California, Berkeley and its contributors.
  1214. // 4. Neither the name of the University nor the names of its contributors
  1215. // may be used to endorse or promote products derived from this software
  1216. // without specific prior written permission.
  1217. //
  1218. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  1219. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  1220. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  1221. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  1222. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1223. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  1224. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  1225. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  1226. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  1227. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  1228. // SUCH DAMAGE.
  1229. //
  1230. // @(#)cdefs.h 8.8 (Berkeley) 1/9/95
  1231. // Basic integral types. Omit the typedef if
  1232. // not possible for a machine/compiler combination.
  1233. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1234. //
  1235. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1236. //
  1237. // This file contains Original Code and/or Modifications of Original Code
  1238. // as defined in and that are subject to the Apple Public Source License
  1239. // Version 2.0 (the 'License'). You may not use this file except in
  1240. // compliance with the License. The rights granted to you under the License
  1241. // may not be used to create, or enable the creation or redistribution of,
  1242. // unlawful or unlicensed copies of an Apple operating system, or to
  1243. // circumvent, violate, or enable the circumvention or violation of, any
  1244. // terms of an Apple operating system software license agreement.
  1245. //
  1246. // Please obtain a copy of the License at
  1247. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1248. //
  1249. // The Original Code and all software distributed under the License are
  1250. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1251. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1252. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1253. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1254. // Please see the License for the specific language governing rights and
  1255. // limitations under the License.
  1256. //
  1257. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1258. type Int8_t = int8 /* _int8_t.h:30:31 */
  1259. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1260. //
  1261. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1262. //
  1263. // This file contains Original Code and/or Modifications of Original Code
  1264. // as defined in and that are subject to the Apple Public Source License
  1265. // Version 2.0 (the 'License'). You may not use this file except in
  1266. // compliance with the License. The rights granted to you under the License
  1267. // may not be used to create, or enable the creation or redistribution of,
  1268. // unlawful or unlicensed copies of an Apple operating system, or to
  1269. // circumvent, violate, or enable the circumvention or violation of, any
  1270. // terms of an Apple operating system software license agreement.
  1271. //
  1272. // Please obtain a copy of the License at
  1273. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1274. //
  1275. // The Original Code and all software distributed under the License are
  1276. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1277. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1278. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1279. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1280. // Please see the License for the specific language governing rights and
  1281. // limitations under the License.
  1282. //
  1283. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1284. type Int16_t = int16 /* _int16_t.h:30:33 */
  1285. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1286. //
  1287. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1288. //
  1289. // This file contains Original Code and/or Modifications of Original Code
  1290. // as defined in and that are subject to the Apple Public Source License
  1291. // Version 2.0 (the 'License'). You may not use this file except in
  1292. // compliance with the License. The rights granted to you under the License
  1293. // may not be used to create, or enable the creation or redistribution of,
  1294. // unlawful or unlicensed copies of an Apple operating system, or to
  1295. // circumvent, violate, or enable the circumvention or violation of, any
  1296. // terms of an Apple operating system software license agreement.
  1297. //
  1298. // Please obtain a copy of the License at
  1299. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1300. //
  1301. // The Original Code and all software distributed under the License are
  1302. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1303. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1304. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1305. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1306. // Please see the License for the specific language governing rights and
  1307. // limitations under the License.
  1308. //
  1309. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1310. type Int32_t = int32 /* _int32_t.h:30:33 */
  1311. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1312. //
  1313. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1314. //
  1315. // This file contains Original Code and/or Modifications of Original Code
  1316. // as defined in and that are subject to the Apple Public Source License
  1317. // Version 2.0 (the 'License'). You may not use this file except in
  1318. // compliance with the License. The rights granted to you under the License
  1319. // may not be used to create, or enable the creation or redistribution of,
  1320. // unlawful or unlicensed copies of an Apple operating system, or to
  1321. // circumvent, violate, or enable the circumvention or violation of, any
  1322. // terms of an Apple operating system software license agreement.
  1323. //
  1324. // Please obtain a copy of the License at
  1325. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1326. //
  1327. // The Original Code and all software distributed under the License are
  1328. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1329. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1330. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1331. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1332. // Please see the License for the specific language governing rights and
  1333. // limitations under the License.
  1334. //
  1335. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1336. type Int64_t = int64 /* _int64_t.h:30:33 */
  1337. // Copyright (c) 2016 Apple Inc. All rights reserved.
  1338. //
  1339. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1340. //
  1341. // This file contains Original Code and/or Modifications of Original Code
  1342. // as defined in and that are subject to the Apple Public Source License
  1343. // Version 2.0 (the 'License'). You may not use this file except in
  1344. // compliance with the License. The rights granted to you under the License
  1345. // may not be used to create, or enable the creation or redistribution of,
  1346. // unlawful or unlicensed copies of an Apple operating system, or to
  1347. // circumvent, violate, or enable the circumvention or violation of, any
  1348. // terms of an Apple operating system software license agreement.
  1349. //
  1350. // Please obtain a copy of the License at
  1351. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1352. //
  1353. // The Original Code and all software distributed under the License are
  1354. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1355. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1356. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1357. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1358. // Please see the License for the specific language governing rights and
  1359. // limitations under the License.
  1360. //
  1361. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1362. type U_int8_t = uint8 /* _u_int8_t.h:30:33 */
  1363. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1364. //
  1365. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1366. //
  1367. // This file contains Original Code and/or Modifications of Original Code
  1368. // as defined in and that are subject to the Apple Public Source License
  1369. // Version 2.0 (the 'License'). You may not use this file except in
  1370. // compliance with the License. The rights granted to you under the License
  1371. // may not be used to create, or enable the creation or redistribution of,
  1372. // unlawful or unlicensed copies of an Apple operating system, or to
  1373. // circumvent, violate, or enable the circumvention or violation of, any
  1374. // terms of an Apple operating system software license agreement.
  1375. //
  1376. // Please obtain a copy of the License at
  1377. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1378. //
  1379. // The Original Code and all software distributed under the License are
  1380. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1381. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1382. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1383. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1384. // Please see the License for the specific language governing rights and
  1385. // limitations under the License.
  1386. //
  1387. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1388. type U_int16_t = uint16 /* _u_int16_t.h:30:41 */
  1389. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1390. //
  1391. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1392. //
  1393. // This file contains Original Code and/or Modifications of Original Code
  1394. // as defined in and that are subject to the Apple Public Source License
  1395. // Version 2.0 (the 'License'). You may not use this file except in
  1396. // compliance with the License. The rights granted to you under the License
  1397. // may not be used to create, or enable the creation or redistribution of,
  1398. // unlawful or unlicensed copies of an Apple operating system, or to
  1399. // circumvent, violate, or enable the circumvention or violation of, any
  1400. // terms of an Apple operating system software license agreement.
  1401. //
  1402. // Please obtain a copy of the License at
  1403. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1404. //
  1405. // The Original Code and all software distributed under the License are
  1406. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1407. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1408. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1409. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1410. // Please see the License for the specific language governing rights and
  1411. // limitations under the License.
  1412. //
  1413. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1414. type U_int32_t = uint32 /* _u_int32_t.h:30:33 */
  1415. // Copyright (c) 2012 Apple Inc. All rights reserved.
  1416. //
  1417. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1418. //
  1419. // This file contains Original Code and/or Modifications of Original Code
  1420. // as defined in and that are subject to the Apple Public Source License
  1421. // Version 2.0 (the 'License'). You may not use this file except in
  1422. // compliance with the License. The rights granted to you under the License
  1423. // may not be used to create, or enable the creation or redistribution of,
  1424. // unlawful or unlicensed copies of an Apple operating system, or to
  1425. // circumvent, violate, or enable the circumvention or violation of, any
  1426. // terms of an Apple operating system software license agreement.
  1427. //
  1428. // Please obtain a copy of the License at
  1429. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1430. //
  1431. // The Original Code and all software distributed under the License are
  1432. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1433. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1434. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1435. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1436. // Please see the License for the specific language governing rights and
  1437. // limitations under the License.
  1438. //
  1439. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1440. type U_int64_t = uint64 /* _u_int64_t.h:30:33 */
  1441. type Register_t = Int64_t /* types.h:66:33 */
  1442. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1443. //
  1444. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1445. //
  1446. // This file contains Original Code and/or Modifications of Original Code
  1447. // as defined in and that are subject to the Apple Public Source License
  1448. // Version 2.0 (the 'License'). You may not use this file except in
  1449. // compliance with the License. The rights granted to you under the License
  1450. // may not be used to create, or enable the creation or redistribution of,
  1451. // unlawful or unlicensed copies of an Apple operating system, or to
  1452. // circumvent, violate, or enable the circumvention or violation of, any
  1453. // terms of an Apple operating system software license agreement.
  1454. //
  1455. // Please obtain a copy of the License at
  1456. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1457. //
  1458. // The Original Code and all software distributed under the License are
  1459. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1460. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1461. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1462. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1463. // Please see the License for the specific language governing rights and
  1464. // limitations under the License.
  1465. //
  1466. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1467. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1468. //
  1469. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1470. //
  1471. // This file contains Original Code and/or Modifications of Original Code
  1472. // as defined in and that are subject to the Apple Public Source License
  1473. // Version 2.0 (the 'License'). You may not use this file except in
  1474. // compliance with the License. The rights granted to you under the License
  1475. // may not be used to create, or enable the creation or redistribution of,
  1476. // unlawful or unlicensed copies of an Apple operating system, or to
  1477. // circumvent, violate, or enable the circumvention or violation of, any
  1478. // terms of an Apple operating system software license agreement.
  1479. //
  1480. // Please obtain a copy of the License at
  1481. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1482. //
  1483. // The Original Code and all software distributed under the License are
  1484. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1485. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1486. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1487. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1488. // Please see the License for the specific language governing rights and
  1489. // limitations under the License.
  1490. //
  1491. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1492. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1493. type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */
  1494. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1495. //
  1496. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1497. //
  1498. // This file contains Original Code and/or Modifications of Original Code
  1499. // as defined in and that are subject to the Apple Public Source License
  1500. // Version 2.0 (the 'License'). You may not use this file except in
  1501. // compliance with the License. The rights granted to you under the License
  1502. // may not be used to create, or enable the creation or redistribution of,
  1503. // unlawful or unlicensed copies of an Apple operating system, or to
  1504. // circumvent, violate, or enable the circumvention or violation of, any
  1505. // terms of an Apple operating system software license agreement.
  1506. //
  1507. // Please obtain a copy of the License at
  1508. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1509. //
  1510. // The Original Code and all software distributed under the License are
  1511. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1512. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1513. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1514. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1515. // Please see the License for the specific language governing rights and
  1516. // limitations under the License.
  1517. //
  1518. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1519. type Uintptr_t = uint64 /* _uintptr_t.h:34:33 */
  1520. // These types are used for reserving the largest possible size.
  1521. type User_addr_t = U_int64_t /* types.h:77:33 */
  1522. type User_size_t = U_int64_t /* types.h:78:33 */
  1523. type User_ssize_t = Int64_t /* types.h:79:33 */
  1524. type User_long_t = Int64_t /* types.h:80:33 */
  1525. type User_ulong_t = U_int64_t /* types.h:81:33 */
  1526. type User_time_t = Int64_t /* types.h:82:33 */
  1527. type User_off_t = Int64_t /* types.h:83:33 */
  1528. // This defines the size of syscall arguments after copying into the kernel:
  1529. type Syscall_arg_t = U_int64_t /* types.h:104:33 */
  1530. type Timespec = struct {
  1531. Ftv_sec X__darwin_time_t
  1532. Ftv_nsec int64
  1533. } /* _timespec.h:33:1 */
  1534. // [XSI] The blkcnt_t, blksize_t, dev_t, ino_t, mode_t, nlink_t, uid_t,
  1535. // gid_t, off_t, and time_t types shall be defined as described in
  1536. // <sys/types.h>.
  1537. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1538. //
  1539. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1540. //
  1541. // This file contains Original Code and/or Modifications of Original Code
  1542. // as defined in and that are subject to the Apple Public Source License
  1543. // Version 2.0 (the 'License'). You may not use this file except in
  1544. // compliance with the License. The rights granted to you under the License
  1545. // may not be used to create, or enable the creation or redistribution of,
  1546. // unlawful or unlicensed copies of an Apple operating system, or to
  1547. // circumvent, violate, or enable the circumvention or violation of, any
  1548. // terms of an Apple operating system software license agreement.
  1549. //
  1550. // Please obtain a copy of the License at
  1551. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1552. //
  1553. // The Original Code and all software distributed under the License are
  1554. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1555. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1556. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1557. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1558. // Please see the License for the specific language governing rights and
  1559. // limitations under the License.
  1560. //
  1561. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1562. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1563. //
  1564. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1565. //
  1566. // This file contains Original Code and/or Modifications of Original Code
  1567. // as defined in and that are subject to the Apple Public Source License
  1568. // Version 2.0 (the 'License'). You may not use this file except in
  1569. // compliance with the License. The rights granted to you under the License
  1570. // may not be used to create, or enable the creation or redistribution of,
  1571. // unlawful or unlicensed copies of an Apple operating system, or to
  1572. // circumvent, violate, or enable the circumvention or violation of, any
  1573. // terms of an Apple operating system software license agreement.
  1574. //
  1575. // Please obtain a copy of the License at
  1576. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1577. //
  1578. // The Original Code and all software distributed under the License are
  1579. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1580. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1581. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1582. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1583. // Please see the License for the specific language governing rights and
  1584. // limitations under the License.
  1585. //
  1586. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1587. type Blkcnt_t = X__darwin_blkcnt_t /* _blkcnt_t.h:31:34 */
  1588. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1589. //
  1590. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1591. //
  1592. // This file contains Original Code and/or Modifications of Original Code
  1593. // as defined in and that are subject to the Apple Public Source License
  1594. // Version 2.0 (the 'License'). You may not use this file except in
  1595. // compliance with the License. The rights granted to you under the License
  1596. // may not be used to create, or enable the creation or redistribution of,
  1597. // unlawful or unlicensed copies of an Apple operating system, or to
  1598. // circumvent, violate, or enable the circumvention or violation of, any
  1599. // terms of an Apple operating system software license agreement.
  1600. //
  1601. // Please obtain a copy of the License at
  1602. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1603. //
  1604. // The Original Code and all software distributed under the License are
  1605. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1606. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1607. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1608. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1609. // Please see the License for the specific language governing rights and
  1610. // limitations under the License.
  1611. //
  1612. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1613. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1614. //
  1615. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1616. //
  1617. // This file contains Original Code and/or Modifications of Original Code
  1618. // as defined in and that are subject to the Apple Public Source License
  1619. // Version 2.0 (the 'License'). You may not use this file except in
  1620. // compliance with the License. The rights granted to you under the License
  1621. // may not be used to create, or enable the creation or redistribution of,
  1622. // unlawful or unlicensed copies of an Apple operating system, or to
  1623. // circumvent, violate, or enable the circumvention or violation of, any
  1624. // terms of an Apple operating system software license agreement.
  1625. //
  1626. // Please obtain a copy of the License at
  1627. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1628. //
  1629. // The Original Code and all software distributed under the License are
  1630. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1631. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1632. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1633. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1634. // Please see the License for the specific language governing rights and
  1635. // limitations under the License.
  1636. //
  1637. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1638. type Blksize_t = X__darwin_blksize_t /* _blksize_t.h:31:35 */
  1639. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1640. //
  1641. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1642. //
  1643. // This file contains Original Code and/or Modifications of Original Code
  1644. // as defined in and that are subject to the Apple Public Source License
  1645. // Version 2.0 (the 'License'). You may not use this file except in
  1646. // compliance with the License. The rights granted to you under the License
  1647. // may not be used to create, or enable the creation or redistribution of,
  1648. // unlawful or unlicensed copies of an Apple operating system, or to
  1649. // circumvent, violate, or enable the circumvention or violation of, any
  1650. // terms of an Apple operating system software license agreement.
  1651. //
  1652. // Please obtain a copy of the License at
  1653. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1654. //
  1655. // The Original Code and all software distributed under the License are
  1656. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1657. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1658. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1659. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1660. // Please see the License for the specific language governing rights and
  1661. // limitations under the License.
  1662. //
  1663. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1664. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1665. //
  1666. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1667. //
  1668. // This file contains Original Code and/or Modifications of Original Code
  1669. // as defined in and that are subject to the Apple Public Source License
  1670. // Version 2.0 (the 'License'). You may not use this file except in
  1671. // compliance with the License. The rights granted to you under the License
  1672. // may not be used to create, or enable the creation or redistribution of,
  1673. // unlawful or unlicensed copies of an Apple operating system, or to
  1674. // circumvent, violate, or enable the circumvention or violation of, any
  1675. // terms of an Apple operating system software license agreement.
  1676. //
  1677. // Please obtain a copy of the License at
  1678. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1679. //
  1680. // The Original Code and all software distributed under the License are
  1681. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1682. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1683. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1684. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1685. // Please see the License for the specific language governing rights and
  1686. // limitations under the License.
  1687. //
  1688. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1689. type Dev_t = X__darwin_dev_t /* _dev_t.h:31:31 */ // device number
  1690. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1691. //
  1692. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1693. //
  1694. // This file contains Original Code and/or Modifications of Original Code
  1695. // as defined in and that are subject to the Apple Public Source License
  1696. // Version 2.0 (the 'License'). You may not use this file except in
  1697. // compliance with the License. The rights granted to you under the License
  1698. // may not be used to create, or enable the creation or redistribution of,
  1699. // unlawful or unlicensed copies of an Apple operating system, or to
  1700. // circumvent, violate, or enable the circumvention or violation of, any
  1701. // terms of an Apple operating system software license agreement.
  1702. //
  1703. // Please obtain a copy of the License at
  1704. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1705. //
  1706. // The Original Code and all software distributed under the License are
  1707. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1708. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1709. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1710. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1711. // Please see the License for the specific language governing rights and
  1712. // limitations under the License.
  1713. //
  1714. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1715. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1716. //
  1717. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1718. //
  1719. // This file contains Original Code and/or Modifications of Original Code
  1720. // as defined in and that are subject to the Apple Public Source License
  1721. // Version 2.0 (the 'License'). You may not use this file except in
  1722. // compliance with the License. The rights granted to you under the License
  1723. // may not be used to create, or enable the creation or redistribution of,
  1724. // unlawful or unlicensed copies of an Apple operating system, or to
  1725. // circumvent, violate, or enable the circumvention or violation of, any
  1726. // terms of an Apple operating system software license agreement.
  1727. //
  1728. // Please obtain a copy of the License at
  1729. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1730. //
  1731. // The Original Code and all software distributed under the License are
  1732. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1733. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1734. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1735. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1736. // Please see the License for the specific language governing rights and
  1737. // limitations under the License.
  1738. //
  1739. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1740. type Ino_t = X__darwin_ino_t /* _ino_t.h:31:33 */ // inode number
  1741. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1742. //
  1743. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1744. //
  1745. // This file contains Original Code and/or Modifications of Original Code
  1746. // as defined in and that are subject to the Apple Public Source License
  1747. // Version 2.0 (the 'License'). You may not use this file except in
  1748. // compliance with the License. The rights granted to you under the License
  1749. // may not be used to create, or enable the creation or redistribution of,
  1750. // unlawful or unlicensed copies of an Apple operating system, or to
  1751. // circumvent, violate, or enable the circumvention or violation of, any
  1752. // terms of an Apple operating system software license agreement.
  1753. //
  1754. // Please obtain a copy of the License at
  1755. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1756. //
  1757. // The Original Code and all software distributed under the License are
  1758. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1759. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1760. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1761. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1762. // Please see the License for the specific language governing rights and
  1763. // limitations under the License.
  1764. //
  1765. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1766. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1767. //
  1768. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1769. //
  1770. // This file contains Original Code and/or Modifications of Original Code
  1771. // as defined in and that are subject to the Apple Public Source License
  1772. // Version 2.0 (the 'License'). You may not use this file except in
  1773. // compliance with the License. The rights granted to you under the License
  1774. // may not be used to create, or enable the creation or redistribution of,
  1775. // unlawful or unlicensed copies of an Apple operating system, or to
  1776. // circumvent, violate, or enable the circumvention or violation of, any
  1777. // terms of an Apple operating system software license agreement.
  1778. //
  1779. // Please obtain a copy of the License at
  1780. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1781. //
  1782. // The Original Code and all software distributed under the License are
  1783. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1784. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1785. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1786. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1787. // Please see the License for the specific language governing rights and
  1788. // limitations under the License.
  1789. //
  1790. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1791. type Ino64_t = X__darwin_ino64_t /* _ino64_t.h:31:33 */ // 64bit inode number
  1792. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1793. //
  1794. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1795. //
  1796. // This file contains Original Code and/or Modifications of Original Code
  1797. // as defined in and that are subject to the Apple Public Source License
  1798. // Version 2.0 (the 'License'). You may not use this file except in
  1799. // compliance with the License. The rights granted to you under the License
  1800. // may not be used to create, or enable the creation or redistribution of,
  1801. // unlawful or unlicensed copies of an Apple operating system, or to
  1802. // circumvent, violate, or enable the circumvention or violation of, any
  1803. // terms of an Apple operating system software license agreement.
  1804. //
  1805. // Please obtain a copy of the License at
  1806. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1807. //
  1808. // The Original Code and all software distributed under the License are
  1809. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1810. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1811. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1812. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1813. // Please see the License for the specific language governing rights and
  1814. // limitations under the License.
  1815. //
  1816. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1817. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1818. //
  1819. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1820. //
  1821. // This file contains Original Code and/or Modifications of Original Code
  1822. // as defined in and that are subject to the Apple Public Source License
  1823. // Version 2.0 (the 'License'). You may not use this file except in
  1824. // compliance with the License. The rights granted to you under the License
  1825. // may not be used to create, or enable the creation or redistribution of,
  1826. // unlawful or unlicensed copies of an Apple operating system, or to
  1827. // circumvent, violate, or enable the circumvention or violation of, any
  1828. // terms of an Apple operating system software license agreement.
  1829. //
  1830. // Please obtain a copy of the License at
  1831. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1832. //
  1833. // The Original Code and all software distributed under the License are
  1834. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1835. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1836. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1837. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1838. // Please see the License for the specific language governing rights and
  1839. // limitations under the License.
  1840. //
  1841. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1842. type Mode_t = X__darwin_mode_t /* _mode_t.h:31:33 */
  1843. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1844. //
  1845. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1846. //
  1847. // This file contains Original Code and/or Modifications of Original Code
  1848. // as defined in and that are subject to the Apple Public Source License
  1849. // Version 2.0 (the 'License'). You may not use this file except in
  1850. // compliance with the License. The rights granted to you under the License
  1851. // may not be used to create, or enable the creation or redistribution of,
  1852. // unlawful or unlicensed copies of an Apple operating system, or to
  1853. // circumvent, violate, or enable the circumvention or violation of, any
  1854. // terms of an Apple operating system software license agreement.
  1855. //
  1856. // Please obtain a copy of the License at
  1857. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1858. //
  1859. // The Original Code and all software distributed under the License are
  1860. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1861. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1862. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1863. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1864. // Please see the License for the specific language governing rights and
  1865. // limitations under the License.
  1866. //
  1867. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1868. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  1869. //
  1870. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1871. //
  1872. // This file contains Original Code and/or Modifications of Original Code
  1873. // as defined in and that are subject to the Apple Public Source License
  1874. // Version 2.0 (the 'License'). You may not use this file except in
  1875. // compliance with the License. The rights granted to you under the License
  1876. // may not be used to create, or enable the creation or redistribution of,
  1877. // unlawful or unlicensed copies of an Apple operating system, or to
  1878. // circumvent, violate, or enable the circumvention or violation of, any
  1879. // terms of an Apple operating system software license agreement.
  1880. //
  1881. // Please obtain a copy of the License at
  1882. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1883. //
  1884. // The Original Code and all software distributed under the License are
  1885. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1886. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1887. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1888. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1889. // Please see the License for the specific language governing rights and
  1890. // limitations under the License.
  1891. //
  1892. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1893. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  1894. type Nlink_t = X__uint16_t /* _nlink_t.h:31:27 */ // link count
  1895. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1896. //
  1897. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1898. //
  1899. // This file contains Original Code and/or Modifications of Original Code
  1900. // as defined in and that are subject to the Apple Public Source License
  1901. // Version 2.0 (the 'License'). You may not use this file except in
  1902. // compliance with the License. The rights granted to you under the License
  1903. // may not be used to create, or enable the creation or redistribution of,
  1904. // unlawful or unlicensed copies of an Apple operating system, or to
  1905. // circumvent, violate, or enable the circumvention or violation of, any
  1906. // terms of an Apple operating system software license agreement.
  1907. //
  1908. // Please obtain a copy of the License at
  1909. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1910. //
  1911. // The Original Code and all software distributed under the License are
  1912. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1913. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1914. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1915. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1916. // Please see the License for the specific language governing rights and
  1917. // limitations under the License.
  1918. //
  1919. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1920. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1921. //
  1922. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1923. //
  1924. // This file contains Original Code and/or Modifications of Original Code
  1925. // as defined in and that are subject to the Apple Public Source License
  1926. // Version 2.0 (the 'License'). You may not use this file except in
  1927. // compliance with the License. The rights granted to you under the License
  1928. // may not be used to create, or enable the creation or redistribution of,
  1929. // unlawful or unlicensed copies of an Apple operating system, or to
  1930. // circumvent, violate, or enable the circumvention or violation of, any
  1931. // terms of an Apple operating system software license agreement.
  1932. //
  1933. // Please obtain a copy of the License at
  1934. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1935. //
  1936. // The Original Code and all software distributed under the License are
  1937. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1938. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1939. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1940. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1941. // Please see the License for the specific language governing rights and
  1942. // limitations under the License.
  1943. //
  1944. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1945. type Uid_t = X__darwin_uid_t /* _uid_t.h:31:31 */
  1946. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1947. //
  1948. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1949. //
  1950. // This file contains Original Code and/or Modifications of Original Code
  1951. // as defined in and that are subject to the Apple Public Source License
  1952. // Version 2.0 (the 'License'). You may not use this file except in
  1953. // compliance with the License. The rights granted to you under the License
  1954. // may not be used to create, or enable the creation or redistribution of,
  1955. // unlawful or unlicensed copies of an Apple operating system, or to
  1956. // circumvent, violate, or enable the circumvention or violation of, any
  1957. // terms of an Apple operating system software license agreement.
  1958. //
  1959. // Please obtain a copy of the License at
  1960. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1961. //
  1962. // The Original Code and all software distributed under the License are
  1963. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1964. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1965. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1966. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1967. // Please see the License for the specific language governing rights and
  1968. // limitations under the License.
  1969. //
  1970. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1971. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  1972. //
  1973. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  1974. //
  1975. // This file contains Original Code and/or Modifications of Original Code
  1976. // as defined in and that are subject to the Apple Public Source License
  1977. // Version 2.0 (the 'License'). You may not use this file except in
  1978. // compliance with the License. The rights granted to you under the License
  1979. // may not be used to create, or enable the creation or redistribution of,
  1980. // unlawful or unlicensed copies of an Apple operating system, or to
  1981. // circumvent, violate, or enable the circumvention or violation of, any
  1982. // terms of an Apple operating system software license agreement.
  1983. //
  1984. // Please obtain a copy of the License at
  1985. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  1986. //
  1987. // The Original Code and all software distributed under the License are
  1988. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  1989. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  1990. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  1991. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  1992. // Please see the License for the specific language governing rights and
  1993. // limitations under the License.
  1994. //
  1995. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  1996. type Gid_t = X__darwin_gid_t /* _gid_t.h:31:25 */
  1997. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  1998. //
  1999. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2000. //
  2001. // This file contains Original Code and/or Modifications of Original Code
  2002. // as defined in and that are subject to the Apple Public Source License
  2003. // Version 2.0 (the 'License'). You may not use this file except in
  2004. // compliance with the License. The rights granted to you under the License
  2005. // may not be used to create, or enable the creation or redistribution of,
  2006. // unlawful or unlicensed copies of an Apple operating system, or to
  2007. // circumvent, violate, or enable the circumvention or violation of, any
  2008. // terms of an Apple operating system software license agreement.
  2009. //
  2010. // Please obtain a copy of the License at
  2011. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2012. //
  2013. // The Original Code and all software distributed under the License are
  2014. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2015. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2016. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2017. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2018. // Please see the License for the specific language governing rights and
  2019. // limitations under the License.
  2020. //
  2021. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2022. // Copyright (c) 2003-2007 Apple Inc. All rights reserved.
  2023. //
  2024. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2025. //
  2026. // This file contains Original Code and/or Modifications of Original Code
  2027. // as defined in and that are subject to the Apple Public Source License
  2028. // Version 2.0 (the 'License'). You may not use this file except in
  2029. // compliance with the License. The rights granted to you under the License
  2030. // may not be used to create, or enable the creation or redistribution of,
  2031. // unlawful or unlicensed copies of an Apple operating system, or to
  2032. // circumvent, violate, or enable the circumvention or violation of, any
  2033. // terms of an Apple operating system software license agreement.
  2034. //
  2035. // Please obtain a copy of the License at
  2036. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2037. //
  2038. // The Original Code and all software distributed under the License are
  2039. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2040. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2041. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2042. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2043. // Please see the License for the specific language governing rights and
  2044. // limitations under the License.
  2045. //
  2046. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2047. type Off_t = X__darwin_off_t /* _off_t.h:31:33 */
  2048. // Copyright (c) 2003-2012 Apple Inc. All rights reserved.
  2049. //
  2050. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2051. //
  2052. // This file contains Original Code and/or Modifications of Original Code
  2053. // as defined in and that are subject to the Apple Public Source License
  2054. // Version 2.0 (the 'License'). You may not use this file except in
  2055. // compliance with the License. The rights granted to you under the License
  2056. // may not be used to create, or enable the creation or redistribution of,
  2057. // unlawful or unlicensed copies of an Apple operating system, or to
  2058. // circumvent, violate, or enable the circumvention or violation of, any
  2059. // terms of an Apple operating system software license agreement.
  2060. //
  2061. // Please obtain a copy of the License at
  2062. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2063. //
  2064. // The Original Code and all software distributed under the License are
  2065. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2066. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2067. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2068. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2069. // Please see the License for the specific language governing rights and
  2070. // limitations under the License.
  2071. //
  2072. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2073. // Copyright (c) 2000-2007 Apple Inc. All rights reserved.
  2074. //
  2075. // @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  2076. //
  2077. // This file contains Original Code and/or Modifications of Original Code
  2078. // as defined in and that are subject to the Apple Public Source License
  2079. // Version 2.0 (the 'License'). You may not use this file except in
  2080. // compliance with the License. The rights granted to you under the License
  2081. // may not be used to create, or enable the creation or redistribution of,
  2082. // unlawful or unlicensed copies of an Apple operating system, or to
  2083. // circumvent, violate, or enable the circumvention or violation of, any
  2084. // terms of an Apple operating system software license agreement.
  2085. //
  2086. // Please obtain a copy of the License at
  2087. // http://www.opensource.apple.com/apsl/ and read it before using this file.
  2088. //
  2089. // The Original Code and all software distributed under the License are
  2090. // distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  2091. // EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  2092. // INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  2093. // FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  2094. // Please see the License for the specific language governing rights and
  2095. // limitations under the License.
  2096. //
  2097. // @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  2098. // Copyright 1995 NeXT Computer, Inc. All rights reserved.
  2099. type Time_t = X__darwin_time_t /* _time_t.h:31:33 */
  2100. // XXX So deprecated, it would make your head spin
  2101. //
  2102. // The old stat structure. In fact, this is not used by the kernel at all,
  2103. // and should not be used by user space, and should be removed from this
  2104. // header file entirely (along with the unused cvtstat() prototype in
  2105. // vnode_internal.h).
  2106. type Ostat = struct {
  2107. Fst_dev X__uint16_t
  2108. F__ccgo_pad1 [6]byte
  2109. Fst_ino Ino_t
  2110. Fst_mode Mode_t
  2111. Fst_nlink Nlink_t
  2112. Fst_uid X__uint16_t
  2113. Fst_gid X__uint16_t
  2114. Fst_rdev X__uint16_t
  2115. F__ccgo_pad2 [2]byte
  2116. Fst_size X__int32_t
  2117. Fst_atimespec struct {
  2118. Ftv_sec X__darwin_time_t
  2119. Ftv_nsec int64
  2120. }
  2121. Fst_mtimespec struct {
  2122. Ftv_sec X__darwin_time_t
  2123. Ftv_nsec int64
  2124. }
  2125. Fst_ctimespec struct {
  2126. Ftv_sec X__darwin_time_t
  2127. Ftv_nsec int64
  2128. }
  2129. Fst_blksize X__int32_t
  2130. Fst_blocks X__int32_t
  2131. Fst_flags X__uint32_t
  2132. Fst_gen X__uint32_t
  2133. } /* stat.h:110:1 */
  2134. // This structure is used as the second parameter to the fstat64(),
  2135. // lstat64(), and stat64() functions, and for struct stat when
  2136. // __DARWIN_64_BIT_INO_T is set. __DARWIN_STRUCT_STAT64 is defined
  2137. // above, depending on whether we use struct timespec or the direct
  2138. // components.
  2139. //
  2140. // This is simillar to stat except for 64bit inode number
  2141. // number instead of 32bit ino_t and the addition of create(birth) time.
  2142. // [XSI] This structure is used as the second parameter to the fstat(),
  2143. // lstat(), and stat() functions.
  2144. type Stat = struct {
  2145. Fst_dev Dev_t
  2146. Fst_mode Mode_t
  2147. Fst_nlink Nlink_t
  2148. Fst_ino X__darwin_ino64_t
  2149. Fst_uid Uid_t
  2150. Fst_gid Gid_t
  2151. Fst_rdev Dev_t
  2152. F__ccgo_pad1 [4]byte
  2153. Fst_atimespec struct {
  2154. Ftv_sec X__darwin_time_t
  2155. Ftv_nsec int64
  2156. }
  2157. Fst_mtimespec struct {
  2158. Ftv_sec X__darwin_time_t
  2159. Ftv_nsec int64
  2160. }
  2161. Fst_ctimespec struct {
  2162. Ftv_sec X__darwin_time_t
  2163. Ftv_nsec int64
  2164. }
  2165. Fst_birthtimespec struct {
  2166. Ftv_sec X__darwin_time_t
  2167. Ftv_nsec int64
  2168. }
  2169. Fst_size Off_t
  2170. Fst_blocks Blkcnt_t
  2171. Fst_blksize Blksize_t
  2172. Fst_flags X__uint32_t
  2173. Fst_gen X__uint32_t
  2174. Fst_lspare X__int32_t
  2175. Fst_qspare [2]X__int64_t
  2176. } /* stat.h:182:1 */
  2177. type Filesec_t = uintptr /* _filesec_t.h:31:25 */
  2178. var _ int8 /* gen.c:2:13: */