From owner-freebsd-stable Fri Jun 1 4:45:20 2001 Delivered-To: freebsd-stable@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 8D8A737B422 for ; Fri, 1 Jun 2001 04:45:13 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f51Bj5H02268; Fri, 1 Jun 2001 14:45:05 +0300 (EEST) (envelope-from ru) Date: Fri, 1 Jun 2001 14:45:05 +0300 From: Ruslan Ermilov To: Amir Shalem Cc: freebsd-stable@FreeBSD.ORG Subject: Re: time_t definition is worng Message-ID: <20010601144505.B72841@sunbay.com> Mail-Followup-To: Amir Shalem , freebsd-stable@FreeBSD.ORG References: <20010601135122.A66182@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from amir@boom.org.il on Fri, Jun 01, 2001 at 02:39:33PM +0300 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 Fix the program. Having time_t of `long' was bogus. See commitlog for the reason. On Fri, Jun 01, 2001 at 02:39:33PM +0300, Amir Shalem wrote: > 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 > > > > -- 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 of the message