2007-07-06 Jeff Johnston <jjohnstn@redhat.com>
* arm/syscalls.c (gettimeofday): Change to POSIX signature where second argument is passed as void *. * bfin/syscalls.c (gettimeofday): Ditto. * cris/gensyscalls (gettimeofday): Ditto. * cris/linunistd.h (gettimeofday): Ditto. * crx/time.c (gettimeofday): Ditto. * frv/sim-time.c (gettimeofday): Ditto. * i386/cygmon-salib.c (gettimeofday): Ditto. * libnosys/gettod.c (gettimeofday): Ditto. * m68k/io-gettimeofday.c (gettimeofday): Ditto. * sparc/cygmon-salib.c (gettimeofday): Ditto. * spu/gettimeofday.c (gettimeofday): Ditto.
This commit is contained in:
parent
0be2bc94e7
commit
de229adb1a
|
@ -1,3 +1,18 @@
|
||||||
|
2007-07-06 Jeff Johnston <jjohnstn@redhat.com>
|
||||||
|
|
||||||
|
* arm/syscalls.c (gettimeofday): Change to POSIX signature
|
||||||
|
where second argument is passed as void *.
|
||||||
|
* bfin/syscalls.c (gettimeofday): Ditto.
|
||||||
|
* cris/gensyscalls (gettimeofday): Ditto.
|
||||||
|
* cris/linunistd.h (gettimeofday): Ditto.
|
||||||
|
* crx/time.c (gettimeofday): Ditto.
|
||||||
|
* frv/sim-time.c (gettimeofday): Ditto.
|
||||||
|
* i386/cygmon-salib.c (gettimeofday): Ditto.
|
||||||
|
* libnosys/gettod.c (gettimeofday): Ditto.
|
||||||
|
* m68k/io-gettimeofday.c (gettimeofday): Ditto.
|
||||||
|
* sparc/cygmon-salib.c (gettimeofday): Ditto.
|
||||||
|
* spu/gettimeofday.c (gettimeofday): Ditto.
|
||||||
|
|
||||||
2007-06-20 Patrick Mansfield <patmans@us.ibm.com>
|
2007-06-20 Patrick Mansfield <patmans@us.ibm.com>
|
||||||
|
|
||||||
* spu/jsre.h: Add JSRE_MKSTEMP and JSRE_MKTEMP values.
|
* spu/jsre.h: Add JSRE_MKSTEMP and JSRE_MKTEMP values.
|
||||||
|
|
|
@ -22,7 +22,7 @@ int _system _PARAMS ((const char *));
|
||||||
int _rename _PARAMS ((const char *, const char *));
|
int _rename _PARAMS ((const char *, const char *));
|
||||||
int _isatty _PARAMS ((int));
|
int _isatty _PARAMS ((int));
|
||||||
clock_t _times _PARAMS ((struct tms *));
|
clock_t _times _PARAMS ((struct tms *));
|
||||||
int _gettimeofday _PARAMS ((struct timeval *, struct timezone *));
|
int _gettimeofday _PARAMS ((struct timeval *, void *));
|
||||||
int _unlink _PARAMS ((const char *));
|
int _unlink _PARAMS ((const char *));
|
||||||
int _link _PARAMS ((void));
|
int _link _PARAMS ((void));
|
||||||
int _stat _PARAMS ((const char *, struct stat *));
|
int _stat _PARAMS ((const char *, struct stat *));
|
||||||
|
@ -525,9 +525,9 @@ _unlink (const char *path)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
_gettimeofday (struct timeval * tp, struct timezone * tzp)
|
_gettimeofday (struct timeval * tp, void * tzvp)
|
||||||
{
|
{
|
||||||
|
struct timezone *tzp = tzvp;
|
||||||
if (tp)
|
if (tp)
|
||||||
{
|
{
|
||||||
/* Ask the host for the seconds since the Unix epoch. */
|
/* Ask the host for the seconds since the Unix epoch. */
|
||||||
|
|
|
@ -196,7 +196,7 @@ _raise (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
_gettimeofday (struct timeval *tv, struct timezone *tz)
|
_gettimeofday (struct timeval *tv, void *tz)
|
||||||
{
|
{
|
||||||
tv->tv_usec = 0;
|
tv->tv_usec = 0;
|
||||||
tv->tv_sec = do_syscall (SYS_time, 0);
|
tv->tv_sec = do_syscall (SYS_time, 0);
|
||||||
|
|
|
@ -93,7 +93,7 @@ cat > gettod.c <<EOF
|
||||||
$lu#include <sys/time.h>
|
$lu#include <sys/time.h>
|
||||||
#include <sys/times.h>
|
#include <sys/times.h>
|
||||||
int
|
int
|
||||||
_gettimeofday (struct timeval *tp, struct timezone *tzp
|
_gettimeofday (struct timeval *tp, void *tzp
|
||||||
${r}gettimeofday (tp, tzp))
|
${r}gettimeofday (tp, tzp))
|
||||||
EOF
|
EOF
|
||||||
cat > isatty.c <<EOF
|
cat > isatty.c <<EOF
|
||||||
|
|
|
@ -413,7 +413,7 @@ static inline _syscall1(long,mmap,long *, buf)
|
||||||
struct timeval;
|
struct timeval;
|
||||||
struct timezone;
|
struct timezone;
|
||||||
static inline _syscall2(int,gettimeofday,struct timeval *,tp,
|
static inline _syscall2(int,gettimeofday,struct timeval *,tp,
|
||||||
struct timezone *, tzp)
|
void *, tzp)
|
||||||
static inline _syscall2(int,link,const char *,old,const char *,new)
|
static inline _syscall2(int,link,const char *,old,const char *,new)
|
||||||
static inline _syscall1(int,unlink,const char *, f)
|
static inline _syscall1(int,unlink,const char *, f)
|
||||||
struct rusage;
|
struct rusage;
|
||||||
|
|
|
@ -43,8 +43,9 @@ clock_t times (struct tms *buf)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* _gettimeofday -- implement in terms of time. */
|
/* _gettimeofday -- implement in terms of time. */
|
||||||
int gettimeofday (struct timeval *tv, struct timezone *tz)
|
int gettimeofday (struct timeval *tv, void *tzvp)
|
||||||
{
|
{
|
||||||
|
struct timezone *tz = tzvp;
|
||||||
if (tz)
|
if (tz)
|
||||||
tz->tz_minuteswest = tz->tz_dsttime = 0;
|
tz->tz_minuteswest = tz->tz_dsttime = 0;
|
||||||
|
|
||||||
|
|
|
@ -67,8 +67,9 @@ _DEFUN (_times, _times (buf),
|
||||||
int
|
int
|
||||||
_DEFUN (_gettimeofday, _gettimeofday (tv, tz),
|
_DEFUN (_gettimeofday, _gettimeofday (tv, tz),
|
||||||
struct timeval *tv _AND
|
struct timeval *tv _AND
|
||||||
struct timezone *tz)
|
void *tzvp)
|
||||||
{
|
{
|
||||||
|
struct timezone *tz = tzvp;
|
||||||
if (tz)
|
if (tz)
|
||||||
tz->tz_minuteswest = tz->tz_dsttime = 0;
|
tz->tz_minuteswest = tz->tz_dsttime = 0;
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ _syscall1(char **,__get_program_arguments,int *,argc);
|
||||||
_syscall1(void,__sys_exit,int,exitcode);
|
_syscall1(void,__sys_exit,int,exitcode);
|
||||||
_syscall1(void,putTtyChar,int,character);
|
_syscall1(void,putTtyChar,int,character);
|
||||||
_syscall1(time_t,time,time_t *,ptr);
|
_syscall1(time_t,time,time_t *,ptr);
|
||||||
_syscall2(int, gettimeofday, struct timeval *,time, struct timezone *,z);
|
_syscall2(int, gettimeofday, struct timeval *,time, void *,z);
|
||||||
_syscall3(int, __open, const char *, filename, int, mode, int, filemode);
|
_syscall3(int, __open, const char *, filename, int, mode, int, filemode);
|
||||||
_syscall4(void, profil, unsigned short *, buff, unsigned int, bufsiz,
|
_syscall4(void, profil, unsigned short *, buff, unsigned int, bufsiz,
|
||||||
unsigned int, offset, unsigned int, scale);
|
unsigned int, offset, unsigned int, scale);
|
||||||
|
|
|
@ -13,12 +13,11 @@ extern int errno;
|
||||||
#include "warning.h"
|
#include "warning.h"
|
||||||
|
|
||||||
struct timeval;
|
struct timeval;
|
||||||
struct timezone;
|
|
||||||
|
|
||||||
int
|
int
|
||||||
_DEFUN (_gettimeofday, (ptimeval, ptimezone),
|
_DEFUN (_gettimeofday, (ptimeval, ptimezone),
|
||||||
struct timeval *ptimeval _AND
|
struct timeval *ptimeval _AND
|
||||||
struct timezone *ptimezone)
|
void *ptimezone)
|
||||||
{
|
{
|
||||||
errno = ENOSYS;
|
errno = ENOSYS;
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -28,11 +28,12 @@
|
||||||
* 1 : errno
|
* 1 : errno
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int gettimeofday (struct timeval *tv, struct timezone *tz)
|
int gettimeofday (struct timeval *tv, void *tzvp)
|
||||||
{
|
{
|
||||||
#if HOSTED
|
#if HOSTED
|
||||||
gdb_parambuf_t parameters;
|
gdb_parambuf_t parameters;
|
||||||
struct gdb_timeval gtv;
|
struct gdb_timeval gtv;
|
||||||
|
struct timezone *tz = tzvp;
|
||||||
if (!tv)
|
if (!tv)
|
||||||
return 0;
|
return 0;
|
||||||
if (tz)
|
if (tz)
|
||||||
|
|
|
@ -168,7 +168,7 @@ __install_signal_handler (void *func)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
gettimeofday (struct timeval *tp, struct timezone *tzp)
|
gettimeofday (struct timeval *tp, void *tzp)
|
||||||
{
|
{
|
||||||
asm ("or %g0, 156, %g1 \n\
|
asm ("or %g0, 156, %g1 \n\
|
||||||
ta 8 \n\
|
ta 8 \n\
|
||||||
|
|
|
@ -43,7 +43,7 @@ typedef struct
|
||||||
} syscall_gettimeofday_t;
|
} syscall_gettimeofday_t;
|
||||||
|
|
||||||
int
|
int
|
||||||
gettimeofday (struct timeval *tv, struct timezone *tz)
|
gettimeofday (struct timeval *tv, void *tz)
|
||||||
{
|
{
|
||||||
syscall_gettimeofday_t sys;
|
syscall_gettimeofday_t sys;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue