* libc/sys/sh/syscalls.c (_times): New.

This commit is contained in:
Alexandre Oliva 2001-01-26 02:03:58 +00:00
parent 610b895aa1
commit b0913397ba
2 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2001-01-25 Alexandre Oliva <aoliva@redhat.com> 2001-01-25 Alexandre Oliva <aoliva@redhat.com>
* libc/sys/sh/syscalls.c (_times): New.
* configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags. * configure.host (sh*-*-*): Add -DHAVE_GETTIMEOFDAY to newlib_cflags.
* libc/sys/sh/syscalls.c (_gettimeofday): New. * libc/sys/sh/syscalls.c (_gettimeofday): New.

View File

@ -176,6 +176,14 @@ _pipe (int *fd)
return __trap34 (SYS_pipe, fd); return __trap34 (SYS_pipe, fd);
} }
/* This is only provided because _gettimeofday_r and _times_r are
defined in the same module, so we avoid a link error. */
clock_t
_times (struct tms *tp)
{
return -1;
}
int int
_gettimeofday (struct timeval *tv, struct timezone *tz) _gettimeofday (struct timeval *tv, struct timezone *tz)
{ {