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.

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