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.
This commit is contained in:
Jeff Johnston 2008-01-03 00:16:49 +00:00
parent 2dba9eb2d4
commit 7c8bd7a075
19 changed files with 22 additions and 76 deletions

View File

@ -1,3 +1,25 @@
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.
2007-12-19 Jeff Johnston <jjohnstn@redhat.com>
* NEWS: Update with 1.16.0 info.

View File

@ -6,9 +6,5 @@ int
_DEFUN (close, (fd),
int fd)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _close_r (_REENT, fd);
#else
return _close (fd);
#endif
}

View File

@ -8,9 +8,5 @@ _DEFUN (execve, (name, argv, env),
char **argv _AND
char **env)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _execve_r (_REENT, name, argv, env);
#else
return _execve (name, argv, env);
#endif
}

View File

@ -11,11 +11,7 @@ _DEFUN (fcntl, (fd, flag, arg),
int arg)
{
#ifdef HAVE_FCNTL
# ifdef REENTRANT_SYSCALLS_PROVIDED
return _fcntl_r (_REENT, fd, flag, arg);
# else
return _fcntl (fd, flag, arg);
# endif
#else /* !HAVE_FCNTL */
errno = ENOSYS;
return -1;

View File

@ -9,11 +9,7 @@
int
_DEFUN_VOID (fork)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _fork_r (_REENT);
#else
return _fork ();
#endif
}
#endif

View File

@ -8,9 +8,5 @@ _DEFUN (fstat, (fd, pstat),
int fd _AND
struct stat *pstat)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _fstat_r (_REENT, fd, pstat);
#else
return _fstat (fd, pstat);
#endif
}

View File

@ -5,9 +5,5 @@
int
_DEFUN_VOID (getpid)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _getpid_r (_REENT);
#else
return _getpid ();
#endif
}

View File

@ -12,9 +12,5 @@ _DEFUN (gettimeofday, (ptimeval, ptimezone),
struct timeval *ptimeval _AND
struct timezone *ptimezone)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _gettimeofday_r (_REENT, ptimeval, ptimezone);
#else
return _gettimeofday (ptimeval, ptimezone);
#endif
}

View File

@ -7,9 +7,5 @@ _DEFUN (kill, (pid, sig),
int pid _AND
int sig)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _kill_r (_REENT, pid, sig);
#else
return _kill (pid, sig);
#endif
}

View File

@ -7,9 +7,5 @@ _DEFUN (link, (old, new),
char *old _AND
char *new)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _link_r (_REENT, old, new);
#else
return _link (old, new);
#endif
}

View File

@ -9,9 +9,5 @@ _DEFUN (lseek, (fd, pos, whence),
off_t pos _AND
int whence)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _lseek_r (_REENT, fd, pos, whence);
#else
return _lseek (fd, pos, whence);
#endif
}

View File

@ -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 */

View File

@ -9,9 +9,5 @@ _DEFUN (read, (fd, buf, cnt),
void *buf _AND
size_t cnt)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _read_r (_REENT, fd, buf, cnt);
#else
return _read (fd, buf, cnt);
#endif
}

View File

@ -10,9 +10,5 @@ void *
_DEFUN (sbrk, (incr),
ptrdiff_t incr)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _sbrk_r (_REENT, incr);
#else
return _sbrk (incr);
#endif
}

View File

@ -8,9 +8,5 @@ _DEFUN (stat, (file, pstat),
char *file _AND
struct stat *pstat)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _stat_r (_REENT, file, pstat);
#else
return _stat (file, pstat);
#endif
}

View File

@ -7,9 +7,5 @@ clock_t
_DEFUN (times, (buf),
struct tms *buf)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _times_r (_REENT, buf);
#else
return _times (buf);
#endif
}

View File

@ -6,9 +6,5 @@ int
_DEFUN (unlink, (file),
char *file)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _unlink_r (_REENT, file);
#else
return _unlink (file);
#endif
}

View File

@ -6,9 +6,5 @@ int
_DEFUN (wait, (status),
int *status)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _wait_r (_REENT, status);
#else
return _wait (status);
#endif
}

View File

@ -9,9 +9,5 @@ _DEFUN (write, (fd, buf, cnt),
const void *buf _AND
size_t cnt)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _write_r (_REENT, fd, buf, cnt);
#else
return _write (fd, buf, cnt);
#endif
}