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 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. // cgo -godefs types_aix.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. // +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. SizeofIPMreq = 0x8
  189. SizeofIPv6Mreq = 0x14
  190. SizeofIPv6MTUInfo = 0x20
  191. SizeofMsghdr = 0x30
  192. SizeofCmsghdr = 0xc
  193. SizeofICMPv6Filter = 0x20
  194. )
  195. const (
  196. SizeofIfMsghdr = 0x10
  197. )
  198. type IfMsgHdr struct {
  199. Msglen uint16
  200. Version uint8
  201. Type uint8
  202. Addrs int32
  203. Flags int32
  204. Index uint16
  205. Addrlen uint8
  206. _ [1]byte
  207. }
  208. type FdSet struct {
  209. Bits [1024]int64
  210. }
  211. type Utsname struct {
  212. Sysname [32]byte
  213. Nodename [32]byte
  214. Release [32]byte
  215. Version [32]byte
  216. Machine [32]byte
  217. }
  218. type Ustat_t struct{}
  219. type Sigset_t struct {
  220. Set [4]uint64
  221. }
  222. const (
  223. AT_FDCWD = -0x2
  224. AT_REMOVEDIR = 0x1
  225. AT_SYMLINK_NOFOLLOW = 0x1
  226. )
  227. type Termios struct {
  228. Iflag uint32
  229. Oflag uint32
  230. Cflag uint32
  231. Lflag uint32
  232. Cc [16]uint8
  233. }
  234. type Termio struct {
  235. Iflag uint16
  236. Oflag uint16
  237. Cflag uint16
  238. Lflag uint16
  239. Line uint8
  240. Cc [8]uint8
  241. _ [1]byte
  242. }
  243. type Winsize struct {
  244. Row uint16
  245. Col uint16
  246. Xpixel uint16
  247. Ypixel uint16
  248. }
  249. type PollFd struct {
  250. Fd int32
  251. Events uint16
  252. Revents uint16
  253. }
  254. const (
  255. POLLERR = 0x4000
  256. POLLHUP = 0x2000
  257. POLLIN = 0x1
  258. POLLNVAL = 0x8000
  259. POLLOUT = 0x2
  260. POLLPRI = 0x4
  261. POLLRDBAND = 0x20
  262. POLLRDNORM = 0x10
  263. POLLWRBAND = 0x40
  264. POLLWRNORM = 0x2
  265. )
  266. type Flock_t struct {
  267. Type int16
  268. Whence int16
  269. Sysid uint32
  270. Pid int32
  271. Vfs int32
  272. Start int64
  273. Len int64
  274. }
  275. type Fsid_t struct {
  276. Val [2]uint32
  277. }
  278. type Fsid64_t struct {
  279. Val [2]uint64
  280. }
  281. type Statfs_t struct {
  282. Version int32
  283. Type int32
  284. Bsize uint64
  285. Blocks uint64
  286. Bfree uint64
  287. Bavail uint64
  288. Files uint64
  289. Ffree uint64
  290. Fsid Fsid64_t
  291. Vfstype int32
  292. Fsize uint64
  293. Vfsnumber int32
  294. Vfsoff int32
  295. Vfslen int32
  296. Vfsvers int32
  297. Fname [32]uint8
  298. Fpack [32]uint8
  299. Name_max int32
  300. _ [4]byte
  301. }
  302. const RNDGETENTCNT = 0x80045200