]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: Make Access second argument consistently uint32.
authorIan Lance Taylor <iant@golang.org>
Wed, 5 Jan 2011 06:28:31 +0000 (22:28 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 5 Jan 2011 06:28:31 +0000 (22:28 -0800)
Fixes #1377.

R=rsc, adg, r
CC=golang-dev
https://golang.org/cl/3868041

src/pkg/syscall/syscall_darwin.go
src/pkg/syscall/syscall_freebsd.go
src/pkg/syscall/zsyscall_darwin_386.go
src/pkg/syscall/zsyscall_darwin_amd64.go
src/pkg/syscall/zsyscall_freebsd_386.go
src/pkg/syscall/zsyscall_freebsd_amd64.go

index 25606c11225fd077fddad76bd3890824d2414622..ab83af5c156e928270fdb73d3933e3ed1b3cd60f 100644 (file)
@@ -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)
index 051e1145bccf43a29ae49587dccd8daaa990a5e3..ee947be200361ac0309cbc6761e5fc0342bf4c08 100644 (file)
@@ -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)
index 8f0bf34992512d214f817df12ab5d3d7871d6415..9718e5def45694e5b2791a2a4d220e9b32896748 100644 (file)
@@ -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
 }
index 02d677b7a905c8108ea9c15e89dfab0e19accfb4..6dca1987c9bb37f030ad61247e35f9800ce89f1b 100644 (file)
@@ -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
 }
index 844ea2b8e803a19c61dd22e8ce3cac05b3508fb2..627a9a24d83c003c506d071d4f12a92eb60fee77 100644 (file)
@@ -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
 }
index 571bfea636d7d70b07291ab1699cf0989c515612..8872367b14c35dc3938053ef60eaf425a66979ac 100644 (file)
@@ -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
 }