www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/06/09/15:43:18

To: Aaron Ucko <UCKO AT VAX1 DOT ROCKHURST DOT EDU>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: usleep == sleep?
Date: Fri, 09 Jun 95 11:17:01 -0700
From: Ian Macky <imacky AT us DOT oracle DOT com>

> >>sound(f); /* f is the desired frequency */
> >>usleep(t); /* t is the duration in microseconds (1e-6 s) */
> >>nosound();
> >
> >But alas, it appears:
> >
> >#define usleep(t)	sleep(t / 1000000)
> >
> >Is this still true?  Is it fixed in the latest version?  Can anyone
> >get the suggested beeper to work?
> 
> DJGPP 1.12m3 has the line `unsigned usleep(unsigned)' in <djgppstd.h>.
> What version _are_ you using, anyway?

I said it *appears* as if usleep were defined that way.  I can see the
function declaration in my version too, but usleep() *functions* as
though it just calls sleep() as above.

--ian

- Raw text -


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