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
/
sysopen.c
blob
bc8d9d59f866eb9e4765d6cd669a2f3e08060c30
1
/* connector for open */
2
3
#include <reent.h>
4
#include <fcntl.h>
5
6
7
/* The prototype in <fcntl.h> uses ..., so we must correspond. */
8
9
#include <stdarg.h>
10
11
int
12
open
(
const char
*
file
,
13
int
flags
, ...)
14
{
15
va_list
ap
;
16
int
ret
;
17
18
va_start
(
ap
,
flags
);
19
ret
=
_open_r
(
_REENT
,
file
,
flags
,
va_arg
(
ap
,
int
));
20
va_end
(
ap
);
21
return
ret
;
22
}
23