summaryrefslogtreecommitdiffstats
path: root/newlib/libc/syscalls/sysclose.c
blob: 90f321fc01a8c13989c290ae42242356d01f05e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* connector for close */

#include <reent.h>

int
_DEFUN (close, (fd),
     int fd)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
  return _close_r (_REENT, fd);
#else
  return _close (fd);
#endif
}