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.
 
 

712 lines
12 KiB

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