From quinot@malevil.act-europe.fr  Thu Dec 16 16:31:26 2004
Return-Path: <quinot@malevil.act-europe.fr>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5F97F16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 Dec 2004 16:31:26 +0000 (GMT)
Received: from malevil.act-europe.fr (malevil.act-europe.fr [212.157.227.221])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 79A9B43D46
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 Dec 2004 16:31:25 +0000 (GMT)
	(envelope-from quinot@malevil.act-europe.fr)
Received: from malevil.act-europe.fr (localhost [127.0.0.1])
	by malevil.act-europe.fr (8.13.1/8.13.1) with ESMTP id iBGGVxZx009723
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 16 Dec 2004 17:31:59 +0100 (CET)
	(envelope-from quinot@malevil.act-europe.fr)
Received: (from quinot@localhost)
	by malevil.act-europe.fr (8.13.1/8.13.1/Submit) id iBGGVxSf009722;
	Thu, 16 Dec 2004 17:31:59 +0100 (CET)
	(envelope-from quinot)
Message-Id: <200412161631.iBGGVxSf009722@malevil.act-europe.fr>
Date: Thu, 16 Dec 2004 17:31:59 +0100 (CET)
From: Thomas Quinot <quinot@malevil.act-europe.fr>
Reply-To: Thomas Quinot <quinot@malevil.act-europe.fr>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: sigismember detects errors, contradicting documentation
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         75156
>Category:       bin
>Synopsis:       sigismember detects errors, contradicting documentation
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    maxim
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 16 16:40:16 GMT 2004
>Closed-Date:    Mon Dec 27 13:18:52 GMT 2004
>Last-Modified:  Mon Dec 27 13:18:52 GMT 2004
>Originator:     Thomas Quinot
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD malevil.act-europe.fr 5.2-CURRENT FreeBSD 5.2-CURRENT #1: Mon Aug 2 16:09:18 CEST 2004 root@alexandria.act-europe.fr:/usr/obj/usr/src/HEAD/sys/ADACORE i386


	
>Description:
	man sigismember indicates:

RETURN VALUES
     The sigismember() function returns 1 if the signal is a member of the
     set, 0 otherwise.  The other functions return 0.

ERRORS
     Currently no errors are detected.

     but implementation contains:

        if (signo <= 0 || signo > _SIG_MAXSIG) {
                errno = EINVAL;
                return (-1);
        }

>How-To-Repeat:
	
>Fix:
	Documentation and implementation should be made consistent.
	It appears that the FreeBSD behaviour is consistent with what
	is done on most other UNIX platforms, with the notable exception
	of MacOS X, so the correct course of action is probably to fix
	the man page (but we should first check with relevant standards
	that this is indeed conformant).
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: maxim 
State-Changed-When: Thu Dec 16 20:28:48 GMT 2004 
State-Changed-Why:  
Fixed in -CURRENT, thanks for the report. 


Responsible-Changed-From-To: freebsd-bugs->maxim 
Responsible-Changed-By: maxim 
Responsible-Changed-When: Thu Dec 16 20:28:48 GMT 2004 
Responsible-Changed-Why:  
MFC reminder. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75156 
State-Changed-From-To: patched->closed 
State-Changed-By: maxim 
State-Changed-When: Mon Dec 27 13:18:33 GMT 2004 
State-Changed-Why:  
Fixed in RELENG_5 and RELENG_4 as well. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75156 
>Unformatted:
