Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / syscalls / sysopen.c
blobbc8d9d59f866eb9e4765d6cd669a2f3e08060c30
1 /* connector for open */
3 #include <reent.h>
4 #include <fcntl.h>
7 /* The prototype in <fcntl.h> uses ..., so we must correspond. */
9 #include <stdarg.h>
11 int
12 open (const char *file,
13 int flags, ...)
15 va_list ap;
16 int ret;
18 va_start (ap, flags);
19 ret = _open_r (_REENT, file, flags, va_arg (ap, int));
20 va_end (ap);
21 return ret;