From owner-freebsd-bugs@FreeBSD.ORG Thu Dec 16 16:40:28 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEAF216A4CF for ; Thu, 16 Dec 2004 16:40:28 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C6DC43D6B for ; Thu, 16 Dec 2004 16:40:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBGGeHxG050367 for ; Thu, 16 Dec 2004 16:40:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBGGeHNv050366; Thu, 16 Dec 2004 16:40:17 GMT (envelope-from gnats) Resent-Date: Thu, 16 Dec 2004 16:40:17 GMT Resent-Message-Id: <200412161640.iBGGeHNv050366@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Thomas Quinot Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F97F16A4CE for ; 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 ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/75156: sigismember detects errors, contradicting documentation X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Thomas Quinot List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Dec 2004 16:40:29 -0000 >Number: 75156 >Category: bin >Synopsis: sigismember detects errors, contradicting documentation >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 16 16:40:16 GMT 2004 >Closed-Date: >Last-Modified: >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: >Unformatted: