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