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