delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/12/08:06:24

X-Spam-Check-By: sourceware.org
Date: Sun, 12 Feb 2006 14:06:11 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: 1.5.19: timeval struct not correct defined
Message-ID: <20060212130611.GV14219@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <02c301c62f3d$4600b5c0$c100020a AT jw2500>
Mime-Version: 1.0
In-Reply-To: <02c301c62f3d$4600b5c0$c100020a@jw2500>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019