summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-11-17 19:15:32 +0000
committerEric Andersen <andersen@codepoet.org>2000-11-17 19:15:32 +0000
commit14f75440f8f3d704e171807a40bcf6eb8a0d00a8 (patch)
treeb7dfefef8c53161a0bffc27253de869c2138d97a /libc/sysdeps/linux
parent6d8a9ea7225b228f05cd6bc87165579d38d1994d (diff)
Add in flock (though nobody should use it...)
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index 3556f83e0..144581028 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -905,9 +905,10 @@ int select(int n, fd_set * readfds, fd_set * writefds, fd_set * exceptfds,
//#define __NR_flock 143
#ifdef L_flock
-SYSCALL__(flock, 2)
- ret
+#include <sys/file.h>
+_syscall2(int,flock,int,fd, int,operation);
#endif
+
//#define __NR_msync 144
#ifdef L_msync
SYSCALL__(msync, 3)