diff options
author | Russ Cox <rsc@golang.org> | 2010-05-19 17:47:57 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-05-19 17:47:57 -0700 |
commit | 94b3292622846b33dafe15d32d2b20cd2ce1fbef (patch) | |
tree | 2fd3111eff2c99cd45e4a5dd459ee4adbed688dc /src/pkg/syscall/zsyscall_linux_386.go | |
parent | c94d037cd17b64739dd53ea17d170d100965aa00 (diff) | |
download | golang-94b3292622846b33dafe15d32d2b20cd2ce1fbef.tar.gz |
syscall: add Utimes on Darwin/FreeBSD, add Futimes everywhere
Needed for CL 1103041 and beyond.
R=adg, bradfitzpatrick
CC=bradfitz, golang-dev
http://codereview.appspot.com/1172042
Diffstat (limited to 'src/pkg/syscall/zsyscall_linux_386.go')
-rw-r--r-- | src/pkg/syscall/zsyscall_linux_386.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/syscall/zsyscall_linux_386.go b/src/pkg/syscall/zsyscall_linux_386.go index 4f63864ce..c1670f31e 100644 --- a/src/pkg/syscall/zsyscall_linux_386.go +++ b/src/pkg/syscall/zsyscall_linux_386.go @@ -31,8 +31,8 @@ func utimes(path string, times *[2]Timeval) (errno int) { return } -func futimesat(dirfd int, path string, times *[2]Timeval) (errno int) { - _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(unsafe.Pointer(times))) +func futimesat(dirfd int, path *byte, times *[2]Timeval) (errno int) { + _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(times))) errno = int(e1) return } |