1 /*
2  * flock() for uClibc
3  *
4  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
5  *
6  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
7  */
8 
9 #include <sys/syscall.h>
10 #include <sys/file.h>
11 
12 #define __NR___syscall_flock __NR_flock
_syscall2(int,__syscall_flock,int,fd,int,operation)13 static __inline__ _syscall2(int, __syscall_flock, int, fd, int, operation)
14 
15 int flock(int fd, int operation)
16 {
17 	return (__syscall_flock(fd, operation));
18 }
19