From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 14 23:25:03 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2555C106564A for ; Sun, 14 Nov 2010 23:25:03 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id A5F968FC0A for ; Sun, 14 Nov 2010 23:25:02 +0000 (UTC) Received: by wwi14 with SMTP id 14so364881wwi.31 for ; Sun, 14 Nov 2010 15:25:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=vjzQBdvQUdVSkRDRrR2b/fWRUA6fpquyBPg6861pOKY=; b=wLqhvuqZTkEVghwG4sqN6e6kePy+77eKUyUBbTHYjrbAhQ53KLt1P6wM7hfYsaaExc RWMIZ/WYEdr1ZQBxA6+GQSDRWuRrobOq/YjiDljZD1Y/29hBEEXGZZV8GK4ybZauvVED juw/h/oU37RnF6t2epq38n4aPNMKi77lQWrkM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=RtuR7ExtZQ/3OJIK7YIpL7DsuH6Gqy2/k29gL6+YLu5QPBg90+w/NSGgVuHMWoncBz mcqFaBnmWw9FG5OYwqgQ5ssFhTWq5yIYunxJwb1hiV2ZAg0ig0rptygYOLbt8sW8n8vR 1FlUmdOWf5bS2o3JnHxO+jZ+4ygFiUvQEqcVQ= MIME-Version: 1.0 Received: by 10.216.7.210 with SMTP id 60mr6592009wep.30.1289777101459; Sun, 14 Nov 2010 15:25:01 -0800 (PST) Received: by 10.216.198.27 with HTTP; Sun, 14 Nov 2010 15:25:01 -0800 (PST) Date: Sun, 14 Nov 2010 15:25:01 -0800 Message-ID: From: Garrett Cooper To: freebsd-hackers@freebsd.org Content-Type: multipart/mixed; boundary=0016364c7576f8d0d404950ba1ae Subject: [PATCH] More explicit return codes for sigismember(3) 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: Sun, 14 Nov 2010 23:25:03 -0000 --0016364c7576f8d0d404950ba1ae Content-Type: text/plain; charset=ISO-8859-1 Hi, I found this change kicking around my tree from a while back. It brings the manpage for sigismember(3) more in line with the POSIX definition [1] in the RETURN CODES section by explicitly noting that sigismember(3) returns 0 if a signal is valid and not a part of the set passed in. If someone could review and commit the change, it would be much appreciated. Thanks! -Garrett [1] http://www.opengroup.org/onlinepubs/009695399/functions/sigismember.html (SUS Issue 6 -- but the wording for the manpage is the same in SUS Issue 7). --0016364c7576f8d0d404950ba1ae Content-Type: application/octet-stream; name="more-explicit-sigismember-return-codes.diff" Content-Disposition: attachment; filename="more-explicit-sigismember-return-codes.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ggijv1x10 SW5kZXg6IGxpYi9saWJjL2dlbi9zaWdzZXRvcHMuMwo9PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBsaWIvbGliYy9n ZW4vc2lnc2V0b3BzLjMJKHJldmlzaW9uIDIxNTMxMCkKKysrIGxpYi9saWJjL2dlbi9zaWdzZXRv cHMuMwkod29ya2luZyBjb3B5KQpAQCAtOTIsOCArOTIsMTEgQEAKIFRoZQogLkZuIHNpZ2lzbWVt YmVyCiBmdW5jdGlvbiByZXR1cm5zIDEKLWlmIHRoZSBzaWduYWwgaXMgYSBtZW1iZXIgb2YgdGhl IHNldCwKLTAgb3RoZXJ3aXNlLgoraWYgdGhlIHNpZ25hbCBpcyBhIG1lbWJlciBvZiB0aGUgc2V0 LCBvciAwIGlmIGl0IGlzIG5vdC4KK090aGVyd2lzZSwgaXQgcmV0dXJucyBcLTEgYW5kIHRoZSBn bG9iYWwgdmFyaWFibGUKKy5WYSBlcnJubworaXMgc2V0IHRvIGluZGljYXRlIHRoZSByZWFzb24u CisuQmwKIFRoZSBvdGhlciBmdW5jdGlvbnMgcmV0dXJuIDAgdXBvbiBzdWNjZXNzLgogQSBcLTEg cmV0dXJuIHZhbHVlCiBpbmRpY2F0ZXMgYW4gZXJyb3Igb2NjdXJyZWQgYW5kIHRoZSBnbG9iYWwg dmFyaWFibGUK --0016364c7576f8d0d404950ba1ae--