flock.c 417 B

123456789101112131415161718
  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. #include <sys/syscall.h>
  9. #include <sys/file.h>
  10. #define __NR___syscall_flock __NR_flock
  11. static __inline__ _syscall2(int, __syscall_flock, int, fd, int, operation)
  12. int flock(int fd, int operation)
  13. {
  14. return (__syscall_flock(fd, operation));
  15. }