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.

ztypes_aix_ppc64.go 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. // cgo -godefs types_aix.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. //go:build ppc64 && aix
  4. package unix
  5. const (
  6. SizeofPtr = 0x8
  7. SizeofShort = 0x2
  8. SizeofInt = 0x4
  9. SizeofLong = 0x8
  10. SizeofLongLong = 0x8
  11. PathMax = 0x3ff
  12. )
  13. type (
  14. _C_short int16
  15. _C_int int32
  16. _C_long int64
  17. _C_long_long int64
  18. )
  19. type off64 int64
  20. type off int64
  21. type Mode_t uint32
  22. type Timespec struct {
  23. Sec int64
  24. Nsec int64
  25. }
  26. type Timeval struct {
  27. Sec int64
  28. Usec int32
  29. _ [4]byte
  30. }
  31. type Timeval32 struct {
  32. Sec int32
  33. Usec int32
  34. }
  35. type Timex struct{}
  36. type Time_t int64
  37. type Tms struct{}
  38. type Utimbuf struct {
  39. Actime int64
  40. Modtime int64
  41. }
  42. type Timezone struct {
  43. Minuteswest int32
  44. Dsttime int32
  45. }
  46. type Rusage struct {
  47. Utime Timeval
  48. Stime Timeval
  49. Maxrss int64
  50. Ixrss int64
  51. Idrss int64
  52. Isrss int64
  53. Minflt int64
  54. Majflt int64
  55. Nswap int64
  56. Inblock int64
  57. Oublock int64
  58. Msgsnd int64
  59. Msgrcv int64
  60. Nsignals int64
  61. Nvcsw int64
  62. Nivcsw int64
  63. }
  64. type Rlimit struct {
  65. Cur uint64
  66. Max uint64
  67. }
  68. type Pid_t int32
  69. type _Gid_t uint32
  70. type dev_t uint64
  71. type Stat_t struct {
  72. Dev uint64
  73. Ino uint64
  74. Mode uint32
  75. Nlink int16
  76. Flag uint16
  77. Uid uint32
  78. Gid uint32
  79. Rdev uint64
  80. Ssize int32
  81. Atim Timespec
  82. Mtim Timespec
  83. Ctim Timespec
  84. Blksize int64
  85. Blocks int64
  86. Vfstype int32
  87. Vfs uint32
  88. Type uint32
  89. Gen uint32
  90. Reserved [9]uint32
  91. Padto_ll uint32
  92. Size int64
  93. }
  94. type StatxTimestamp struct{}
  95. type Statx_t struct{}
  96. type Dirent struct {
  97. Offset uint64
  98. Ino uint64
  99. Reclen uint16
  100. Namlen uint16
  101. Name [256]uint8
  102. _ [4]byte
  103. }
  104. type RawSockaddrInet4 struct {
  105. Len uint8
  106. Family uint8
  107. Port uint16
  108. Addr [4]byte /* in_addr */
  109. Zero [8]uint8
  110. }
  111. type RawSockaddrInet6 struct {
  112. Len uint8
  113. Family uint8
  114. Port uint16
  115. Flowinfo uint32
  116. Addr [16]byte /* in6_addr */
  117. Scope_id uint32
  118. }
  119. type RawSockaddrUnix struct {
  120. Len uint8
  121. Family uint8
  122. Path [1023]uint8
  123. }
  124. type RawSockaddrDatalink struct {
  125. Len uint8
  126. Family uint8
  127. Index uint16
  128. Type uint8
  129. Nlen uint8
  130. Alen uint8
  131. Slen uint8
  132. Data [120]uint8
  133. }
  134. type RawSockaddr struct {
  135. Len uint8
  136. Family uint8
  137. Data [14]uint8
  138. }
  139. type RawSockaddrAny struct {
  140. Addr RawSockaddr
  141. Pad [1012]uint8
  142. }
  143. type _Socklen uint32
  144. type Cmsghdr struct {
  145. Len uint32
  146. Level int32
  147. Type int32
  148. }
  149. type ICMPv6Filter struct {
  150. Filt [8]uint32
  151. }
  152. type Iovec struct {
  153. Base *byte
  154. Len uint64
  155. }
  156. type IPMreq struct {
  157. Multiaddr [4]byte /* in_addr */
  158. Interface [4]byte /* in_addr */
  159. }
  160. type IPv6Mreq struct {
  161. Multiaddr [16]byte /* in6_addr */
  162. Interface uint32
  163. }
  164. type IPv6MTUInfo struct {
  165. Addr RawSockaddrInet6
  166. Mtu uint32
  167. }
  168. type Linger struct {
  169. Onoff int32
  170. Linger int32
  171. }
  172. type Msghdr struct {
  173. Name *byte
  174. Namelen uint32
  175. Iov *Iovec
  176. Iovlen int32
  177. Control *byte
  178. Controllen uint32
  179. Flags int32
  180. }
  181. const (
  182. SizeofSockaddrInet4 = 0x10
  183. SizeofSockaddrInet6 = 0x1c
  184. SizeofSockaddrAny = 0x404
  185. SizeofSockaddrUnix = 0x401
  186. SizeofSockaddrDatalink = 0x80
  187. SizeofLinger = 0x8
  188. SizeofIovec = 0x10
  189. SizeofIPMreq = 0x8
  190. SizeofIPv6Mreq = 0x14
  191. SizeofIPv6MTUInfo = 0x20
  192. SizeofMsghdr = 0x30
  193. SizeofCmsghdr = 0xc
  194. SizeofICMPv6Filter = 0x20
  195. )
  196. const (
  197. SizeofIfMsghdr = 0x10
  198. )
  199. type IfMsgHdr struct {
  200. Msglen uint16
  201. Version uint8
  202. Type uint8
  203. Addrs int32
  204. Flags int32
  205. Index uint16
  206. Addrlen uint8
  207. _ [1]byte
  208. }
  209. type FdSet struct {
  210. Bits [1024]int64
  211. }
  212. type Utsname struct {
  213. Sysname [32]byte
  214. Nodename [32]byte
  215. Release [32]byte
  216. Version [32]byte
  217. Machine [32]byte
  218. }
  219. type Ustat_t struct{}
  220. type Sigset_t struct {
  221. Set [4]uint64
  222. }
  223. const (
  224. AT_FDCWD = -0x2
  225. AT_REMOVEDIR = 0x1
  226. AT_SYMLINK_NOFOLLOW = 0x1
  227. )
  228. type Termios struct {
  229. Iflag uint32
  230. Oflag uint32
  231. Cflag uint32
  232. Lflag uint32
  233. Cc [16]uint8
  234. }
  235. type Termio struct {
  236. Iflag uint16
  237. Oflag uint16
  238. Cflag uint16
  239. Lflag uint16
  240. Line uint8
  241. Cc [8]uint8
  242. _ [1]byte
  243. }
  244. type Winsize struct {
  245. Row uint16
  246. Col uint16
  247. Xpixel uint16
  248. Ypixel uint16
  249. }
  250. type PollFd struct {
  251. Fd int32
  252. Events uint16
  253. Revents uint16
  254. }
  255. const (
  256. POLLERR = 0x4000
  257. POLLHUP = 0x2000
  258. POLLIN = 0x1
  259. POLLNVAL = 0x8000
  260. POLLOUT = 0x2
  261. POLLPRI = 0x4
  262. POLLRDBAND = 0x20
  263. POLLRDNORM = 0x10
  264. POLLWRBAND = 0x40
  265. POLLWRNORM = 0x2
  266. )
  267. type Flock_t struct {
  268. Type int16
  269. Whence int16
  270. Sysid uint32
  271. Pid int32
  272. Vfs int32
  273. Start int64
  274. Len int64
  275. }
  276. type Fsid_t struct {
  277. Val [2]uint32
  278. }
  279. type Fsid64_t struct {
  280. Val [2]uint64
  281. }
  282. type Statfs_t struct {
  283. Version int32
  284. Type int32
  285. Bsize uint64
  286. Blocks uint64
  287. Bfree uint64
  288. Bavail uint64
  289. Files uint64
  290. Ffree uint64
  291. Fsid Fsid64_t
  292. Vfstype int32
  293. Fsize uint64
  294. Vfsnumber int32
  295. Vfsoff int32
  296. Vfslen int32
  297. Vfsvers int32
  298. Fname [32]uint8
  299. Fpack [32]uint8
  300. Name_max int32
  301. _ [4]byte
  302. }
  303. const RNDGETENTCNT = 0x80045200