Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2007-07-06 21:00:13 +0400
committerJeff Johnston <jjohnstn@redhat.com>2007-07-06 21:00:13 +0400
commitde229adb1ac0abf2af6f870de4755a2713b65c53 (patch)
treec045530eaa2ffa467ae5b1e301c0f7e199045c78 /libgloss
parent0be2bc94e7ecd7b5555d114a54fc3a48b405ebbd (diff)
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.
Diffstat (limited to 'libgloss')
-rw-r--r--libgloss/ChangeLog15
-rw-r--r--libgloss/arm/syscalls.c6
-rw-r--r--libgloss/bfin/syscalls.c2
-rw-r--r--libgloss/cris/gensyscalls2
-rw-r--r--libgloss/cris/linunistd.h2
-rw-r--r--libgloss/crx/time.c3
-rw-r--r--libgloss/frv/sim-time.c3
-rw-r--r--libgloss/i386/cygmon-salib.c2
-rw-r--r--libgloss/libnosys/gettod.c3
-rw-r--r--libgloss/m68k/io-gettimeofday.c3
-rw-r--r--libgloss/sparc/cygmon-salib.c2
-rw-r--r--libgloss/spu/gettimeofday.c2
12 files changed, 31 insertions, 14 deletions
diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog
index b8cf3352d..44c326e38 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 81d172494..1ab383073 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 42ea72f6a..015e60454 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 9df8b0376..f925c1707 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 039679d4d..4d664a251 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 4d7cfa19a..e82468cb9 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 b28ceca02..c4746b482 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 466045d07..b4a4d34b3 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 70034597a..4d42b4b42 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 41e6ee3f7..ae4aaf628 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 395e16f87..7bffcfff8 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 372597648..9b32efbe9 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;