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