github.com/hikaru7719/go@v0.0.0-20181025140707-c8b2ac68906a/src/syscall/ztypes_aix_ppc64.go (about) 1 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 // cgo -godefs types_aix.go | go run mkpost.go 3 4 package syscall 5 6 const ( 7 sizeofPtr = 0x8 8 sizeofShort = 0x2 9 sizeofInt = 0x4 10 sizeofLong = 0x8 11 sizeofLongLong = 0x8 12 PathMax = 0x3ff 13 ) 14 15 type ( 16 _C_short int16 17 _C_int int32 18 _C_long int64 19 _C_long_long int64 20 ) 21 22 type Timespec struct { 23 Sec int64 24 Nsec int64 25 } 26 27 type Timeval struct { 28 Sec int64 29 Usec int32 30 Pad_cgo_0 [4]byte 31 } 32 33 type Timeval32 struct { 34 Sec int32 35 Usec int32 36 } 37 38 type Timezone struct { 39 Minuteswest int32 40 Dsttime int32 41 } 42 43 type Rusage struct { 44 Utime Timeval 45 Stime Timeval 46 Maxrss int64 47 Ixrss int64 48 Idrss int64 49 Isrss int64 50 Minflt int64 51 Majflt int64 52 Nswap int64 53 Inblock int64 54 Oublock int64 55 Msgsnd int64 56 Msgrcv int64 57 Nsignals int64 58 Nvcsw int64 59 Nivcsw int64 60 } 61 62 type Rlimit struct { 63 Cur uint64 64 Max uint64 65 } 66 67 type Pid_t int32 68 69 type _Gid_t uint32 70 71 type Flock_t struct { 72 Type int16 73 Whence int16 74 Sysid uint32 75 Pid int32 76 Vfs int32 77 Start int64 78 Len int64 79 } 80 81 type Stat_t struct { 82 Dev uint64 83 Ino uint64 84 Mode uint32 85 Nlink int16 86 Flag uint16 87 Uid uint32 88 Gid uint32 89 Rdev uint64 90 Ssize int32 91 Pad_cgo_0 [4]byte 92 Atim StTimespec_t 93 Mtim StTimespec_t 94 Ctim StTimespec_t 95 Blksize int64 96 Blocks int64 97 Vfstype int32 98 Vfs uint32 99 Type uint32 100 Gen uint32 101 Reserved [9]uint32 102 Padto_ll uint32 103 Size int64 104 } 105 106 type Statfs_t struct { 107 Version int32 108 Type int32 109 Bsize uint64 110 Blocks uint64 111 Bfree uint64 112 Bavail uint64 113 Files uint64 114 Ffree uint64 115 Fsid Fsid64_t 116 Vfstype int32 117 Pad_cgo_0 [4]byte 118 Fsize uint64 119 Vfsnumber int32 120 Vfsoff int32 121 Vfslen int32 122 Vfsvers int32 123 Fname [32]uint8 124 Fpack [32]uint8 125 Name_max int32 126 Pad_cgo_1 [4]byte 127 } 128 129 type Fsid64_t struct { 130 Val [2]uint64 131 } 132 133 type StTimespec_t struct { 134 Sec int64 135 Nsec int32 136 Pad_cgo_0 [4]byte 137 } 138 139 type Dirent struct { 140 Offset uint64 141 Ino uint64 142 Reclen uint16 143 Namlen uint16 144 Name [256]uint8 145 Pad_cgo_0 [4]byte 146 } 147 148 type RawSockaddrInet4 struct { 149 Len uint8 150 Family uint8 151 Port uint16 152 Addr [4]byte /* in_addr */ 153 Zero [8]uint8 154 } 155 156 type RawSockaddrInet6 struct { 157 Len uint8 158 Family uint8 159 Port uint16 160 Flowinfo uint32 161 Addr [16]byte /* in6_addr */ 162 Scope_id uint32 163 } 164 165 type RawSockaddrUnix struct { 166 Len uint8 167 Family uint8 168 Path [1023]uint8 169 } 170 171 type RawSockaddr struct { 172 Len uint8 173 Family uint8 174 Data [14]uint8 175 } 176 177 type RawSockaddrAny struct { 178 Addr RawSockaddr 179 Pad [1012]uint8 180 } 181 182 type _Socklen uint32 183 184 type Cmsghdr struct { 185 Len uint32 186 Level int32 187 Type int32 188 } 189 190 type ICMPv6Filter struct { 191 Filt [8]uint32 192 } 193 194 type Iovec struct { 195 Base *byte 196 Len uint64 197 } 198 199 type IPMreq struct { 200 Multiaddr [4]byte /* in_addr */ 201 Interface [4]byte /* in_addr */ 202 } 203 204 type IPv6Mreq struct { 205 Multiaddr [16]byte /* in6_addr */ 206 Interface uint32 207 } 208 209 type Linger struct { 210 Onoff int32 211 Linger int32 212 } 213 214 type Msghdr struct { 215 Name *byte 216 Namelen uint32 217 Pad_cgo_0 [4]byte 218 Iov *Iovec 219 Iovlen int32 220 Pad_cgo_1 [4]byte 221 Control *byte 222 Controllen uint32 223 Flags int32 224 } 225 226 const ( 227 SizeofSockaddrInet4 = 0x10 228 SizeofSockaddrInet6 = 0x1c 229 SizeofSockaddrAny = 0x404 230 SizeofSockaddrUnix = 0x401 231 SizeofLinger = 0x8 232 SizeofIPMreq = 0x8 233 SizeofIPv6Mreq = 0x14 234 SizeofMsghdr = 0x30 235 SizeofCmsghdr = 0xc 236 SizeofICMPv6Filter = 0x20 237 ) 238 239 const ( 240 PTRACE_TRACEME = 0x0 241 PTRACE_CONT = 0x7 242 PTRACE_KILL = 0x8 243 ) 244 245 const ( 246 SizeofIfMsghdr = 0x10 247 ) 248 249 type IfMsgHdr struct { 250 Msglen uint16 251 Version uint8 252 Type uint8 253 Addrs int32 254 Flags int32 255 Index uint16 256 Addrlen uint8 257 Pad_cgo_0 [1]byte 258 } 259 260 type Utsname struct { 261 Sysname [32]uint8 262 Nodename [32]uint8 263 Release [32]uint8 264 Version [32]uint8 265 Machine [32]uint8 266 } 267 268 const ( 269 _AT_FDCWD = -0x2 270 _AT_REMOVEDIR = 0x1 271 _AT_SYMLINK_NOFOLLOW = 0x1 272 )