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