From owner-freebsd-questions Tue Jun 30 04:52:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA06079 for freebsd-questions-outgoing; Tue, 30 Jun 1998 04:52:50 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from zwei.siemens.at (zwei.siemens.at [193.81.246.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA06010; Tue, 30 Jun 1998 04:52:01 -0700 (PDT) (envelope-from lada@pc8811.gud.siemens.at) Received: from pc8811.gud.siemens.at (root@[10.1.140.1]) by zwei.siemens.at with ESMTP id NAA01960; Tue, 30 Jun 1998 13:51:23 +0200 (MET DST) Received: from pc8811.gud.siemens.at (pc8811.gud.siemens.at [195.3.22.159]) by pc8811.gud.siemens.at (8.8.8/8.8.8) with ESMTP id NAA07807; Tue, 30 Jun 1998 13:51:39 +0200 (CEST) (envelope-from lada@pc8811.gud.siemens.at) Message-ID: X-Mailer: XFMail 1.2 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <19980630192910.H1880@freebie.lemis.com> Date: Tue, 30 Jun 1998 13:51:39 +0200 (CEST) Organization: Siemens Austria AG From: Marino Ladavac To: Greg Lehey Subject: Re: Unsupport calls Cc: mkn , freebsd-questions@FreeBSD.ORG, FreeBSD Hackers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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: signal(3C) C Library Functions signal(3C) NAME signal, sigset, sighold, sigrelse, sigignore, sigpause - simplified signal management for application processes whereas: sigwait(2) System Calls sigwait(2) NAME sigwait - wait until a signal is posted SYNOPSIS #include int sigwait(sigset_t *set); POSIX ^^^^^ cc [ flag... ] file ... - D_POSIX_PTHREAD_SEMANTICS [ ^^^^^^^^^^^^^^^^^^^^^^^^^ library... ] #include int sigwait(const sigset_t *set, int *sig); DESCRIPTION sigwait() selects a signal in set that is pending on the calling thread (see thr_create(3T)) or LWP. If no signal in ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ It is the very same sigwait() that resides in libc_r on FreeBSD, name similarities notwithstanding. Non-POSIX version is from the now deprecated SunOS 5 LWP API. > 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 ---------------------------------- Marino Ladavac Date: 30-Jun-98 Time: 13:42:21 ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message