Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2008-01-03 03:16:49 +0300
committerJeff Johnston <jjohnstn@redhat.com>2008-01-03 03:16:49 +0300
commit7c8bd7a075a84a4d9010334b0f0cfc6cf45f49a7 (patch)
tree6a9b84fbfc5379094e2785511ce70c9539d01e83 /newlib/libc/syscalls/sysopen.c
parent2dba9eb2d43613800191b8f1284aada2eed1476c (diff)
2008-01-02 Jeff Johnston <jjohnstn@redhat.com>
* libc/syscalls/sysclose.c: Always call reentrant version of the underlying syscall since one is guaranteed to exist in libc/reent. * libc/syscalls/sysexecve.c: Ditto. * libc/syscalls/sysfcntl.c: Ditto. * libc/syscalls/sysfork.c: Ditto. * libc/syscalls/sysfstat.c: Ditto. * libc/syscalls/sysgetpid.c: Ditto. * libc/syscalls/sysgettod.c: Ditto. * libc/syscalls/syskill.c: Ditto. * libc/syscalls/syslink.c: Ditto. * libc/syscalls/syslseek.c: Ditto. * libc/syscalls/sysopen.c: Ditto. * libc/syscalls/sysread.c: Ditto. * libc/syscalls/syssbrk.c: Ditto. * libc/syscalls/sysstat.c: Ditto. * libc/syscalls/systimes.c: Ditto. * libc/syscalls/sysunlink.c: Ditto. * libc/syscalls/syswait.c: Ditto. * libc/syscalls/syswrite.c: Ditto.
Diffstat (limited to 'newlib/libc/syscalls/sysopen.c')
-rw-r--r--newlib/libc/syscalls/sysopen.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/newlib/libc/syscalls/sysopen.c b/newlib/libc/syscalls/sysopen.c
index 7e7df995f..ed0cb604a 100644
--- a/newlib/libc/syscalls/sysopen.c
+++ b/newlib/libc/syscalls/sysopen.c
@@ -18,11 +18,7 @@ _DEFUN (open, (file, flags, ...),
int ret;
va_start (ap, flags);
-#ifdef REENTRANT_SYSCALLS_PROVIDED
ret = _open_r (_REENT, file, flags, va_arg (ap, int));
-#else
- ret = _open (file, flags, va_arg (ap, int));
-#endif
va_end (ap);
return ret;
}
@@ -35,11 +31,7 @@ open (file, flags, mode)
int flags;
int mode;
{
-#ifdef REENTRANT_SYSCALLS_PROVIDED
return _open_r (_REENT, file, flags, mode);
-#else
- return _open (file, flags, mode);
-#endif
}
#endif /* ! _HAVE_STDC */