Date: Fri, 1 Jun 2001 14:45:05 +0300 From: Ruslan Ermilov <ru@FreeBSD.ORG> To: Amir Shalem <amir@boom.org.il> Cc: freebsd-stable@FreeBSD.ORG Subject: Re: time_t definition is worng Message-ID: <20010601144505.B72841@sunbay.com> In-Reply-To: <Pine.BSF.4.33_heb2.09.0106011437410.43119-100000@active.ath.cx>; from amir@boom.org.il on Fri, Jun 01, 2001 at 02:39:33PM %2B0300 References: <20010601135122.A66182@sunbay.com> <Pine.BSF.4.33_heb2.09.0106011437410.43119-100000@active.ath.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010601144505.B72841>
