termios_illumos_amd64.go 114 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689
  1. // Code generated by 'ccgo termios/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 termios/termios_illumos_amd64.go -pkgname termios', DO NOT EDIT.
  2. package termios
  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. B0 = 0 // termios.h:543:1:
  15. B1000000 = 24 // termios.h:567:1:
  16. B110 = 3 // termios.h:546:1:
  17. B115200 = 18 // termios.h:561:1:
  18. B1152000 = 25 // termios.h:568:1:
  19. B1200 = 9 // termios.h:552:1:
  20. B134 = 4 // termios.h:547:1:
  21. B150 = 5 // termios.h:548:1:
  22. B1500000 = 26 // termios.h:569:1:
  23. B153600 = 19 // termios.h:562:1:
  24. B1800 = 10 // termios.h:553:1:
  25. B19200 = 14 // termios.h:557:1:
  26. B200 = 6 // termios.h:549:1:
  27. B2000000 = 27 // termios.h:570:1:
  28. B230400 = 20 // termios.h:563:1:
  29. B2400 = 11 // termios.h:554:1:
  30. B2500000 = 28 // termios.h:571:1:
  31. B300 = 7 // termios.h:550:1:
  32. B3000000 = 29 // termios.h:572:1:
  33. B307200 = 21 // termios.h:564:1:
  34. B3500000 = 30 // termios.h:573:1:
  35. B38400 = 15 // termios.h:558:1:
  36. B4000000 = 31 // termios.h:574:1:
  37. B460800 = 22 // termios.h:565:1:
  38. B4800 = 12 // termios.h:555:1:
  39. B50 = 1 // termios.h:544:1:
  40. B57600 = 16 // termios.h:559:1:
  41. B600 = 8 // termios.h:551:1:
  42. B75 = 2 // termios.h:545:1:
  43. B76800 = 17 // termios.h:560:1:
  44. B921600 = 23 // termios.h:566:1:
  45. B9600 = 13 // termios.h:556:1:
  46. BRKINT = 0000002 // termios.h:187:1:
  47. BS0 = 0 // termios.h:244:1:
  48. BS1 = 0020000 // termios.h:245:1:
  49. BSDLY = 0020000 // termios.h:243:1:
  50. CBAUD = 0000017 // termios.h:258:1:
  51. CBAUDEXT = 010000000 // termios.h:280:1:
  52. CCTS_OFLOW = 020000000000 // termios.h:287:1:
  53. CDEL = 0177 // termios.h:157:1:
  54. CDSUSP = 25 // termios.h:176:1:
  55. CEOF = 04 // termios.h:170:1:
  56. CEOL = 0 // termios.h:168:1:
  57. CEOL2 = 0 // termios.h:169:1:
  58. CEOT = 04 // termios.h:167:1:
  59. CERASE = 0177 // termios.h:164:1:
  60. CERASE2 = 8 // termios.h:165:1:
  61. CESC = 92 // termios.h:161:1:
  62. CFLUSH = 15 // termios.h:178:1:
  63. CIBAUD = 03600000 // termios.h:278:1:
  64. CIBAUDEXT = 020000000 // termios.h:281:1:
  65. CINTR = 3 // termios.h:162:1:
  66. CKILL = 21 // termios.h:166:1:
  67. CLNEXT = 22 // termios.h:180:1:
  68. CLOCAL = 0004000 // termios.h:270:1:
  69. CLOCKS_PER_SEC = 1000000 // time_iso.h:78:1:
  70. CLOCK_HIGHRES = 4 // time_impl.h:126:1:
  71. CLOCK_MONOTONIC = 4 // time_impl.h:124:1:
  72. CLOCK_PROCESS_CPUTIME_ID = 5 // time_impl.h:125:1:
  73. CLOCK_PROF = 2 // time_impl.h:127:1:
  74. CLOCK_REALTIME = 3 // time_impl.h:123:1:
  75. CLOCK_THREAD_CPUTIME_ID = 2 // time_impl.h:122:1:
  76. CLOCK_VIRTUAL = 1 // time_impl.h:121:1:
  77. CNSWTCH = 0 // termios.h:174:1:
  78. CNUL = 0 // termios.h:156:1:
  79. CQUIT = 034 // termios.h:163:1:
  80. CR0 = 0 // termios.h:228:1:
  81. CR1 = 0001000 // termios.h:229:1:
  82. CR2 = 0002000 // termios.h:230:1:
  83. CR3 = 0003000 // termios.h:231:1:
  84. CRDLY = 0003000 // termios.h:227:1:
  85. CREAD = 0000200 // termios.h:266:1:
  86. CRPRNT = 18 // termios.h:177:1:
  87. CRTSCTS = 020000000000 // termios.h:277:1:
  88. CRTSXOFF = 010000000000 // termios.h:276:1:
  89. CRTS_IFLOW = 010000000000 // termios.h:286:1:
  90. CS5 = 0 // termios.h:261:1:
  91. CS6 = 0000020 // termios.h:262:1:
  92. CS7 = 0000040 // termios.h:263:1:
  93. CS8 = 0000060 // termios.h:264:1:
  94. CSIZE = 0000060 // termios.h:260:1:
  95. CSTART = 021 // termios.h:171:1:
  96. CSTATUS = 20 // termios.h:181:1:
  97. CSTOP = 023 // termios.h:172:1:
  98. CSTOPB = 0000100 // termios.h:265:1:
  99. CSUSP = 26 // termios.h:175:1:
  100. CSWTCH = 032 // termios.h:173:1:
  101. CWERASE = 23 // termios.h:179:1:
  102. DEFECHO = 0010000 // termios.h:309:1:
  103. DIOC = 25600 // termios.h:524:1:
  104. DIOCGETP = 25608 // termios.h:525:1:
  105. DIOCSETP = 25609 // termios.h:526:1:
  106. DOSMODE = 0100000 // termios.h:208:1:
  107. DST_AUST = 2 // time.h:115:1:
  108. DST_AUSTALT = 10 // time.h:123:1:
  109. DST_CAN = 6 // time.h:119:1:
  110. DST_EET = 5 // time.h:118:1:
  111. DST_GB = 7 // time.h:120:1:
  112. DST_MET = 4 // time.h:117:1:
  113. DST_NONE = 0 // time.h:113:1:
  114. DST_RUM = 8 // time.h:121:1:
  115. DST_TUR = 9 // time.h:122:1:
  116. DST_USA = 1 // time.h:114:1:
  117. DST_WET = 3 // time.h:116:1:
  118. ECHO = 0000010 // termios.h:299:1:
  119. ECHOCTL = 0001000 // termios.h:306:1:
  120. ECHOE = 0000020 // termios.h:300:1:
  121. ECHOK = 0000040 // termios.h:301:1:
  122. ECHOKE = 0004000 // termios.h:308:1:
  123. ECHONL = 0000100 // termios.h:302:1:
  124. ECHOPRT = 0002000 // termios.h:307:1:
  125. EXTA = 14 // ttydev.h:56:1:
  126. EXTB = 15 // ttydev.h:57:1:
  127. FD_SETSIZE = 65536 // select.h:88:1:
  128. FF0 = 0 // termios.h:250:1:
  129. FF1 = 0100000 // termios.h:251:1:
  130. FFDLY = 0100000 // termios.h:249:1:
  131. FIORDCHK = 26115 // termios.h:537:1:
  132. FLUSHO = 0020000 // termios.h:310:1:
  133. HUPCL = 0002000 // termios.h:269:1:
  134. IBSHIFT = 16 // termios.h:65:1:
  135. ICANON = 0000002 // termios.h:293:1:
  136. ICRNL = 0000400 // termios.h:194:1:
  137. IEXTEN = 0100000 // termios.h:314:1:
  138. IGNBRK = 0000001 // termios.h:186:1:
  139. IGNCR = 0000200 // termios.h:193:1:
  140. IGNPAR = 0000004 // termios.h:188:1:
  141. IMAXBEL = 0020000 // termios.h:207:1:
  142. INLCR = 0000100 // termios.h:192:1:
  143. INPCK = 0000020 // termios.h:190:1:
  144. IOCTYPE = 0xff00 // termios.h:336:1:
  145. ISIG = 0000001 // termios.h:292:1:
  146. ISTRIP = 0000040 // termios.h:191:1:
  147. ITIMER_PROF = 2 // time.h:201:1:
  148. ITIMER_REAL = 0 // time.h:199:1:
  149. ITIMER_REALPROF = 3 // time.h:204:1:
  150. ITIMER_VIRTUAL = 1 // time.h:200:1:
  151. IUCLC = 0001000 // termios.h:198:1:
  152. IXANY = 0004000 // termios.h:203:1:
  153. IXOFF = 0010000 // termios.h:205:1:
  154. IXON = 0002000 // termios.h:200:1:
  155. KBENABLED = 21514 // termios.h:333:1:
  156. LDCHG = 17410 // termios.h:508:1:
  157. LDCLOSE = 17409 // termios.h:507:1:
  158. LDDMAP = 17522 // termios.h:518:1:
  159. LDEMAP = 17521 // termios.h:517:1:
  160. LDGETT = 17416 // termios.h:509:1:
  161. LDGMAP = 17519 // termios.h:515:1:
  162. LDIOC = 17408 // termios.h:504:1:
  163. LDNMAP = 17520 // termios.h:516:1:
  164. LDOPEN = 17408 // termios.h:506:1:
  165. LDSETT = 17417 // termios.h:510:1:
  166. LDSMAP = 17518 // termios.h:514:1:
  167. LOBLK = 0040000 // termios.h:274:1:
  168. MICROSEC = 1000000 // time.h:246:1:
  169. MILLISEC = 1000 // time.h:245:1:
  170. NANOSEC = 1000000000 // time.h:247:1:
  171. NBBY = 8 // select.h:103:1:
  172. NCC = 8 // termios.h:71:1:
  173. NCCS = 19 // termios.h:75:1:
  174. NL0 = 0 // termios.h:225:1:
  175. NL1 = 0000400 // termios.h:226:1:
  176. NLDLY = 0000400 // termios.h:224:1:
  177. NOFLSH = 0000200 // termios.h:303:1:
  178. OCRNL = 0000010 // termios.h:219:1:
  179. OFDEL = 0000200 // termios.h:223:1:
  180. OFILL = 0000100 // termios.h:222:1:
  181. OLCUC = 0000002 // termios.h:216:1:
  182. ONLCR = 0000004 // termios.h:218:1:
  183. ONLRET = 0000040 // termios.h:221:1:
  184. ONOCR = 0000020 // termios.h:220:1:
  185. OPOST = 0000001 // termios.h:212:1:
  186. PAGEOUT = 0200000 // termios.h:254:1:
  187. PARENB = 0000400 // termios.h:267:1:
  188. PAREXT = 04000000 // termios.h:279:1:
  189. PARMRK = 0000010 // termios.h:189:1:
  190. PARODD = 0001000 // termios.h:268:1:
  191. PENDIN = 0040000 // termios.h:311:1:
  192. P_MYID = -1 // types.h:632:1:
  193. RCV1EN = 0010000 // termios.h:272:1:
  194. REG_LABEL_BP = 2 // machtypes.h:44:1:
  195. REG_LABEL_MAX = 8 // machtypes.h:51:1:
  196. REG_LABEL_PC = 0 // machtypes.h:42:1:
  197. REG_LABEL_R12 = 4 // machtypes.h:47:1:
  198. REG_LABEL_R13 = 5 // machtypes.h:48:1:
  199. REG_LABEL_R14 = 6 // machtypes.h:49:1:
  200. REG_LABEL_R15 = 7 // machtypes.h:50:1:
  201. REG_LABEL_RBX = 3 // machtypes.h:46:1:
  202. REG_LABEL_SP = 1 // machtypes.h:43:1:
  203. RTS_TOG = 21537 // termios.h:340:1:
  204. SEC = 1 // time.h:244:1:
  205. TAB0 = 0 // termios.h:233:1:
  206. TAB1 = 0004000 // termios.h:234:1:
  207. TAB2 = 0010000 // termios.h:235:1:
  208. TAB3 = 0014000 // termios.h:236:1:
  209. TABDLY = 0014000 // termios.h:232:1:
  210. TCDSET = 21536 // termios.h:339:1:
  211. TCFLSH = 21511 // termios.h:327:1:
  212. TCGETA = 21505 // termios.h:321:1:
  213. TCGETS = 21517 // termios.h:354:1:
  214. TCIFLUSH = 0 // termios.h:409:1:
  215. TCIOFF = 2 // termios.h:415:1:
  216. TCIOFLUSH = 2 // termios.h:411:1:
  217. TCION = 3 // termios.h:416:1:
  218. TCOFLUSH = 1 // termios.h:410:1:
  219. TCOOFF = 0 // termios.h:413:1:
  220. TCOON = 1 // termios.h:414:1:
  221. TCSADRAIN = 21519 // termios.h:361:1:
  222. TCSAFLUSH = 21520 // termios.h:405:1:
  223. TCSANOW = 21518 // termios.h:357:1:
  224. TCSBRK = 21509 // termios.h:325:1:
  225. TCSETA = 21506 // termios.h:322:1:
  226. TCSETAF = 21508 // termios.h:324:1:
  227. TCSETAW = 21507 // termios.h:323:1:
  228. TCSETS = 21518 // termios.h:355:1:
  229. TCSETSF = 21520 // termios.h:363:1:
  230. TCSETSW = 21519 // termios.h:359:1:
  231. TCXONC = 21510 // termios.h:326:1:
  232. TIMER_ABSTIME = 0x1 // time_impl.h:134:1:
  233. TIMER_RELTIME = 0x0 // time_impl.h:133:1:
  234. TIME_UTC = 0x1 // time.h:306:1:
  235. TIOC = 21504 // termios.h:319:1:
  236. TIOCCBRK = 29818 // termios.h:452:1:
  237. TIOCCDTR = 29816 // termios.h:454:1:
  238. TIOCCILOOP = 29804 // termios.h:463:1:
  239. TIOCEXCL = 29709 // termios.h:436:1:
  240. TIOCFLUSH = 29712 // termios.h:438:1:
  241. TIOCGETC = 29714 // termios.h:440:1:
  242. TIOCGETD = 29696 // termios.h:430:1:
  243. TIOCGETLD = 21628 // termios.h:369:1:
  244. TIOCGETP = 29704 // termios.h:433:1:
  245. TIOCGLTC = 29812 // termios.h:456:1:
  246. TIOCGPGRP = 29716 // termios.h:472:1:
  247. TIOCGPPS = 21629 // termios.h:386:1:
  248. TIOCGPPSEV = 21631 // termios.h:388:1:
  249. TIOCGSID = 29718 // termios.h:474:1:
  250. TIOCGSOFTCAR = 21609 // termios.h:348:1:
  251. TIOCGWINSZ = 21608 // termios.h:342:1:
  252. TIOCHPCL = 29698 // termios.h:432:1:
  253. TIOCKBOF = 21513 // termios.h:332:1:
  254. TIOCKBON = 21512 // termios.h:331:1:
  255. TIOCLBIC = 29822 // termios.h:448:1:
  256. TIOCLBIS = 29823 // termios.h:447:1:
  257. TIOCLGET = 29820 // termios.h:450:1:
  258. TIOCLSET = 29821 // termios.h:449:1:
  259. TIOCMBIC = 29724 // termios.h:482:1:
  260. TIOCMBIS = 29723 // termios.h:481:1:
  261. TIOCMGET = 29725 // termios.h:483:1:
  262. TIOCMSET = 29722 // termios.h:480:1:
  263. TIOCM_CAR = 0100 // termios.h:490:1:
  264. TIOCM_CD = 64 // termios.h:491:1:
  265. TIOCM_CTS = 0040 // termios.h:489:1:
  266. TIOCM_DSR = 0400 // termios.h:494:1:
  267. TIOCM_DTR = 0002 // termios.h:485:1:
  268. TIOCM_LE = 0001 // termios.h:484:1:
  269. TIOCM_RI = 128 // termios.h:493:1:
  270. TIOCM_RNG = 0200 // termios.h:492:1:
  271. TIOCM_RTS = 0004 // termios.h:486:1:
  272. TIOCM_SR = 0020 // termios.h:488:1:
  273. TIOCM_ST = 0010 // termios.h:487:1:
  274. TIOCNOTTY = 29809 // termios.h:458:1:
  275. TIOCNXCL = 29710 // termios.h:437:1:
  276. TIOCOUTQ = 29811 // termios.h:457:1:
  277. TIOCREMOTE = 29726 // termios.h:498:1:
  278. TIOCSBRK = 29819 // termios.h:451:1:
  279. TIOCSCTTY = 29828 // termios.h:459:1:
  280. TIOCSDTR = 29817 // termios.h:453:1:
  281. TIOCSETC = 29713 // termios.h:439:1:
  282. TIOCSETD = 29697 // termios.h:431:1:
  283. TIOCSETLD = 21627 // termios.h:368:1:
  284. TIOCSETN = 29706 // termios.h:435:1:
  285. TIOCSETP = 29705 // termios.h:434:1:
  286. TIOCSIGNAL = 29727 // termios.h:499:1:
  287. TIOCSILOOP = 29805 // termios.h:462:1:
  288. TIOCSLTC = 29813 // termios.h:455:1:
  289. TIOCSPGRP = 29717 // termios.h:473:1:
  290. TIOCSPPS = 21630 // termios.h:387:1:
  291. TIOCSSOFTCAR = 21610 // termios.h:349:1:
  292. TIOCSTART = 29806 // termios.h:461:1:
  293. TIOCSTI = 29719 // termios.h:477:1:
  294. TIOCSTOP = 29807 // termios.h:460:1:
  295. TIOCSWINSZ = 21607 // termios.h:343:1:
  296. TOSTOP = 0000400 // termios.h:304:1:
  297. VCEOF = 8 // termios.h:153:1:
  298. VCEOL = 9 // termios.h:154:1:
  299. VDISCARD = 13 // termios.h:143:1:
  300. VDSUSP = 11 // termios.h:141:1:
  301. VEOF = 4 // termios.h:127:1:
  302. VEOL = 5 // termios.h:128:1:
  303. VEOL2 = 6 // termios.h:130:1:
  304. VERASE = 2 // termios.h:125:1:
  305. VERASE2 = 17 // termios.h:147:1:
  306. VINTR = 0 // termios.h:123:1:
  307. VKILL = 3 // termios.h:126:1:
  308. VLNEXT = 15 // termios.h:145:1:
  309. VMIN = 4 // termios.h:132:1:
  310. VQUIT = 1 // termios.h:124:1:
  311. VREPRINT = 12 // termios.h:142:1:
  312. VSTART = 8 // termios.h:137:1:
  313. VSTATUS = 16 // termios.h:146:1:
  314. VSTOP = 9 // termios.h:138:1:
  315. VSUSP = 10 // termios.h:139:1:
  316. VSWTCH = 7 // termios.h:135:1:
  317. VT0 = 0 // termios.h:247:1:
  318. VT1 = 0040000 // termios.h:248:1:
  319. VTDLY = 0040000 // termios.h:246:1:
  320. VTIME = 5 // termios.h:133:1:
  321. VWERASE = 14 // termios.h:144:1:
  322. WRAP = 0400000 // termios.h:255:1:
  323. XCASE = 0000004 // termios.h:297:1:
  324. XCLUDE = 0100000 // termios.h:275:1:
  325. XMT1EN = 0020000 // termios.h:273:1:
  326. XTABS = 0014000 // termios.h:239:1:
  327. X_ALIGNMENT_REQUIRED = 1 // isa_defs.h:262:1:
  328. X_BIT_FIELDS_LTOH = 0 // isa_defs.h:245:1:
  329. X_BOOL_ALIGNMENT = 1 // isa_defs.h:248:1:
  330. X_CHAR_ALIGNMENT = 1 // isa_defs.h:249:1:
  331. X_CHAR_IS_SIGNED = 0 // isa_defs.h:247:1:
  332. X_CLOCKID_T = 0 // types.h:568:1:
  333. X_CLOCK_T = 0 // types.h:563:1:
  334. X_COND_MAGIC = 0x4356 // types.h:426:1:
  335. X_DMA_USES_PHYSADDR = 0 // isa_defs.h:281:1:
  336. X_DONT_USE_1275_GENERIC_NAMES = 0 // isa_defs.h:287:1:
  337. X_DOUBLE_ALIGNMENT = 8 // isa_defs.h:256:1:
  338. X_DOUBLE_COMPLEX_ALIGNMENT = 8 // isa_defs.h:257:1:
  339. X_DTRACE_VERSION = 1 // feature_tests.h:490:1:
  340. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  341. X_FIRMWARE_NEEDS_FDISK = 0 // isa_defs.h:282:1:
  342. X_FLOAT_ALIGNMENT = 4 // isa_defs.h:252:1:
  343. X_FLOAT_COMPLEX_ALIGNMENT = 4 // isa_defs.h:253:1:
  344. X_HAVE_CPUID_INSN = 0 // isa_defs.h:288:1:
  345. X_IEEE_754 = 0 // isa_defs.h:246:1:
  346. X_INT64_TYPE = 0 // int_types.h:82:1:
  347. X_INT_ALIGNMENT = 4 // isa_defs.h:251:1:
  348. X_ISO_CPP_14882_1998 = 0 // feature_tests.h:466:1:
  349. X_ISO_C_9899_1999 = 0 // feature_tests.h:472:1:
  350. X_ISO_C_9899_2011 = 0 // feature_tests.h:478:1:
  351. X_ISO_TIME_ISO_H = 0 // time_iso.h:46:1:
  352. X_LARGEFILE64_SOURCE = 1 // feature_tests.h:231:1:
  353. X_LARGEFILE_SOURCE = 1 // feature_tests.h:235:1:
  354. X_LITTLE_ENDIAN = 0 // isa_defs.h:242:1:
  355. X_LOCALE_T = 0 // time.h:291:1:
  356. X_LONGLONG_TYPE = 0 // feature_tests.h:412:1:
  357. X_LONG_ALIGNMENT = 8 // isa_defs.h:254:1:
  358. X_LONG_DOUBLE_ALIGNMENT = 16 // isa_defs.h:258:1:
  359. X_LONG_DOUBLE_COMPLEX_ALIGNMENT = 16 // isa_defs.h:259:1:
  360. X_LONG_LONG_ALIGNMENT = 8 // isa_defs.h:255:1:
  361. X_LONG_LONG_ALIGNMENT_32 = 4 // isa_defs.h:268:1:
  362. X_LONG_LONG_LTOH = 0 // isa_defs.h:244:1:
  363. X_LP64 = 1 // <predefined>:286:1:
  364. X_MAX_ALIGNMENT = 16 // isa_defs.h:261:1:
  365. X_MULTI_DATAMODEL = 0 // isa_defs.h:279:1:
  366. X_MUTEX_MAGIC = 0x4d58 // types.h:424:1:
  367. X_NBBY = 8 // select.h:100:1:
  368. X_NCC = 8 // termios.h:69:1:
  369. X_NORETURN_KYWD = 0 // feature_tests.h:448:1:
  370. X_OFF_T = 0 // types.h:142:1:
  371. X_POINTER_ALIGNMENT = 8 // isa_defs.h:260:1:
  372. X_POSIX_VDISABLE = 0 // termios.h:59:1:
  373. X_PSM_MODULES = 0 // isa_defs.h:284:1:
  374. X_PTRDIFF_T = 0 // types.h:112:1:
  375. X_RESTRICT_KYWD = 0 // feature_tests.h:435:1:
  376. X_RTC_CONFIG = 0 // isa_defs.h:285:1:
  377. X_RWL_MAGIC = 0x5257 // types.h:427:1:
  378. X_SEMA_MAGIC = 0x534d // types.h:425:1:
  379. X_SHORT_ALIGNMENT = 2 // isa_defs.h:250:1:
  380. X_SIGEVENT = 0 // time.h:132:1:
  381. X_SIGSET_T = 0 // select.h:73:1:
  382. X_SIGVAL = 0 // time.h:124:1:
  383. X_SIZE_T = 0 // types.h:540:1:
  384. X_SOFT_HOSTID = 0 // isa_defs.h:286:1:
  385. X_SSIZE_T = 0 // types.h:549:1:
  386. X_STACK_GROWS_DOWNWARD = 0 // isa_defs.h:243:1:
  387. X_STDC_C11 = 0 // feature_tests.h:165:1:
  388. X_STDC_C99 = 0 // feature_tests.h:169:1:
  389. X_SUNOS_VTOC_16 = 0 // isa_defs.h:280:1:
  390. X_SUSECONDS_T = 0 // time.h:50:1:
  391. X_SYS_CCOMPILE_H = 0 // ccompile.h:32:1:
  392. X_SYS_FEATURE_TESTS_H = 0 // feature_tests.h:41:1:
  393. X_SYS_INT_TYPES_H = 0 // int_types.h:30:1:
  394. X_SYS_ISA_DEFS_H = 0 // isa_defs.h:30:1:
  395. X_SYS_MACHTYPES_H = 0 // machtypes.h:27:1:
  396. X_SYS_NULL_H = 0 // null.h:17:1:
  397. X_SYS_SELECT_H = 0 // select.h:45:1:
  398. X_SYS_TERMIOS_H = 0 // termios.h:32:1:
  399. X_SYS_TIME_H = 0 // time.h:27:1:
  400. X_SYS_TIME_IMPL_H = 0 // time_impl.h:38:1:
  401. X_SYS_TTYDEV_H = 0 // ttydev.h:27:1:
  402. X_SYS_TYPES_H = 0 // types.h:35:1:
  403. X_TERMIOS_H = 0 // termios.h:27:1:
  404. X_TIMER_T = 0 // types.h:573:1:
  405. X_TIME_H = 0 // time.h:37:1:
  406. X_TIME_T = 0 // time.h:45:1:
  407. X_TIOC = 21504 // termios.h:315:1:
  408. X_UID_T = 0 // types.h:400:1:
  409. X_XOPEN_VERSION = 3 // feature_tests.h:392:1:
  410. Sun = 1 // <predefined>:172:1:
  411. TIOC1 = 29696 // termios.h:421:1:
  412. Unix = 1 // <predefined>:175:1:
  413. )
  414. // used for block sizes
  415. // The boolean_t type has had a varied amount of exposure over the years in
  416. // terms of how its enumeration constants have been exposed. In particular, it
  417. // originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the
  418. // B_TRUE and B_FALSE with an underscore. This check never included the
  419. // question of if we were in a strict ANSI C environment or whether extensions
  420. // were defined.
  421. //
  422. // Compilers such as clang started defaulting to always including an
  423. // XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__.
  424. // This would lead most software that had used the non-underscore versions to
  425. // need it. As such, we have adjusted the non-strict XOPEN environment to retain
  426. // its old behavior so as to minimize namespace pollution; however, we instead
  427. // include both variants of the definitions in the generally visible version
  428. // allowing software written in either world to hopefully end up in a good
  429. // place.
  430. //
  431. // This isn't perfect, but should hopefully minimize the pain for folks actually
  432. // trying to build software.
  433. const ( /* types.h:215:1: */
  434. B_FALSE = 0
  435. B_TRUE = 1
  436. X_B_FALSE = 0
  437. X_B_TRUE = 1
  438. )
  439. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  440. type Size_t = uint64 /* <builtin>:9:23 */
  441. type Wchar_t = int32 /* <builtin>:15:24 */
  442. type X__int128_t = struct {
  443. Flo int64
  444. Fhi int64
  445. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  446. type X__uint128_t = struct {
  447. Flo uint64
  448. Fhi uint64
  449. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  450. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  451. type X__float128 = float64 /* <builtin>:47:21 */
  452. // CDDL HEADER START
  453. //
  454. // The contents of this file are subject to the terms of the
  455. // Common Development and Distribution License, Version 1.0 only
  456. // (the "License"). You may not use this file except in compliance
  457. // with the License.
  458. //
  459. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  460. // or http://www.opensolaris.org/os/licensing.
  461. // See the License for the specific language governing permissions
  462. // and limitations under the License.
  463. //
  464. // When distributing Covered Code, include this CDDL HEADER in each
  465. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  466. // If applicable, add the following below this CDDL HEADER, with the
  467. // fields enclosed by brackets "[]" replaced with your own identifying
  468. // information: Portions Copyright [yyyy] [name of copyright owner]
  469. //
  470. // CDDL HEADER END
  471. // Copyright (c) 1988 AT&T
  472. // All Rights Reserved
  473. // CDDL HEADER START
  474. //
  475. // The contents of this file are subject to the terms of the
  476. // Common Development and Distribution License (the "License").
  477. // You may not use this file except in compliance with the License.
  478. //
  479. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  480. // or http://www.opensolaris.org/os/licensing.
  481. // See the License for the specific language governing permissions
  482. // and limitations under the License.
  483. //
  484. // When distributing Covered Code, include this CDDL HEADER in each
  485. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  486. // If applicable, add the following below this CDDL HEADER, with the
  487. // fields enclosed by brackets "[]" replaced with your own identifying
  488. // information: Portions Copyright [yyyy] [name of copyright owner]
  489. //
  490. // CDDL HEADER END
  491. // Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
  492. // All Rights Reserved
  493. // Copyright 2014 Garrett D'Amore <garrett@damore.org>
  494. //
  495. // Copyright (c) 1988, 2010, Oracle and/or its affiliates. All rights reserved.
  496. // DO NOT EDIT THIS FILE.
  497. //
  498. // It has been auto-edited by fixincludes from:
  499. //
  500. // "/usr/include/sys/feature_tests.h"
  501. //
  502. // This had to be done to correct non-standard usages in the
  503. // original, manufacturer supplied header file.
  504. // CDDL HEADER START
  505. //
  506. // The contents of this file are subject to the terms of the
  507. // Common Development and Distribution License (the "License").
  508. // You may not use this file except in compliance with the License.
  509. //
  510. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  511. // or http://www.opensolaris.org/os/licensing.
  512. // See the License for the specific language governing permissions
  513. // and limitations under the License.
  514. //
  515. // When distributing Covered Code, include this CDDL HEADER in each
  516. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  517. // If applicable, add the following below this CDDL HEADER, with the
  518. // fields enclosed by brackets "[]" replaced with your own identifying
  519. // information: Portions Copyright [yyyy] [name of copyright owner]
  520. //
  521. // CDDL HEADER END
  522. // Copyright 2013 Garrett D'Amore <garrett@damore.org>
  523. // Copyright 2016 Joyent, Inc.
  524. // Copyright 2022 Oxide Computer Company
  525. //
  526. // Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  527. // Use is subject to license terms.
  528. // CDDL HEADER START
  529. //
  530. // The contents of this file are subject to the terms of the
  531. // Common Development and Distribution License, Version 1.0 only
  532. // (the "License"). You may not use this file except in compliance
  533. // with the License.
  534. //
  535. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  536. // or http://www.opensolaris.org/os/licensing.
  537. // See the License for the specific language governing permissions
  538. // and limitations under the License.
  539. //
  540. // When distributing Covered Code, include this CDDL HEADER in each
  541. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  542. // If applicable, add the following below this CDDL HEADER, with the
  543. // fields enclosed by brackets "[]" replaced with your own identifying
  544. // information: Portions Copyright [yyyy] [name of copyright owner]
  545. //
  546. // CDDL HEADER END
  547. // Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  548. // Use is subject to license terms.
  549. // Copyright 2015 EveryCity Ltd. All rights reserved.
  550. // Copyright 2019 Joyent, Inc.
  551. // This file contains definitions designed to enable different compilers
  552. // to be used harmoniously on Solaris systems.
  553. // Allow for version tests for compiler bugs and features.
  554. // analogous to lint's PRINTFLIKEn
  555. // Handle the kernel printf routines that can take '%b' too
  556. // This one's pretty obvious -- the function never returns
  557. // The function is 'extern inline' and expects GNU C89 behaviour, not C99
  558. // behaviour.
  559. //
  560. // Should only be used on 'extern inline' definitions for GCC.
  561. // The function has control flow such that it may return multiple times (in
  562. // the manner of setjmp or vfork)
  563. // This is an appropriate label for functions that do not
  564. // modify their arguments, e.g. strlen()
  565. // This is a stronger form of __pure__. Can be used for functions
  566. // that do not modify their arguments and don't depend on global
  567. // memory.
  568. // This attribute, attached to a variable, means that the variable is meant to
  569. // be possibly unused. GCC will not produce a warning for this variable.
  570. // Shorthand versions for readability
  571. // In release build, disable warnings about variables
  572. // which are used only for debugging.
  573. // CDDL HEADER START
  574. //
  575. // The contents of this file are subject to the terms of the
  576. // Common Development and Distribution License (the "License").
  577. // You may not use this file except in compliance with the License.
  578. //
  579. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  580. // or http://www.opensolaris.org/os/licensing.
  581. // See the License for the specific language governing permissions
  582. // and limitations under the License.
  583. //
  584. //
  585. // When distributing Covered Code, include this CDDL HEADER in each
  586. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  587. // If applicable, add the following below this CDDL HEADER, with the
  588. // fields enclosed by brackets "[]" replaced with your own identifying
  589. // information: Portions Copyright [yyyy] [name of copyright owner]
  590. //
  591. // CDDL HEADER END
  592. // Copyright 2008 Sun Microsystems, Inc. All rights reserved.
  593. // Use is subject to license terms.
  594. // Copyright 2016 Joyent, Inc.
  595. // This header file serves to group a set of well known defines and to
  596. // set these for each instruction set architecture. These defines may
  597. // be divided into two groups; characteristics of the processor and
  598. // implementation choices for Solaris on a processor.
  599. //
  600. // Processor Characteristics:
  601. //
  602. // _LITTLE_ENDIAN / _BIG_ENDIAN:
  603. // The natural byte order of the processor. A pointer to an int points
  604. // to the least/most significant byte of that int.
  605. //
  606. // _STACK_GROWS_UPWARD / _STACK_GROWS_DOWNWARD:
  607. // The processor specific direction of stack growth. A push onto the
  608. // stack increases/decreases the stack pointer, so it stores data at
  609. // successively higher/lower addresses. (Stackless machines ignored
  610. // without regrets).
  611. //
  612. // _LONG_LONG_HTOL / _LONG_LONG_LTOH:
  613. // A pointer to a long long points to the most/least significant long
  614. // within that long long.
  615. //
  616. // _BIT_FIELDS_HTOL / _BIT_FIELDS_LTOH:
  617. // The C compiler assigns bit fields from the high/low to the low/high end
  618. // of an int (most to least significant vs. least to most significant).
  619. //
  620. // _IEEE_754:
  621. // The processor (or supported implementations of the processor)
  622. // supports the ieee-754 floating point standard. No other floating
  623. // point standards are supported (or significant). Any other supported
  624. // floating point formats are expected to be cased on the ISA processor
  625. // symbol.
  626. //
  627. // _CHAR_IS_UNSIGNED / _CHAR_IS_SIGNED:
  628. // The C Compiler implements objects of type `char' as `unsigned' or
  629. // `signed' respectively. This is really an implementation choice of
  630. // the compiler writer, but it is specified in the ABI and tends to
  631. // be uniform across compilers for an instruction set architecture.
  632. // Hence, it has the properties of a processor characteristic.
  633. //
  634. // _CHAR_ALIGNMENT / _SHORT_ALIGNMENT / _INT_ALIGNMENT / _LONG_ALIGNMENT /
  635. // _LONG_LONG_ALIGNMENT / _DOUBLE_ALIGNMENT / _LONG_DOUBLE_ALIGNMENT /
  636. // _POINTER_ALIGNMENT / _FLOAT_ALIGNMENT:
  637. // The ABI defines alignment requirements of each of the primitive
  638. // object types. Some, if not all, may be hardware requirements as
  639. // well. The values are expressed in "byte-alignment" units.
  640. //
  641. // _MAX_ALIGNMENT:
  642. // The most stringent alignment requirement as specified by the ABI.
  643. // Equal to the maximum of all the above _XXX_ALIGNMENT values.
  644. //
  645. // _MAX_ALIGNMENT_TYPE:
  646. // The name of the C type that has the value descried in _MAX_ALIGNMENT.
  647. //
  648. // _ALIGNMENT_REQUIRED:
  649. // True or false (1 or 0) whether or not the hardware requires the ABI
  650. // alignment.
  651. //
  652. // _LONG_LONG_ALIGNMENT_32
  653. // The 32-bit ABI supported by a 64-bit kernel may have different
  654. // alignment requirements for primitive object types. The value of this
  655. // identifier is expressed in "byte-alignment" units.
  656. //
  657. // _HAVE_CPUID_INSN
  658. // This indicates that the architecture supports the 'cpuid'
  659. // instruction as defined by Intel. (Intel allows other vendors
  660. // to extend the instruction for their own purposes.)
  661. //
  662. //
  663. // Implementation Choices:
  664. //
  665. // _ILP32 / _LP64:
  666. // This specifies the compiler data type implementation as specified in
  667. // the relevant ABI. The choice between these is strongly influenced
  668. // by the underlying hardware, but is not absolutely tied to it.
  669. // Currently only two data type models are supported:
  670. //
  671. // _ILP32:
  672. // Int/Long/Pointer are 32 bits. This is the historical UNIX
  673. // and Solaris implementation. Due to its historical standing,
  674. // this is the default case.
  675. //
  676. // _LP64:
  677. // Long/Pointer are 64 bits, Int is 32 bits. This is the chosen
  678. // implementation for 64-bit ABIs such as SPARC V9.
  679. //
  680. // _I32LPx:
  681. // A compilation environment where 'int' is 32-bit, and
  682. // longs and pointers are simply the same size.
  683. //
  684. // In all cases, Char is 8 bits and Short is 16 bits.
  685. //
  686. // _SUNOS_VTOC_8 / _SUNOS_VTOC_16 / _SVR4_VTOC_16:
  687. // This specifies the form of the disk VTOC (or label):
  688. //
  689. // _SUNOS_VTOC_8:
  690. // This is a VTOC form which is upwardly compatible with the
  691. // SunOS 4.x disk label and allows 8 partitions per disk.
  692. //
  693. // _SUNOS_VTOC_16:
  694. // In this format the incore vtoc image matches the ondisk
  695. // version. It allows 16 slices per disk, and is not
  696. // compatible with the SunOS 4.x disk label.
  697. //
  698. // Note that these are not the only two VTOC forms possible and
  699. // additional forms may be added. One possible form would be the
  700. // SVr4 VTOC form. The symbol for that is reserved now, although
  701. // it is not implemented.
  702. //
  703. // _SVR4_VTOC_16:
  704. // This VTOC form is compatible with the System V Release 4
  705. // VTOC (as implemented on the SVr4 Intel and 3b ports) with
  706. // 16 partitions per disk.
  707. //
  708. //
  709. // _DMA_USES_PHYSADDR / _DMA_USES_VIRTADDR
  710. // This describes the type of addresses used by system DMA:
  711. //
  712. // _DMA_USES_PHYSADDR:
  713. // This type of DMA, used in the x86 implementation,
  714. // requires physical addresses for DMA buffers. The 24-bit
  715. // addresses used by some legacy boards is the source of the
  716. // "low-memory" (<16MB) requirement for some devices using DMA.
  717. //
  718. // _DMA_USES_VIRTADDR:
  719. // This method of DMA allows the use of virtual addresses for
  720. // DMA transfers.
  721. //
  722. // _FIRMWARE_NEEDS_FDISK / _NO_FDISK_PRESENT
  723. // This indicates the presence/absence of an fdisk table.
  724. //
  725. // _FIRMWARE_NEEDS_FDISK
  726. // The fdisk table is required by system firmware. If present,
  727. // it allows a disk to be subdivided into multiple fdisk
  728. // partitions, each of which is equivalent to a separate,
  729. // virtual disk. This enables the co-existence of multiple
  730. // operating systems on a shared hard disk.
  731. //
  732. // _NO_FDISK_PRESENT
  733. // If the fdisk table is absent, it is assumed that the entire
  734. // media is allocated for a single operating system.
  735. //
  736. // _HAVE_TEM_FIRMWARE
  737. // Defined if this architecture has the (fallback) option of
  738. // using prom_* calls for doing I/O if a suitable kernel driver
  739. // is not available to do it.
  740. //
  741. // _DONT_USE_1275_GENERIC_NAMES
  742. // Controls whether or not device tree node names should
  743. // comply with the IEEE 1275 "Generic Names" Recommended
  744. // Practice. With _DONT_USE_GENERIC_NAMES, device-specific
  745. // names identifying the particular device will be used.
  746. //
  747. // __i386_COMPAT
  748. // This indicates whether the i386 ABI is supported as a *non-native*
  749. // mode for the platform. When this symbol is defined:
  750. // - 32-bit xstat-style system calls are enabled
  751. // - 32-bit xmknod-style system calls are enabled
  752. // - 32-bit system calls use i386 sizes -and- alignments
  753. //
  754. // Note that this is NOT defined for the i386 native environment!
  755. //
  756. // __x86
  757. // This is ONLY a synonym for defined(__i386) || defined(__amd64)
  758. // which is useful only insofar as these two architectures share
  759. // common attributes. Analogous to __sparc.
  760. //
  761. // _PSM_MODULES
  762. // This indicates whether or not the implementation uses PSM
  763. // modules for processor support, reading /etc/mach from inside
  764. // the kernel to extract a list.
  765. //
  766. // _RTC_CONFIG
  767. // This indicates whether or not the implementation uses /etc/rtc_config
  768. // to configure the real-time clock in the kernel.
  769. //
  770. // _UNIX_KRTLD
  771. // This indicates that the implementation uses a dynamically
  772. // linked unix + krtld to form the core kernel image at boot
  773. // time, or (in the absence of this symbol) a prelinked kernel image.
  774. //
  775. // _OBP
  776. // This indicates the firmware interface is OBP.
  777. //
  778. // _SOFT_HOSTID
  779. // This indicates that the implementation obtains the hostid
  780. // from the file /etc/hostid, rather than from hardware.
  781. // The following set of definitions characterize Solaris on AMD's
  782. // 64-bit systems.
  783. // Define the appropriate "processor characteristics"
  784. // Different alignment constraints for the i386 ABI in compatibility mode
  785. // Define the appropriate "implementation choices".
  786. // The feature test macro __i386 is generic for all processors implementing
  787. // the Intel 386 instruction set or a superset of it. Specifically, this
  788. // includes all members of the 386, 486, and Pentium family of processors.
  789. // Values of _POSIX_C_SOURCE
  790. //
  791. // undefined not a POSIX compilation
  792. // 1 POSIX.1-1990 compilation
  793. // 2 POSIX.2-1992 compilation
  794. // 199309L POSIX.1b-1993 compilation (Real Time)
  795. // 199506L POSIX.1c-1995 compilation (POSIX Threads)
  796. // 200112L POSIX.1-2001 compilation (Austin Group Revision)
  797. // 200809L POSIX.1-2008 compilation
  798. // The feature test macros __XOPEN_OR_POSIX, _STRICT_STDC, _STRICT_SYMBOLS,
  799. // and _STDC_C99 are Sun implementation specific macros created in order to
  800. // compress common standards specified feature test macros for easier reading.
  801. // These macros should not be used by the application developer as
  802. // unexpected results may occur. Instead, the user should reference
  803. // standards(7) for correct usage of the standards feature test macros.
  804. //
  805. // __XOPEN_OR_POSIX Used in cases where a symbol is defined by both
  806. // X/Open or POSIX or in the negative, when neither
  807. // X/Open or POSIX defines a symbol.
  808. //
  809. // _STRICT_STDC __STDC__ is specified by the C Standards and defined
  810. // by the compiler. For Sun compilers the value of
  811. // __STDC__ is either 1, 0, or not defined based on the
  812. // compilation mode (see cc(1)). When the value of
  813. // __STDC__ is 1 and in the absence of any other feature
  814. // test macros, the namespace available to the application
  815. // is limited to only those symbols defined by the C
  816. // Standard. _STRICT_STDC provides a more readable means
  817. // of identifying symbols defined by the standard, or in
  818. // the negative, symbols that are extensions to the C
  819. // Standard. See additional comments for GNU C differences.
  820. //
  821. // _STDC_C99 __STDC_VERSION__ is specified by the C standards and
  822. // defined by the compiler and indicates the version of
  823. // the C standard. A value of 199901L indicates a
  824. // compiler that complies with ISO/IEC 9899:1999, other-
  825. // wise known as the C99 standard.
  826. //
  827. // _STDC_C11 Like _STDC_C99 except that the value of __STDC_VERSION__
  828. // is 201112L indicating a compiler that compiles with
  829. // ISO/IEC 9899:2011, otherwise known as the C11 standard.
  830. //
  831. // _STRICT_SYMBOLS Used in cases where symbol visibility is restricted
  832. // by the standards, and the user has not explicitly
  833. // relaxed the strictness via __EXTENSIONS__.
  834. // ISO/IEC 9899:1990 and it's revisions, ISO/IEC 9899:1999 and ISO/IEC
  835. // 99899:2011 specify the following predefined macro name:
  836. //
  837. // __STDC__ The integer constant 1, intended to indicate a conforming
  838. // implementation.
  839. //
  840. // Furthermore, a strictly conforming program shall use only those features
  841. // of the language and library specified in these standards. A conforming
  842. // implementation shall accept any strictly conforming program.
  843. //
  844. // Based on these requirements, Sun's C compiler defines __STDC__ to 1 for
  845. // strictly conforming environments and __STDC__ to 0 for environments that
  846. // use ANSI C semantics but allow extensions to the C standard. For non-ANSI
  847. // C semantics, Sun's C compiler does not define __STDC__.
  848. //
  849. // The GNU C project interpretation is that __STDC__ should always be defined
  850. // to 1 for compilation modes that accept ANSI C syntax regardless of whether
  851. // or not extensions to the C standard are used. Violations of conforming
  852. // behavior are conditionally flagged as warnings via the use of the
  853. // -pedantic option. In addition to defining __STDC__ to 1, the GNU C
  854. // compiler also defines __STRICT_ANSI__ as a means of specifying strictly
  855. // conforming environments using the -ansi or -std=<standard> options.
  856. //
  857. // In the absence of any other compiler options, Sun and GNU set the value
  858. // of __STDC__ as follows when using the following options:
  859. //
  860. // Value of __STDC__ __STRICT_ANSI__
  861. //
  862. // cc -Xa (default) 0 undefined
  863. // cc -Xt (transitional) 0 undefined
  864. // cc -Xc (strictly conforming) 1 undefined
  865. // cc -Xs (K&R C) undefined undefined
  866. //
  867. // gcc (default) 1 undefined
  868. // gcc -ansi, -std={c89, c99,...) 1 defined
  869. // gcc -traditional (K&R) undefined undefined
  870. //
  871. // The default compilation modes for Sun C compilers versus GNU C compilers
  872. // results in a differing value for __STDC__ which results in a more
  873. // restricted namespace when using Sun compilers. To allow both GNU and Sun
  874. // interpretations to peacefully co-exist, we use the following Sun
  875. // implementation _STRICT_STDC_ macro:
  876. // Compiler complies with ISO/IEC 9899:1999 or ISO/IEC 9989:2011
  877. // Use strict symbol visibility.
  878. // This is a variant of _STRICT_SYMBOLS that is meant to cover headers that are
  879. // governed by POSIX, but have not been governed by ISO C. One can go two ways
  880. // on what should happen if an application actively includes (not transitively)
  881. // a header that isn't part of the ISO C spec, we opt to say that if someone has
  882. // gone out of there way then they're doing it for a reason and that is an act
  883. // of non-compliance and therefore it's not up to us to hide away every symbol.
  884. //
  885. // In general, prefer using _STRICT_SYMBOLS, but this is here in particular for
  886. // cases where in the past we have only used a POSIX related check and we don't
  887. // wish to make something stricter. Often applications are relying on the
  888. // ability to, or more realistically unwittingly, have _STRICT_STDC declared and
  889. // still use these interfaces.
  890. // Large file interfaces:
  891. //
  892. // _LARGEFILE_SOURCE
  893. // 1 large file-related additions to POSIX
  894. // interfaces requested (fseeko, etc.)
  895. // _LARGEFILE64_SOURCE
  896. // 1 transitional large-file-related interfaces
  897. // requested (seek64, stat64, etc.)
  898. //
  899. // The corresponding announcement macros are respectively:
  900. // _LFS_LARGEFILE
  901. // _LFS64_LARGEFILE
  902. // (These are set in <unistd.h>.)
  903. //
  904. // Requesting _LARGEFILE64_SOURCE implies requesting _LARGEFILE_SOURCE as
  905. // well.
  906. //
  907. // The large file interfaces are made visible regardless of the initial values
  908. // of the feature test macros under certain circumstances:
  909. // - If no explicit standards-conforming environment is requested (neither
  910. // of _POSIX_SOURCE nor _XOPEN_SOURCE is defined and the value of
  911. // __STDC__ does not imply standards conformance).
  912. // - Extended system interfaces are explicitly requested (__EXTENSIONS__
  913. // is defined).
  914. // - Access to in-kernel interfaces is requested (_KERNEL or _KMEMUSER is
  915. // defined). (Note that this dependency is an artifact of the current
  916. // kernel implementation and may change in future releases.)
  917. // Large file compilation environment control:
  918. //
  919. // The setting of _FILE_OFFSET_BITS controls the size of various file-related
  920. // types and governs the mapping between file-related source function symbol
  921. // names and the corresponding binary entry points.
  922. //
  923. // In the 32-bit environment, the default value is 32; if not set, set it to
  924. // the default here, to simplify tests in other headers.
  925. //
  926. // In the 64-bit compilation environment, the only value allowed is 64.
  927. // Use of _XOPEN_SOURCE
  928. //
  929. // The following X/Open specifications are supported:
  930. //
  931. // X/Open Portability Guide, Issue 3 (XPG3)
  932. // X/Open CAE Specification, Issue 4 (XPG4)
  933. // X/Open CAE Specification, Issue 4, Version 2 (XPG4v2)
  934. // X/Open CAE Specification, Issue 5 (XPG5)
  935. // Open Group Technical Standard, Issue 6 (XPG6), also referred to as
  936. // IEEE Std. 1003.1-2001 and ISO/IEC 9945:2002.
  937. // Open Group Technical Standard, Issue 7 (XPG7), also referred to as
  938. // IEEE Std. 1003.1-2008 and ISO/IEC 9945:2009.
  939. //
  940. // XPG4v2 is also referred to as UNIX 95 (SUS or SUSv1).
  941. // XPG5 is also referred to as UNIX 98 or the Single Unix Specification,
  942. // Version 2 (SUSv2)
  943. // XPG6 is the result of a merge of the X/Open and POSIX specifications
  944. // and as such is also referred to as IEEE Std. 1003.1-2001 in
  945. // addition to UNIX 03 and SUSv3.
  946. // XPG7 is also referred to as UNIX 08 and SUSv4.
  947. //
  948. // When writing a conforming X/Open application, as per the specification
  949. // requirements, the appropriate feature test macros must be defined at
  950. // compile time. These are as follows. For more info, see standards(7).
  951. //
  952. // Feature Test Macro Specification
  953. // ------------------------------------------------ -------------
  954. // _XOPEN_SOURCE XPG3
  955. // _XOPEN_SOURCE && _XOPEN_VERSION = 4 XPG4
  956. // _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED = 1 XPG4v2
  957. // _XOPEN_SOURCE = 500 XPG5
  958. // _XOPEN_SOURCE = 600 (or POSIX_C_SOURCE=200112L) XPG6
  959. // _XOPEN_SOURCE = 700 (or POSIX_C_SOURCE=200809L) XPG7
  960. //
  961. // In order to simplify the guards within the headers, the following
  962. // implementation private test macros have been created. Applications
  963. // must NOT use these private test macros as unexpected results will
  964. // occur.
  965. //
  966. // Note that in general, the use of these private macros is cumulative.
  967. // For example, the use of _XPG3 with no other restrictions on the X/Open
  968. // namespace will make the symbols visible for XPG3 through XPG6
  969. // compilation environments. The use of _XPG4_2 with no other X/Open
  970. // namespace restrictions indicates that the symbols were introduced in
  971. // XPG4v2 and are therefore visible for XPG4v2 through XPG6 compilation
  972. // environments, but not for XPG3 or XPG4 compilation environments.
  973. //
  974. // _XPG3 X/Open Portability Guide, Issue 3 (XPG3)
  975. // _XPG4 X/Open CAE Specification, Issue 4 (XPG4)
  976. // _XPG4_2 X/Open CAE Specification, Issue 4, Version 2 (XPG4v2/UNIX 95/SUS)
  977. // _XPG5 X/Open CAE Specification, Issue 5 (XPG5/UNIX 98/SUSv2)
  978. // _XPG6 Open Group Technical Standard, Issue 6 (XPG6/UNIX 03/SUSv3)
  979. // _XPG7 Open Group Technical Standard, Issue 7 (XPG7/UNIX 08/SUSv4)
  980. // X/Open Portability Guide, Issue 3
  981. // _XOPEN_VERSION is defined by the X/Open specifications and is not
  982. // normally defined by the application, except in the case of an XPG4
  983. // application. On the implementation side, _XOPEN_VERSION defined with
  984. // the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined
  985. // with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application.
  986. // _XOPEN_VERSION defined with a value of 500 indicates an XPG5 (UNIX 98)
  987. // application and with a value of 600 indicates an XPG6 (UNIX 03)
  988. // application and with a value of 700 indicates an XPG7 (UNIX 08).
  989. // The appropriate version is determined by the use of the
  990. // feature test macros described earlier. The value of _XOPEN_VERSION
  991. // defaults to 3 otherwise indicating support for XPG3 applications.
  992. // ANSI C and ISO 9899:1990 say the type long long doesn't exist in strictly
  993. // conforming environments. ISO 9899:1999 says it does.
  994. //
  995. // The presence of _LONGLONG_TYPE says "long long exists" which is therefore
  996. // defined in all but strictly conforming environments that disallow it.
  997. // The following macro defines a value for the ISO C99 restrict
  998. // keyword so that _RESTRICT_KYWD resolves to "restrict" if
  999. // an ISO C99 compiler is used, "__restrict" for c++ and "" (null string)
  1000. // if any other compiler is used. This allows for the use of single
  1001. // prototype declarations regardless of compiler version.
  1002. // The following macro defines a value for the ISO C11 _Noreturn
  1003. // keyword so that _NORETURN_KYWD resolves to "_Noreturn" if
  1004. // an ISO C11 compiler is used and "" (null string) if any other
  1005. // compiler is used. This allows for the use of single prototype
  1006. // declarations regardless of compiler version.
  1007. // ISO/IEC 9899:2011 Annex K
  1008. // The following macro indicates header support for the ANSI C++
  1009. // standard. The ISO/IEC designation for this is ISO/IEC FDIS 14882.
  1010. // The following macro indicates header support for the C99 standard,
  1011. // ISO/IEC 9899:1999, Programming Languages - C.
  1012. // The following macro indicates header support for the C11 standard,
  1013. // ISO/IEC 9899:2011, Programming Languages - C.
  1014. // The following macro indicates header support for the C11 standard,
  1015. // ISO/IEC 9899:2011 Annex K, Programming Languages - C.
  1016. // The following macro indicates header support for DTrace. The value is an
  1017. // integer that corresponds to the major version number for DTrace.
  1018. // CDDL HEADER START
  1019. //
  1020. // The contents of this file are subject to the terms of the
  1021. // Common Development and Distribution License, Version 1.0 only
  1022. // (the "License"). You may not use this file except in compliance
  1023. // with the License.
  1024. //
  1025. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  1026. // or http://www.opensolaris.org/os/licensing.
  1027. // See the License for the specific language governing permissions
  1028. // and limitations under the License.
  1029. //
  1030. // When distributing Covered Code, include this CDDL HEADER in each
  1031. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  1032. // If applicable, add the following below this CDDL HEADER, with the
  1033. // fields enclosed by brackets "[]" replaced with your own identifying
  1034. // information: Portions Copyright [yyyy] [name of copyright owner]
  1035. //
  1036. // CDDL HEADER END
  1037. // Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
  1038. // All Rights Reserved
  1039. // Terminal definitions related to underlying hardware.
  1040. // Speeds
  1041. // Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
  1042. // All Rights Reserved
  1043. // Copyright (c) 1982, 1986, 1993 Regents of the University of California.
  1044. // All rights reserved. The Berkeley software License Agreement
  1045. // specifies the terms and conditions for redistribution.
  1046. // Copyright 2014 Garrett D'Amore <garrett@damore.org>
  1047. //
  1048. // Copyright 2009 Sun Microsystems, Inc. All rights reserved.
  1049. // Use is subject to license terms.
  1050. //
  1051. // Copyright 2013 Nexenta Systems, Inc. All rights reserved.
  1052. // Copyright 2016 Joyent, Inc.
  1053. // Copyright 2020 OmniOS Community Edition (OmniOSce) Association.
  1054. // Copyright (c) 2013, 2016 by Delphix. All rights reserved.
  1055. // DO NOT EDIT THIS FILE.
  1056. //
  1057. // It has been auto-edited by fixincludes from:
  1058. //
  1059. // "/usr/include/sys/feature_tests.h"
  1060. //
  1061. // This had to be done to correct non-standard usages in the
  1062. // original, manufacturer supplied header file.
  1063. // CDDL HEADER START
  1064. //
  1065. // The contents of this file are subject to the terms of the
  1066. // Common Development and Distribution License (the "License").
  1067. // You may not use this file except in compliance with the License.
  1068. //
  1069. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  1070. // or http://www.opensolaris.org/os/licensing.
  1071. // See the License for the specific language governing permissions
  1072. // and limitations under the License.
  1073. //
  1074. // When distributing Covered Code, include this CDDL HEADER in each
  1075. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  1076. // If applicable, add the following below this CDDL HEADER, with the
  1077. // fields enclosed by brackets "[]" replaced with your own identifying
  1078. // information: Portions Copyright [yyyy] [name of copyright owner]
  1079. //
  1080. // CDDL HEADER END
  1081. // Copyright 2013 Garrett D'Amore <garrett@damore.org>
  1082. // Copyright 2016 Joyent, Inc.
  1083. // Copyright 2022 Oxide Computer Company
  1084. //
  1085. // Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  1086. // Use is subject to license terms.
  1087. // Structure returned by gettimeofday(2) system call,
  1088. // and used in other calls.
  1089. type Time_t = int64 /* time.h:46:14 */ // time of day in seconds
  1090. type Suseconds_t = int64 /* time.h:51:14 */ // signed # of microseconds
  1091. type Timeval = struct {
  1092. Ftv_sec int64
  1093. Ftv_usec int64
  1094. } /* time.h:54:1 */
  1095. type Timezone = struct {
  1096. Ftz_minuteswest int32
  1097. Ftz_dsttime int32
  1098. } /* time.h:86:1 */
  1099. // Needed for longlong_t type. Placement of this due to <sys/types.h>
  1100. // including <sys/select.h> which relies on the presense of the itimerval
  1101. // structure.
  1102. // CDDL HEADER START
  1103. //
  1104. // The contents of this file are subject to the terms of the
  1105. // Common Development and Distribution License (the "License").
  1106. // You may not use this file except in compliance with the License.
  1107. //
  1108. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  1109. // or http://www.opensolaris.org/os/licensing.
  1110. // See the License for the specific language governing permissions
  1111. // and limitations under the License.
  1112. //
  1113. // When distributing Covered Code, include this CDDL HEADER in each
  1114. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  1115. // If applicable, add the following below this CDDL HEADER, with the
  1116. // fields enclosed by brackets "[]" replaced with your own identifying
  1117. // information: Portions Copyright [yyyy] [name of copyright owner]
  1118. //
  1119. // CDDL HEADER END
  1120. // Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
  1121. // All Rights Reserved
  1122. // Copyright 2009 Sun Microsystems, Inc. All rights reserved.
  1123. // Use is subject to license terms.
  1124. //
  1125. // Copyright 2013 Nexenta Systems, Inc. All rights reserved.
  1126. // Copyright 2016 Joyent, Inc.
  1127. // Copyright 2021 Oxide Computer Company
  1128. // DO NOT EDIT THIS FILE.
  1129. //
  1130. // It has been auto-edited by fixincludes from:
  1131. //
  1132. // "/usr/include/sys/feature_tests.h"
  1133. //
  1134. // This had to be done to correct non-standard usages in the
  1135. // original, manufacturer supplied header file.
  1136. // CDDL HEADER START
  1137. //
  1138. // The contents of this file are subject to the terms of the
  1139. // Common Development and Distribution License (the "License").
  1140. // You may not use this file except in compliance with the License.
  1141. //
  1142. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  1143. // or http://www.opensolaris.org/os/licensing.
  1144. // See the License for the specific language governing permissions
  1145. // and limitations under the License.
  1146. //
  1147. // When distributing Covered Code, include this CDDL HEADER in each
  1148. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  1149. // If applicable, add the following below this CDDL HEADER, with the
  1150. // fields enclosed by brackets "[]" replaced with your own identifying
  1151. // information: Portions Copyright [yyyy] [name of copyright owner]
  1152. //
  1153. // CDDL HEADER END
  1154. // Copyright 2013 Garrett D'Amore <garrett@damore.org>
  1155. // Copyright 2016 Joyent, Inc.
  1156. // Copyright 2022 Oxide Computer Company
  1157. //
  1158. // Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  1159. // Use is subject to license terms.
  1160. // CDDL HEADER START
  1161. //
  1162. // The contents of this file are subject to the terms of the
  1163. // Common Development and Distribution License (the "License").
  1164. // You may not use this file except in compliance with the License.
  1165. //
  1166. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  1167. // or http://www.opensolaris.org/os/licensing.
  1168. // See the License for the specific language governing permissions
  1169. // and limitations under the License.
  1170. //
  1171. //
  1172. // When distributing Covered Code, include this CDDL HEADER in each
  1173. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  1174. // If applicable, add the following below this CDDL HEADER, with the
  1175. // fields enclosed by brackets "[]" replaced with your own identifying
  1176. // information: Portions Copyright [yyyy] [name of copyright owner]
  1177. //
  1178. // CDDL HEADER END
  1179. // Copyright 2008 Sun Microsystems, Inc. All rights reserved.
  1180. // Use is subject to license terms.
  1181. // Copyright 2016 Joyent, Inc.
  1182. // Machine dependent definitions moved to <sys/machtypes.h>.
  1183. // CDDL HEADER START
  1184. //
  1185. // The contents of this file are subject to the terms of the
  1186. // Common Development and Distribution License (the "License").
  1187. // You may not use this file except in compliance with the License.
  1188. //
  1189. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  1190. // or http://www.opensolaris.org/os/licensing.
  1191. // See the License for the specific language governing permissions
  1192. // and limitations under the License.
  1193. //
  1194. // When distributing Covered Code, include this CDDL HEADER in each
  1195. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  1196. // If applicable, add the following below this CDDL HEADER, with the
  1197. // fields enclosed by brackets "[]" replaced with your own identifying
  1198. // information: Portions Copyright [yyyy] [name of copyright owner]
  1199. //
  1200. // CDDL HEADER END
  1201. // Copyright 2007 Sun Microsystems, Inc. All rights reserved.
  1202. // Use is subject to license terms.
  1203. // Machine dependent types:
  1204. //
  1205. // intel ia32 Version
  1206. type X_label_t = struct{ Fval [8]int64 } /* machtypes.h:59:9 */
  1207. // Needed for longlong_t type. Placement of this due to <sys/types.h>
  1208. // including <sys/select.h> which relies on the presense of the itimerval
  1209. // structure.
  1210. // CDDL HEADER START
  1211. //
  1212. // The contents of this file are subject to the terms of the
  1213. // Common Development and Distribution License (the "License").
  1214. // You may not use this file except in compliance with the License.
  1215. //
  1216. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  1217. // or http://www.opensolaris.org/os/licensing.
  1218. // See the License for the specific language governing permissions
  1219. // and limitations under the License.
  1220. //
  1221. // When distributing Covered Code, include this CDDL HEADER in each
  1222. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  1223. // If applicable, add the following below this CDDL HEADER, with the
  1224. // fields enclosed by brackets "[]" replaced with your own identifying
  1225. // information: Portions Copyright [yyyy] [name of copyright owner]
  1226. //
  1227. // CDDL HEADER END
  1228. // Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
  1229. // All Rights Reserved
  1230. // Copyright 2009 Sun Microsystems, Inc. All rights reserved.
  1231. // Use is subject to license terms.
  1232. //
  1233. // Copyright 2013 Nexenta Systems, Inc. All rights reserved.
  1234. // Copyright 2016 Joyent, Inc.
  1235. // Copyright 2021 Oxide Computer Company
  1236. // DO NOT EDIT THIS FILE.
  1237. //
  1238. // It has been auto-edited by fixincludes from:
  1239. //
  1240. // "/usr/include/sys/feature_tests.h"
  1241. //
  1242. // This had to be done to correct non-standard usages in the
  1243. // original, manufacturer supplied header file.
  1244. // CDDL HEADER START
  1245. //
  1246. // The contents of this file are subject to the terms of the
  1247. // Common Development and Distribution License (the "License").
  1248. // You may not use this file except in compliance with the License.
  1249. //
  1250. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  1251. // or http://www.opensolaris.org/os/licensing.
  1252. // See the License for the specific language governing permissions
  1253. // and limitations under the License.
  1254. //
  1255. // When distributing Covered Code, include this CDDL HEADER in each
  1256. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  1257. // If applicable, add the following below this CDDL HEADER, with the
  1258. // fields enclosed by brackets "[]" replaced with your own identifying
  1259. // information: Portions Copyright [yyyy] [name of copyright owner]
  1260. //
  1261. // CDDL HEADER END
  1262. // Copyright 2013 Garrett D'Amore <garrett@damore.org>
  1263. // Copyright 2016 Joyent, Inc.
  1264. // Copyright 2022 Oxide Computer Company
  1265. //
  1266. // Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  1267. // Use is subject to license terms.
  1268. // CDDL HEADER START
  1269. //
  1270. // The contents of this file are subject to the terms of the
  1271. // Common Development and Distribution License (the "License").
  1272. // You may not use this file except in compliance with the License.
  1273. //
  1274. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  1275. // or http://www.opensolaris.org/os/licensing.
  1276. // See the License for the specific language governing permissions
  1277. // and limitations under the License.
  1278. //
  1279. //
  1280. // When distributing Covered Code, include this CDDL HEADER in each
  1281. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  1282. // If applicable, add the following below this CDDL HEADER, with the
  1283. // fields enclosed by brackets "[]" replaced with your own identifying
  1284. // information: Portions Copyright [yyyy] [name of copyright owner]
  1285. //
  1286. // CDDL HEADER END
  1287. // Copyright 2008 Sun Microsystems, Inc. All rights reserved.
  1288. // Use is subject to license terms.
  1289. // Copyright 2016 Joyent, Inc.
  1290. // Machine dependent definitions moved to <sys/machtypes.h>.
  1291. // CDDL HEADER START
  1292. //
  1293. // The contents of this file are subject to the terms of the
  1294. // Common Development and Distribution License (the "License").
  1295. // You may not use this file except in compliance with the License.
  1296. //
  1297. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  1298. // or http://www.opensolaris.org/os/licensing.
  1299. // See the License for the specific language governing permissions
  1300. // and limitations under the License.
  1301. //
  1302. // When distributing Covered Code, include this CDDL HEADER in each
  1303. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  1304. // If applicable, add the following below this CDDL HEADER, with the
  1305. // fields enclosed by brackets "[]" replaced with your own identifying
  1306. // information: Portions Copyright [yyyy] [name of copyright owner]
  1307. //
  1308. // CDDL HEADER END
  1309. // Copyright 2007 Sun Microsystems, Inc. All rights reserved.
  1310. // Use is subject to license terms.
  1311. // Machine dependent types:
  1312. //
  1313. // intel ia32 Version
  1314. type Label_t = X_label_t /* machtypes.h:59:54 */
  1315. type Lock_t = uint8 /* machtypes.h:63:23 */ // lock work for busy wait
  1316. // Include fixed width type declarations proposed by the ISO/JTC1/SC22/WG14 C
  1317. // committee's working draft for the revision of the current ISO C standard,
  1318. // ISO/IEC 9899:1990 Programming language - C. These are not currently
  1319. // required by any standard but constitute a useful, general purpose set
  1320. // of type definitions which is namespace clean with respect to all standards.
  1321. // CDDL HEADER START
  1322. //
  1323. // The contents of this file are subject to the terms of the
  1324. // Common Development and Distribution License, Version 1.0 only
  1325. // (the "License"). You may not use this file except in compliance
  1326. // with the License.
  1327. //
  1328. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  1329. // or http://www.opensolaris.org/os/licensing.
  1330. // See the License for the specific language governing permissions
  1331. // and limitations under the License.
  1332. //
  1333. // When distributing Covered Code, include this CDDL HEADER in each
  1334. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  1335. // If applicable, add the following below this CDDL HEADER, with the
  1336. // fields enclosed by brackets "[]" replaced with your own identifying
  1337. // information: Portions Copyright [yyyy] [name of copyright owner]
  1338. //
  1339. // CDDL HEADER END
  1340. // Copyright 2014 Garrett D'Amore <garrett@damore.org>
  1341. //
  1342. // Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  1343. // Use is subject to license terms.
  1344. // This file, <sys/int_types.h>, is part of the Sun Microsystems implementation
  1345. // of <inttypes.h> defined in the ISO C standard, ISO/IEC 9899:1999
  1346. // Programming language - C.
  1347. //
  1348. // Programs/Modules should not directly include this file. Access to the
  1349. // types defined in this file should be through the inclusion of one of the
  1350. // following files:
  1351. //
  1352. // <sys/types.h> Provides only the "_t" types defined in this
  1353. // file which is a subset of the contents of
  1354. // <inttypes.h>. (This can be appropriate for
  1355. // all programs/modules except those claiming
  1356. // ANSI-C conformance.)
  1357. //
  1358. // <sys/inttypes.h> Provides the Kernel and Driver appropriate
  1359. // components of <inttypes.h>.
  1360. //
  1361. // <inttypes.h> For use by applications.
  1362. //
  1363. // See these files for more details.
  1364. // DO NOT EDIT THIS FILE.
  1365. //
  1366. // It has been auto-edited by fixincludes from:
  1367. //
  1368. // "/usr/include/sys/feature_tests.h"
  1369. //
  1370. // This had to be done to correct non-standard usages in the
  1371. // original, manufacturer supplied header file.
  1372. // CDDL HEADER START
  1373. //
  1374. // The contents of this file are subject to the terms of the
  1375. // Common Development and Distribution License (the "License").
  1376. // You may not use this file except in compliance with the License.
  1377. //
  1378. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  1379. // or http://www.opensolaris.org/os/licensing.
  1380. // See the License for the specific language governing permissions
  1381. // and limitations under the License.
  1382. //
  1383. // When distributing Covered Code, include this CDDL HEADER in each
  1384. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  1385. // If applicable, add the following below this CDDL HEADER, with the
  1386. // fields enclosed by brackets "[]" replaced with your own identifying
  1387. // information: Portions Copyright [yyyy] [name of copyright owner]
  1388. //
  1389. // CDDL HEADER END
  1390. // Copyright 2013 Garrett D'Amore <garrett@damore.org>
  1391. // Copyright 2016 Joyent, Inc.
  1392. // Copyright 2022 Oxide Computer Company
  1393. //
  1394. // Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  1395. // Use is subject to license terms.
  1396. // Basic / Extended integer types
  1397. //
  1398. // The following defines the basic fixed-size integer types.
  1399. //
  1400. // Implementations are free to typedef them to Standard C integer types or
  1401. // extensions that they support. If an implementation does not support one
  1402. // of the particular integer data types below, then it should not define the
  1403. // typedefs and macros corresponding to that data type. Note that int8_t
  1404. // is not defined in -Xs mode on ISAs for which the ABI specifies "char"
  1405. // as an unsigned entity because there is no way to define an eight bit
  1406. // signed integral.
  1407. type Int8_t = int8 /* int_types.h:75:16 */
  1408. type Int16_t = int16 /* int_types.h:79:17 */
  1409. type Int32_t = int32 /* int_types.h:80:15 */
  1410. type Int64_t = int64 /* int_types.h:83:16 */
  1411. type Uint8_t = uint8 /* int_types.h:91:24 */
  1412. type Uint16_t = uint16 /* int_types.h:92:25 */
  1413. type Uint32_t = uint32 /* int_types.h:93:23 */
  1414. type Uint64_t = uint64 /* int_types.h:95:24 */
  1415. // intmax_t and uintmax_t are to be the longest (in number of bits) signed
  1416. // and unsigned integer types supported by the implementation.
  1417. type Intmax_t = int64 /* int_types.h:107:19 */
  1418. type Uintmax_t = uint64 /* int_types.h:108:19 */
  1419. // intptr_t and uintptr_t are signed and unsigned integer types large enough
  1420. // to hold any data pointer; that is, data pointers can be assigned into or
  1421. // from these integer types without losing precision.
  1422. type Intptr_t = int64 /* int_types.h:120:16 */
  1423. type Uintptr_t = uint64 /* int_types.h:121:24 */
  1424. // The following define the fastest integer types that can hold the
  1425. // specified number of bits.
  1426. type Int_fast8_t = int8 /* int_types.h:132:16 */
  1427. type Int_fast16_t = int32 /* int_types.h:136:15 */
  1428. type Int_fast32_t = int32 /* int_types.h:137:15 */
  1429. type Int_fast64_t = int64 /* int_types.h:139:16 */
  1430. type Uint_fast8_t = uint8 /* int_types.h:146:24 */
  1431. type Uint_fast16_t = uint32 /* int_types.h:147:23 */
  1432. type Uint_fast32_t = uint32 /* int_types.h:148:23 */
  1433. type Uint_fast64_t = uint64 /* int_types.h:150:24 */
  1434. // The following define the smallest integer types that can hold the
  1435. // specified number of bits.
  1436. type Int_least8_t = int8 /* int_types.h:162:16 */
  1437. type Int_least16_t = int16 /* int_types.h:166:17 */
  1438. type Int_least32_t = int32 /* int_types.h:167:15 */
  1439. type Int_least64_t = int64 /* int_types.h:169:16 */
  1440. // If these are changed, please update char16_t and char32_t in head/uchar.h.
  1441. type Uint_least8_t = uint8 /* int_types.h:179:24 */
  1442. type Uint_least16_t = uint16 /* int_types.h:180:25 */
  1443. type Uint_least32_t = uint32 /* int_types.h:181:23 */
  1444. type Uint_least64_t = uint64 /* int_types.h:183:24 */
  1445. // Strictly conforming ANSI C environments prior to the 1999
  1446. // revision of the C Standard (ISO/IEC 9899:1999) do not have
  1447. // the long long data type.
  1448. type Longlong_t = int64 /* types.h:72:20 */
  1449. type U_longlong_t = uint64 /* types.h:73:28 */
  1450. // These types (t_{u}scalar_t) exist because the XTI/TPI/DLPI standards had
  1451. // to use them instead of int32_t and uint32_t because DEC had
  1452. // shipped 64-bit wide.
  1453. type T_scalar_t = int32 /* types.h:92:18 */
  1454. type T_uscalar_t = uint32 /* types.h:93:18 */
  1455. // POSIX Extensions
  1456. type Uchar_t = uint8 /* types.h:102:23 */
  1457. type Ushort_t = uint16 /* types.h:103:24 */
  1458. type Uint_t = uint32 /* types.h:104:22 */
  1459. type Ulong_t = uint64 /* types.h:105:23 */
  1460. type Caddr_t = uintptr /* types.h:107:15 */ // ?<core address> type
  1461. type Daddr_t = int64 /* types.h:108:15 */ // <disk address> type
  1462. type Cnt_t = int16 /* types.h:109:16 */ // pointer difference
  1463. // VM-related types
  1464. type Pfn_t = uint64 /* types.h:123:18 */ // page frame number
  1465. type Pgcnt_t = uint64 /* types.h:124:18 */ // number of pages
  1466. type Spgcnt_t = int64 /* types.h:125:15 */ // signed number of pages
  1467. type Use_t = uint8 /* types.h:127:18 */ // use count for swap.
  1468. type Sysid_t = int16 /* types.h:128:16 */
  1469. type Index_t = int16 /* types.h:129:16 */
  1470. type Timeout_id_t = uintptr /* types.h:130:15 */ // opaque handle from timeout(9F)
  1471. type Bufcall_id_t = uintptr /* types.h:131:15 */ // opaque handle from bufcall(9F)
  1472. // The size of off_t and related types depends on the setting of
  1473. // _FILE_OFFSET_BITS. (Note that other system headers define other types
  1474. // related to those defined here.)
  1475. //
  1476. // If _LARGEFILE64_SOURCE is defined, variants of these types that are
  1477. // explicitly 64 bits wide become available.
  1478. type Off_t = int64 /* types.h:145:15 */ // offsets within files
  1479. type Off64_t = int64 /* types.h:152:16 */ // offsets within files
  1480. type Ino_t = uint64 /* types.h:161:18 */ // expanded inode type
  1481. type Blkcnt_t = int64 /* types.h:162:15 */ // count of file blocks
  1482. type Fsblkcnt_t = uint64 /* types.h:163:18 */ // count of file system blocks
  1483. type Fsfilcnt_t = uint64 /* types.h:164:18 */ // count of files
  1484. type Ino64_t = uint64 /* types.h:174:16 */ // expanded inode type
  1485. type Blkcnt64_t = int64 /* types.h:175:18 */ // count of file blocks
  1486. type Fsblkcnt64_t = uint64 /* types.h:176:20 */ // count of file system blocks
  1487. type Fsfilcnt64_t = uint64 /* types.h:177:20 */ // count of files
  1488. type Blksize_t = int32 /* types.h:187:14 */ // used for block sizes
  1489. // The boolean_t type has had a varied amount of exposure over the years in
  1490. // terms of how its enumeration constants have been exposed. In particular, it
  1491. // originally used the __XOPEN_OR_POSIX macro to determine whether to prefix the
  1492. // B_TRUE and B_FALSE with an underscore. This check never included the
  1493. // question of if we were in a strict ANSI C environment or whether extensions
  1494. // were defined.
  1495. //
  1496. // Compilers such as clang started defaulting to always including an
  1497. // XOPEN_SOURCE declaration on behalf of users, but also noted __EXTENSIONS__.
  1498. // This would lead most software that had used the non-underscore versions to
  1499. // need it. As such, we have adjusted the non-strict XOPEN environment to retain
  1500. // its old behavior so as to minimize namespace pollution; however, we instead
  1501. // include both variants of the definitions in the generally visible version
  1502. // allowing software written in either world to hopefully end up in a good
  1503. // place.
  1504. //
  1505. // This isn't perfect, but should hopefully minimize the pain for folks actually
  1506. // trying to build software.
  1507. type Boolean_t = uint32 /* types.h:215:69 */
  1508. // The {u,}pad64_t types can be used in structures such that those structures
  1509. // may be accessed by code produced by compilation environments which don't
  1510. // support a 64 bit integral datatype. The intention is not to allow
  1511. // use of these fields in such environments, but to maintain the alignment
  1512. // and offsets of the structure.
  1513. //
  1514. // Similar comments for {u,}pad128_t.
  1515. //
  1516. // Note that these types do NOT generate any stronger alignment constraints
  1517. // than those available in the underlying ABI. See <sys/isa_defs.h>
  1518. type Pad64_t = int64 /* types.h:240:18 */
  1519. type Upad64_t = uint64 /* types.h:241:18 */
  1520. type Pad128_t = struct {
  1521. F_q float64
  1522. F__ccgo_pad1 [8]byte
  1523. } /* types.h:257:3 */
  1524. type Upad128_t = struct {
  1525. F_q float64
  1526. F__ccgo_pad1 [8]byte
  1527. } /* types.h:262:3 */
  1528. type Offset_t = int64 /* types.h:264:20 */
  1529. type U_offset_t = uint64 /* types.h:265:22 */
  1530. type Len_t = uint64 /* types.h:266:22 */
  1531. type Diskaddr_t = uint64 /* types.h:267:22 */
  1532. // Definitions remaining from previous partial support for 64-bit file
  1533. // offsets. This partial support for devices greater than 2gb requires
  1534. // compiler support for long long.
  1535. type Lloff_t = struct{ F_f int64 } /* types.h:284:3 */
  1536. type Lldaddr_t = struct{ F_f int64 } /* types.h:304:3 */
  1537. type K_fltset_t = uint32 /* types.h:317:16 */ // kernel fault set type
  1538. // The following type is for various kinds of identifiers. The
  1539. // actual type must be the same for all since some system calls
  1540. // (such as sigsend) take arguments that may be any of these
  1541. // types. The enumeration type idtype_t defined in sys/procset.h
  1542. // is used to indicate what type of id is being specified --
  1543. // a process id, process group id, session id, scheduling class id,
  1544. // user id, group id, project id, task id or zone id.
  1545. type Id_t = int32 /* types.h:329:14 */
  1546. type Lgrp_id_t = int32 /* types.h:334:15 */ // lgroup ID
  1547. // Type useconds_t is an unsigned integral type capable of storing
  1548. // values at least in the range of zero to 1,000,000.
  1549. type Useconds_t = uint32 /* types.h:340:17 */ // Time, in microseconds
  1550. // Typedefs for dev_t components.
  1551. type Major_t = uint32 /* types.h:351:16 */ // major part of device number
  1552. type Minor_t = uint32 /* types.h:352:16 */ // minor part of device number
  1553. // The data type of a thread priority.
  1554. type Pri_t = int16 /* types.h:361:15 */
  1555. // The data type for a CPU flags field. (Can be extended to larger unsigned
  1556. // types, if needed, limited by ability to update atomically.)
  1557. type Cpu_flag_t = uint16 /* types.h:367:18 */
  1558. // For compatibility reasons the following typedefs (prefixed o_)
  1559. // can't grow regardless of the EFT definition. Although,
  1560. // applications should not explicitly use these typedefs
  1561. // they may be included via a system header definition.
  1562. // WARNING: These typedefs may be removed in a future
  1563. // release.
  1564. //
  1565. // ex. the definitions in s5inode.h (now obsoleted)
  1566. // remained small to preserve compatibility
  1567. // in the S5 file system type.
  1568. type O_mode_t = uint16 /* types.h:380:18 */ // old file attribute type
  1569. type O_dev_t = int16 /* types.h:381:15 */ // old device type
  1570. type O_uid_t = uint16 /* types.h:382:18 */ // old UID type
  1571. type O_gid_t = uint16 /* types.h:383:17 */ // old GID type
  1572. type O_nlink_t = int16 /* types.h:384:15 */ // old file link type
  1573. type O_pid_t = int16 /* types.h:385:15 */ // old process id type
  1574. type O_ino_t = uint16 /* types.h:386:18 */ // old inode type
  1575. // POSIX and XOPEN Declarations
  1576. type Key_t = int32 /* types.h:392:13 */ // IPC key type
  1577. type Mode_t = uint32 /* types.h:394:16 */ // file attribute type
  1578. type Uid_t = uint32 /* types.h:401:22 */ // UID type
  1579. type Gid_t = uint32 /* types.h:404:15 */ // GID type
  1580. type Datalink_id_t = uint32 /* types.h:406:18 */
  1581. type Vrid_t = uint32 /* types.h:407:18 */
  1582. type Taskid_t = int32 /* types.h:409:17 */
  1583. type Projid_t = int32 /* types.h:410:17 */
  1584. type Poolid_t = int32 /* types.h:411:14 */
  1585. type Zoneid_t = int32 /* types.h:412:14 */
  1586. type Ctid_t = int32 /* types.h:413:14 */
  1587. // POSIX definitions are same as defined in thread.h and synch.h.
  1588. // Any changes made to here should be reflected in corresponding
  1589. // files as described in comments.
  1590. type Pthread_t = uint32 /* types.h:420:16 */ // = thread_t in thread.h
  1591. type Pthread_key_t = uint32 /* types.h:421:16 */ // = thread_key_t in thread.h
  1592. // "Magic numbers" tagging synchronization object types
  1593. type X_pthread_mutex = struct {
  1594. F__pthread_mutex_flags struct {
  1595. F__pthread_mutex_flag1 uint16
  1596. F__pthread_mutex_flag2 uint8
  1597. F__pthread_mutex_ceiling uint8
  1598. F__pthread_mutex_type uint16
  1599. F__pthread_mutex_magic uint16
  1600. }
  1601. F__pthread_mutex_lock struct {
  1602. F__ccgo_pad1 [0]uint64
  1603. F__pthread_mutex_lock64 struct{ F__pthread_mutex_pad [8]uint8 }
  1604. }
  1605. F__pthread_mutex_data uint64
  1606. } /* types.h:429:9 */
  1607. // = thread_key_t in thread.h
  1608. // "Magic numbers" tagging synchronization object types
  1609. type Pthread_mutex_t = X_pthread_mutex /* types.h:448:3 */
  1610. type X_pthread_cond = struct {
  1611. F__pthread_cond_flags struct {
  1612. F__pthread_cond_flag [4]uint8
  1613. F__pthread_cond_type uint16
  1614. F__pthread_cond_magic uint16
  1615. }
  1616. F__pthread_cond_data uint64
  1617. } /* types.h:450:9 */
  1618. type Pthread_cond_t = X_pthread_cond /* types.h:457:3 */
  1619. // UNIX 98 Extension
  1620. type X_pthread_rwlock = struct {
  1621. F__pthread_rwlock_readers int32
  1622. F__pthread_rwlock_type uint16
  1623. F__pthread_rwlock_magic uint16
  1624. F__pthread_rwlock_mutex Pthread_mutex_t
  1625. F__pthread_rwlock_readercv Pthread_cond_t
  1626. F__pthread_rwlock_writercv Pthread_cond_t
  1627. } /* types.h:462:9 */
  1628. // UNIX 98 Extension
  1629. type Pthread_rwlock_t = X_pthread_rwlock /* types.h:469:3 */
  1630. // SUSV3
  1631. type Pthread_barrier_t = struct {
  1632. F__pthread_barrier_count uint32
  1633. F__pthread_barrier_current uint32
  1634. F__pthread_barrier_cycle uint64
  1635. F__pthread_barrier_reserved uint64
  1636. F__pthread_barrier_lock Pthread_mutex_t
  1637. F__pthread_barrier_cond Pthread_cond_t
  1638. } /* types.h:481:3 */
  1639. type Pthread_spinlock_t = Pthread_mutex_t /* types.h:483:25 */
  1640. // attributes for threads, dynamically allocated by library
  1641. type X_pthread_attr = struct{ F__pthread_attrp uintptr } /* types.h:488:9 */
  1642. // attributes for threads, dynamically allocated by library
  1643. type Pthread_attr_t = X_pthread_attr /* types.h:490:3 */
  1644. // attributes for mutex, dynamically allocated by library
  1645. type X_pthread_mutexattr = struct{ F__pthread_mutexattrp uintptr } /* types.h:495:9 */
  1646. // attributes for mutex, dynamically allocated by library
  1647. type Pthread_mutexattr_t = X_pthread_mutexattr /* types.h:497:3 */
  1648. // attributes for cond, dynamically allocated by library
  1649. type X_pthread_condattr = struct{ F__pthread_condattrp uintptr } /* types.h:502:9 */
  1650. // attributes for cond, dynamically allocated by library
  1651. type Pthread_condattr_t = X_pthread_condattr /* types.h:504:3 */
  1652. // pthread_once
  1653. type X_once = struct{ F__pthread_once_pad [4]uint64 } /* types.h:509:9 */
  1654. // pthread_once
  1655. type Pthread_once_t = X_once /* types.h:511:3 */
  1656. // UNIX 98 Extensions
  1657. // attributes for rwlock, dynamically allocated by library
  1658. type X_pthread_rwlockattr = struct{ F__pthread_rwlockattrp uintptr } /* types.h:517:9 */
  1659. // UNIX 98 Extensions
  1660. // attributes for rwlock, dynamically allocated by library
  1661. type Pthread_rwlockattr_t = X_pthread_rwlockattr /* types.h:519:3 */
  1662. // SUSV3
  1663. // attributes for pthread_barrier_t, dynamically allocated by library
  1664. type Pthread_barrierattr_t = struct{ F__pthread_barrierattrp uintptr } /* types.h:527:3 */
  1665. type Dev_t = uint64 /* types.h:529:17 */ // expanded device type
  1666. type Nlink_t = uint32 /* types.h:532:16 */ // file link type
  1667. type Pid_t = int32 /* types.h:533:13 */ // size of something in bytes
  1668. type Ssize_t = int64 /* types.h:551:14 */ // size of something in bytes or -1
  1669. type Clock_t = int64 /* types.h:564:15 */ // relative time in a specified resolution
  1670. type Clockid_t = int32 /* types.h:569:13 */ // clock identifier type
  1671. type Timer_t = int32 /* types.h:574:13 */ // timer identifier type
  1672. // BEGIN CSTYLED
  1673. type Unchar = uint8 /* types.h:580:23 */
  1674. type Ushort = uint16 /* types.h:581:24 */
  1675. type Uint = uint32 /* types.h:582:22 */
  1676. type Ulong = uint64 /* types.h:583:23 */
  1677. // END CSTYLED
  1678. // The following is the value of type id_t to use to indicate the
  1679. // caller's current id. See procset.h for the type idtype_t
  1680. // which defines which kind of id is being specified.
  1681. // The following value of type pfn_t is used to indicate
  1682. // invalid page frame number.
  1683. // BEGIN CSTYLED
  1684. type U_char = uint8 /* types.h:650:23 */
  1685. type U_short = uint16 /* types.h:651:24 */
  1686. type U_int = uint32 /* types.h:652:22 */
  1687. type U_long = uint64 /* types.h:653:23 */
  1688. type X_quad = struct{ Fval [2]int32 } /* types.h:654:9 */
  1689. type Quad_t = X_quad /* types.h:654:38 */ // used by UFS
  1690. type Quad = Quad_t /* types.h:655:17 */ // used by UFS
  1691. // END CSTYLED
  1692. // Nested include for BSD/sockets source compatibility.
  1693. // (The select macros used to be defined here).
  1694. // CDDL HEADER START
  1695. //
  1696. // The contents of this file are subject to the terms of the
  1697. // Common Development and Distribution License (the "License").
  1698. // You may not use this file except in compliance with the License.
  1699. //
  1700. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  1701. // or http://www.opensolaris.org/os/licensing.
  1702. // See the License for the specific language governing permissions
  1703. // and limitations under the License.
  1704. //
  1705. // When distributing Covered Code, include this CDDL HEADER in each
  1706. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  1707. // If applicable, add the following below this CDDL HEADER, with the
  1708. // fields enclosed by brackets "[]" replaced with your own identifying
  1709. // information: Portions Copyright [yyyy] [name of copyright owner]
  1710. //
  1711. // CDDL HEADER END
  1712. // Copyright 2014 Garrett D'Amore <garrett@damore.org>
  1713. //
  1714. // Copyright 2013 Nexenta Systems, Inc. All rights reserved.
  1715. //
  1716. // Copyright 2010 Sun Microsystems, Inc. All rights reserved.
  1717. // Use is subject to license terms.
  1718. // Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
  1719. // All Rights Reserved
  1720. // University Copyright- Copyright (c) 1982, 1986, 1988
  1721. // The Regents of the University of California
  1722. // All Rights Reserved
  1723. //
  1724. // University Acknowledgment- Portions of this document are derived from
  1725. // software developed by the University of California, Berkeley, and its
  1726. // contributors.
  1727. // DO NOT EDIT THIS FILE.
  1728. //
  1729. // It has been auto-edited by fixincludes from:
  1730. //
  1731. // "/usr/include/sys/feature_tests.h"
  1732. //
  1733. // This had to be done to correct non-standard usages in the
  1734. // original, manufacturer supplied header file.
  1735. // CDDL HEADER START
  1736. //
  1737. // The contents of this file are subject to the terms of the
  1738. // Common Development and Distribution License (the "License").
  1739. // You may not use this file except in compliance with the License.
  1740. //
  1741. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  1742. // or http://www.opensolaris.org/os/licensing.
  1743. // See the License for the specific language governing permissions
  1744. // and limitations under the License.
  1745. //
  1746. // When distributing Covered Code, include this CDDL HEADER in each
  1747. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  1748. // If applicable, add the following below this CDDL HEADER, with the
  1749. // fields enclosed by brackets "[]" replaced with your own identifying
  1750. // information: Portions Copyright [yyyy] [name of copyright owner]
  1751. //
  1752. // CDDL HEADER END
  1753. // Copyright 2013 Garrett D'Amore <garrett@damore.org>
  1754. // Copyright 2016 Joyent, Inc.
  1755. // Copyright 2022 Oxide Computer Company
  1756. //
  1757. // Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  1758. // Use is subject to license terms.
  1759. // CDDL HEADER START
  1760. //
  1761. // The contents of this file are subject to the terms of the
  1762. // Common Development and Distribution License, Version 1.0 only
  1763. // (the "License"). You may not use this file except in compliance
  1764. // with the License.
  1765. //
  1766. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  1767. // or http://www.opensolaris.org/os/licensing.
  1768. // See the License for the specific language governing permissions
  1769. // and limitations under the License.
  1770. //
  1771. // When distributing Covered Code, include this CDDL HEADER in each
  1772. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  1773. // If applicable, add the following below this CDDL HEADER, with the
  1774. // fields enclosed by brackets "[]" replaced with your own identifying
  1775. // information: Portions Copyright [yyyy] [name of copyright owner]
  1776. //
  1777. // CDDL HEADER END
  1778. // Copyright 2005 Sun Microsystems, Inc. All rights reserved.
  1779. // Use is subject to license terms.
  1780. // Implementation-private. This header should not be included
  1781. // directly by an application. The application should instead
  1782. // include <time.h> which includes this header conditionally
  1783. // depending on which feature test macros are defined. By default,
  1784. // this header is included by <time.h>. X/Open and POSIX
  1785. // standards requirements result in this header being included
  1786. // by <time.h> only under a restricted set of conditions.
  1787. // DO NOT EDIT THIS FILE.
  1788. //
  1789. // It has been auto-edited by fixincludes from:
  1790. //
  1791. // "/usr/include/sys/feature_tests.h"
  1792. //
  1793. // This had to be done to correct non-standard usages in the
  1794. // original, manufacturer supplied header file.
  1795. // CDDL HEADER START
  1796. //
  1797. // The contents of this file are subject to the terms of the
  1798. // Common Development and Distribution License (the "License").
  1799. // You may not use this file except in compliance with the License.
  1800. //
  1801. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  1802. // or http://www.opensolaris.org/os/licensing.
  1803. // See the License for the specific language governing permissions
  1804. // and limitations under the License.
  1805. //
  1806. // When distributing Covered Code, include this CDDL HEADER in each
  1807. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  1808. // If applicable, add the following below this CDDL HEADER, with the
  1809. // fields enclosed by brackets "[]" replaced with your own identifying
  1810. // information: Portions Copyright [yyyy] [name of copyright owner]
  1811. //
  1812. // CDDL HEADER END
  1813. // Copyright 2013 Garrett D'Amore <garrett@damore.org>
  1814. // Copyright 2016 Joyent, Inc.
  1815. // Copyright 2022 Oxide Computer Company
  1816. //
  1817. // Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  1818. // Use is subject to license terms.
  1819. // Time expressed in seconds and nanoseconds
  1820. type Timespec = struct {
  1821. Ftv_sec int64
  1822. Ftv_nsec int64
  1823. } /* time_impl.h:57:9 */
  1824. // used by UFS
  1825. // END CSTYLED
  1826. // Nested include for BSD/sockets source compatibility.
  1827. // (The select macros used to be defined here).
  1828. // CDDL HEADER START
  1829. //
  1830. // The contents of this file are subject to the terms of the
  1831. // Common Development and Distribution License (the "License").
  1832. // You may not use this file except in compliance with the License.
  1833. //
  1834. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  1835. // or http://www.opensolaris.org/os/licensing.
  1836. // See the License for the specific language governing permissions
  1837. // and limitations under the License.
  1838. //
  1839. // When distributing Covered Code, include this CDDL HEADER in each
  1840. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  1841. // If applicable, add the following below this CDDL HEADER, with the
  1842. // fields enclosed by brackets "[]" replaced with your own identifying
  1843. // information: Portions Copyright [yyyy] [name of copyright owner]
  1844. //
  1845. // CDDL HEADER END
  1846. // Copyright 2014 Garrett D'Amore <garrett@damore.org>
  1847. //
  1848. // Copyright 2013 Nexenta Systems, Inc. All rights reserved.
  1849. //
  1850. // Copyright 2010 Sun Microsystems, Inc. All rights reserved.
  1851. // Use is subject to license terms.
  1852. // Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
  1853. // All Rights Reserved
  1854. // University Copyright- Copyright (c) 1982, 1986, 1988
  1855. // The Regents of the University of California
  1856. // All Rights Reserved
  1857. //
  1858. // University Acknowledgment- Portions of this document are derived from
  1859. // software developed by the University of California, Berkeley, and its
  1860. // contributors.
  1861. // DO NOT EDIT THIS FILE.
  1862. //
  1863. // It has been auto-edited by fixincludes from:
  1864. //
  1865. // "/usr/include/sys/feature_tests.h"
  1866. //
  1867. // This had to be done to correct non-standard usages in the
  1868. // original, manufacturer supplied header file.
  1869. // CDDL HEADER START
  1870. //
  1871. // The contents of this file are subject to the terms of the
  1872. // Common Development and Distribution License (the "License").
  1873. // You may not use this file except in compliance with the License.
  1874. //
  1875. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  1876. // or http://www.opensolaris.org/os/licensing.
  1877. // See the License for the specific language governing permissions
  1878. // and limitations under the License.
  1879. //
  1880. // When distributing Covered Code, include this CDDL HEADER in each
  1881. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  1882. // If applicable, add the following below this CDDL HEADER, with the
  1883. // fields enclosed by brackets "[]" replaced with your own identifying
  1884. // information: Portions Copyright [yyyy] [name of copyright owner]
  1885. //
  1886. // CDDL HEADER END
  1887. // Copyright 2013 Garrett D'Amore <garrett@damore.org>
  1888. // Copyright 2016 Joyent, Inc.
  1889. // Copyright 2022 Oxide Computer Company
  1890. //
  1891. // Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  1892. // Use is subject to license terms.
  1893. // CDDL HEADER START
  1894. //
  1895. // The contents of this file are subject to the terms of the
  1896. // Common Development and Distribution License, Version 1.0 only
  1897. // (the "License"). You may not use this file except in compliance
  1898. // with the License.
  1899. //
  1900. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  1901. // or http://www.opensolaris.org/os/licensing.
  1902. // See the License for the specific language governing permissions
  1903. // and limitations under the License.
  1904. //
  1905. // When distributing Covered Code, include this CDDL HEADER in each
  1906. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  1907. // If applicable, add the following below this CDDL HEADER, with the
  1908. // fields enclosed by brackets "[]" replaced with your own identifying
  1909. // information: Portions Copyright [yyyy] [name of copyright owner]
  1910. //
  1911. // CDDL HEADER END
  1912. // Copyright 2005 Sun Microsystems, Inc. All rights reserved.
  1913. // Use is subject to license terms.
  1914. // Implementation-private. This header should not be included
  1915. // directly by an application. The application should instead
  1916. // include <time.h> which includes this header conditionally
  1917. // depending on which feature test macros are defined. By default,
  1918. // this header is included by <time.h>. X/Open and POSIX
  1919. // standards requirements result in this header being included
  1920. // by <time.h> only under a restricted set of conditions.
  1921. // DO NOT EDIT THIS FILE.
  1922. //
  1923. // It has been auto-edited by fixincludes from:
  1924. //
  1925. // "/usr/include/sys/feature_tests.h"
  1926. //
  1927. // This had to be done to correct non-standard usages in the
  1928. // original, manufacturer supplied header file.
  1929. // CDDL HEADER START
  1930. //
  1931. // The contents of this file are subject to the terms of the
  1932. // Common Development and Distribution License (the "License").
  1933. // You may not use this file except in compliance with the License.
  1934. //
  1935. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  1936. // or http://www.opensolaris.org/os/licensing.
  1937. // See the License for the specific language governing permissions
  1938. // and limitations under the License.
  1939. //
  1940. // When distributing Covered Code, include this CDDL HEADER in each
  1941. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  1942. // If applicable, add the following below this CDDL HEADER, with the
  1943. // fields enclosed by brackets "[]" replaced with your own identifying
  1944. // information: Portions Copyright [yyyy] [name of copyright owner]
  1945. //
  1946. // CDDL HEADER END
  1947. // Copyright 2013 Garrett D'Amore <garrett@damore.org>
  1948. // Copyright 2016 Joyent, Inc.
  1949. // Copyright 2022 Oxide Computer Company
  1950. //
  1951. // Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  1952. // Use is subject to license terms.
  1953. // Time expressed in seconds and nanoseconds
  1954. type Timespec_t = Timespec /* time_impl.h:60:3 */
  1955. type Timestruc_t = Timespec /* time_impl.h:81:25 */ // definition per SVr4
  1956. // The following has been left in for backward compatibility. Portable
  1957. // applications should not use the structure name timestruc.
  1958. // Timer specification
  1959. type Itimerspec = struct {
  1960. Fit_interval struct {
  1961. Ftv_sec int64
  1962. Ftv_nsec int64
  1963. }
  1964. Fit_value struct {
  1965. Ftv_sec int64
  1966. Ftv_nsec int64
  1967. }
  1968. } /* time_impl.h:95:9 */
  1969. // definition per SVr4
  1970. // The following has been left in for backward compatibility. Portable
  1971. // applications should not use the structure name timestruc.
  1972. // Timer specification
  1973. type Itimerspec_t = Itimerspec /* time_impl.h:98:3 */
  1974. // Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
  1975. // All Rights Reserved
  1976. // Copyright (c) 1982, 1986, 1993 Regents of the University of California.
  1977. // All rights reserved. The Berkeley software License Agreement
  1978. // specifies the terms and conditions for redistribution.
  1979. // Copyright 2014 Garrett D'Amore <garrett@damore.org>
  1980. //
  1981. // Copyright 2009 Sun Microsystems, Inc. All rights reserved.
  1982. // Use is subject to license terms.
  1983. //
  1984. // Copyright 2013 Nexenta Systems, Inc. All rights reserved.
  1985. // Copyright 2016 Joyent, Inc.
  1986. // Copyright 2020 OmniOS Community Edition (OmniOSce) Association.
  1987. // Copyright (c) 2013, 2016 by Delphix. All rights reserved.
  1988. // The sigset_t type is defined in <sys/signal.h> and duplicated
  1989. // in <sys/ucontext.h> as a result of XPG4v2 requirements. XPG6
  1990. // now allows the visibility of signal.h in this header, however
  1991. // an order of inclusion problem occurs as a result of inclusion
  1992. // of <sys/select.h> in <signal.h> under certain conditions.
  1993. // Rather than include <sys/signal.h> here, we've duplicated
  1994. // the sigset_t type instead. This type is required for the XPG6
  1995. // introduced pselect() function also declared in this header.
  1996. type Sigset_t = struct{ F__sigbits [4]uint32 } /* select.h:76:3 */
  1997. // Select uses bit masks of file descriptors in longs.
  1998. // These macros manipulate such bit fields.
  1999. // FD_SETSIZE may be defined by the user, but the default here
  2000. // should be >= RLIM_FD_MAX.
  2001. type Fd_mask = int64 /* select.h:92:14 */
  2002. type Fds_mask = int64 /* select.h:94:14 */
  2003. // The value of _NBBY needs to be consistant with the value
  2004. // of NBBY in <sys/param.h>.
  2005. type Fd_set1 = struct{ Ffds_bits [1024]int64 } /* select.h:120:9 */
  2006. // The value of _NBBY needs to be consistant with the value
  2007. // of NBBY in <sys/param.h>.
  2008. type Fd_set = Fd_set1 /* select.h:125:3 */
  2009. // _VOID was defined to be either void or char but this is not
  2010. // required because previous SunOS compilers have accepted the void
  2011. // type. However, because many system header and source files use the
  2012. // void keyword, the volatile keyword, and ANSI C function prototypes,
  2013. // non-ANSI compilers cannot compile the system anyway. The _VOID macro
  2014. // should therefore not be used and remains for source compatibility
  2015. // only.
  2016. // CSTYLED
  2017. // Operations on timevals.
  2018. // Names of the interval timers, and structure
  2019. // defining a timer setting.
  2020. // time and when system is running on
  2021. // behalf of the process.
  2022. // time profiling of multithreaded
  2023. // programs.
  2024. type Itimerval = struct {
  2025. Fit_interval struct {
  2026. Ftv_sec int64
  2027. Ftv_usec int64
  2028. }
  2029. Fit_value struct {
  2030. Ftv_sec int64
  2031. Ftv_usec int64
  2032. }
  2033. } /* time.h:209:1 */
  2034. // Definitions for commonly used resolutions.
  2035. // Time expressed as a 64-bit nanosecond counter.
  2036. type Hrtime_t = int64 /* time.h:265:20 */
  2037. // The inclusion of <time.h> is historical and was added for
  2038. // backward compatibility in delta 1.2 when a number of definitions
  2039. // were moved out of <sys/time.h>. More recently, the timespec and
  2040. // itimerspec structure definitions, along with the _CLOCK_*, CLOCK_*,
  2041. // _TIMER_*, and TIMER_* symbols were moved to <sys/time_impl.h>,
  2042. // which is now included by <time.h>. This change was due to POSIX
  2043. // 1003.1b-1993 and X/Open UNIX 98 requirements. For non-POSIX and
  2044. // non-X/Open applications, including this header will still make
  2045. // visible these definitions.
  2046. // CDDL HEADER START
  2047. //
  2048. // The contents of this file are subject to the terms of the
  2049. // Common Development and Distribution License (the "License").
  2050. // You may not use this file except in compliance with the License.
  2051. //
  2052. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  2053. // or http://www.opensolaris.org/os/licensing.
  2054. // See the License for the specific language governing permissions
  2055. // and limitations under the License.
  2056. //
  2057. // When distributing Covered Code, include this CDDL HEADER in each
  2058. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  2059. // If applicable, add the following below this CDDL HEADER, with the
  2060. // fields enclosed by brackets "[]" replaced with your own identifying
  2061. // information: Portions Copyright [yyyy] [name of copyright owner]
  2062. //
  2063. // CDDL HEADER END
  2064. // Copyright (c) 1988 AT&T
  2065. // All Rights Reserved
  2066. // Copyright 2014 Garrett D'Amore <garrett@damore.org>
  2067. //
  2068. // Copyright 2007 Sun Microsystems, Inc. All rights reserved.
  2069. // Use is subject to license terms.
  2070. // Copyright 2010 Nexenta Systems, Inc. Al rights reserved.
  2071. // Copyright 2016 Joyent, Inc.
  2072. // DO NOT EDIT THIS FILE.
  2073. //
  2074. // It has been auto-edited by fixincludes from:
  2075. //
  2076. // "/usr/include/sys/feature_tests.h"
  2077. //
  2078. // This had to be done to correct non-standard usages in the
  2079. // original, manufacturer supplied header file.
  2080. // CDDL HEADER START
  2081. //
  2082. // The contents of this file are subject to the terms of the
  2083. // Common Development and Distribution License (the "License").
  2084. // You may not use this file except in compliance with the License.
  2085. //
  2086. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  2087. // or http://www.opensolaris.org/os/licensing.
  2088. // See the License for the specific language governing permissions
  2089. // and limitations under the License.
  2090. //
  2091. // When distributing Covered Code, include this CDDL HEADER in each
  2092. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  2093. // If applicable, add the following below this CDDL HEADER, with the
  2094. // fields enclosed by brackets "[]" replaced with your own identifying
  2095. // information: Portions Copyright [yyyy] [name of copyright owner]
  2096. //
  2097. // CDDL HEADER END
  2098. // Copyright 2013 Garrett D'Amore <garrett@damore.org>
  2099. // Copyright 2016 Joyent, Inc.
  2100. // Copyright 2022 Oxide Computer Company
  2101. //
  2102. // Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  2103. // Use is subject to license terms.
  2104. // CDDL HEADER START
  2105. //
  2106. // The contents of this file are subject to the terms of the
  2107. // Common Development and Distribution License, Version 1.0 only
  2108. // (the "License"). You may not use this file except in compliance
  2109. // with the License.
  2110. //
  2111. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  2112. // or http://www.opensolaris.org/os/licensing.
  2113. // See the License for the specific language governing permissions
  2114. // and limitations under the License.
  2115. //
  2116. // When distributing Covered Code, include this CDDL HEADER in each
  2117. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  2118. // If applicable, add the following below this CDDL HEADER, with the
  2119. // fields enclosed by brackets "[]" replaced with your own identifying
  2120. // information: Portions Copyright [yyyy] [name of copyright owner]
  2121. //
  2122. // CDDL HEADER END
  2123. // Copyright (c) 1988 AT&T
  2124. // All Rights Reserved
  2125. // Copyright 2014 Garrett D'Amore <garrett@damore.org>
  2126. // Copyright 2014 PALO, Richard.
  2127. //
  2128. // Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  2129. // Use is subject to license terms.
  2130. // An application should not include this header directly. Instead it
  2131. // should be included only through the inclusion of other Sun headers.
  2132. //
  2133. // The contents of this header is limited to identifiers specified in the
  2134. // C Standard. Any new identifiers specified in future amendments to the
  2135. // C Standard must be placed in this header. If these new identifiers
  2136. // are required to also be in the C++ Standard "std" namespace, then for
  2137. // anything other than macro definitions, corresponding "using" directives
  2138. // must also be added to <time.h.h>.
  2139. // DO NOT EDIT THIS FILE.
  2140. //
  2141. // It has been auto-edited by fixincludes from:
  2142. //
  2143. // "/usr/include/sys/feature_tests.h"
  2144. //
  2145. // This had to be done to correct non-standard usages in the
  2146. // original, manufacturer supplied header file.
  2147. // CDDL HEADER START
  2148. //
  2149. // The contents of this file are subject to the terms of the
  2150. // Common Development and Distribution License (the "License").
  2151. // You may not use this file except in compliance with the License.
  2152. //
  2153. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  2154. // or http://www.opensolaris.org/os/licensing.
  2155. // See the License for the specific language governing permissions
  2156. // and limitations under the License.
  2157. //
  2158. // When distributing Covered Code, include this CDDL HEADER in each
  2159. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  2160. // If applicable, add the following below this CDDL HEADER, with the
  2161. // fields enclosed by brackets "[]" replaced with your own identifying
  2162. // information: Portions Copyright [yyyy] [name of copyright owner]
  2163. //
  2164. // CDDL HEADER END
  2165. // Copyright 2013 Garrett D'Amore <garrett@damore.org>
  2166. // Copyright 2016 Joyent, Inc.
  2167. // Copyright 2022 Oxide Computer Company
  2168. //
  2169. // Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  2170. // Use is subject to license terms.
  2171. // This file and its contents are supplied under the terms of the
  2172. // Common Development and Distribution License ("CDDL"), version 1.0.
  2173. // You may only use this file in accordance with the terms of version
  2174. // 1.0 of the CDDL.
  2175. //
  2176. // A full copy of the text of the CDDL should have accompanied this
  2177. // source. A copy of the CDDL is also available via the Internet at
  2178. // http://www.illumos.org/license/CDDL.
  2179. // Copyright 2014-2016 PALO, Richard.
  2180. // DO NOT EDIT THIS FILE.
  2181. //
  2182. // It has been auto-edited by fixincludes from:
  2183. //
  2184. // "/usr/include/sys/feature_tests.h"
  2185. //
  2186. // This had to be done to correct non-standard usages in the
  2187. // original, manufacturer supplied header file.
  2188. // CDDL HEADER START
  2189. //
  2190. // The contents of this file are subject to the terms of the
  2191. // Common Development and Distribution License (the "License").
  2192. // You may not use this file except in compliance with the License.
  2193. //
  2194. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  2195. // or http://www.opensolaris.org/os/licensing.
  2196. // See the License for the specific language governing permissions
  2197. // and limitations under the License.
  2198. //
  2199. // When distributing Covered Code, include this CDDL HEADER in each
  2200. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  2201. // If applicable, add the following below this CDDL HEADER, with the
  2202. // fields enclosed by brackets "[]" replaced with your own identifying
  2203. // information: Portions Copyright [yyyy] [name of copyright owner]
  2204. //
  2205. // CDDL HEADER END
  2206. // Copyright 2013 Garrett D'Amore <garrett@damore.org>
  2207. // Copyright 2016 Joyent, Inc.
  2208. // Copyright 2022 Oxide Computer Company
  2209. //
  2210. // Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  2211. // Use is subject to license terms.
  2212. // POSIX.1-2008 requires that the NULL macro be cast to type void *.
  2213. type Tm = struct {
  2214. Ftm_sec int32
  2215. Ftm_min int32
  2216. Ftm_hour int32
  2217. Ftm_mday int32
  2218. Ftm_mon int32
  2219. Ftm_year int32
  2220. Ftm_wday int32
  2221. Ftm_yday int32
  2222. Ftm_isdst int32
  2223. } /* time_iso.h:80:1 */
  2224. // Neither X/Open nor POSIX allow the inclusion of <signal.h> for the
  2225. // definition of the sigevent structure. Both require the inclusion
  2226. // of <signal.h> and <time.h> when using the timer_create() function.
  2227. // However, X/Open also specifies that the sigevent structure be defined
  2228. // in <time.h> as described in the header <signal.h>. This prevents
  2229. // compiler warnings for applications that only include <time.h> and not
  2230. // also <signal.h>. The sigval union and the sigevent structure is
  2231. // therefore defined both here and in <sys/siginfo.h> which gets included
  2232. // via inclusion of <signal.h>.
  2233. type Sigval = struct {
  2234. F__ccgo_pad1 [0]uint64
  2235. Fsival_int int32
  2236. F__ccgo_pad2 [4]byte
  2237. } /* time.h:125:1 */
  2238. type Sigevent = struct {
  2239. Fsigev_notify int32
  2240. Fsigev_signo int32
  2241. Fsigev_value struct {
  2242. F__ccgo_pad1 [0]uint64
  2243. Fsival_int int32
  2244. F__ccgo_pad2 [4]byte
  2245. }
  2246. Fsigev_notify_function uintptr
  2247. Fsigev_notify_attributes uintptr
  2248. F__sigev_pad2 int32
  2249. F__ccgo_pad1 [4]byte
  2250. } /* time.h:133:1 */
  2251. type Locale_t = uintptr /* time.h:292:24 */
  2252. // The inclusion of <sys/select.h> is needed for the FD_CLR,
  2253. // FD_ISSET, FD_SET, and FD_SETSIZE macros as well as the
  2254. // select() prototype defined in the XOpen specifications
  2255. // beginning with XSH4v2. Placement required after definition
  2256. // for itimerval.
  2257. // CDDL HEADER START
  2258. //
  2259. // The contents of this file are subject to the terms of the
  2260. // Common Development and Distribution License (the "License").
  2261. // You may not use this file except in compliance with the License.
  2262. //
  2263. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  2264. // or http://www.opensolaris.org/os/licensing.
  2265. // See the License for the specific language governing permissions
  2266. // and limitations under the License.
  2267. //
  2268. // When distributing Covered Code, include this CDDL HEADER in each
  2269. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  2270. // If applicable, add the following below this CDDL HEADER, with the
  2271. // fields enclosed by brackets "[]" replaced with your own identifying
  2272. // information: Portions Copyright [yyyy] [name of copyright owner]
  2273. //
  2274. // CDDL HEADER END
  2275. // Copyright 2014 Garrett D'Amore <garrett@damore.org>
  2276. //
  2277. // Copyright 2013 Nexenta Systems, Inc. All rights reserved.
  2278. //
  2279. // Copyright 2010 Sun Microsystems, Inc. All rights reserved.
  2280. // Use is subject to license terms.
  2281. // Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
  2282. // All Rights Reserved
  2283. // University Copyright- Copyright (c) 1982, 1986, 1988
  2284. // The Regents of the University of California
  2285. // All Rights Reserved
  2286. //
  2287. // University Acknowledgment- Portions of this document are derived from
  2288. // software developed by the University of California, Berkeley, and its
  2289. // contributors.
  2290. // CDDL HEADER START
  2291. //
  2292. // The contents of this file are subject to the terms of the
  2293. // Common Development and Distribution License (the "License").
  2294. // You may not use this file except in compliance with the License.
  2295. //
  2296. // You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  2297. // or http://www.opensolaris.org/os/licensing.
  2298. // See the License for the specific language governing permissions
  2299. // and limitations under the License.
  2300. //
  2301. // When distributing Covered Code, include this CDDL HEADER in each
  2302. // file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  2303. // If applicable, add the following below this CDDL HEADER, with the
  2304. // fields enclosed by brackets "[]" replaced with your own identifying
  2305. // information: Portions Copyright [yyyy] [name of copyright owner]
  2306. //
  2307. // CDDL HEADER END
  2308. // Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
  2309. // All Rights Reserved
  2310. // Copyright 2009 Sun Microsystems, Inc. All rights reserved.
  2311. // Use is subject to license terms.
  2312. //
  2313. // Copyright 2013 Nexenta Systems, Inc. All rights reserved.
  2314. // Copyright 2016 Joyent, Inc.
  2315. // Copyright 2021 Oxide Computer Company
  2316. // _POSIX_VDISABLE has been defined in <sys/termios.h> since the
  2317. // introduction of the header. The POSIX standard, IEEE Std.
  2318. // 1003.1-1988 also required the existence of _POSIX_VDISABLE in
  2319. // this header. Subsequent versions of the IEEE Standard as well
  2320. // as the X/Open specifications required that _POSIX_VDISABLE be
  2321. // defined in <unistd.h> while still allowing for it's existence
  2322. // here. With the introduction of XPG6, _POSIX_VDISABLE can only
  2323. // be defined in <unistd.h>.
  2324. // required by termio.h and VCEOF/VCEOL
  2325. // some defines required by POSIX
  2326. // types defined by POSIX. These are better off in types.h, but
  2327. // the standard says that they have to be in termios.h.
  2328. type Tcflag_t = uint32 /* termios.h:81:22 */
  2329. type Cc_t = uint8 /* termios.h:82:23 */
  2330. type Speed_t = uint32 /* termios.h:83:22 */
  2331. // Ioctl control packet
  2332. type Termios = struct {
  2333. Fc_iflag uint32
  2334. Fc_oflag uint32
  2335. Fc_cflag uint32
  2336. Fc_lflag uint32
  2337. Fc_cc [19]uint8
  2338. F__ccgo_pad1 [1]byte
  2339. } /* termios.h:88:1 */
  2340. // control characters
  2341. // 18 through 19 reserved for future use
  2342. // control characters form Xenix termio.h
  2343. // S5 default control chars
  2344. // CINTR, CERASE and CKILL modified to SunOS traditional values
  2345. // input modes
  2346. // output modes
  2347. // control modes
  2348. // 4.4BSD hardware flow control flags
  2349. // line discipline 0 modes
  2350. // Slots reserved for 386/XENIX compatibility - keyboard control
  2351. // Softcarrier ioctls
  2352. // termios ioctls
  2353. // linux terminal ioctls we need to be aware of
  2354. // The VMIN and VTIME and solaris overlap with VEOF and VEOL - This is
  2355. // perfectly legal except, linux expects them to be separate. So we keep
  2356. // them separately.
  2357. type Lx_cc = struct {
  2358. Fveof uint8
  2359. Fveol uint8
  2360. Fvmin uint8
  2361. Fvtime uint8
  2362. } /* termios.h:376:1 */
  2363. // NTP PPS ioctls
  2364. // Argument filled in by TIOCGPPSEV
  2365. type Ppsclockev = struct {
  2366. Ftv struct {
  2367. Ftv_sec int64
  2368. Ftv_usec int64
  2369. }
  2370. Fserial uint32
  2371. F__ccgo_pad1 [4]byte
  2372. } /* termios.h:391:1 */
  2373. // termios option flags
  2374. // TIOC ioctls for BSD, ptys, job control and modem control
  2375. // Slots for 386/XENIX compatibility
  2376. // BSD includes these ioctls in ttold.h
  2377. // BSD ioctls that are not the same as XENIX are included here.
  2378. // There are also some relevant ioctls from SUN/BSD sys/ttycom.h
  2379. // BSD pty ioctls like TIOCPKT are not supported in SVR4.
  2380. // POSIX job control ioctls
  2381. // Miscellaneous
  2382. // Modem control
  2383. // pseudo-tty
  2384. // Some more 386 xenix stuff
  2385. // Slots for 386 compatibility
  2386. // These are retained for 386/XENIX compatibility.
  2387. // Returns a non-zero value if there
  2388. // are characters in the input queue.
  2389. //
  2390. // XXX - somebody is confused here. V7 had no such "ioctl", although XENIX may
  2391. // have added it; 4BSD had FIONREAD, which returned the number of characters
  2392. // waiting, and was supposed to work on all descriptors (i.e., every driver
  2393. // should make a stab at implementing it).
  2394. // Speeds
  2395. // Windowing structure to support JWINSIZE/TIOCSWINSZ/TIOCGWINSZ
  2396. type Winsize = struct {
  2397. Fws_row uint16
  2398. Fws_col uint16
  2399. Fws_xpixel uint16
  2400. Fws_ypixel uint16
  2401. } /* termios.h:580:1 */
  2402. var _ int8 /* gen.c:2:13: */