diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2007-07-06 17:00:13 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2007-07-06 17:00:13 +0000 |
commit | de229adb1ac0abf2af6f870de4755a2713b65c53 (patch) | |
tree | c045530eaa2ffa467ae5b1e301c0f7e199045c78 | |
parent | 0be2bc94e7ecd7b5555d114a54fc3a48b405ebbd (diff) | |
download | newlib-de229adb1ac0abf2af6f870de4755a2713b65c53.zip newlib-de229adb1ac0abf2af6f870de4755a2713b65c53.tar.gz newlib-de229adb1ac0abf2af6f870de4755a2713b65c53.tar.bz2 |
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.
-rw-r--r-- | libgloss/ChangeLog | 15 | ||||
-rw-r--r-- | libgloss/arm/syscalls.c | 6 | ||||
-rw-r--r-- | libgloss/bfin/syscalls.c | 2 | ||||
-rw-r--r-- | libgloss/cris/gensyscalls | 2 | ||||
-rw-r--r-- | libgloss/cris/linunistd.h | 2 | ||||
-rw-r--r-- | libgloss/crx/time.c | 3 | ||||
-rw-r--r-- | libgloss/frv/sim-time.c | 3 | ||||
-rw-r--r-- | libgloss/i386/cygmon-salib.c | 2 | ||||
-rw-r--r-- | libgloss/libnosys/gettod.c | 3 | ||||
-rw-r--r-- | libgloss/m68k/io-gettimeofday.c | 3 | ||||
-rw-r--r-- | libgloss/sparc/cygmon-salib.c | 2 | ||||
-rw-r--r-- | libgloss/spu/gettimeofday.c | 2 |
12 files changed, 31 insertions, 14 deletions
diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog index b8cf335..44c326e 100644 --- a/libgloss/ChangeLog +++ b/libgloss/ChangeLog @@ -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> * spu/jsre.h: Add JSRE_MKSTEMP and JSRE_MKTEMP values. diff --git a/libgloss/arm/syscalls.c b/libgloss/arm/syscalls.c index 81d1724..1ab3830 100644 --- a/libgloss/arm/syscalls.c +++ b/libgloss/arm/syscalls.c @@ -22,7 +22,7 @@ int _system _PARAMS ((const char *)); int _rename _PARAMS ((const char *, const char *)); int _isatty _PARAMS ((int)); 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 _link _PARAMS ((void)); int _stat _PARAMS ((const char *, struct stat *)); @@ -525,9 +525,9 @@ _unlink (const char *path) } int -_gettimeofday (struct timeval * tp, struct timezone * tzp) +_gettimeofday (struct timeval * tp, void * tzvp) { - + struct timezone *tzp = tzvp; if (tp) { /* Ask the host for the seconds since the Unix epoch. */ diff --git a/libgloss/bfin/syscalls.c b/libgloss/bfin/syscalls.c index 42ea72f..015e604 100644 --- a/libgloss/bfin/syscalls.c +++ b/libgloss/bfin/syscalls.c @@ -196,7 +196,7 @@ _raise (void) } int -_gettimeofday (struct timeval *tv, struct timezone *tz) +_gettimeofday (struct timeval *tv, void *tz) { tv->tv_usec = 0; tv->tv_sec = do_syscall (SYS_time, 0); diff --git a/libgloss/cris/gensyscalls b/libgloss/cris/gensyscalls index 9df8b03..f925c17 100644 --- a/libgloss/cris/gensyscalls +++ b/libgloss/cris/gensyscalls @@ -93,7 +93,7 @@ cat > gettod.c <<EOF $lu#include <sys/time.h> #include <sys/times.h> int -_gettimeofday (struct timeval *tp, struct timezone *tzp +_gettimeofday (struct timeval *tp, void *tzp ${r}gettimeofday (tp, tzp)) EOF cat > isatty.c <<EOF diff --git a/libgloss/cris/linunistd.h b/libgloss/cris/linunistd.h index 039679d..4d664a2 100644 --- a/libgloss/cris/linunistd.h +++ b/libgloss/cris/linunistd.h @@ -413,7 +413,7 @@ static inline _syscall1(long,mmap,long *, buf) struct timeval; struct timezone; 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 _syscall1(int,unlink,const char *, f) struct rusage; diff --git a/libgloss/crx/time.c b/libgloss/crx/time.c index 4d7cfa1..e82468c 100644 --- a/libgloss/crx/time.c +++ b/libgloss/crx/time.c @@ -43,8 +43,9 @@ clock_t times (struct tms *buf) } /* _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) tz->tz_minuteswest = tz->tz_dsttime = 0; diff --git a/libgloss/frv/sim-time.c b/libgloss/frv/sim-time.c index b28ceca..c4746b4 100644 --- a/libgloss/frv/sim-time.c +++ b/libgloss/frv/sim-time.c @@ -67,8 +67,9 @@ _DEFUN (_times, _times (buf), int _DEFUN (_gettimeofday, _gettimeofday (tv, tz), struct timeval *tv _AND - struct timezone *tz) + void *tzvp) { + struct timezone *tz = tzvp; if (tz) tz->tz_minuteswest = tz->tz_dsttime = 0; diff --git a/libgloss/i386/cygmon-salib.c b/libgloss/i386/cygmon-salib.c index 466045d..b4a4d34 100644 --- a/libgloss/i386/cygmon-salib.c +++ b/libgloss/i386/cygmon-salib.c @@ -40,7 +40,7 @@ _syscall1(char **,__get_program_arguments,int *,argc); _syscall1(void,__sys_exit,int,exitcode); _syscall1(void,putTtyChar,int,character); _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); _syscall4(void, profil, unsigned short *, buff, unsigned int, bufsiz, unsigned int, offset, unsigned int, scale); diff --git a/libgloss/libnosys/gettod.c b/libgloss/libnosys/gettod.c index 7003459..4d42b4b 100644 --- a/libgloss/libnosys/gettod.c +++ b/libgloss/libnosys/gettod.c @@ -13,12 +13,11 @@ extern int errno; #include "warning.h" struct timeval; -struct timezone; int _DEFUN (_gettimeofday, (ptimeval, ptimezone), struct timeval *ptimeval _AND - struct timezone *ptimezone) + void *ptimezone) { errno = ENOSYS; return -1; diff --git a/libgloss/m68k/io-gettimeofday.c b/libgloss/m68k/io-gettimeofday.c index 41e6ee3..ae4aaf6 100644 --- a/libgloss/m68k/io-gettimeofday.c +++ b/libgloss/m68k/io-gettimeofday.c @@ -28,11 +28,12 @@ * 1 : errno */ -int gettimeofday (struct timeval *tv, struct timezone *tz) +int gettimeofday (struct timeval *tv, void *tzvp) { #if HOSTED gdb_parambuf_t parameters; struct gdb_timeval gtv; + struct timezone *tz = tzvp; if (!tv) return 0; if (tz) diff --git a/libgloss/sparc/cygmon-salib.c b/libgloss/sparc/cygmon-salib.c index 395e16f..7bffcff 100644 --- a/libgloss/sparc/cygmon-salib.c +++ b/libgloss/sparc/cygmon-salib.c @@ -168,7 +168,7 @@ __install_signal_handler (void *func) } int -gettimeofday (struct timeval *tp, struct timezone *tzp) +gettimeofday (struct timeval *tp, void *tzp) { asm ("or %g0, 156, %g1 \n\ ta 8 \n\ diff --git a/libgloss/spu/gettimeofday.c b/libgloss/spu/gettimeofday.c index 3725976..9b32efb 100644 --- a/libgloss/spu/gettimeofday.c +++ b/libgloss/spu/gettimeofday.c @@ -43,7 +43,7 @@ typedef struct } syscall_gettimeofday_t; int -gettimeofday (struct timeval *tv, struct timezone *tz) +gettimeofday (struct timeval *tv, void *tz) { syscall_gettimeofday_t sys; |