Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

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