mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-02 23:27:31 -04:00
unix: don't export padding fields on Darwin
Re-run ./mkall.sh to avoid exporting Pad_cgo* fields on Darwin. Updates golang/go#18632 Change-Id: Id9d264293d0b1f1c5581aff289c6e826d63e71ef Reviewed-on: https://go-review.googlesource.com/102075 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
committed by
Tobias Klauser
parent
c488ab1dd8
commit
1e3c7779a7
@@ -142,7 +142,7 @@ type Dirent struct {
|
|||||||
Namlen uint16
|
Namlen uint16
|
||||||
Type uint8
|
Type uint8
|
||||||
Name [1024]int8
|
Name [1024]int8
|
||||||
Pad_cgo_0 [3]byte
|
_ [3]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type RawSockaddrInet4 struct {
|
type RawSockaddrInet4 struct {
|
||||||
@@ -301,7 +301,7 @@ type IfMsghdr struct {
|
|||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
Data IfData
|
Data IfData
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -344,7 +344,7 @@ type IfaMsghdr struct {
|
|||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
Metric int32
|
Metric int32
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -355,7 +355,7 @@ type IfmaMsghdr struct {
|
|||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type IfmaMsghdr2 struct {
|
type IfmaMsghdr2 struct {
|
||||||
@@ -365,7 +365,7 @@ type IfmaMsghdr2 struct {
|
|||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
Refcount int32
|
Refcount int32
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -374,7 +374,7 @@ type RtMsghdr struct {
|
|||||||
Version uint8
|
Version uint8
|
||||||
Type uint8
|
Type uint8
|
||||||
Index uint16
|
Index uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
Flags int32
|
Flags int32
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Pid int32
|
Pid int32
|
||||||
@@ -434,7 +434,7 @@ type BpfHdr struct {
|
|||||||
Caplen uint32
|
Caplen uint32
|
||||||
Datalen uint32
|
Datalen uint32
|
||||||
Hdrlen uint16
|
Hdrlen uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type Termios struct {
|
type Termios struct {
|
||||||
|
|||||||
+16
-16
@@ -28,7 +28,7 @@ type Timespec struct {
|
|||||||
type Timeval struct {
|
type Timeval struct {
|
||||||
Sec int64
|
Sec int64
|
||||||
Usec int32
|
Usec int32
|
||||||
Pad_cgo_0 [4]byte
|
_ [4]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type Timeval32 struct {
|
type Timeval32 struct {
|
||||||
@@ -70,7 +70,7 @@ type Stat_t struct {
|
|||||||
Uid uint32
|
Uid uint32
|
||||||
Gid uint32
|
Gid uint32
|
||||||
Rdev int32
|
Rdev int32
|
||||||
Pad_cgo_0 [4]byte
|
_ [4]byte
|
||||||
Atimespec Timespec
|
Atimespec Timespec
|
||||||
Mtimespec Timespec
|
Mtimespec Timespec
|
||||||
Ctimespec Timespec
|
Ctimespec Timespec
|
||||||
@@ -122,7 +122,7 @@ type Fstore_t struct {
|
|||||||
type Radvisory_t struct {
|
type Radvisory_t struct {
|
||||||
Offset int64
|
Offset int64
|
||||||
Count int32
|
Count int32
|
||||||
Pad_cgo_0 [4]byte
|
_ [4]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type Fbootstraptransfer_t struct {
|
type Fbootstraptransfer_t struct {
|
||||||
@@ -133,8 +133,8 @@ type Fbootstraptransfer_t struct {
|
|||||||
|
|
||||||
type Log2phys_t struct {
|
type Log2phys_t struct {
|
||||||
Flags uint32
|
Flags uint32
|
||||||
Pad_cgo_0 [8]byte
|
_ [8]byte
|
||||||
Pad_cgo_1 [8]byte
|
_ [8]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type Fsid struct {
|
type Fsid struct {
|
||||||
@@ -148,7 +148,7 @@ type Dirent struct {
|
|||||||
Namlen uint16
|
Namlen uint16
|
||||||
Type uint8
|
Type uint8
|
||||||
Name [1024]int8
|
Name [1024]int8
|
||||||
Pad_cgo_0 [3]byte
|
_ [3]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type RawSockaddrInet4 struct {
|
type RawSockaddrInet4 struct {
|
||||||
@@ -221,10 +221,10 @@ type IPv6Mreq struct {
|
|||||||
type Msghdr struct {
|
type Msghdr struct {
|
||||||
Name *byte
|
Name *byte
|
||||||
Namelen uint32
|
Namelen uint32
|
||||||
Pad_cgo_0 [4]byte
|
_ [4]byte
|
||||||
Iov *Iovec
|
Iov *Iovec
|
||||||
Iovlen int32
|
Iovlen int32
|
||||||
Pad_cgo_1 [4]byte
|
_ [4]byte
|
||||||
Control *byte
|
Control *byte
|
||||||
Controllen uint32
|
Controllen uint32
|
||||||
Flags int32
|
Flags int32
|
||||||
@@ -309,7 +309,7 @@ type IfMsghdr struct {
|
|||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
Data IfData
|
Data IfData
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -352,7 +352,7 @@ type IfaMsghdr struct {
|
|||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
Metric int32
|
Metric int32
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -363,7 +363,7 @@ type IfmaMsghdr struct {
|
|||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type IfmaMsghdr2 struct {
|
type IfmaMsghdr2 struct {
|
||||||
@@ -373,7 +373,7 @@ type IfmaMsghdr2 struct {
|
|||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
Refcount int32
|
Refcount int32
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -382,7 +382,7 @@ type RtMsghdr struct {
|
|||||||
Version uint8
|
Version uint8
|
||||||
Type uint8
|
Type uint8
|
||||||
Index uint16
|
Index uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
Flags int32
|
Flags int32
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Pid int32
|
Pid int32
|
||||||
@@ -427,7 +427,7 @@ type BpfStat struct {
|
|||||||
|
|
||||||
type BpfProgram struct {
|
type BpfProgram struct {
|
||||||
Len uint32
|
Len uint32
|
||||||
Pad_cgo_0 [4]byte
|
_ [4]byte
|
||||||
Insns *BpfInsn
|
Insns *BpfInsn
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -443,7 +443,7 @@ type BpfHdr struct {
|
|||||||
Caplen uint32
|
Caplen uint32
|
||||||
Datalen uint32
|
Datalen uint32
|
||||||
Hdrlen uint16
|
Hdrlen uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type Termios struct {
|
type Termios struct {
|
||||||
@@ -452,7 +452,7 @@ type Termios struct {
|
|||||||
Cflag uint64
|
Cflag uint64
|
||||||
Lflag uint64
|
Lflag uint64
|
||||||
Cc [20]uint8
|
Cc [20]uint8
|
||||||
Pad_cgo_0 [4]byte
|
_ [4]byte
|
||||||
Ispeed uint64
|
Ispeed uint64
|
||||||
Ospeed uint64
|
Ospeed uint64
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ type Dirent struct {
|
|||||||
Namlen uint16
|
Namlen uint16
|
||||||
Type uint8
|
Type uint8
|
||||||
Name [1024]int8
|
Name [1024]int8
|
||||||
Pad_cgo_0 [3]byte
|
_ [3]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type RawSockaddrInet4 struct {
|
type RawSockaddrInet4 struct {
|
||||||
@@ -302,7 +302,7 @@ type IfMsghdr struct {
|
|||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
Data IfData
|
Data IfData
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -345,7 +345,7 @@ type IfaMsghdr struct {
|
|||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
Metric int32
|
Metric int32
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -356,7 +356,7 @@ type IfmaMsghdr struct {
|
|||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type IfmaMsghdr2 struct {
|
type IfmaMsghdr2 struct {
|
||||||
@@ -366,7 +366,7 @@ type IfmaMsghdr2 struct {
|
|||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
Refcount int32
|
Refcount int32
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -375,7 +375,7 @@ type RtMsghdr struct {
|
|||||||
Version uint8
|
Version uint8
|
||||||
Type uint8
|
Type uint8
|
||||||
Index uint16
|
Index uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
Flags int32
|
Flags int32
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Pid int32
|
Pid int32
|
||||||
@@ -435,7 +435,7 @@ type BpfHdr struct {
|
|||||||
Caplen uint32
|
Caplen uint32
|
||||||
Datalen uint32
|
Datalen uint32
|
||||||
Hdrlen uint16
|
Hdrlen uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type Termios struct {
|
type Termios struct {
|
||||||
|
|||||||
+16
-16
@@ -28,7 +28,7 @@ type Timespec struct {
|
|||||||
type Timeval struct {
|
type Timeval struct {
|
||||||
Sec int64
|
Sec int64
|
||||||
Usec int32
|
Usec int32
|
||||||
Pad_cgo_0 [4]byte
|
_ [4]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type Timeval32 struct {
|
type Timeval32 struct {
|
||||||
@@ -70,7 +70,7 @@ type Stat_t struct {
|
|||||||
Uid uint32
|
Uid uint32
|
||||||
Gid uint32
|
Gid uint32
|
||||||
Rdev int32
|
Rdev int32
|
||||||
Pad_cgo_0 [4]byte
|
_ [4]byte
|
||||||
Atimespec Timespec
|
Atimespec Timespec
|
||||||
Mtimespec Timespec
|
Mtimespec Timespec
|
||||||
Ctimespec Timespec
|
Ctimespec Timespec
|
||||||
@@ -122,7 +122,7 @@ type Fstore_t struct {
|
|||||||
type Radvisory_t struct {
|
type Radvisory_t struct {
|
||||||
Offset int64
|
Offset int64
|
||||||
Count int32
|
Count int32
|
||||||
Pad_cgo_0 [4]byte
|
_ [4]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type Fbootstraptransfer_t struct {
|
type Fbootstraptransfer_t struct {
|
||||||
@@ -133,8 +133,8 @@ type Fbootstraptransfer_t struct {
|
|||||||
|
|
||||||
type Log2phys_t struct {
|
type Log2phys_t struct {
|
||||||
Flags uint32
|
Flags uint32
|
||||||
Pad_cgo_0 [8]byte
|
_ [8]byte
|
||||||
Pad_cgo_1 [8]byte
|
_ [8]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type Fsid struct {
|
type Fsid struct {
|
||||||
@@ -148,7 +148,7 @@ type Dirent struct {
|
|||||||
Namlen uint16
|
Namlen uint16
|
||||||
Type uint8
|
Type uint8
|
||||||
Name [1024]int8
|
Name [1024]int8
|
||||||
Pad_cgo_0 [3]byte
|
_ [3]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type RawSockaddrInet4 struct {
|
type RawSockaddrInet4 struct {
|
||||||
@@ -221,10 +221,10 @@ type IPv6Mreq struct {
|
|||||||
type Msghdr struct {
|
type Msghdr struct {
|
||||||
Name *byte
|
Name *byte
|
||||||
Namelen uint32
|
Namelen uint32
|
||||||
Pad_cgo_0 [4]byte
|
_ [4]byte
|
||||||
Iov *Iovec
|
Iov *Iovec
|
||||||
Iovlen int32
|
Iovlen int32
|
||||||
Pad_cgo_1 [4]byte
|
_ [4]byte
|
||||||
Control *byte
|
Control *byte
|
||||||
Controllen uint32
|
Controllen uint32
|
||||||
Flags int32
|
Flags int32
|
||||||
@@ -309,7 +309,7 @@ type IfMsghdr struct {
|
|||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
Data IfData
|
Data IfData
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -352,7 +352,7 @@ type IfaMsghdr struct {
|
|||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
Metric int32
|
Metric int32
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -363,7 +363,7 @@ type IfmaMsghdr struct {
|
|||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type IfmaMsghdr2 struct {
|
type IfmaMsghdr2 struct {
|
||||||
@@ -373,7 +373,7 @@ type IfmaMsghdr2 struct {
|
|||||||
Addrs int32
|
Addrs int32
|
||||||
Flags int32
|
Flags int32
|
||||||
Index uint16
|
Index uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
Refcount int32
|
Refcount int32
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -382,7 +382,7 @@ type RtMsghdr struct {
|
|||||||
Version uint8
|
Version uint8
|
||||||
Type uint8
|
Type uint8
|
||||||
Index uint16
|
Index uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
Flags int32
|
Flags int32
|
||||||
Addrs int32
|
Addrs int32
|
||||||
Pid int32
|
Pid int32
|
||||||
@@ -427,7 +427,7 @@ type BpfStat struct {
|
|||||||
|
|
||||||
type BpfProgram struct {
|
type BpfProgram struct {
|
||||||
Len uint32
|
Len uint32
|
||||||
Pad_cgo_0 [4]byte
|
_ [4]byte
|
||||||
Insns *BpfInsn
|
Insns *BpfInsn
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -443,7 +443,7 @@ type BpfHdr struct {
|
|||||||
Caplen uint32
|
Caplen uint32
|
||||||
Datalen uint32
|
Datalen uint32
|
||||||
Hdrlen uint16
|
Hdrlen uint16
|
||||||
Pad_cgo_0 [2]byte
|
_ [2]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type Termios struct {
|
type Termios struct {
|
||||||
@@ -452,7 +452,7 @@ type Termios struct {
|
|||||||
Cflag uint64
|
Cflag uint64
|
||||||
Lflag uint64
|
Lflag uint64
|
||||||
Cc [20]uint8
|
Cc [20]uint8
|
||||||
Pad_cgo_0 [4]byte
|
_ [4]byte
|
||||||
Ispeed uint64
|
Ispeed uint64
|
||||||
Ospeed uint64
|
Ospeed uint64
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user