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

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