Commit 6035cb03 authored by Tobias Klauser's avatar Tobias Klauser Committed by Tobias Klauser

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: 's avatarIan Lance Taylor <iant@golang.org>
parent 591c159d
...@@ -105,7 +105,7 @@ type Stat_t struct { ...@@ -105,7 +105,7 @@ type Stat_t struct {
Mtim Timespec Mtim Timespec
Ctim Timespec Ctim Timespec
Blksize int32 Blksize int32
Pad_cgo_0 [4]byte _ [4]byte
Blocks int64 Blocks int64
Fstype [16]int8 Fstype [16]int8
} }
...@@ -113,7 +113,7 @@ type Stat_t struct { ...@@ -113,7 +113,7 @@ type Stat_t struct {
type Flock_t struct { type Flock_t struct {
Type int16 Type int16
Whence int16 Whence int16
Pad_cgo_0 [4]byte _ [4]byte
Start int64 Start int64
Len int64 Len int64
Sysid int32 Sysid int32
...@@ -126,7 +126,7 @@ type Dirent struct { ...@@ -126,7 +126,7 @@ type Dirent struct {
Off int64 Off int64
Reclen uint16 Reclen uint16
Name [1]int8 Name [1]int8
Pad_cgo_0 [5]byte _ [5]byte
} }
type _Fsblkcnt_t uint64 type _Fsblkcnt_t uint64
...@@ -213,13 +213,13 @@ type IPv6Mreq struct { ...@@ -213,13 +213,13 @@ 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
Accrights *int8 Accrights *int8
Accrightslen int32 Accrightslen int32
Pad_cgo_2 [4]byte _ [4]byte
} }
type Cmsghdr struct { type Cmsghdr struct {
...@@ -275,7 +275,7 @@ type Ustat_t struct { ...@@ -275,7 +275,7 @@ type Ustat_t struct {
Tinode uint64 Tinode uint64
Fname [6]int8 Fname [6]int8
Fpack [6]int8 Fpack [6]int8
Pad_cgo_0 [4]byte _ [4]byte
} }
const ( const (
...@@ -301,7 +301,7 @@ type IfMsghdr 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
} }
...@@ -309,7 +309,7 @@ type IfData struct { ...@@ -309,7 +309,7 @@ type IfData struct {
Type uint8 Type uint8
Addrlen uint8 Addrlen uint8
Hdrlen uint8 Hdrlen uint8
Pad_cgo_0 [1]byte _ [1]byte
Mtu uint32 Mtu uint32
Metric uint32 Metric uint32
Baudrate uint32 Baudrate uint32
...@@ -334,7 +334,7 @@ type IfaMsghdr struct { ...@@ -334,7 +334,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
} }
...@@ -343,7 +343,7 @@ type RtMsghdr struct { ...@@ -343,7 +343,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
...@@ -389,7 +389,7 @@ type BpfStat struct { ...@@ -389,7 +389,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
} }
...@@ -410,7 +410,7 @@ type BpfHdr struct { ...@@ -410,7 +410,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 {
...@@ -419,7 +419,7 @@ type Termios struct { ...@@ -419,7 +419,7 @@ type Termios struct {
Cflag uint32 Cflag uint32
Lflag uint32 Lflag uint32
Cc [19]uint8 Cc [19]uint8
Pad_cgo_0 [1]byte _ [1]byte
} }
type Termio struct { type Termio struct {
...@@ -429,7 +429,7 @@ type Termio struct { ...@@ -429,7 +429,7 @@ type Termio struct {
Lflag uint16 Lflag uint16
Line int8 Line int8
Cc [8]uint8 Cc [8]uint8
Pad_cgo_0 [1]byte _ [1]byte
} }
type Winsize struct { type Winsize struct {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment