diff options
author | Russ Cox <rsc@golang.org> | 2014-12-05 16:17:09 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-12-05 16:17:09 -0500 |
commit | bac1f5694bd02047e8de86ff16f8481ceaedc1f4 (patch) | |
tree | 0f5d54bf2c6e1213fe4780fa19bfde76048c5595 /src/runtime/defs1_netbsd_arm.go | |
parent | 8670c52abcdb260f5366d6fa205a7c7f9b5b1067 (diff) | |
download | go-bac1f5694bd02047e8de86ff16f8481ceaedc1f4.tar.gz |
runtime: convert netbsd/arm to Go
This was the last src/runtime/*.c file.
LGTM=austin
R=austin
CC=golang-codereviews
https://codereview.appspot.com/187770043
Diffstat (limited to 'src/runtime/defs1_netbsd_arm.go')
-rw-r--r-- | src/runtime/defs1_netbsd_arm.go | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/src/runtime/defs1_netbsd_arm.go b/src/runtime/defs1_netbsd_arm.go index 54ddf3882..c976351a2 100644 --- a/src/runtime/defs1_netbsd_arm.go +++ b/src/runtime/defs1_netbsd_arm.go @@ -84,8 +84,8 @@ const ( ) type sigaltstackt struct { - ss_sp *byte - ss_size uint32 + ss_sp uintptr + ss_size uintptr ss_flags int32 } @@ -94,15 +94,16 @@ type sigset struct { } type siginfo struct { - _signo int32 - _code int32 - _errno int32 - _reason [20]byte + _signo int32 + _code int32 + _errno int32 + _reason uintptr + _reasonx [16]byte } type stackt struct { - ss_sp *byte - ss_size uint32 + ss_sp uintptr + ss_size uintptr ss_flags int32 } @@ -111,11 +112,23 @@ type timespec struct { tv_nsec int32 } +func (ts *timespec) set_sec(x int32) { + ts.tv_sec = int64(x) +} + +func (ts *timespec) set_nsec(x int32) { + ts.tv_nsec = x +} + type timeval struct { tv_sec int64 tv_usec int32 } +func (tv *timeval) set_usec(x int32) { + tv.tv_usec = x +} + type itimerval struct { it_interval timeval it_value timeval |