Source file
src/syscall/ztypes_linux_ppc64le.go
Documentation: syscall
1
2
3
4
5
6
7 package syscall
8
9 const (
10 sizeofPtr = 0x8
11 sizeofShort = 0x2
12 sizeofInt = 0x4
13 sizeofLong = 0x8
14 sizeofLongLong = 0x8
15 PathMax = 0x1000
16 )
17
18 type (
19 _C_short int16
20 _C_int int32
21 _C_long int64
22 _C_long_long int64
23 )
24
25 type Timespec struct {
26 Sec int64
27 Nsec int64
28 }
29
30 type Timeval struct {
31 Sec int64
32 Usec int64
33 }
34
35 type Timex struct {
36 Modes uint32
37 Pad_cgo_0 [4]byte
38 Offset int64
39 Freq int64
40 Maxerror int64
41 Esterror int64
42 Status int32
43 Pad_cgo_1 [4]byte
44 Constant int64
45 Precision int64
46 Tolerance int64
47 Time Timeval
48 Tick int64
49 Ppsfreq int64
50 Jitter int64
51 Shift int32
52 Pad_cgo_2 [4]byte
53 Stabil int64
54 Jitcnt int64
55 Calcnt int64
56 Errcnt int64
57 Stbcnt int64
58 Tai int32
59 Pad_cgo_3 [44]byte
60 }
61
62 type Time_t int64
63
64 type Tms struct {
65 Utime int64
66 Stime int64
67 Cutime int64
68 Cstime int64
69 }
70
71 type Utimbuf struct {
72 Actime int64
73 Modtime int64
74 }
75
76 type Rusage struct {
77 Utime Timeval
78 Stime Timeval
79 Maxrss int64
80 Ixrss int64
81 Idrss int64
82 Isrss int64
83 Minflt int64
84 Majflt int64
85 Nswap int64
86 Inblock int64
87 Oublock int64
88 Msgsnd int64
89 Msgrcv int64
90 Nsignals int64
91 Nvcsw int64
92 Nivcsw int64
93 }
94
95 type Rlimit struct {
96 Cur uint64
97 Max uint64
98 }
99
100 type _Gid_t uint32
101
102 type Stat_t struct {
103 Dev uint64
104 Ino uint64
105 Nlink uint64
106 Mode uint32
107 Uid uint32
108 Gid uint32
109 X__pad2 int32
110 Rdev uint64
111 Size int64
112 Blksize int64
113 Blocks int64
114 Atim Timespec
115 Mtim Timespec
116 Ctim Timespec
117 X__glibc_reserved4 uint64
118 X__glibc_reserved5 uint64
119 X__glibc_reserved6 uint64
120 }
121
122 type Statfs_t struct {
123 Type int64
124 Bsize int64
125 Blocks uint64
126 Bfree uint64
127 Bavail uint64
128 Files uint64
129 Ffree uint64
130 Fsid Fsid
131 Namelen int64
132 Frsize int64
133 Flags int64
134 Spare [4]int64
135 }
136
137 type Dirent struct {
138 Ino uint64
139 Off int64
140 Reclen uint16
141 Type uint8
142 Name [256]uint8
143 Pad_cgo_0 [5]byte
144 }
145
146 type Fsid struct {
147 X__val [2]int32
148 }
149
150 type Flock_t struct {
151 Type int16
152 Whence int16
153 Pad_cgo_0 [4]byte
154 Start int64
155 Len int64
156 Pid int32
157 Pad_cgo_1 [4]byte
158 }
159
160 type RawSockaddrInet4 struct {
161 Family uint16
162 Port uint16
163 Addr [4]byte
164 Zero [8]uint8
165 }
166
167 type RawSockaddrInet6 struct {
168 Family uint16
169 Port uint16
170 Flowinfo uint32
171 Addr [16]byte
172 Scope_id uint32
173 }
174
175 type RawSockaddrUnix struct {
176 Family uint16
177 Path [108]int8
178 }
179
180 type RawSockaddrLinklayer struct {
181 Family uint16
182 Protocol uint16
183 Ifindex int32
184 Hatype uint16
185 Pkttype uint8
186 Halen uint8
187 Addr [8]uint8
188 }
189
190 type RawSockaddrNetlink struct {
191 Family uint16
192 Pad uint16
193 Pid uint32
194 Groups uint32
195 }
196
197 type RawSockaddr struct {
198 Family uint16
199 Data [14]uint8
200 }
201
202 type RawSockaddrAny struct {
203 Addr RawSockaddr
204 Pad [96]uint8
205 }
206
207 type _Socklen uint32
208
209 type Linger struct {
210 Onoff int32
211 Linger int32
212 }
213
214 type Iovec struct {
215 Base *byte
216 Len uint64
217 }
218
219 type IPMreq struct {
220 Multiaddr [4]byte
221 Interface [4]byte
222 }
223
224 type IPMreqn struct {
225 Multiaddr [4]byte
226 Address [4]byte
227 Ifindex int32
228 }
229
230 type IPv6Mreq struct {
231 Multiaddr [16]byte
232 Interface uint32
233 }
234
235 type Msghdr struct {
236 Name *byte
237 Namelen uint32
238 Pad_cgo_0 [4]byte
239 Iov *Iovec
240 Iovlen uint64
241 Control *byte
242 Controllen uint64
243 Flags int32
244 Pad_cgo_1 [4]byte
245 }
246
247 type Cmsghdr struct {
248 Len uint64
249 Level int32
250 Type int32
251 }
252
253 type Inet4Pktinfo struct {
254 Ifindex int32
255 Spec_dst [4]byte
256 Addr [4]byte
257 }
258
259 type Inet6Pktinfo struct {
260 Addr [16]byte
261 Ifindex uint32
262 }
263
264 type IPv6MTUInfo struct {
265 Addr RawSockaddrInet6
266 Mtu uint32
267 }
268
269 type ICMPv6Filter struct {
270 Data [8]uint32
271 }
272
273 type Ucred struct {
274 Pid int32
275 Uid uint32
276 Gid uint32
277 }
278
279 type TCPInfo struct {
280 State uint8
281 Ca_state uint8
282 Retransmits uint8
283 Probes uint8
284 Backoff uint8
285 Options uint8
286 Pad_cgo_0 [2]byte
287 Rto uint32
288 Ato uint32
289 Snd_mss uint32
290 Rcv_mss uint32
291 Unacked uint32
292 Sacked uint32
293 Lost uint32
294 Retrans uint32
295 Fackets uint32
296 Last_data_sent uint32
297 Last_ack_sent uint32
298 Last_data_recv uint32
299 Last_ack_recv uint32
300 Pmtu uint32
301 Rcv_ssthresh uint32
302 Rtt uint32
303 Rttvar uint32
304 Snd_ssthresh uint32
305 Snd_cwnd uint32
306 Advmss uint32
307 Reordering uint32
308 Rcv_rtt uint32
309 Rcv_space uint32
310 Total_retrans uint32
311 }
312
313 const (
314 SizeofSockaddrInet4 = 0x10
315 SizeofSockaddrInet6 = 0x1c
316 SizeofSockaddrAny = 0x70
317 SizeofSockaddrUnix = 0x6e
318 SizeofSockaddrLinklayer = 0x14
319 SizeofSockaddrNetlink = 0xc
320 SizeofLinger = 0x8
321 SizeofIPMreq = 0x8
322 SizeofIPMreqn = 0xc
323 SizeofIPv6Mreq = 0x14
324 SizeofMsghdr = 0x38
325 SizeofCmsghdr = 0x10
326 SizeofInet4Pktinfo = 0xc
327 SizeofInet6Pktinfo = 0x14
328 SizeofIPv6MTUInfo = 0x20
329 SizeofICMPv6Filter = 0x20
330 SizeofUcred = 0xc
331 SizeofTCPInfo = 0x68
332 )
333
334 const (
335 IFA_UNSPEC = 0x0
336 IFA_ADDRESS = 0x1
337 IFA_LOCAL = 0x2
338 IFA_LABEL = 0x3
339 IFA_BROADCAST = 0x4
340 IFA_ANYCAST = 0x5
341 IFA_CACHEINFO = 0x6
342 IFA_MULTICAST = 0x7
343 IFLA_UNSPEC = 0x0
344 IFLA_ADDRESS = 0x1
345 IFLA_BROADCAST = 0x2
346 IFLA_IFNAME = 0x3
347 IFLA_MTU = 0x4
348 IFLA_LINK = 0x5
349 IFLA_QDISC = 0x6
350 IFLA_STATS = 0x7
351 IFLA_COST = 0x8
352 IFLA_PRIORITY = 0x9
353 IFLA_MASTER = 0xa
354 IFLA_WIRELESS = 0xb
355 IFLA_PROTINFO = 0xc
356 IFLA_TXQLEN = 0xd
357 IFLA_MAP = 0xe
358 IFLA_WEIGHT = 0xf
359 IFLA_OPERSTATE = 0x10
360 IFLA_LINKMODE = 0x11
361 IFLA_LINKINFO = 0x12
362 IFLA_NET_NS_PID = 0x13
363 IFLA_IFALIAS = 0x14
364 IFLA_MAX = 0x22
365 RT_SCOPE_UNIVERSE = 0x0
366 RT_SCOPE_SITE = 0xc8
367 RT_SCOPE_LINK = 0xfd
368 RT_SCOPE_HOST = 0xfe
369 RT_SCOPE_NOWHERE = 0xff
370 RT_TABLE_UNSPEC = 0x0
371 RT_TABLE_COMPAT = 0xfc
372 RT_TABLE_DEFAULT = 0xfd
373 RT_TABLE_MAIN = 0xfe
374 RT_TABLE_LOCAL = 0xff
375 RT_TABLE_MAX = 0xffffffff
376 RTA_UNSPEC = 0x0
377 RTA_DST = 0x1
378 RTA_SRC = 0x2
379 RTA_IIF = 0x3
380 RTA_OIF = 0x4
381 RTA_GATEWAY = 0x5
382 RTA_PRIORITY = 0x6
383 RTA_PREFSRC = 0x7
384 RTA_METRICS = 0x8
385 RTA_MULTIPATH = 0x9
386 RTA_FLOW = 0xb
387 RTA_CACHEINFO = 0xc
388 RTA_TABLE = 0xf
389 RTN_UNSPEC = 0x0
390 RTN_UNICAST = 0x1
391 RTN_LOCAL = 0x2
392 RTN_BROADCAST = 0x3
393 RTN_ANYCAST = 0x4
394 RTN_MULTICAST = 0x5
395 RTN_BLACKHOLE = 0x6
396 RTN_UNREACHABLE = 0x7
397 RTN_PROHIBIT = 0x8
398 RTN_THROW = 0x9
399 RTN_NAT = 0xa
400 RTN_XRESOLVE = 0xb
401 RTNLGRP_NONE = 0x0
402 RTNLGRP_LINK = 0x1
403 RTNLGRP_NOTIFY = 0x2
404 RTNLGRP_NEIGH = 0x3
405 RTNLGRP_TC = 0x4
406 RTNLGRP_IPV4_IFADDR = 0x5
407 RTNLGRP_IPV4_MROUTE = 0x6
408 RTNLGRP_IPV4_ROUTE = 0x7
409 RTNLGRP_IPV4_RULE = 0x8
410 RTNLGRP_IPV6_IFADDR = 0x9
411 RTNLGRP_IPV6_MROUTE = 0xa
412 RTNLGRP_IPV6_ROUTE = 0xb
413 RTNLGRP_IPV6_IFINFO = 0xc
414 RTNLGRP_IPV6_PREFIX = 0x12
415 RTNLGRP_IPV6_RULE = 0x13
416 RTNLGRP_ND_USEROPT = 0x14
417 SizeofNlMsghdr = 0x10
418 SizeofNlMsgerr = 0x14
419 SizeofRtGenmsg = 0x1
420 SizeofNlAttr = 0x4
421 SizeofRtAttr = 0x4
422 SizeofIfInfomsg = 0x10
423 SizeofIfAddrmsg = 0x8
424 SizeofRtMsg = 0xc
425 SizeofRtNexthop = 0x8
426 )
427
428 type NlMsghdr struct {
429 Len uint32
430 Type uint16
431 Flags uint16
432 Seq uint32
433 Pid uint32
434 }
435
436 type NlMsgerr struct {
437 Error int32
438 Msg NlMsghdr
439 }
440
441 type RtGenmsg struct {
442 Family uint8
443 }
444
445 type NlAttr struct {
446 Len uint16
447 Type uint16
448 }
449
450 type RtAttr struct {
451 Len uint16
452 Type uint16
453 }
454
455 type IfInfomsg struct {
456 Family uint8
457 X__ifi_pad uint8
458 Type uint16
459 Index int32
460 Flags uint32
461 Change uint32
462 }
463
464 type IfAddrmsg struct {
465 Family uint8
466 Prefixlen uint8
467 Flags uint8
468 Scope uint8
469 Index uint32
470 }
471
472 type RtMsg struct {
473 Family uint8
474 Dst_len uint8
475 Src_len uint8
476 Tos uint8
477 Table uint8
478 Protocol uint8
479 Scope uint8
480 Type uint8
481 Flags uint32
482 }
483
484 type RtNexthop struct {
485 Len uint16
486 Flags uint8
487 Hops uint8
488 Ifindex int32
489 }
490
491 const (
492 SizeofSockFilter = 0x8
493 SizeofSockFprog = 0x10
494 )
495
496 type SockFilter struct {
497 Code uint16
498 Jt uint8
499 Jf uint8
500 K uint32
501 }
502
503 type SockFprog struct {
504 Len uint16
505 Pad_cgo_0 [6]byte
506 Filter *SockFilter
507 }
508
509 type InotifyEvent struct {
510 Wd int32
511 Mask uint32
512 Cookie uint32
513 Len uint32
514 Name [0]uint8
515 }
516
517 const SizeofInotifyEvent = 0x10
518
519 type PtraceRegs struct {
520 Gpr [32]uint64
521 Nip uint64
522 Msr uint64
523 Orig_gpr3 uint64
524 Ctr uint64
525 Link uint64
526 Xer uint64
527 Ccr uint64
528 Softe uint64
529 Trap uint64
530 Dar uint64
531 Dsisr uint64
532 Result uint64
533 }
534
535 type FdSet struct {
536 Bits [16]int64
537 }
538
539 type Sysinfo_t struct {
540 Uptime int64
541 Loads [3]uint64
542 Totalram uint64
543 Freeram uint64
544 Sharedram uint64
545 Bufferram uint64
546 Totalswap uint64
547 Freeswap uint64
548 Procs uint16
549 Pad uint16
550 Pad_cgo_0 [4]byte
551 Totalhigh uint64
552 Freehigh uint64
553 Unit uint32
554 X_f [0]uint8
555 Pad_cgo_1 [4]byte
556 }
557
558 type Utsname struct {
559 Sysname [65]uint8
560 Nodename [65]uint8
561 Release [65]uint8
562 Version [65]uint8
563 Machine [65]uint8
564 Domainname [65]uint8
565 }
566
567 type Ustat_t struct {
568 Tfree int32
569 Pad_cgo_0 [4]byte
570 Tinode uint64
571 Fname [6]uint8
572 Fpack [6]uint8
573 Pad_cgo_1 [4]byte
574 }
575
576 type EpollEvent struct {
577 Events uint32
578 X_padFd int32
579 Fd int32
580 Pad int32
581 }
582
583 const (
584 _AT_FDCWD = -0x64
585 _AT_REMOVEDIR = 0x200
586 _AT_SYMLINK_NOFOLLOW = 0x100
587 _AT_EACCESS = 0x200
588 )
589
590 type pollFd struct {
591 Fd int32
592 Events int16
593 Revents int16
594 }
595
596 type Termios struct {
597 Iflag uint32
598 Oflag uint32
599 Cflag uint32
600 Lflag uint32
601 Line uint8
602 Cc [32]uint8
603 Pad_cgo_0 [3]byte
604 Ispeed uint32
605 Ospeed uint32
606 }
607
608 const (
609 IUCLC = 0x1000
610 OLCUC = 0x4
611 TCGETS = 0x402c7413
612 TCSETS = 0x802c7414
613 XCASE = 0x4000
614 )
615
View as plain text