summaryrefslogtreecommitdiff
path: root/src/pkg/syscall/zsyscall_linux_386.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-05-03 11:11:01 -0700
committerRuss Cox <rsc@golang.org>2010-05-03 11:11:01 -0700
commit43bd635ff11926adcee1a3c1747406832457740b (patch)
treef87acc2bfca6a3b617dafd23987856094579ceb5 /src/pkg/syscall/zsyscall_linux_386.go
parent59c480da17fa03291e72c245bad4287ce0c832e6 (diff)
downloadgolang-43bd635ff11926adcee1a3c1747406832457740b.tar.gz
syscall: fix arm build (fix bugs in generator, to add O_LARGEFILE)
R=r CC=golang-dev http://codereview.appspot.com/1021043
Diffstat (limited to 'src/pkg/syscall/zsyscall_linux_386.go')
-rw-r--r--src/pkg/syscall/zsyscall_linux_386.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/pkg/syscall/zsyscall_linux_386.go b/src/pkg/syscall/zsyscall_linux_386.go
index 58b2979fc..4f63864ce 100644
--- a/src/pkg/syscall/zsyscall_linux_386.go
+++ b/src/pkg/syscall/zsyscall_linux_386.go
@@ -12,6 +12,13 @@ func open(path string, mode int, perm int) (fd int, errno int) {
return
}
+func openat(dirfd int, path string, flags int, mode int) (fd int, errno int) {
+ r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(flags), uintptr(mode), 0, 0)
+ fd = int(r0)
+ errno = int(e1)
+ return
+}
+
func pipe(p *[2]_C_int) (errno int) {
_, _, e1 := Syscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
errno = int(e1)
@@ -321,13 +328,6 @@ func Nanosleep(time *Timespec, leftover *Timespec) (errno int) {
return
}
-func Openat(dirfd int, path string, flags int, mode int) (fd int, errno int) {
- r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(StringBytePtr(path))), uintptr(flags), uintptr(mode), 0, 0)
- fd = int(r0)
- errno = int(e1)
- return
-}
-
func Pause() (errno int) {
_, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0)
errno = int(e1)