From owner-freebsd-stable Fri Jun 1 4:39:17 2001 Delivered-To: freebsd-stable@freebsd.org Received: from active.ath.cx (ras3-p6.hfa.netvision.net.il [62.0.98.6]) by hub.freebsd.org (Postfix) with ESMTP id C269837B424; Fri, 1 Jun 2001 04:39:09 -0700 (PDT) (envelope-from amir@boom.org.il) Received: by active.ath.cx (Postfix, from userid 1000) id 17BE56E796; Fri, 1 Jun 2001 14:39:33 +0300 (IDT) Received: from localhost (localhost [127.0.0.1]) by active.ath.cx (Postfix) with ESMTP id A6D6A6A9D0; Fri, 1 Jun 2001 14:39:33 +0300 (IDT) Date: Fri, 1 Jun 2001 14:39:33 +0300 (IDT) From: Amir Shalem X-X-Sender: To: Ruslan Ermilov Cc: Subject: Re: time_t definition is worng In-Reply-To: <20010601135122.A66182@sunbay.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 it was always long int, whenever you want to print time_t in programs it was always printf("%ld", (time_t)time); Amir. On Fri, 1 Jun 2001, Ruslan Ermilov wrote: > On Fri, Jun 01, 2001 at 01:40:49PM +0300, Amir Shalem wrote: > > I have recently upgraded to 4.3-STABLE (1.5.2001) > > I saw that time_t typedef was changed from > > long to int. > >in /sys/i386/include/ansi.h, > > #define _BSD_TIME_T_ int /* time()... */ > > it should be: > > #define _BSD_TIME_T_ long /* time()... */ > > > Can you please elaborate why it's wrong? > > > -- > Ruslan Ermilov Oracle Developer/DBA, > ru@sunbay.com Sunbay Software AG, > ru@FreeBSD.org FreeBSD committer, > +380.652.512.251 Simferopol, Ukraine > > http://www.FreeBSD.org The Power To Serve > http://www.oracle.com Enabling The Information Age > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body ofthe message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message