Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jul 2010 22:10:26 -0700
From:      Garrett Cooper <yanegomi@gmail.com>
To:        Kostik Belousov <kostikbel@gmail.com>
Cc:        hackers@freebsd.org
Subject:   Re: [PATCH] Fix sigismember(3) manpage ambiguity
Message-ID:  <AANLkTinHXQlAm0DouYYADwyzhqUx94GmfgOkN81B4ehM@mail.gmail.com>
In-Reply-To: <AANLkTinOVdv2DVmEe0BcKha66rBmO6-3TXDtX4JXbc6o@mail.gmail.com>
References:  <AANLkTinOVdv2DVmEe0BcKha66rBmO6-3TXDtX4JXbc6o@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
CCing hackers@.

On Sun, Jul 18, 2010 at 9:52 PM, Garrett Cooper <yanegomi@gmail.com> 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
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinHXQlAm0DouYYADwyzhqUx94GmfgOkN81B4ehM>