From owner-freebsd-hackers Tue Jun 30 17:12:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA07601 for freebsd-hackers-outgoing; Tue, 30 Jun 1998 17:12:35 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from freebie.lemis.com (freebie.lemis.com [139.130.136.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA07461; Tue, 30 Jun 1998 17:12:07 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.0/8.9.0) id JAA09589; Wed, 1 Jul 1998 09:41:55 +0930 (CST) Message-ID: <19980701094155.B1880@freebie.lemis.com> Date: Wed, 1 Jul 1998 09:41:55 +0930 From: Greg Lehey To: Marino Ladavac Cc: mkn , freebsd-questions@FreeBSD.ORG, FreeBSD Hackers Subject: Re: Unsupport calls References: <19980630192910.H1880@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Marino Ladavac on Tue, Jun 30, 1998 at 01:51:39PM +0200 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tuesday, 30 June 1998 at 13:51:39 +0200, Marino Ladavac wrote: > > On 30-Jun-98 Greg Lehey wrote: >> On Tuesday, 30 June 1998 at 9:54:10 +0200, Marino Ladavac wrote: >>> >>> On 30-Jun-98 Greg Lehey wrote: >>>> >>>>> sigwait - no support in FreeBSD. >>>>> sigset - no support in FreeBSD >>>>> sighold - no support in FreeBSD >>>>> sigrelse - no support in FreeBSD >>>> >>>> These are the System V signal functions, arguably the worst choice of >>>> the currently available signal implementations. FreeBSD has the BSD >>>> functions instead, as well as the POSIX.1 signals which were derived >>>> from them. See more about this in my book "Porting UNIX software". I >>>> recommend porting to the POSIX.1 signals, which are also supported by >>>> Solaris. >>>> >>> sigwait is in libc_r, being a part of POSIX pthread specification. >> >> That's a different sigwait. This one is, by association, one of the >> calls of the System V signals implementation. > > I beg to differ (and so do my SunOS 5 manpages). The SysV simplified signal > management APIs are: > > NAME > sigwait - wait until a signal is posted > > SYNOPSIS > #include > > int sigwait(sigset_t *set); > > POSIX Oops, yes, missed that one. I wonder why this program is mixing two different signal implementations? That way madness lies. BTW, that reminds me that, though signal() was found, it's not the same signal() that is used in the FreeBSD implementation. But since signal handling will need rewriting, mkn should drop signal() altogether in favour of the POSIX.1 routines. Greg -- See complete headers for address and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message