repo.or.cz
/
newlib-cygwin.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git]
/
newlib
/
libc
/
syscalls
/
sysfcntl.c
blob
feccbf0724ffe5460bcf40163f32e53106aabb16
1
/* connector for fcntl */
2
/* only called from stdio/fdopen.c, so arg can be int. */
3
4
#include <reent.h>
5
#include <errno.h>
6
7
int
8
fcntl
(
int
fd
,
9
int
flag
,
10
int
arg
)
11
{
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 */
18
}