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