bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnulib] Re: [bug-gnulib] Re: gettimeofday() for Win32


From: Bruno Haible
Subject: Re: [bug-gnulib] Re: [bug-gnulib] Re: gettimeofday() for Win32
Date: Wed, 24 May 2006 13:06:10 +0200
User-agent: KMail/1.5

Paul Eggert wrote:
> Some old SVR4 systems put a one-argument
> gettimeofday prototype into their <sys/time.h>.  Also, Solaris 2.4 has
> a one-argument prototype for C++ only.

The Solaris 2.4 <sys/time.h> has:

#ifdef __cplusplus
int gettimeofday(struct timeval *, void *);
int settimeofday(struct timeval *, void *);
#endif

Only its documentation is confusing: it has a manpage gettimeofday.3b with

.BI "int gettimeofday(" " tp, tzp" ")"
.br
.BI "struct timeval *" "tzp" ;
.br
.BI "struct timezone *" "tzp" ;

and a manpage gettimeofday.3c with

.BI "int gettimeofday(struct timeval *" "tp" );

So indeed I agree that very old systems apparently had a declaration with only
one argument.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]