diff options
author | Ian Lance Taylor <iant@golang.org> | 2011-01-04 22:28:31 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2011-01-04 22:28:31 -0800 |
commit | 1a151120684e4a96631ffefe165fd2dc0a9f04ad (patch) | |
tree | 60df3df76a06c017518e4a2ebb0f92504dbed24f | |
parent | 69c57c28c49db4c7df1434a6aa395b0e6104d2a2 (diff) | |
download | go-1a151120684e4a96631ffefe165fd2dc0a9f04ad.tar.gz |
syscall: Make Access second argument consistently uint32.
Fixes issue 1377.
R=rsc, adg, r
CC=golang-dev
http://codereview.appspot.com/3868041
-rw-r--r-- | src/pkg/syscall/syscall_darwin.go | 2 | ||||
-rw-r--r-- | src/pkg/syscall/syscall_freebsd.go | 2 | ||||
-rw-r--r-- | src/pkg/syscall/zsyscall_darwin_386.go | 4 | ||||
-rw-r--r-- | src/pkg/syscall/zsyscall_darwin_amd64.go | 4 | ||||
-rw-r--r-- | src/pkg/syscall/zsyscall_freebsd_386.go | 4 | ||||
-rw-r--r-- | src/pkg/syscall/zsyscall_freebsd_amd64.go | 4 |
6 files changed, 10 insertions, 10 deletions
diff --git a/src/pkg/syscall/syscall_darwin.go b/src/pkg/syscall/syscall_darwin.go index 25606c112..ab83af5c1 100644 --- a/src/pkg/syscall/syscall_darwin.go +++ b/src/pkg/syscall/syscall_darwin.go @@ -25,7 +25,7 @@ func Kill(pid int, signum int) (errno int) { return kill(pid, signum, 1) } /* * Exposed directly */ -//sys Access(path string, flags int) (errno int) +//sys Access(path string, mode uint32) (errno int) //sys Adjtime(delta *Timeval, olddelta *Timeval) (errno int) //sys Chdir(path string) (errno int) //sys Chflags(path string, flags int) (errno int) diff --git a/src/pkg/syscall/syscall_freebsd.go b/src/pkg/syscall/syscall_freebsd.go index 051e1145b..ee947be20 100644 --- a/src/pkg/syscall/syscall_freebsd.go +++ b/src/pkg/syscall/syscall_freebsd.go @@ -17,7 +17,7 @@ const OS = "freebsd" /* * Exposed directly */ -//sys Access(path string, flags int) (errno int) +//sys Access(path string, mode uint32) (errno int) //sys Adjtime(delta *Timeval, olddelta *Timeval) (errno int) //sys Chdir(path string) (errno int) //sys Chflags(path string, flags int) (errno int) diff --git a/src/pkg/syscall/zsyscall_darwin_386.go b/src/pkg/syscall/zsyscall_darwin_386.go index 8f0bf3499..9718e5def 100644 --- a/src/pkg/syscall/zsyscall_darwin_386.go +++ b/src/pkg/syscall/zsyscall_darwin_386.go @@ -196,8 +196,8 @@ func kill(pid int, signum int, posix int) (errno int) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Access(path string, flags int) (errno int) { - _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(flags), 0) +func Access(path string, mode uint32) (errno int) { + _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(mode), 0) errno = int(e1) return } diff --git a/src/pkg/syscall/zsyscall_darwin_amd64.go b/src/pkg/syscall/zsyscall_darwin_amd64.go index 02d677b7a..6dca1987c 100644 --- a/src/pkg/syscall/zsyscall_darwin_amd64.go +++ b/src/pkg/syscall/zsyscall_darwin_amd64.go @@ -196,8 +196,8 @@ func kill(pid int, signum int, posix int) (errno int) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Access(path string, flags int) (errno int) { - _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(flags), 0) +func Access(path string, mode uint32) (errno int) { + _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(mode), 0) errno = int(e1) return } diff --git a/src/pkg/syscall/zsyscall_freebsd_386.go b/src/pkg/syscall/zsyscall_freebsd_386.go index 844ea2b8e..627a9a24d 100644 --- a/src/pkg/syscall/zsyscall_freebsd_386.go +++ b/src/pkg/syscall/zsyscall_freebsd_386.go @@ -188,8 +188,8 @@ func fcntl(fd int, cmd int, arg int) (val int, errno int) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Access(path string, flags int) (errno int) { - _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(flags), 0) +func Access(path string, mode uint32) (errno int) { + _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(mode), 0) errno = int(e1) return } diff --git a/src/pkg/syscall/zsyscall_freebsd_amd64.go b/src/pkg/syscall/zsyscall_freebsd_amd64.go index 571bfea63..8872367b1 100644 --- a/src/pkg/syscall/zsyscall_freebsd_amd64.go +++ b/src/pkg/syscall/zsyscall_freebsd_amd64.go @@ -188,8 +188,8 @@ func fcntl(fd int, cmd int, arg int) (val int, errno int) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func Access(path string, flags int) (errno int) { - _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(flags), 0) +func Access(path string, mode uint32) (errno int) { + _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(mode), 0) errno = int(e1) return } |