close.c 500 B

1234567891011121314151617181920
  1. /*
  2. * close() 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 <unistd.h>
  10. #include <cancel.h>
  11. #define __NR___close_nocancel __NR_close
  12. _syscall1(int, __NC(close), int, fd)
  13. #define __NR___close_nocancel_no_status __NR_close
  14. _syscall_noerr1(void, __close_nocancel_no_status, int, fd)
  15. CANCELLABLE_SYSCALL(int, close, (int fd), (fd))
  16. lt_libc_hidden(close)