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_ppc.go 4.9KB

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