// Constants
const (
- sizeofPtr = 0x4
- sizeofShort = 0x2
- sizeofInt = 0x4
- sizeofLong = 0x4
- sizeofLongLong = 0x8
- PathMax = 0x1000
- SizeofSockaddrInet4 = 0x10
- SizeofSockaddrInet6 = 0x1c
- SizeofSockaddrAny = 0x70
- SizeofSockaddrUnix = 0x6e
- SizeofLinger = 0x8
- SizeofMsghdr = 0x1c
- SizeofCmsghdr = 0xc
- SizeofInotifyEvent = 0x10
+ sizeofPtr = 0x4
+ sizeofShort = 0x2
+ sizeofInt = 0x4
+ sizeofLong = 0x4
+ sizeofLongLong = 0x8
+ PathMax = 0x1000
+ SizeofSockaddrInet4 = 0x10
+ SizeofSockaddrInet6 = 0x1c
+ SizeofSockaddrAny = 0x70
+ SizeofSockaddrUnix = 0x6e
+ SizeofSockaddrLinklayer = 0x14
+ SizeofLinger = 0x8
+ SizeofMsghdr = 0x1c
+ SizeofCmsghdr = 0xc
+ SizeofUcred = 0xc
+ SizeofInotifyEvent = 0x10
)
// Types
Calcnt int32
Errcnt int32
Stbcnt int32
+ Tai int32
Pad0 int32
Pad1 int32
Pad2 int32
Pad8 int32
Pad9 int32
Pad10 int32
- Pad11 int32
}
type Time_t int32
type RawSockaddrUnix struct {
Family uint16
- Path [108]int8
+ Path [108]uint8
+}
+
+type RawSockaddrLinklayer struct {
+ Family uint16
+ Protocol uint16
+ Ifindex int32
+ Hatype uint16
+ Pkttype uint8
+ Halen uint8
+ Addr [8]uint8
}
type RawSockaddr struct {
Type int32
}
+type Ucred struct {
+ Pid int32
+ Uid uint32
+ Gid uint32
+}
+
type InotifyEvent struct {
Wd int32
Mask uint32
type PtraceRegs struct{}
+type PtraceRegs struct{}
+
type FdSet struct {
Bits [32]int32
}