Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

686 lignes
12 KiB

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