Wolfgang Thaller ec13cc9ce7 fix newlib
2018-12-29 09:59:36 +01:00

24 lines
348 B
C

/* connector for open */
#include <reent.h>
#include <fcntl.h>
/* The prototype in <fcntl.h> uses ..., so we must correspond. */
#include <stdarg.h>
int
open (const char *file,
int flags, ...)
{
va_list ap;
int ret;
va_start (ap, flags);
ret = _open_r (_REENT, file, flags, va_arg (ap, int));
va_end (ap);
return ret;
}