From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 19 05:10:26 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A33CA1065670 for ; Mon, 19 Jul 2010 05:10:26 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 692438FC1D for ; Mon, 19 Jul 2010 05:10:26 +0000 (UTC) Received: by mail-iw0-f182.google.com with SMTP id 35so5312097iwn.13 for ; Sun, 18 Jul 2010 22:10:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=tUJtEHRcaXql6/Z2jatZeYcb6Ux4E/CD4kuXSDRuDzI=; b=MAiKKd8YOLNQEeOVucu2+wmMivUoDaZ+8Ko4Qa/bPLPurq1kavGJr5yHU7Bv1XJxxY J7LoN0VqLtT5iF5wud+j/S5Q+flZXOlBHJtVBRQ59FkqfSMPeVojqa94XKBcuETw6X1Y PV8T6dZUjE3urr1jF8RAgbIKL25NfAd4bgODk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=WHvyDWJPxxe7tg97fSZIVx53LHpGIneWh7vNaYW2jV8pFzijsx/cIuPc5iw6EtcdhJ b3t51vTTVh83iXDdZR7Pho094/1BlZ+2lSVia33YwnWzf3178cgLb5xHXYzlxryNWJSr bbgQVRAEpgpzqgdK0365XxhxTTyfhylGvaox0= MIME-Version: 1.0 Received: by 10.231.146.136 with SMTP id h8mr4975389ibv.0.1279516226260; Sun, 18 Jul 2010 22:10:26 -0700 (PDT) Received: by 10.231.169.18 with HTTP; Sun, 18 Jul 2010 22:10:26 -0700 (PDT) In-Reply-To: References: Date: Sun, 18 Jul 2010 22:10:26 -0700 Message-ID: From: Garrett Cooper To: Kostik Belousov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org Subject: Re: [PATCH] Fix sigismember(3) manpage ambiguity X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2010 05:10:26 -0000 CCing hackers@. On Sun, Jul 18, 2010 at 9:52 PM, Garrett Cooper wrote: > =A0 =A0The following patch resolves a missing requirement that's defined > by POSIX 2001.3 for sigismember(3) (the tort follows more of what's > stated in the POSIX spec [1]). > > Index: libc/gen/sigsetops.3 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- libc/gen/sigsetops.3 =A0 =A0 =A0 =A0(revision 210226) > +++ libc/gen/sigsetops.3 =A0 =A0 =A0 =A0(working copy) > @@ -92,8 +92,11 @@ > =A0The > =A0.Fn sigismember > =A0function returns 1 > -if the signal is a member of the set, > -0 otherwise. > +if the signal is a member of the set, or 0 if it is not. > +Otherwise, it returns \-1 and the global variable > +.Va errno > +is set to indicate the reason. > +.Bl > =A0The other functions return 0 upon success. > =A0A \-1 return value > =A0indicates an error occurred and the global variable > > 1. http://opengroup.org/onlinepubs/007908799/xsh/sigismember.html >