Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Jun 2001 14:10:14 -0700
From:      Nick Sayer <nsayer@quack.kfu.com>
To:        David Wolfskill <david@catwhisker.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: time_t definition is worng
Message-ID:  <3B1BF936.5080700@quack.kfu.com>
References:  <200106012318.f51NI8w38590@bunrab.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help
David Wolfskill wrote:

[...]
> Ummm.  With respect, I think the excerpt from "man 3 time" that reads:
> 
>      Upon successful completion, time() returns the value of time.  Otherwise
>      a value of ((time_t) -1) is returned and the global variable errno is set
>      to indicate the error.

... And the only possible error concerns the argument. If the prototype 
for time was instead

time_t time(void);

or

int time(time_t *);

where the return value was strictly limited to 0 or -1 then even that 
wouldn't be a factor. But, of course, it's WAY too late to change that 
now. :-(


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B1BF936.5080700>