Commit 2de2dc26 authored by Joel Sing's avatar Joel Sing

syscall: regenerate ztypes for openbsd/arm

Regenerate ztypes for openbsd/arm - most of the changes relate to the OpenBSD armv7 port
switching to EABI in September 2016.

Also use signed char when generating openbsd/arm ztypes, to avoid inconsistencies between
architectures impacting MI code.

Change-Id: I9d2e19c1ac045922e270896861c830f94fc59c10
Reviewed-on: https://go-review.googlesource.com/c/153578
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent ba1de79a
...@@ -310,7 +310,9 @@ openbsd_arm) ...@@ -310,7 +310,9 @@ openbsd_arm)
mksysctl="./mksysctl_openbsd.pl" mksysctl="./mksysctl_openbsd.pl"
zsysctl="zsysctl_openbsd.go" zsysctl="zsysctl_openbsd.go"
mksysnum="curl -s 'http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_openbsd.pl" mksysnum="curl -s 'http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_openbsd.pl"
mktypes="GOARCH=$GOARCH go tool cgo -godefs" # Let the type of C char be signed to make the bare syscall
# API consistent between platforms.
mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char"
;; ;;
plan9_386) plan9_386)
mkerrors= mkerrors=
......
// Created by cgo -godefs - DO NOT EDIT // Code generated by cmd/cgo -godefs; DO NOT EDIT.
// cgo -godefs types_openbsd.go // cgo -godefs -- -fsigned-char types_openbsd.go
// +build arm,openbsd
package syscall package syscall
...@@ -21,13 +19,15 @@ type ( ...@@ -21,13 +19,15 @@ type (
) )
type Timespec struct { type Timespec struct {
Sec int64 Sec int64
Nsec int32 Nsec int32
Pad_cgo_0 [4]byte
} }
type Timeval struct { type Timeval struct {
Sec int64 Sec int64
Usec int32 Usec int32
Pad_cgo_0 [4]byte
} }
type Rusage struct { type Rusage struct {
...@@ -91,6 +91,7 @@ type Stat_t struct { ...@@ -91,6 +91,7 @@ type Stat_t struct {
Blksize int32 Blksize int32
Flags uint32 Flags uint32
Gen uint32 Gen uint32
Pad_cgo_0 [4]byte
X__st_birthtim Timespec X__st_birthtim Timespec
} }
...@@ -98,6 +99,7 @@ type Statfs_t struct { ...@@ -98,6 +99,7 @@ type Statfs_t struct {
F_flags uint32 F_flags uint32
F_bsize uint32 F_bsize uint32
F_iosize uint32 F_iosize uint32
Pad_cgo_0 [4]byte
F_blocks uint64 F_blocks uint64
F_bfree uint64 F_bfree uint64
F_bavail int64 F_bavail int64
...@@ -112,11 +114,11 @@ type Statfs_t struct { ...@@ -112,11 +114,11 @@ type Statfs_t struct {
F_namemax uint32 F_namemax uint32
F_owner uint32 F_owner uint32
F_ctime uint64 F_ctime uint64
F_fstypename [16]uint8 F_fstypename [16]int8
F_mntonname [90]uint8 F_mntonname [90]int8
F_mntfromname [90]uint8 F_mntfromname [90]int8
F_mntfromspec [90]uint8 F_mntfromspec [90]int8
Pad_cgo_0 [2]byte Pad_cgo_1 [2]byte
Mount_info [160]byte Mount_info [160]byte
} }
...@@ -135,7 +137,7 @@ type Dirent struct { ...@@ -135,7 +137,7 @@ type Dirent struct {
Type uint8 Type uint8
Namlen uint8 Namlen uint8
X__d_padding [4]uint8 X__d_padding [4]uint8
Name [256]uint8 Name [256]int8
} }
type Fsid struct { type Fsid struct {
...@@ -266,12 +268,14 @@ const ( ...@@ -266,12 +268,14 @@ const (
) )
type Kevent_t struct { type Kevent_t struct {
Ident uint32 Ident uint32
Filter int16 Filter int16
Flags uint16 Flags uint16
Fflags uint32 Fflags uint32
Data int64 Pad_cgo_0 [4]byte
Udata *byte Data int64
Udata *byte
Pad_cgo_1 [4]byte
} }
type FdSet struct { type FdSet struct {
...@@ -279,8 +283,8 @@ type FdSet struct { ...@@ -279,8 +283,8 @@ type FdSet struct {
} }
const ( const (
SizeofIfMsghdr = 0x98 SizeofIfMsghdr = 0xa8
SizeofIfData = 0x80 SizeofIfData = 0x90
SizeofIfaMsghdr = 0x18 SizeofIfaMsghdr = 0x18
SizeofIfAnnounceMsghdr = 0x1a SizeofIfAnnounceMsghdr = 0x1a
SizeofRtMsghdr = 0x60 SizeofRtMsghdr = 0x60
...@@ -309,7 +313,7 @@ type IfData struct { ...@@ -309,7 +313,7 @@ type IfData struct {
Link_state uint8 Link_state uint8
Mtu uint32 Mtu uint32
Metric uint32 Metric uint32
Pad uint32 Rdomain uint32
Baudrate uint64 Baudrate uint64
Ipackets uint64 Ipackets uint64
Ierrors uint64 Ierrors uint64
...@@ -321,8 +325,10 @@ type IfData struct { ...@@ -321,8 +325,10 @@ type IfData struct {
Imcasts uint64 Imcasts uint64
Omcasts uint64 Omcasts uint64
Iqdrops uint64 Iqdrops uint64
Oqdrops uint64
Noproto uint64 Noproto uint64
Capabilities uint32 Capabilities uint32
Pad_cgo_0 [4]byte
Lastchange Timeval Lastchange Timeval
} }
...@@ -347,7 +353,7 @@ type IfAnnounceMsghdr struct { ...@@ -347,7 +353,7 @@ type IfAnnounceMsghdr struct {
Hdrlen uint16 Hdrlen uint16
Index uint16 Index uint16
What uint16 What uint16
Name [16]uint8 Name [16]int8
} }
type RtMsghdr struct { type RtMsghdr 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