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.
 
 

685 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. type Siginfo struct {
  217. Signo int32
  218. Errno int32
  219. Code int32
  220. _ int32
  221. _ [112]byte
  222. }
  223. type Termios struct {
  224. Iflag uint32
  225. Oflag uint32
  226. Cflag uint32
  227. Lflag uint32
  228. Line uint8
  229. Cc [19]uint8
  230. Ispeed uint32
  231. Ospeed uint32
  232. }
  233. type Taskstats struct {
  234. Version uint16
  235. Ac_exitcode uint32
  236. Ac_flag uint8
  237. Ac_nice uint8
  238. Cpu_count uint64
  239. Cpu_delay_total uint64
  240. Blkio_count uint64
  241. Blkio_delay_total uint64
  242. Swapin_count uint64
  243. Swapin_delay_total uint64
  244. Cpu_run_real_total uint64
  245. Cpu_run_virtual_total uint64
  246. Ac_comm [32]int8
  247. Ac_sched uint8
  248. Ac_pad [3]uint8
  249. _ [4]byte
  250. Ac_uid uint32
  251. Ac_gid uint32
  252. Ac_pid uint32
  253. Ac_ppid uint32
  254. Ac_btime uint32
  255. Ac_etime uint64
  256. Ac_utime uint64
  257. Ac_stime uint64
  258. Ac_minflt uint64
  259. Ac_majflt uint64
  260. Coremem uint64
  261. Virtmem uint64
  262. Hiwater_rss uint64
  263. Hiwater_vm uint64
  264. Read_char uint64
  265. Write_char uint64
  266. Read_syscalls uint64
  267. Write_syscalls uint64
  268. Read_bytes uint64
  269. Write_bytes uint64
  270. Cancelled_write_bytes uint64
  271. Nvcsw uint64
  272. Nivcsw uint64
  273. Ac_utimescaled uint64
  274. Ac_stimescaled uint64
  275. Cpu_scaled_run_real_total uint64
  276. Freepages_count uint64
  277. Freepages_delay_total uint64
  278. Thrashing_count uint64
  279. Thrashing_delay_total uint64
  280. Ac_btime64 uint64
  281. Compact_count uint64
  282. Compact_delay_total uint64
  283. Ac_tgid uint32
  284. Ac_tgetime uint64
  285. Ac_exe_dev uint64
  286. Ac_exe_inode uint64
  287. Wpcopy_count uint64
  288. Wpcopy_delay_total uint64
  289. }
  290. type cpuMask uint64
  291. const (
  292. _NCPUBITS = 0x40
  293. )
  294. const (
  295. CBitFieldMaskBit0 = 0x1
  296. CBitFieldMaskBit1 = 0x2
  297. CBitFieldMaskBit2 = 0x4
  298. CBitFieldMaskBit3 = 0x8
  299. CBitFieldMaskBit4 = 0x10
  300. CBitFieldMaskBit5 = 0x20
  301. CBitFieldMaskBit6 = 0x40
  302. CBitFieldMaskBit7 = 0x80
  303. CBitFieldMaskBit8 = 0x100
  304. CBitFieldMaskBit9 = 0x200
  305. CBitFieldMaskBit10 = 0x400
  306. CBitFieldMaskBit11 = 0x800
  307. CBitFieldMaskBit12 = 0x1000
  308. CBitFieldMaskBit13 = 0x2000
  309. CBitFieldMaskBit14 = 0x4000
  310. CBitFieldMaskBit15 = 0x8000
  311. CBitFieldMaskBit16 = 0x10000
  312. CBitFieldMaskBit17 = 0x20000
  313. CBitFieldMaskBit18 = 0x40000
  314. CBitFieldMaskBit19 = 0x80000
  315. CBitFieldMaskBit20 = 0x100000
  316. CBitFieldMaskBit21 = 0x200000
  317. CBitFieldMaskBit22 = 0x400000
  318. CBitFieldMaskBit23 = 0x800000
  319. CBitFieldMaskBit24 = 0x1000000
  320. CBitFieldMaskBit25 = 0x2000000
  321. CBitFieldMaskBit26 = 0x4000000
  322. CBitFieldMaskBit27 = 0x8000000
  323. CBitFieldMaskBit28 = 0x10000000
  324. CBitFieldMaskBit29 = 0x20000000
  325. CBitFieldMaskBit30 = 0x40000000
  326. CBitFieldMaskBit31 = 0x80000000
  327. CBitFieldMaskBit32 = 0x100000000
  328. CBitFieldMaskBit33 = 0x200000000
  329. CBitFieldMaskBit34 = 0x400000000
  330. CBitFieldMaskBit35 = 0x800000000
  331. CBitFieldMaskBit36 = 0x1000000000
  332. CBitFieldMaskBit37 = 0x2000000000
  333. CBitFieldMaskBit38 = 0x4000000000
  334. CBitFieldMaskBit39 = 0x8000000000
  335. CBitFieldMaskBit40 = 0x10000000000
  336. CBitFieldMaskBit41 = 0x20000000000
  337. CBitFieldMaskBit42 = 0x40000000000
  338. CBitFieldMaskBit43 = 0x80000000000
  339. CBitFieldMaskBit44 = 0x100000000000
  340. CBitFieldMaskBit45 = 0x200000000000
  341. CBitFieldMaskBit46 = 0x400000000000
  342. CBitFieldMaskBit47 = 0x800000000000
  343. CBitFieldMaskBit48 = 0x1000000000000
  344. CBitFieldMaskBit49 = 0x2000000000000
  345. CBitFieldMaskBit50 = 0x4000000000000
  346. CBitFieldMaskBit51 = 0x8000000000000
  347. CBitFieldMaskBit52 = 0x10000000000000
  348. CBitFieldMaskBit53 = 0x20000000000000
  349. CBitFieldMaskBit54 = 0x40000000000000
  350. CBitFieldMaskBit55 = 0x80000000000000
  351. CBitFieldMaskBit56 = 0x100000000000000
  352. CBitFieldMaskBit57 = 0x200000000000000
  353. CBitFieldMaskBit58 = 0x400000000000000
  354. CBitFieldMaskBit59 = 0x800000000000000
  355. CBitFieldMaskBit60 = 0x1000000000000000
  356. CBitFieldMaskBit61 = 0x2000000000000000
  357. CBitFieldMaskBit62 = 0x4000000000000000
  358. CBitFieldMaskBit63 = 0x8000000000000000
  359. )
  360. type SockaddrStorage struct {
  361. Family uint16
  362. _ [118]int8
  363. _ uint64
  364. }
  365. type HDGeometry struct {
  366. Heads uint8
  367. Sectors uint8
  368. Cylinders uint16
  369. Start uint64
  370. }
  371. type Statfs_t struct {
  372. Type int64
  373. Bsize int64
  374. Blocks uint64
  375. Bfree uint64
  376. Bavail uint64
  377. Files uint64
  378. Ffree uint64
  379. Fsid Fsid
  380. Namelen int64
  381. Frsize int64
  382. Flags int64
  383. Spare [4]int64
  384. }
  385. type TpacketHdr struct {
  386. Status uint64
  387. Len uint32
  388. Snaplen uint32
  389. Mac uint16
  390. Net uint16
  391. Sec uint32
  392. Usec uint32
  393. _ [4]byte
  394. }
  395. const (
  396. SizeofTpacketHdr = 0x20
  397. )
  398. type RTCPLLInfo struct {
  399. Ctrl int32
  400. Value int32
  401. Max int32
  402. Min int32
  403. Posmult int32
  404. Negmult int32
  405. Clock int64
  406. }
  407. type BlkpgPartition struct {
  408. Start int64
  409. Length int64
  410. Pno int32
  411. Devname [64]uint8
  412. Volname [64]uint8
  413. _ [4]byte
  414. }
  415. const (
  416. BLKPG = 0x1269
  417. )
  418. type XDPUmemReg struct {
  419. Addr uint64
  420. Len uint64
  421. Size uint32
  422. Headroom uint32
  423. Flags uint32
  424. _ [4]byte
  425. }
  426. type CryptoUserAlg struct {
  427. Name [64]int8
  428. Driver_name [64]int8
  429. Module_name [64]int8
  430. Type uint32
  431. Mask uint32
  432. Refcnt uint32
  433. Flags uint32
  434. }
  435. type CryptoStatAEAD struct {
  436. Type [64]int8
  437. Encrypt_cnt uint64
  438. Encrypt_tlen uint64
  439. Decrypt_cnt uint64
  440. Decrypt_tlen uint64
  441. Err_cnt uint64
  442. }
  443. type CryptoStatAKCipher struct {
  444. Type [64]int8
  445. Encrypt_cnt uint64
  446. Encrypt_tlen uint64
  447. Decrypt_cnt uint64
  448. Decrypt_tlen uint64
  449. Verify_cnt uint64
  450. Sign_cnt uint64
  451. Err_cnt uint64
  452. }
  453. type CryptoStatCipher struct {
  454. Type [64]int8
  455. Encrypt_cnt uint64
  456. Encrypt_tlen uint64
  457. Decrypt_cnt uint64
  458. Decrypt_tlen uint64
  459. Err_cnt uint64
  460. }
  461. type CryptoStatCompress struct {
  462. Type [64]int8
  463. Compress_cnt uint64
  464. Compress_tlen uint64
  465. Decompress_cnt uint64
  466. Decompress_tlen uint64
  467. Err_cnt uint64
  468. }
  469. type CryptoStatHash struct {
  470. Type [64]int8
  471. Hash_cnt uint64
  472. Hash_tlen uint64
  473. Err_cnt uint64
  474. }
  475. type CryptoStatKPP struct {
  476. Type [64]int8
  477. Setsecret_cnt uint64
  478. Generate_public_key_cnt uint64
  479. Compute_shared_secret_cnt uint64
  480. Err_cnt uint64
  481. }
  482. type CryptoStatRNG struct {
  483. Type [64]int8
  484. Generate_cnt uint64
  485. Generate_tlen uint64
  486. Seed_cnt uint64
  487. Err_cnt uint64
  488. }
  489. type CryptoStatLarval struct {
  490. Type [64]int8
  491. }
  492. type CryptoReportLarval struct {
  493. Type [64]int8
  494. }
  495. type CryptoReportHash struct {
  496. Type [64]int8
  497. Blocksize uint32
  498. Digestsize uint32
  499. }
  500. type CryptoReportCipher struct {
  501. Type [64]int8
  502. Blocksize uint32
  503. Min_keysize uint32
  504. Max_keysize uint32
  505. }
  506. type CryptoReportBlkCipher struct {
  507. Type [64]int8
  508. Geniv [64]int8
  509. Blocksize uint32
  510. Min_keysize uint32
  511. Max_keysize uint32
  512. Ivsize uint32
  513. }
  514. type CryptoReportAEAD struct {
  515. Type [64]int8
  516. Geniv [64]int8
  517. Blocksize uint32
  518. Maxauthsize uint32
  519. Ivsize uint32
  520. }
  521. type CryptoReportComp struct {
  522. Type [64]int8
  523. }
  524. type CryptoReportRNG struct {
  525. Type [64]int8
  526. Seedsize uint32
  527. }
  528. type CryptoReportAKCipher struct {
  529. Type [64]int8
  530. }
  531. type CryptoReportKPP struct {
  532. Type [64]int8
  533. }
  534. type CryptoReportAcomp struct {
  535. Type [64]int8
  536. }
  537. type LoopInfo struct {
  538. Number int32
  539. Device uint32
  540. Inode uint64
  541. Rdevice uint32
  542. Offset int32
  543. Encrypt_type int32
  544. Encrypt_key_size int32
  545. Flags int32
  546. Name [64]int8
  547. Encrypt_key [32]uint8
  548. Init [2]uint64
  549. Reserved [4]int8
  550. _ [4]byte
  551. }
  552. type TIPCSubscr struct {
  553. Seq TIPCServiceRange
  554. Timeout uint32
  555. Filter uint32
  556. Handle [8]int8
  557. }
  558. type TIPCSIOCLNReq struct {
  559. Peer uint32
  560. Id uint32
  561. Linkname [68]int8
  562. }
  563. type TIPCSIOCNodeIDReq struct {
  564. Peer uint32
  565. Id [16]int8
  566. }
  567. type PPSKInfo struct {
  568. Assert_sequence uint32
  569. Clear_sequence uint32
  570. Assert_tu PPSKTime
  571. Clear_tu PPSKTime
  572. Current_mode int32
  573. _ [4]byte
  574. }
  575. const (
  576. PPS_GETPARAMS = 0x800870a1
  577. PPS_SETPARAMS = 0x400870a2
  578. PPS_GETCAP = 0x800870a3
  579. PPS_FETCH = 0xc00870a4
  580. )
  581. const (
  582. PIDFD_NONBLOCK = 0x800
  583. )
  584. type SysvIpcPerm struct {
  585. Key int32
  586. Uid uint32
  587. Gid uint32
  588. Cuid uint32
  589. Cgid uint32
  590. Mode uint32
  591. _ [0]uint8
  592. Seq uint16
  593. _ uint16
  594. _ uint64
  595. _ uint64
  596. }
  597. type SysvShmDesc struct {
  598. Perm SysvIpcPerm
  599. Segsz uint64
  600. Atime int64
  601. Dtime int64
  602. Ctime int64
  603. Cpid int32
  604. Lpid int32
  605. Nattch uint64
  606. _ uint64
  607. _ uint64
  608. }