delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/11/13:59:40

X-Spam-Check-By: sourceware.org
Reply-To: <jwillemsen AT remedy DOT nl>
From: "Johnny Willemsen" <jwillemsen AT remedy DOT nl>
To: <cygwin AT cygwin DOT com>
Subject: 1.5.19: timeval struct not correct defined
Date: Sat, 11 Feb 2006 19:59:23 +0100
Message-ID: <02c301c62f3d$4600b5c0$c100020a@jw2500>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

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

Regards,

Johnny Willemsen
Remedy IT
Postbus 101
2650 AC  Berkel en Rodenrijs
The Netherlands
www.theaceorb.nl / www.remedy.nl  


--
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