Last change
on this file since 577 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
348 bytes
|
Line | |
---|
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 | |
---|
Note: See
TracBrowser
for help on using the repository browser.