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:
317 bytes
|
Line | |
---|
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 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.