From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10183 invoked by alias); 6 Dec 2001 19:11:15 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Received: (qmail 10148 invoked from network); 6 Dec 2001 19:11:12 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (207.175.42.154) by sources.redhat.com with SMTP; 6 Dec 2001 19:11:12 -0000 Received: from trixie.bosbc.com (cgf.cipe.redhat.com [10.0.1.172]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id fB6JBBh26584 for ; Thu, 6 Dec 2001 14:11:11 -0500 Received: (from cgf@localhost) by trixie.bosbc.com (8.11.6/8.8.7) id fB6JBPX25404 for cygwin@cygwin.com; Thu, 6 Dec 2001 14:11:25 -0500 Date: Thu, 06 Dec 2001 11:29:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: cygwin ualarm() breaks Perl [WAS Re: cygwin @ 13452 warnings] Message-ID: <20011206191125.GA25361@redhat.com> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20011204134524.5ABD.H.M.BRAND@hccnet.nl> <3C0FAB15.2697F6C0@rowman.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C0FAB15.2697F6C0@rowman.com> User-Agent: Mutt/1.3.23.1i X-SW-Source: 2001-12/txt/msg00357.txt.bz2 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 > > * 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/