You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

691 lines
12 KiB

  1. // cgo -godefs -objdir=/tmp/arm64/cgo -- -Wall -Werror -static -I/tmp/arm64/include -fsigned-char linux/types.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. //go:build arm64 && linux
  4. // +build arm64,linux
  5. package unix
  6. const (
  7. SizeofPtr = 0x8
  8. SizeofLong = 0x8
  9. )
  10. type (
  11. _C_long int64
  12. )
  13. type Timespec struct {
  14. Sec int64
  15. Nsec int64
  16. }
  17. type Timeval struct {
  18. Sec int64
  19. Usec int64
  20. }
  21. type Timex struct {
  22. Modes uint32
  23. Offset int64
  24. Freq int64
  25. Maxerror int64
  26. Esterror int64
  27. Status int32
  28. Constant int64
  29. Precision int64
  30. Tolerance int64
  31. Time Timeval
  32. Tick int64
  33. Ppsfreq int64
  34. Jitter int64
  35. Shift int32
  36. Stabil int64
  37. Jitcnt int64
  38. Calcnt int64
  39. Errcnt int64
  40. Stbcnt int64
  41. Tai int32
  42. _ [44]byte
  43. }
  44. type Time_t int64
  45. type Tms struct {
  46. Utime int64
  47. Stime int64
  48. Cutime int64
  49. Cstime int64
  50. }
  51. type Utimbuf struct {
  52. Actime int64
  53. Modtime int64
  54. }
  55. type Rusage struct {
  56. Utime Timeval
  57. Stime Timeval
  58. Maxrss int64
  59. Ixrss int64
  60. Idrss int64
  61. Isrss int64
  62. Minflt int64
  63. Majflt int64
  64. Nswap int64
  65. Inblock int64
  66. Oublock int64
  67. Msgsnd int64
  68. Msgrcv int64
  69. Nsignals int64
  70. Nvcsw int64
  71. Nivcsw int64
  72. }
  73. type Stat_t struct {
  74. Dev uint64
  75. Ino uint64
  76. Mode uint32
  77. Nlink uint32
  78. Uid uint32
  79. Gid uint32
  80. Rdev uint64
  81. _ uint64
  82. Size int64
  83. Blksize int32
  84. _ int32
  85. Blocks int64
  86. Atim Timespec
  87. Mtim Timespec
  88. Ctim Timespec
  89. _ [2]int32
  90. }
  91. type Dirent struct {
  92. Ino uint64
  93. Off int64
  94. Reclen uint16
  95. Type uint8
  96. Name [256]int8
  97. _ [5]byte
  98. }
  99. type Flock_t struct {
  100. Type int16
  101. Whence int16
  102. Start int64
  103. Len int64
  104. Pid int32
  105. _ [4]byte
  106. }
  107. type DmNameList struct {
  108. Dev uint64
  109. Next uint32
  110. Name [0]byte
  111. _ [4]byte
  112. }
  113. const (
  114. FADV_DONTNEED = 0x4
  115. FADV_NOREUSE = 0x5
  116. )
  117. type RawSockaddrNFCLLCP struct {
  118. Sa_family uint16
  119. Dev_idx uint32
  120. Target_idx uint32
  121. Nfc_protocol uint32
  122. Dsap uint8
  123. Ssap uint8
  124. Service_name [63]uint8
  125. Service_name_len uint64
  126. }
  127. type RawSockaddr struct {
  128. Family uint16
  129. Data [14]int8
  130. }
  131. type RawSockaddrAny struct {
  132. Addr RawSockaddr
  133. Pad [96]int8
  134. }
  135. type Iovec struct {
  136. Base *byte
  137. Len uint64
  138. }
  139. type Msghdr struct {
  140. Name *byte
  141. Namelen uint32
  142. Iov *Iovec
  143. Iovlen uint64
  144. Control *byte
  145. Controllen uint64
  146. Flags int32
  147. _ [4]byte
  148. }
  149. type Cmsghdr struct {
  150. Len uint64
  151. Level int32
  152. Type int32
  153. }
  154. type ifreq struct {
  155. Ifrn [16]byte
  156. Ifru [24]byte
  157. }
  158. const (
  159. SizeofSockaddrNFCLLCP = 0x60
  160. SizeofIovec = 0x10
  161. SizeofMsghdr = 0x38
  162. SizeofCmsghdr = 0x10
  163. )
  164. const (
  165. SizeofSockFprog = 0x10
  166. )
  167. type PtraceRegs struct {
  168. Regs [31]uint64
  169. Sp uint64
  170. Pc uint64
  171. Pstate uint64
  172. }
  173. type FdSet struct {
  174. Bits [16]int64
  175. }
  176. type Sysinfo_t struct {
  177. Uptime int64
  178. Loads [3]uint64
  179. Totalram uint64
  180. Freeram uint64
  181. Sharedram uint64
  182. Bufferram uint64
  183. Totalswap uint64
  184. Freeswap uint64
  185. Procs uint16
  186. Pad uint16
  187. Totalhigh uint64
  188. Freehigh uint64
  189. Unit uint32
  190. _ [0]int8
  191. _ [4]byte
  192. }
  193. type Ustat_t struct {
  194. Tfree int32
  195. Tinode uint64
  196. Fname [6]int8
  197. Fpack [6]int8
  198. _ [4]byte
  199. }
  200. type EpollEvent struct {
  201. Events uint32
  202. PadFd int32
  203. Fd int32
  204. Pad int32
  205. }
  206. const (
  207. OPEN_TREE_CLOEXEC = 0x80000
  208. )
  209. const (
  210. POLLRDHUP = 0x2000
  211. )
  212. type Sigset_t struct {
  213. Val [16]uint64
  214. }
  215. const _C__NSIG = 0x41
  216. const (
  217. SIG_BLOCK = 0x0
  218. SIG_UNBLOCK = 0x1
  219. SIG_SETMASK = 0x2
  220. )
  221. type Siginfo struct {
  222. Signo int32
  223. Errno int32
  224. Code int32
  225. _ int32
  226. _ [112]byte
  227. }
  228. type Termios struct {
  229. Iflag uint32
  230. Oflag uint32
  231. Cflag uint32
  232. Lflag uint32
  233. Line uint8
  234. Cc [19]uint8
  235. Ispeed uint32
  236. Ospeed uint32
  237. }
  238. type Taskstats struct {
  239. Version uint16
  240. Ac_exitcode uint32
  241. Ac_flag uint8
  242. Ac_nice uint8
  243. Cpu_count uint64
  244. Cpu_delay_total uint64
  245. Blkio_count uint64
  246. Blkio_delay_total uint64
  247. Swapin_count uint64
  248. Swapin_delay_total uint64
  249. Cpu_run_real_total uint64
  250. Cpu_run_virtual_total uint64
  251. Ac_comm [32]int8
  252. Ac_sched uint8
  253. Ac_pad [3]uint8
  254. _ [4]byte
  255. Ac_uid uint32
  256. Ac_gid uint32
  257. Ac_pid uint32
  258. Ac_ppid uint32
  259. Ac_btime uint32
  260. Ac_etime uint64
  261. Ac_utime uint64
  262. Ac_stime uint64
  263. Ac_minflt uint64
  264. Ac_majflt uint64
  265. Coremem uint64
  266. Virtmem uint64
  267. Hiwater_rss uint64
  268. Hiwater_vm uint64
  269. Read_char uint64
  270. Write_char uint64
  271. Read_syscalls uint64
  272. Write_syscalls uint64
  273. Read_bytes uint64
  274. Write_bytes uint64
  275. Cancelled_write_bytes uint64
  276. Nvcsw uint64
  277. Nivcsw uint64
  278. Ac_utimescaled uint64
  279. Ac_stimescaled uint64
  280. Cpu_scaled_run_real_total uint64
  281. Freepages_count uint64
  282. Freepages_delay_total uint64
  283. Thrashing_count uint64
  284. Thrashing_delay_total uint64
  285. Ac_btime64 uint64
  286. Compact_count uint64
  287. Compact_delay_total uint64
  288. Ac_tgid uint32
  289. Ac_tgetime uint64
  290. Ac_exe_dev uint64
  291. Ac_exe_inode uint64
  292. Wpcopy_count uint64
  293. Wpcopy_delay_total uint64
  294. }
  295. type cpuMask uint64
  296. const (
  297. _NCPUBITS = 0x40
  298. )
  299. const (
  300. CBitFieldMaskBit0 = 0x1
  301. CBitFieldMaskBit1 = 0x2
  302. CBitFieldMaskBit2 = 0x4
  303. CBitFieldMaskBit3 = 0x8
  304. CBitFieldMaskBit4 = 0x10
  305. CBitFieldMaskBit5 = 0x20
  306. CBitFieldMaskBit6 = 0x40
  307. CBitFieldMaskBit7 = 0x80
  308. CBitFieldMaskBit8 = 0x100
  309. CBitFieldMaskBit9 = 0x200
  310. CBitFieldMaskBit10 = 0x400
  311. CBitFieldMaskBit11 = 0x800
  312. CBitFieldMaskBit12 = 0x1000
  313. CBitFieldMaskBit13 = 0x2000
  314. CBitFieldMaskBit14 = 0x4000
  315. CBitFieldMaskBit15 = 0x8000
  316. CBitFieldMaskBit16 = 0x10000
  317. CBitFieldMaskBit17 = 0x20000
  318. CBitFieldMaskBit18 = 0x40000
  319. CBitFieldMaskBit19 = 0x80000
  320. CBitFieldMaskBit20 = 0x100000
  321. CBitFieldMaskBit21 = 0x200000
  322. CBitFieldMaskBit22 = 0x400000
  323. CBitFieldMaskBit23 = 0x800000
  324. CBitFieldMaskBit24 = 0x1000000
  325. CBitFieldMaskBit25 = 0x2000000
  326. CBitFieldMaskBit26 = 0x4000000
  327. CBitFieldMaskBit27 = 0x8000000
  328. CBitFieldMaskBit28 = 0x10000000
  329. CBitFieldMaskBit29 = 0x20000000
  330. CBitFieldMaskBit30 = 0x40000000
  331. CBitFieldMaskBit31 = 0x80000000
  332. CBitFieldMaskBit32 = 0x100000000
  333. CBitFieldMaskBit33 = 0x200000000
  334. CBitFieldMaskBit34 = 0x400000000
  335. CBitFieldMaskBit35 = 0x800000000
  336. CBitFieldMaskBit36 = 0x1000000000
  337. CBitFieldMaskBit37 = 0x2000000000
  338. CBitFieldMaskBit38 = 0x4000000000
  339. CBitFieldMaskBit39 = 0x8000000000
  340. CBitFieldMaskBit40 = 0x10000000000
  341. CBitFieldMaskBit41 = 0x20000000000
  342. CBitFieldMaskBit42 = 0x40000000000
  343. CBitFieldMaskBit43 = 0x80000000000
  344. CBitFieldMaskBit44 = 0x100000000000
  345. CBitFieldMaskBit45 = 0x200000000000
  346. CBitFieldMaskBit46 = 0x400000000000
  347. CBitFieldMaskBit47 = 0x800000000000
  348. CBitFieldMaskBit48 = 0x1000000000000
  349. CBitFieldMaskBit49 = 0x2000000000000
  350. CBitFieldMaskBit50 = 0x4000000000000
  351. CBitFieldMaskBit51 = 0x8000000000000
  352. CBitFieldMaskBit52 = 0x10000000000000
  353. CBitFieldMaskBit53 = 0x20000000000000
  354. CBitFieldMaskBit54 = 0x40000000000000
  355. CBitFieldMaskBit55 = 0x80000000000000
  356. CBitFieldMaskBit56 = 0x100000000000000
  357. CBitFieldMaskBit57 = 0x200000000000000
  358. CBitFieldMaskBit58 = 0x400000000000000
  359. CBitFieldMaskBit59 = 0x800000000000000
  360. CBitFieldMaskBit60 = 0x1000000000000000
  361. CBitFieldMaskBit61 = 0x2000000000000000
  362. CBitFieldMaskBit62 = 0x4000000000000000
  363. CBitFieldMaskBit63 = 0x8000000000000000
  364. )
  365. type SockaddrStorage struct {
  366. Family uint16
  367. Data [118]byte
  368. _ uint64
  369. }
  370. type HDGeometry struct {
  371. Heads uint8
  372. Sectors uint8
  373. Cylinders uint16
  374. Start uint64
  375. }
  376. type Statfs_t struct {
  377. Type int64
  378. Bsize int64
  379. Blocks uint64
  380. Bfree uint64
  381. Bavail uint64
  382. Files uint64
  383. Ffree uint64
  384. Fsid Fsid
  385. Namelen int64
  386. Frsize int64
  387. Flags int64
  388. Spare [4]int64
  389. }
  390. type TpacketHdr struct {
  391. Status uint64
  392. Len uint32
  393. Snaplen uint32
  394. Mac uint16
  395. Net uint16
  396. Sec uint32
  397. Usec uint32
  398. _ [4]byte
  399. }
  400. const (
  401. SizeofTpacketHdr = 0x20
  402. )
  403. type RTCPLLInfo struct {
  404. Ctrl int32
  405. Value int32
  406. Max int32
  407. Min int32
  408. Posmult int32
  409. Negmult int32
  410. Clock int64
  411. }
  412. type BlkpgPartition struct {
  413. Start int64
  414. Length int64
  415. Pno int32
  416. Devname [64]uint8
  417. Volname [64]uint8
  418. _ [4]byte
  419. }
  420. const (
  421. BLKPG = 0x1269
  422. )
  423. type XDPUmemReg struct {
  424. Addr uint64
  425. Len uint64
  426. Size uint32
  427. Headroom uint32
  428. Flags uint32
  429. _ [4]byte
  430. }
  431. type CryptoUserAlg struct {
  432. Name [64]int8
  433. Driver_name [64]int8
  434. Module_name [64]int8
  435. Type uint32
  436. Mask uint32
  437. Refcnt uint32
  438. Flags uint32
  439. }
  440. type CryptoStatAEAD struct {
  441. Type [64]int8
  442. Encrypt_cnt uint64
  443. Encrypt_tlen uint64
  444. Decrypt_cnt uint64
  445. Decrypt_tlen uint64
  446. Err_cnt uint64
  447. }
  448. type CryptoStatAKCipher struct {
  449. Type [64]int8
  450. Encrypt_cnt uint64
  451. Encrypt_tlen uint64
  452. Decrypt_cnt uint64
  453. Decrypt_tlen uint64
  454. Verify_cnt uint64
  455. Sign_cnt uint64
  456. Err_cnt uint64
  457. }
  458. type CryptoStatCipher struct {
  459. Type [64]int8
  460. Encrypt_cnt uint64
  461. Encrypt_tlen uint64
  462. Decrypt_cnt uint64
  463. Decrypt_tlen uint64
  464. Err_cnt uint64
  465. }
  466. type CryptoStatCompress struct {
  467. Type [64]int8
  468. Compress_cnt uint64
  469. Compress_tlen uint64
  470. Decompress_cnt uint64
  471. Decompress_tlen uint64
  472. Err_cnt uint64
  473. }
  474. type CryptoStatHash struct {
  475. Type [64]int8
  476. Hash_cnt uint64
  477. Hash_tlen uint64
  478. Err_cnt uint64
  479. }
  480. type CryptoStatKPP struct {
  481. Type [64]int8
  482. Setsecret_cnt uint64
  483. Generate_public_key_cnt uint64
  484. Compute_shared_secret_cnt uint64
  485. Err_cnt uint64
  486. }
  487. type CryptoStatRNG struct {
  488. Type [64]int8
  489. Generate_cnt uint64
  490. Generate_tlen uint64
  491. Seed_cnt uint64
  492. Err_cnt uint64
  493. }
  494. type CryptoStatLarval struct {
  495. Type [64]int8
  496. }
  497. type CryptoReportLarval struct {
  498. Type [64]int8
  499. }
  500. type CryptoReportHash struct {
  501. Type [64]int8
  502. Blocksize uint32
  503. Digestsize uint32
  504. }
  505. type CryptoReportCipher struct {
  506. Type [64]int8
  507. Blocksize uint32
  508. Min_keysize uint32
  509. Max_keysize uint32
  510. }
  511. type CryptoReportBlkCipher struct {
  512. Type [64]int8
  513. Geniv [64]int8
  514. Blocksize uint32
  515. Min_keysize uint32
  516. Max_keysize uint32
  517. Ivsize uint32
  518. }
  519. type CryptoReportAEAD struct {
  520. Type [64]int8
  521. Geniv [64]int8
  522. Blocksize uint32
  523. Maxauthsize uint32
  524. Ivsize uint32
  525. }
  526. type CryptoReportComp struct {
  527. Type [64]int8
  528. }
  529. type CryptoReportRNG struct {
  530. Type [64]int8
  531. Seedsize uint32
  532. }
  533. type CryptoReportAKCipher struct {
  534. Type [64]int8
  535. }
  536. type CryptoReportKPP struct {
  537. Type [64]int8
  538. }
  539. type CryptoReportAcomp struct {
  540. Type [64]int8
  541. }
  542. type LoopInfo struct {
  543. Number int32
  544. Device uint32
  545. Inode uint64
  546. Rdevice uint32
  547. Offset int32
  548. Encrypt_type int32
  549. Encrypt_key_size int32
  550. Flags int32
  551. Name [64]int8
  552. Encrypt_key [32]uint8
  553. Init [2]uint64
  554. Reserved [4]int8
  555. _ [4]byte
  556. }
  557. type TIPCSubscr struct {
  558. Seq TIPCServiceRange
  559. Timeout uint32
  560. Filter uint32
  561. Handle [8]int8
  562. }
  563. type TIPCSIOCLNReq struct {
  564. Peer uint32
  565. Id uint32
  566. Linkname [68]int8
  567. }
  568. type TIPCSIOCNodeIDReq struct {
  569. Peer uint32
  570. Id [16]int8
  571. }
  572. type PPSKInfo struct {
  573. Assert_sequence uint32
  574. Clear_sequence uint32
  575. Assert_tu PPSKTime
  576. Clear_tu PPSKTime
  577. Current_mode int32
  578. _ [4]byte
  579. }
  580. const (
  581. PPS_GETPARAMS = 0x800870a1
  582. PPS_SETPARAMS = 0x400870a2
  583. PPS_GETCAP = 0x800870a3
  584. PPS_FETCH = 0xc00870a4
  585. )
  586. const (
  587. PIDFD_NONBLOCK = 0x800
  588. )
  589. type SysvIpcPerm struct {
  590. Key int32
  591. Uid uint32
  592. Gid uint32
  593. Cuid uint32
  594. Cgid uint32
  595. Mode uint32
  596. _ [0]uint8
  597. Seq uint16
  598. _ uint16
  599. _ uint64
  600. _ uint64
  601. }
  602. type SysvShmDesc struct {
  603. Perm SysvIpcPerm
  604. Segsz uint64
  605. Atime int64
  606. Dtime int64
  607. Ctime int64
  608. Cpid int32
  609. Lpid int32
  610. Nattch uint64
  611. _ uint64
  612. _ uint64
  613. }