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:
parent
2dba9eb2d4
commit
7c8bd7a075
|
@ -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>
|
2007-12-19 Jeff Johnston <jjohnstn@redhat.com>
|
||||||
|
|
||||||
* NEWS: Update with 1.16.0 info.
|
* NEWS: Update with 1.16.0 info.
|
||||||
|
|
|
@ -6,9 +6,5 @@ int
|
||||||
_DEFUN (close, (fd),
|
_DEFUN (close, (fd),
|
||||||
int fd)
|
int fd)
|
||||||
{
|
{
|
||||||
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
|
||||||
return _close_r (_REENT, fd);
|
return _close_r (_REENT, fd);
|
||||||
#else
|
|
||||||
return _close (fd);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,9 +8,5 @@ _DEFUN (execve, (name, argv, env),
|
||||||
char **argv _AND
|
char **argv _AND
|
||||||
char **env)
|
char **env)
|
||||||
{
|
{
|
||||||
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
|
||||||
return _execve_r (_REENT, name, argv, env);
|
return _execve_r (_REENT, name, argv, env);
|
||||||
#else
|
|
||||||
return _execve (name, argv, env);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,11 +11,7 @@ _DEFUN (fcntl, (fd, flag, arg),
|
||||||
int arg)
|
int arg)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_FCNTL
|
#ifdef HAVE_FCNTL
|
||||||
# ifdef REENTRANT_SYSCALLS_PROVIDED
|
|
||||||
return _fcntl_r (_REENT, fd, flag, arg);
|
return _fcntl_r (_REENT, fd, flag, arg);
|
||||||
# else
|
|
||||||
return _fcntl (fd, flag, arg);
|
|
||||||
# endif
|
|
||||||
#else /* !HAVE_FCNTL */
|
#else /* !HAVE_FCNTL */
|
||||||
errno = ENOSYS;
|
errno = ENOSYS;
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -9,11 +9,7 @@
|
||||||
int
|
int
|
||||||
_DEFUN_VOID (fork)
|
_DEFUN_VOID (fork)
|
||||||
{
|
{
|
||||||
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
|
||||||
return _fork_r (_REENT);
|
return _fork_r (_REENT);
|
||||||
#else
|
|
||||||
return _fork ();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -8,9 +8,5 @@ _DEFUN (fstat, (fd, pstat),
|
||||||
int fd _AND
|
int fd _AND
|
||||||
struct stat *pstat)
|
struct stat *pstat)
|
||||||
{
|
{
|
||||||
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
|
||||||
return _fstat_r (_REENT, fd, pstat);
|
return _fstat_r (_REENT, fd, pstat);
|
||||||
#else
|
|
||||||
return _fstat (fd, pstat);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,9 +5,5 @@
|
||||||
int
|
int
|
||||||
_DEFUN_VOID (getpid)
|
_DEFUN_VOID (getpid)
|
||||||
{
|
{
|
||||||
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
|
||||||
return _getpid_r (_REENT);
|
return _getpid_r (_REENT);
|
||||||
#else
|
|
||||||
return _getpid ();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,9 +12,5 @@ _DEFUN (gettimeofday, (ptimeval, ptimezone),
|
||||||
struct timeval *ptimeval _AND
|
struct timeval *ptimeval _AND
|
||||||
struct timezone *ptimezone)
|
struct timezone *ptimezone)
|
||||||
{
|
{
|
||||||
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
|
||||||
return _gettimeofday_r (_REENT, ptimeval, ptimezone);
|
return _gettimeofday_r (_REENT, ptimeval, ptimezone);
|
||||||
#else
|
|
||||||
return _gettimeofday (ptimeval, ptimezone);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,9 +7,5 @@ _DEFUN (kill, (pid, sig),
|
||||||
int pid _AND
|
int pid _AND
|
||||||
int sig)
|
int sig)
|
||||||
{
|
{
|
||||||
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
|
||||||
return _kill_r (_REENT, pid, sig);
|
return _kill_r (_REENT, pid, sig);
|
||||||
#else
|
|
||||||
return _kill (pid, sig);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,9 +7,5 @@ _DEFUN (link, (old, new),
|
||||||
char *old _AND
|
char *old _AND
|
||||||
char *new)
|
char *new)
|
||||||
{
|
{
|
||||||
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
|
||||||
return _link_r (_REENT, old, new);
|
return _link_r (_REENT, old, new);
|
||||||
#else
|
|
||||||
return _link (old, new);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,9 +9,5 @@ _DEFUN (lseek, (fd, pos, whence),
|
||||||
off_t pos _AND
|
off_t pos _AND
|
||||||
int whence)
|
int whence)
|
||||||
{
|
{
|
||||||
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
|
||||||
return _lseek_r (_REENT, fd, pos, whence);
|
return _lseek_r (_REENT, fd, pos, whence);
|
||||||
#else
|
|
||||||
return _lseek (fd, pos, whence);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,11 +18,7 @@ _DEFUN (open, (file, flags, ...),
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
va_start (ap, flags);
|
va_start (ap, flags);
|
||||||
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
|
||||||
ret = _open_r (_REENT, file, flags, va_arg (ap, int));
|
ret = _open_r (_REENT, file, flags, va_arg (ap, int));
|
||||||
#else
|
|
||||||
ret = _open (file, flags, va_arg (ap, int));
|
|
||||||
#endif
|
|
||||||
va_end (ap);
|
va_end (ap);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -35,11 +31,7 @@ open (file, flags, mode)
|
||||||
int flags;
|
int flags;
|
||||||
int mode;
|
int mode;
|
||||||
{
|
{
|
||||||
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
|
||||||
return _open_r (_REENT, file, flags, mode);
|
return _open_r (_REENT, file, flags, mode);
|
||||||
#else
|
|
||||||
return _open (file, flags, mode);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* ! _HAVE_STDC */
|
#endif /* ! _HAVE_STDC */
|
||||||
|
|
|
@ -9,9 +9,5 @@ _DEFUN (read, (fd, buf, cnt),
|
||||||
void *buf _AND
|
void *buf _AND
|
||||||
size_t cnt)
|
size_t cnt)
|
||||||
{
|
{
|
||||||
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
|
||||||
return _read_r (_REENT, fd, buf, cnt);
|
return _read_r (_REENT, fd, buf, cnt);
|
||||||
#else
|
|
||||||
return _read (fd, buf, cnt);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,9 +10,5 @@ void *
|
||||||
_DEFUN (sbrk, (incr),
|
_DEFUN (sbrk, (incr),
|
||||||
ptrdiff_t incr)
|
ptrdiff_t incr)
|
||||||
{
|
{
|
||||||
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
|
||||||
return _sbrk_r (_REENT, incr);
|
return _sbrk_r (_REENT, incr);
|
||||||
#else
|
|
||||||
return _sbrk (incr);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,9 +8,5 @@ _DEFUN (stat, (file, pstat),
|
||||||
char *file _AND
|
char *file _AND
|
||||||
struct stat *pstat)
|
struct stat *pstat)
|
||||||
{
|
{
|
||||||
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
|
||||||
return _stat_r (_REENT, file, pstat);
|
return _stat_r (_REENT, file, pstat);
|
||||||
#else
|
|
||||||
return _stat (file, pstat);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,9 +7,5 @@ clock_t
|
||||||
_DEFUN (times, (buf),
|
_DEFUN (times, (buf),
|
||||||
struct tms *buf)
|
struct tms *buf)
|
||||||
{
|
{
|
||||||
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
|
||||||
return _times_r (_REENT, buf);
|
return _times_r (_REENT, buf);
|
||||||
#else
|
|
||||||
return _times (buf);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,9 +6,5 @@ int
|
||||||
_DEFUN (unlink, (file),
|
_DEFUN (unlink, (file),
|
||||||
char *file)
|
char *file)
|
||||||
{
|
{
|
||||||
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
|
||||||
return _unlink_r (_REENT, file);
|
return _unlink_r (_REENT, file);
|
||||||
#else
|
|
||||||
return _unlink (file);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,9 +6,5 @@ int
|
||||||
_DEFUN (wait, (status),
|
_DEFUN (wait, (status),
|
||||||
int *status)
|
int *status)
|
||||||
{
|
{
|
||||||
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
|
||||||
return _wait_r (_REENT, status);
|
return _wait_r (_REENT, status);
|
||||||
#else
|
|
||||||
return _wait (status);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,9 +9,5 @@ _DEFUN (write, (fd, buf, cnt),
|
||||||
const void *buf _AND
|
const void *buf _AND
|
||||||
size_t cnt)
|
size_t cnt)
|
||||||
{
|
{
|
||||||
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
|
||||||
return _write_r (_REENT, fd, buf, cnt);
|
return _write_r (_REENT, fd, buf, cnt);
|
||||||
#else
|
|
||||||
return _write (fd, buf, cnt);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue