Commit bcaab34b authored by Tobias Klauser's avatar Tobias Klauser Committed by Tobias Klauser

unix: don't export padding fields on DragonflyBSD

Re-run ./mkall.sh to avoid exporting Pad_cgo* fields on dragonfly/amd64.
This also adds some additional RLIMIT_* constants.

Updates golang/go#18632

Change-Id: I7969d8ab12c07befd7b1ff0d1dbc67f6622c39b1
Reviewed-on: https://go-review.googlesource.com/100595
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 0edb9633
...@@ -980,7 +980,10 @@ const ( ...@@ -980,7 +980,10 @@ const (
RLIMIT_CPU = 0x0 RLIMIT_CPU = 0x0
RLIMIT_DATA = 0x2 RLIMIT_DATA = 0x2
RLIMIT_FSIZE = 0x1 RLIMIT_FSIZE = 0x1
RLIMIT_MEMLOCK = 0x6
RLIMIT_NOFILE = 0x8 RLIMIT_NOFILE = 0x8
RLIMIT_NPROC = 0x7
RLIMIT_RSS = 0x5
RLIMIT_STACK = 0x3 RLIMIT_STACK = 0x3
RLIM_INFINITY = 0x7fffffffffffffff RLIM_INFINITY = 0x7fffffffffffffff
RTAX_AUTHOR = 0x6 RTAX_AUTHOR = 0x6
......
...@@ -108,7 +108,7 @@ type Statfs_t struct { ...@@ -108,7 +108,7 @@ type Statfs_t struct {
Owner uint32 Owner uint32
Type int32 Type int32
Flags int32 Flags int32
Pad_cgo_0 [4]byte _ [4]byte
Syncwrites int64 Syncwrites int64
Asyncwrites int64 Asyncwrites int64
Fstypename [16]int8 Fstypename [16]int8
...@@ -118,7 +118,7 @@ type Statfs_t struct { ...@@ -118,7 +118,7 @@ type Statfs_t struct {
Spares1 int16 Spares1 int16
Mntfromname [80]int8 Mntfromname [80]int8
Spares2 int16 Spares2 int16
Pad_cgo_1 [4]byte _ [4]byte
Spare [2]int64 Spare [2]int64
} }
...@@ -219,10 +219,10 @@ type IPv6Mreq struct { ...@@ -219,10 +219,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
...@@ -300,7 +300,7 @@ type IfMsghdr struct { ...@@ -300,7 +300,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
} }
...@@ -311,7 +311,7 @@ type IfData struct { ...@@ -311,7 +311,7 @@ type IfData struct {
Hdrlen uint8 Hdrlen uint8
Recvquota uint8 Recvquota uint8
Xmitquota uint8 Xmitquota uint8
Pad_cgo_0 [2]byte _ [2]byte
Mtu uint64 Mtu uint64
Metric uint64 Metric uint64
Link_state uint64 Link_state uint64
...@@ -339,7 +339,7 @@ type IfaMsghdr struct { ...@@ -339,7 +339,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
} }
...@@ -350,7 +350,7 @@ type IfmaMsghdr struct { ...@@ -350,7 +350,7 @@ type IfmaMsghdr struct {
Addrs int32 Addrs int32
Flags int32 Flags int32
Index uint16 Index uint16
Pad_cgo_0 [2]byte _ [2]byte
} }
type IfAnnounceMsghdr struct { type IfAnnounceMsghdr struct {
...@@ -367,7 +367,7 @@ type RtMsghdr struct { ...@@ -367,7 +367,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
...@@ -391,7 +391,7 @@ type RtMetrics struct { ...@@ -391,7 +391,7 @@ type RtMetrics struct {
Hopcount uint64 Hopcount uint64
Mssopt uint16 Mssopt uint16
Pad uint16 Pad uint16
Pad_cgo_0 [4]byte _ [4]byte
Msl uint64 Msl uint64
Iwmaxsegs uint64 Iwmaxsegs uint64
Iwcapsegs uint64 Iwcapsegs uint64
...@@ -417,7 +417,7 @@ type BpfStat struct { ...@@ -417,7 +417,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
} }
...@@ -433,7 +433,7 @@ type BpfHdr struct { ...@@ -433,7 +433,7 @@ type BpfHdr struct {
Caplen uint32 Caplen uint32
Datalen uint32 Datalen uint32
Hdrlen uint16 Hdrlen uint16
Pad_cgo_0 [6]byte _ [6]byte
} }
type Termios struct { type Termios 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