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