1.5.19: timeval struct not correct defined
Corinna Vinschen
corinna-cygwin@cygwin.com
Sun Feb 12 13:52:00 GMT 2006
On Feb 11 19:59, Johnny Willemsen wrote:
> Hi,
>
> In sys/time.h the timeval struct is defined as:
>
> struct timeval {
> long tv_sec;
> long tv_usec;
> };
>
> It should be
>
> struct timeval {
> time_t tv_sec;
> suseconds_t tv_usec;
> };
>
> See the following link for the opengroup standard
> http://www.opengroup.org/onlinepubs/007908799/xsh/systime.h.html
>
> The type suseconds_t and useconds_t are also not there with Cygwin
useconds_t is defined in sys/types.h, though as signed type, not as
unsigned type as proposed by SUSv3.
As for the other types, I'll prepare a patch for newlib's header files.
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list