From owner-freebsd-stable Mon Jun 4 14:10:19 2001 Delivered-To: freebsd-stable@freebsd.org Received: from dargo.talarian.com (dargo.talarian.com [207.5.33.3]) by hub.freebsd.org (Postfix) with ESMTP id 2249737B405 for ; Mon, 4 Jun 2001 14:10:16 -0700 (PDT) (envelope-from nsayer@quack.kfu.com) Received: from moya.talarian.com (moya.talarian.com [10.4.10.8]) by dargo.talarian.com (Postfix) with ESMTP id E063622B04; Mon, 4 Jun 2001 14:04:26 -0700 (PDT) Received: from beast.talarian.com (beast.talarian.com [10.4.10.6]) by moya.talarian.com (Postfix) with ESMTP id E061F102; Mon, 4 Jun 2001 14:10:14 -0700 (PDT) Received: from quack.kfu.com (localhost [127.0.0.1]) by beast.talarian.com (8.11.3/8.11.3) with ESMTP id f54LAE792925; Mon, 4 Jun 2001 14:10:14 -0700 (PDT) (envelope-from nsayer@quack.kfu.com) Message-ID: <3B1BF936.5080700@quack.kfu.com> Date: Mon, 04 Jun 2001 14:10:14 -0700 From: Nick Sayer User-Agent: Mozilla/5.0 (X11; U; FreeBSD 4.3-RELEASE i386; en-US; 0.8.1) Gecko/20010411 X-Accept-Language: en MIME-Version: 1.0 To: David Wolfskill Cc: freebsd-stable@freebsd.org Subject: Re: time_t definition is worng References: <200106012318.f51NI8w38590@bunrab.catwhisker.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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