mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-06 00:57:18 -04:00
unix: don't export padding fields on Solaris
Re-run ./mkall.sh to avoid exporting Pad_cgo* fields on solaris/amd64. Akin to CL 89495. Updates golang/go#18632 Change-Id: Ib80bf6376d0b7c0a5efd0f5d4a0f27e8e37d8abe Reviewed-on: https://go-review.googlesource.com/100556 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
committed by
Tobias Klauser
parent
591c159dff
commit
6035cb031f
@@ -105,7 +105,7 @@ type Stat_t struct {
|
||||
Mtim Timespec
|
||||
Ctim Timespec
|
||||
Blksize int32
|
||||
Pad_cgo_0 [4]byte
|
||||
_ [4]byte
|
||||
Blocks int64
|
||||
Fstype [16]int8
|
||||
}
|
||||
@@ -113,7 +113,7 @@ type Stat_t struct {
|
||||
type Flock_t struct {
|
||||
Type int16
|
||||
Whence int16
|
||||
Pad_cgo_0 [4]byte
|
||||
_ [4]byte
|
||||
Start int64
|
||||
Len int64
|
||||
Sysid int32
|
||||
@@ -126,7 +126,7 @@ type Dirent struct {
|
||||
Off int64
|
||||
Reclen uint16
|
||||
Name [1]int8
|
||||
Pad_cgo_0 [5]byte
|
||||
_ [5]byte
|
||||
}
|
||||
|
||||
type _Fsblkcnt_t uint64
|
||||
@@ -213,13 +213,13 @@ type IPv6Mreq struct {
|
||||
type Msghdr struct {
|
||||
Name *byte
|
||||
Namelen uint32
|
||||
Pad_cgo_0 [4]byte
|
||||
_ [4]byte
|
||||
Iov *Iovec
|
||||
Iovlen int32
|
||||
Pad_cgo_1 [4]byte
|
||||
_ [4]byte
|
||||
Accrights *int8
|
||||
Accrightslen int32
|
||||
Pad_cgo_2 [4]byte
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
type Cmsghdr struct {
|
||||
@@ -275,7 +275,7 @@ type Ustat_t struct {
|
||||
Tinode uint64
|
||||
Fname [6]int8
|
||||
Fpack [6]int8
|
||||
Pad_cgo_0 [4]byte
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
const (
|
||||
@@ -301,7 +301,7 @@ type IfMsghdr struct {
|
||||
Addrs int32
|
||||
Flags int32
|
||||
Index uint16
|
||||
Pad_cgo_0 [2]byte
|
||||
_ [2]byte
|
||||
Data IfData
|
||||
}
|
||||
|
||||
@@ -309,7 +309,7 @@ type IfData struct {
|
||||
Type uint8
|
||||
Addrlen uint8
|
||||
Hdrlen uint8
|
||||
Pad_cgo_0 [1]byte
|
||||
_ [1]byte
|
||||
Mtu uint32
|
||||
Metric uint32
|
||||
Baudrate uint32
|
||||
@@ -334,7 +334,7 @@ type IfaMsghdr struct {
|
||||
Addrs int32
|
||||
Flags int32
|
||||
Index uint16
|
||||
Pad_cgo_0 [2]byte
|
||||
_ [2]byte
|
||||
Metric int32
|
||||
}
|
||||
|
||||
@@ -343,7 +343,7 @@ type RtMsghdr struct {
|
||||
Version uint8
|
||||
Type uint8
|
||||
Index uint16
|
||||
Pad_cgo_0 [2]byte
|
||||
_ [2]byte
|
||||
Flags int32
|
||||
Addrs int32
|
||||
Pid int32
|
||||
@@ -389,7 +389,7 @@ type BpfStat struct {
|
||||
|
||||
type BpfProgram struct {
|
||||
Len uint32
|
||||
Pad_cgo_0 [4]byte
|
||||
_ [4]byte
|
||||
Insns *BpfInsn
|
||||
}
|
||||
|
||||
@@ -410,7 +410,7 @@ type BpfHdr struct {
|
||||
Caplen uint32
|
||||
Datalen uint32
|
||||
Hdrlen uint16
|
||||
Pad_cgo_0 [2]byte
|
||||
_ [2]byte
|
||||
}
|
||||
|
||||
type Termios struct {
|
||||
@@ -419,7 +419,7 @@ type Termios struct {
|
||||
Cflag uint32
|
||||
Lflag uint32
|
||||
Cc [19]uint8
|
||||
Pad_cgo_0 [1]byte
|
||||
_ [1]byte
|
||||
}
|
||||
|
||||
type Termio struct {
|
||||
@@ -429,7 +429,7 @@ type Termio struct {
|
||||
Lflag uint16
|
||||
Line int8
|
||||
Cc [8]uint8
|
||||
Pad_cgo_0 [1]byte
|
||||
_ [1]byte
|
||||
}
|
||||
|
||||
type Winsize struct {
|
||||
|
||||
Reference in New Issue
Block a user