public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Cygwin ualarm() breaks Perl [WAS Re: Cygwin @ 13452 warnings]
       [not found] <20011204134524.5ABD.H.M.BRAND@hccnet.nl>
@ 2001-12-06  9:36 ` John Peacock
  2001-12-06 11:29   ` cygwin ualarm() breaks Perl [WAS Re: cygwin " Christopher Faylor
  0 siblings, 1 reply; 2+ messages in thread
From: John Peacock @ 2001-12-06  9:36 UTC (permalink / raw)
  To: H.Merijn Brand; +Cc: Perl 5 Porters, CygWin Discussion

"H.Merijn Brand" wrote:
> 
> the ualarm is still fatal on 1.3.6-2. I've just removed the second argument in
> 

I found the following entry in winsup/cygwin/ChangeLog:

 2001-11-27  Christopher Faylor  <cgf@redhat.com>
 
         * cygwin.din (ualarm): New export.
         (ualarm): New function.  From Alexandr V. Shutko.

It looks like the unistd.h header never got updated; here is a small patch to
/usr/include/sys/unistd.h which seems to fix the compiling:

--- unistd.h.old        Thu Dec  6 12:17:06 2001
+++ unistd.h    Thu Dec  6 12:19:06 2001
@@ -133,7 +133,7 @@
 #if defined(__CYGWIN__) || defined(__rtems__)
 int    _EXFUN(getdtablesize, (void));
 int    _EXFUN(setdtablesize, (int));
-useconds_t _EXFUN(ualarm, (useconds_t __useconds));
+useconds_t _EXFUN(ualarm, (useconds_t __useconds, useconds_t __interval));
 unsigned _EXFUN(usleep, (unsigned int __useconds));
 int     _EXFUN(ftruncate, (int __fd, off_t __length));
 int     _EXFUN(truncate, (const char *, off_t __length));

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: cygwin ualarm() breaks Perl [WAS Re: cygwin @ 13452 warnings]
  2001-12-06  9:36 ` Cygwin ualarm() breaks Perl [WAS Re: Cygwin @ 13452 warnings] John Peacock
@ 2001-12-06 11:29   ` Christopher Faylor
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher Faylor @ 2001-12-06 11:29 UTC (permalink / raw)
  To: cygwin

On Thu, Dec 06, 2001 at 12:29:57PM -0500, John Peacock wrote:
>"H.Merijn Brand" wrote:
>> 
>> the ualarm is still fatal on 1.3.6-2. I've just removed the second argument in
>> 
>
>I found the following entry in winsup/cygwin/ChangeLog:
>
> 2001-11-27  Christopher Faylor  <cgf@redhat.com>
> 
>         * cygwin.din (ualarm): New export.
>         (ualarm): New function.  From Alexandr V. Shutko.
>
>It looks like the unistd.h header never got updated; here is a small patch to
>/usr/include/sys/unistd.h which seems to fix the compiling:
>
>--- unistd.h.old        Thu Dec  6 12:17:06 2001
>+++ unistd.h    Thu Dec  6 12:19:06 2001
>@@ -133,7 +133,7 @@
> #if defined(__CYGWIN__) || defined(__rtems__)
> int    _EXFUN(getdtablesize, (void));
> int    _EXFUN(setdtablesize, (int));
>-useconds_t _EXFUN(ualarm, (useconds_t __useconds));
>+useconds_t _EXFUN(ualarm, (useconds_t __useconds, useconds_t __interval));
> unsigned _EXFUN(usleep, (unsigned int __useconds));
> int     _EXFUN(ftruncate, (int __fd, off_t __length));
> int     _EXFUN(truncate, (const char *, off_t __length));

You're right.  That was my problem.  You can probably see what I did.  I just
duplicated the usleep line and (apparently) halfheartedly edited for ualarm.

I've patched newlib (the ChangeLog entry is in your name), so the next release
will have the proper prototype.

Thanks for the patch.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-12-06 19:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20011204134524.5ABD.H.M.BRAND@hccnet.nl>
2001-12-06  9:36 ` Cygwin ualarm() breaks Perl [WAS Re: Cygwin @ 13452 warnings] John Peacock
2001-12-06 11:29   ` cygwin ualarm() breaks Perl [WAS Re: cygwin " Christopher Faylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).