summaryrefslogtreecommitdiff
path: root/src/pkg/syscall/syscall_darwin_386.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/syscall/syscall_darwin_386.go')
-rw-r--r--src/pkg/syscall/syscall_darwin_386.go12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/pkg/syscall/syscall_darwin_386.go b/src/pkg/syscall/syscall_darwin_386.go
index 5654e09da..41b7578e3 100644
--- a/src/pkg/syscall/syscall_darwin_386.go
+++ b/src/pkg/syscall/syscall_darwin_386.go
@@ -4,13 +4,9 @@
package syscall
-func Getpagesize() int {
- return 4096;
-}
+func Getpagesize() int { return 4096 }
-func TimespecToNsec(ts Timespec) int64 {
- return int64(ts.Sec)*1e9 + int64(ts.Nsec);
-}
+func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
func NsecToTimespec(nsec int64) (ts Timespec) {
ts.Sec = int32(nsec/1e9);
@@ -18,9 +14,7 @@ func NsecToTimespec(nsec int64) (ts Timespec) {
return;
}
-func TimevalToNsec(tv Timeval) int64 {
- return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3;
-}
+func TimevalToNsec(tv Timeval) int64 { return int64(tv.Sec)*1e9 + int64(tv.Usec)*1e3 }
func NsecToTimeval(nsec int64) (tv Timeval) {
nsec += 999; // round up to microsecond