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