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.
 
 

359 lines
5.0 KiB

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