]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: use uintptr for Mount flags.
authorDavid Anderson <danderson@google.com>
Tue, 25 Oct 2011 02:28:50 +0000 (19:28 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 25 Oct 2011 02:28:50 +0000 (19:28 -0700)
R=bradfitz, rsc
CC=golang-dev
https://golang.org/cl/5308044

src/pkg/syscall/syscall_linux.go
src/pkg/syscall/zsyscall_linux_386.go
src/pkg/syscall/zsyscall_linux_amd64.go
src/pkg/syscall/zsyscall_linux_arm.go

index 50d6fa9837580aa754cc49141b85f4650833a922..e4a6561ce57438b76494ca058361c38de6585c79 100644 (file)
@@ -784,8 +784,8 @@ func ParseDirent(buf []byte, max int, names []string) (consumed int, count int,
        return origlen - len(buf), count, names
 }
 
-//sys  mount(source string, target string, fstype string, flags uint32, data *byte) (errno int)
-func Mount(source string, target string, fstype string, flags uint32, data string) (errno int) {
+//sys  mount(source string, target string, fstype string, flags uintptr, data *byte) (errno int)
+func Mount(source string, target string, fstype string, flags uintptr, data string) (errno int) {
        // Certain file systems get rather angry and EINVAL if you give
        // them an empty string of data, rather than NULL.
        if data == "" {
index 35c54327d7e852435010d1a569074bd28d6cbb38..aed9786860444be3b5d8c759ebcd6c1b6756112b 100644 (file)
@@ -89,7 +89,7 @@ func reboot(magic1 uint, magic2 uint, cmd int, arg string) (errno int) {
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
-func mount(source string, target string, fstype string, flags uint32, data *byte) (errno int) {
+func mount(source string, target string, fstype string, flags uintptr, data *byte) (errno int) {
        _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(StringBytePtr(source))), uintptr(unsafe.Pointer(StringBytePtr(target))), uintptr(unsafe.Pointer(StringBytePtr(fstype))), uintptr(flags), uintptr(unsafe.Pointer(data)), 0)
        errno = int(e1)
        return
index 0d4ce43007b8eaeab1e6686a880d280b61a9c73f..1115baa490870402b638d35892e0eacf51bb63aa 100644 (file)
@@ -89,7 +89,7 @@ func reboot(magic1 uint, magic2 uint, cmd int, arg string) (errno int) {
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
-func mount(source string, target string, fstype string, flags uint32, data *byte) (errno int) {
+func mount(source string, target string, fstype string, flags uintptr, data *byte) (errno int) {
        _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(StringBytePtr(source))), uintptr(unsafe.Pointer(StringBytePtr(target))), uintptr(unsafe.Pointer(StringBytePtr(fstype))), uintptr(flags), uintptr(unsafe.Pointer(data)), 0)
        errno = int(e1)
        return
index a01b16ef162136690d14d2c6688dbee30b1715a8..0b13b37b4c4973edf54b1f406945a92a293450f6 100644 (file)
@@ -89,7 +89,7 @@ func reboot(magic1 uint, magic2 uint, cmd int, arg string) (errno int) {
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
-func mount(source string, target string, fstype string, flags uint32, data *byte) (errno int) {
+func mount(source string, target string, fstype string, flags uintptr, data *byte) (errno int) {
        _, _, e1 := Syscall6(SYS_MOUNT, uintptr(unsafe.Pointer(StringBytePtr(source))), uintptr(unsafe.Pointer(StringBytePtr(target))), uintptr(unsafe.Pointer(StringBytePtr(fstype))), uintptr(flags), uintptr(unsafe.Pointer(data)), 0)
        errno = int(e1)
        return