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.
 
 

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