summaryrefslogtreecommitdiff
path: root/src/pkg/syscall/ztypes_freebsd_arm.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/syscall/ztypes_freebsd_arm.go')
-rw-r--r--src/pkg/syscall/ztypes_freebsd_arm.go120
1 files changed, 84 insertions, 36 deletions
diff --git a/src/pkg/syscall/ztypes_freebsd_arm.go b/src/pkg/syscall/ztypes_freebsd_arm.go
index b1bf83b4c..9303816f9 100644
--- a/src/pkg/syscall/ztypes_freebsd_arm.go
+++ b/src/pkg/syscall/ztypes_freebsd_arm.go
@@ -1,5 +1,5 @@
// Created by cgo -godefs - DO NOT EDIT
-// cgo -godefs types_freebsd.go
+// cgo -godefs -- -fsigned-char types_freebsd.go
package syscall
@@ -19,13 +19,15 @@ type (
)
type Timespec struct {
- Sec int64
- Nsec int32
+ Sec int64
+ Nsec int32
+ Pad_cgo_0 [4]byte
}
type Timeval struct {
- Sec int64
- Usec int32
+ Sec int64
+ Usec int32
+ Pad_cgo_0 [4]byte
}
type Rusage struct {
@@ -55,10 +57,6 @@ type Rlimit struct {
type _Gid_t uint32
const (
- O_CLOEXEC = 0 // not supported
-)
-
-const (
S_IFMT = 0xf000
S_IFIFO = 0x1000
S_IFCHR = 0x2000
@@ -93,7 +91,6 @@ type Stat_t struct {
Gen uint32
Lspare int32
Birthtimespec Timespec
- Pad_cgo_0 [4]byte
}
type Statfs_t struct {
@@ -122,12 +119,13 @@ type Statfs_t struct {
}
type Flock_t struct {
- Start int64
- Len int64
- Pid int32
- Type int16
- Whence int16
- Sysid int32
+ Start int64
+ Len int64
+ Pid int32
+ Type int16
+ Whence int16
+ Sysid int32
+ Pad_cgo_0 [4]byte
}
type Dirent struct {
@@ -160,22 +158,20 @@ type RawSockaddrInet6 struct {
}
type RawSockaddrUnix struct {
- Len uint8
- Family uint8
- Path [104]int8
- Pad_cgo_0 [2]byte
+ Len uint8
+ Family uint8
+ Path [104]int8
}
type RawSockaddrDatalink struct {
- Len uint8
- Family uint8
- Index uint16
- Type uint8
- Nlen uint8
- Alen uint8
- Slen uint8
- Data [46]int8
- Pad_cgo_0 [2]byte
+ Len uint8
+ Family uint8
+ Index uint16
+ Type uint8
+ Nlen uint8
+ Alen uint8
+ Slen uint8
+ Data [46]int8
}
type RawSockaddr struct {
@@ -251,8 +247,8 @@ const (
SizeofSockaddrInet4 = 0x10
SizeofSockaddrInet6 = 0x1c
SizeofSockaddrAny = 0x6c
- SizeofSockaddrUnix = 0x6c
- SizeofSockaddrDatalink = 0x38
+ SizeofSockaddrUnix = 0x6a
+ SizeofSockaddrDatalink = 0x36
SizeofLinger = 0x8
SizeofIPMreq = 0x8
SizeofIPMreqn = 0xc
@@ -284,8 +280,10 @@ type FdSet struct {
}
const (
- SizeofIfMsghdr = 0x68
- SizeofIfData = 0x58
+ sizeofIfMsghdr = 0x70
+ SizeofIfMsghdr = 0x70
+ sizeofIfData = 0x60
+ SizeofIfData = 0x60
SizeofIfaMsghdr = 0x14
SizeofIfmaMsghdr = 0x10
SizeofIfAnnounceMsghdr = 0x18
@@ -293,6 +291,17 @@ const (
SizeofRtMetrics = 0x38
)
+type ifMsghdr struct {
+ Msglen uint16
+ Version uint8
+ Type uint8
+ Addrs int32
+ Flags int32
+ Index uint16
+ Pad_cgo_0 [2]byte
+ Data ifData
+}
+
type IfMsghdr struct {
Msglen uint16
Version uint8
@@ -304,13 +313,41 @@ type IfMsghdr struct {
Data IfData
}
+type ifData struct {
+ Type uint8
+ Physical uint8
+ Addrlen uint8
+ Hdrlen uint8
+ Link_state uint8
+ Vhid uint8
+ Baudrate_pf uint8
+ Datalen uint8
+ Mtu uint32
+ Metric uint32
+ Baudrate uint32
+ Ipackets uint32
+ Ierrors uint32
+ Opackets uint32
+ Oerrors uint32
+ Collisions uint32
+ Ibytes uint32
+ Obytes uint32
+ Imcasts uint32
+ Omcasts uint32
+ Iqdrops uint32
+ Noproto uint32
+ Hwassist uint64
+ Epoch int64
+ Lastchange Timeval
+}
+
type IfData struct {
Type uint8
Physical uint8
Addrlen uint8
Hdrlen uint8
Link_state uint8
- Spare_char1 uint8 //Vhid uint8
+ Spare_char1 uint8
Spare_char2 uint8
Datalen uint8
Mtu uint32
@@ -328,6 +365,7 @@ type IfData struct {
Iqdrops uint32
Noproto uint32
Hwassist uint32
+ Pad_cgo_0 [4]byte
Epoch int64
Lastchange Timeval
}
@@ -399,7 +437,7 @@ const (
SizeofBpfZbuf = 0xc
SizeofBpfProgram = 0x8
SizeofBpfInsn = 0x8
- SizeofBpfHdr = 0x18
+ SizeofBpfHdr = 0x20
SizeofBpfZbufHeader = 0x20
)
@@ -436,7 +474,7 @@ type BpfHdr struct {
Caplen uint32
Datalen uint32
Hdrlen uint16
- Pad_cgo_0 [2]byte
+ Pad_cgo_0 [6]byte
}
type BpfZbufHeader struct {
@@ -445,3 +483,13 @@ type BpfZbufHeader struct {
User_gen uint32
X_bzh_pad [5]uint32
}
+
+type Termios struct {
+ Iflag uint32
+ Oflag uint32
+ Cflag uint32
+ Lflag uint32
+ Cc [20]uint8
+ Ispeed uint32
+ Ospeed uint32
+}