This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Align time types to SUSv3
On Feb 13 13:28, Jeff Johnston wrote:
> Corinna Vinschen wrote:
> >Hi,
> >
> >according to SUSv3, struct timeval is defined as
> >
> > struct timeval {
> > time_t tv_sec;
> > suseconds_t tv_usec;
> > };
> >
> >see http://www.opengroup.org/onlinepubs/009695399/basedefs/sys/time.h.html
> >
> >Additionally, useconds_t is defined as an unsigned type, and suseconds_t
> >as a signed type, see
> >http://www.opengroup.org/onlinepubs/007908799/xsh/systypes.h.html
> >
> >I'd like to propose the below patch, which alignes newlib to SUSv3.
> >
> >
>
> Ok, go ahead. It appears this shouldn't cause any problems since time_t
> defaults to long and you are making suseconds_t long as well. Linux has
> its own headers that defines it as above.
Thanks, applied.
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat