From 8a0efa53e44919bcf5ccb1d3353618a82afdf8bc Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 17 Feb 2000 19:39:52 +0000 Subject: import newlib-2000-02-17 snapshot --- newlib/libc/syscalls/sysfcntl.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 newlib/libc/syscalls/sysfcntl.c (limited to 'newlib/libc/syscalls/sysfcntl.c') diff --git a/newlib/libc/syscalls/sysfcntl.c b/newlib/libc/syscalls/sysfcntl.c new file mode 100644 index 000000000..23e1d837a --- /dev/null +++ b/newlib/libc/syscalls/sysfcntl.c @@ -0,0 +1,17 @@ +/* connector for fcntl */ +/* only called from stdio/fdopen.c, so arg can be int. */ + +#include + +int +fcntl (fd, flag, arg) + int fd; + int flag; + int arg; +{ +#ifdef REENTRANT_SYSCALLS_PROVIDED + return _fcntl_r (_REENT, fd, flag, arg); +#else + return _fcntl (fd, flag, arg); +#endif +} -- cgit v1.2.3