blob: 7a8161c1d1cae0c71c9be5af1ff031cc2c32c6f1 [file] [log] [blame]
Don Newton98fd8812019-09-23 15:15:02 -04001// 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. Bainbridgee05cf0c2021-08-19 03:16:50 +00004//go:build ppc && aix
Don Newton98fd8812019-09-23 15:15:02 -04005// +build ppc,aix
6
7package unix
8
9const (
10 SizeofPtr = 0x4
11 SizeofShort = 0x2
12 SizeofInt = 0x4
13 SizeofLong = 0x4
14 SizeofLongLong = 0x8
15 PathMax = 0x3ff
16)
17
18type (
19 _C_short int16
20 _C_int int32
21 _C_long int32
22 _C_long_long int64
23)
24
25type off64 int64
26type off int32
27type Mode_t uint32
28
29type Timespec struct {
30 Sec int32
31 Nsec int32
32}
33
34type Timeval struct {
35 Sec int32
36 Usec int32
37}
38
39type Timeval32 struct {
40 Sec int32
41 Usec int32
42}
43
44type Timex struct{}
45
46type Time_t int32
47
48type Tms struct{}
49
50type Utimbuf struct {
51 Actime int32
52 Modtime int32
53}
54
55type Timezone struct {
56 Minuteswest int32
57 Dsttime int32
58}
59
60type 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
79type Rlimit struct {
80 Cur uint64
81 Max uint64
82}
83
84type Pid_t int32
85
86type _Gid_t uint32
87
88type dev_t uint32
89
90type 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
Don Newton7577f072020-01-06 12:41:11 -0500100 Atim Timespec
101 Mtim Timespec
102 Ctim Timespec
Don Newton98fd8812019-09-23 15:15:02 -0400103 Blksize int32
104 Blocks int32
105 Vfstype int32
106 Vfs uint32
107 Type uint32
108 Gen uint32
109 Reserved [9]uint32
110}
111
112type StatxTimestamp struct{}
113
114type Statx_t struct{}
115
116type Dirent struct {
117 Offset uint32
118 Ino uint32
119 Reclen uint16
120 Namlen uint16
121 Name [256]uint8
122}
123
124type RawSockaddrInet4 struct {
125 Len uint8
126 Family uint8
127 Port uint16
128 Addr [4]byte /* in_addr */
129 Zero [8]uint8
130}
131
132type 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
141type RawSockaddrUnix struct {
142 Len uint8
143 Family uint8
144 Path [1023]uint8
145}
146
Don Newton7577f072020-01-06 12:41:11 -0500147type 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
Don Newton98fd8812019-09-23 15:15:02 -0400158type RawSockaddr struct {
159 Len uint8
160 Family uint8
161 Data [14]uint8
162}
163
164type RawSockaddrAny struct {
165 Addr RawSockaddr
166 Pad [1012]uint8
167}
168
169type _Socklen uint32
170
171type Cmsghdr struct {
172 Len uint32
173 Level int32
174 Type int32
175}
176
177type ICMPv6Filter struct {
178 Filt [8]uint32
179}
180
181type Iovec struct {
182 Base *byte
183 Len uint32
184}
185
186type IPMreq struct {
187 Multiaddr [4]byte /* in_addr */
188 Interface [4]byte /* in_addr */
189}
190
191type IPv6Mreq struct {
192 Multiaddr [16]byte /* in6_addr */
193 Interface uint32
194}
195
196type IPv6MTUInfo struct {
197 Addr RawSockaddrInet6
198 Mtu uint32
199}
200
201type Linger struct {
202 Onoff int32
203 Linger int32
204}
205
206type 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
216const (
Don Newton7577f072020-01-06 12:41:11 -0500217 SizeofSockaddrInet4 = 0x10
218 SizeofSockaddrInet6 = 0x1c
219 SizeofSockaddrAny = 0x404
220 SizeofSockaddrUnix = 0x401
221 SizeofSockaddrDatalink = 0x80
222 SizeofLinger = 0x8
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000223 SizeofIovec = 0x8
Don Newton7577f072020-01-06 12:41:11 -0500224 SizeofIPMreq = 0x8
225 SizeofIPv6Mreq = 0x14
226 SizeofIPv6MTUInfo = 0x20
227 SizeofMsghdr = 0x1c
228 SizeofCmsghdr = 0xc
229 SizeofICMPv6Filter = 0x20
Don Newton98fd8812019-09-23 15:15:02 -0400230)
231
232const (
233 SizeofIfMsghdr = 0x10
234)
235
236type 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
247type FdSet struct {
248 Bits [2048]int32
249}
250
251type Utsname struct {
252 Sysname [32]byte
253 Nodename [32]byte
254 Release [32]byte
255 Version [32]byte
256 Machine [32]byte
257}
258
259type Ustat_t struct{}
260
261type Sigset_t struct {
262 Losigs uint32
263 Hisigs uint32
264}
265
266const (
267 AT_FDCWD = -0x2
268 AT_REMOVEDIR = 0x1
269 AT_SYMLINK_NOFOLLOW = 0x1
270)
271
272type Termios struct {
273 Iflag uint32
274 Oflag uint32
275 Cflag uint32
276 Lflag uint32
277 Cc [16]uint8
278}
279
280type 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
290type Winsize struct {
291 Row uint16
292 Col uint16
293 Xpixel uint16
294 Ypixel uint16
295}
296
297type PollFd struct {
298 Fd int32
299 Events uint16
300 Revents uint16
301}
302
303const (
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
316type 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
326type Fsid_t struct {
327 Val [2]uint32
328}
329type Fsid64_t struct {
330 Val [2]uint64
331}
332
333type 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
354const RNDGETENTCNT = 0x80045200