Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / syscalls / sysfcntl.c
blobfeccbf0724ffe5460bcf40163f32e53106aabb16
1 /* connector for fcntl */
2 /* only called from stdio/fdopen.c, so arg can be int. */
4 #include <reent.h>
5 #include <errno.h>
7 int
8 fcntl (int fd,
9 int flag,
10 int arg)
12 #ifdef HAVE_FCNTL
13 return _fcntl_r (_REENT, fd, flag, arg);
14 #else /* !HAVE_FCNTL */
15 errno = ENOSYS;
16 return -1;
17 #endif /* !HAVE_FCNTL */