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