Selaa lähdekoodia

Add in flock (though nobody should use it...)

Eric Andersen 25 vuotta sitten
vanhempi
commit
14f75440f8
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      libc/sysdeps/linux/common/syscalls.c

+ 3 - 2
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)