From aebfd63cd93a5bef4e7eefb4c0199fbc4c43e2f2 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 13 Jul 2011 15:34:36 -0700 Subject: syscall: add Flock on Linux Fixes #2069. R=golang-dev, r CC=golang-dev https://golang.org/cl/4703048 --- src/pkg/syscall/syscall_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pkg/syscall/syscall_linux.go') diff --git a/src/pkg/syscall/syscall_linux.go b/src/pkg/syscall/syscall_linux.go index 1d6fc76c79..9fc2605c4b 100644 --- a/src/pkg/syscall/syscall_linux.go +++ b/src/pkg/syscall/syscall_linux.go @@ -774,6 +774,7 @@ func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, //sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (errno int) //sys fcntl(fd int, cmd int, arg int) (val int, errno int) //sys Fdatasync(fd int) (errno int) +//sys Flock(fd int, how int) (errno int) //sys Fsync(fd int) (errno int) //sys Getdents(fd int, buf []byte) (n int, errno int) = SYS_GETDENTS64 //sysnb Getpgid(pid int) (pgid int, errno int) @@ -878,7 +879,6 @@ func Munmap(b []byte) (errno int) { // Fadvise64 // Fgetxattr // Flistxattr -// Flock // Fork // Fremovexattr // Fsetxattr -- cgit v1.3