delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/24/13:45:06

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Apparently-From: <earnie?boyd AT yahoo DOT com>
Message-ID: <3A980126.48953453@yahoo.com>
Date: Sat, 24 Feb 2001 13:44:54 -0500
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: Earnie Boyd <mingw-users AT lists DOT sourceforge DOT net>
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Joel <joel_schantz AT yahoo DOT com>
CC: cygwin AT sources DOT redhat DOT com, Earnie Boyd <mingw-users AT lists DOT sourceforge DOT net>
Subject: Re: sleep, fstat problems with -mno-cygwin
References: <3A972485 DOT 4607405A AT yahoo DOT com>

Joel wrote: 
> 
> But I have a problem with sleep because cygwin sleep() wants seconds
> but mno-cygwin sleep() wants milliseconds (To match WIN32 Sleep?)
> This seems wrong.
> 

No, it's not wrong.

> Is this a bug?
> 

No, it's a MS feature.

I did find something interesting in a config-win32.h file from MySQL. 
They define sleep as
  #define sleep(A) Sleep((A)*1000)
which you could do in your source as well.  Note the function name is
actually _sleep() not sleep().  The lib[cm]oldname.a file depending on
whether you're using CRTDLL or MSVCRT is what allows sleep to work but
it is no longer defined.  As a result I'll schedule it's removal from
moldname as well.

Earnie.

P.S.: This really belongs on the mingw-users list so I've CCed that list
and set the Reply-to to that list.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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