Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jun 2001 14:39:33 +0300 (IDT)
From:      Amir Shalem <amir@boom.org.il>
To:        Ruslan Ermilov <ru@FreeBSD.ORG>
Cc:        <freebsd-stable@FreeBSD.ORG>
Subject:   Re: time_t definition is worng
Message-ID:  <Pine.BSF.4.33_heb2.09.0106011437410.43119-100000@active.ath.cx>
In-Reply-To: <20010601135122.A66182@sunbay.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33_heb2.09.0106011437410.43119-100000>