Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Aug 2010 00:48:32 GMT
From:      arundel@FreeBSD.org
To:        alexbestms@wwu.de, arundel@FreeBSD.org, freebsd-doc@FreeBSD.org
Subject:   Re: docs/140474: signal(3) missing reference to NSIG
Message-ID:  <201008100048.o7A0mWL5058894@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
Synopsis: signal(3) missing reference to NSIG

State-Changed-From-To: open->closed
State-Changed-By: arundel
State-Changed-When: Tue Aug 10 00:24:37 UTC 2010
State-Changed-Why: 
There is no need to add a reference to NSIG in signal(3). Signals should be
referenced by their name. NSIG often is being misused to cycle through all
signals in a for-loop, assigning a certain action to all 0 < signals < NSIG.

This is considered bad style and should be avoided [1]. Thus signal(3) should
not mention NSIG.

Also NSIG has been depricated in 1999 and since then has not been increased in
order to maintain compatibility with legacy software [2]. It has been replaced
by _SIG_MAXSIG.

[1] http://docs.freebsd.org/cgi/getmsg.cgi?fetch=310688+0+archive/2009/freebsd-hackers/20091108.freebsd-hackers
[2] http://docs.freebsd.org/cgi/getmsg.cgi?fetch=481904+0+archive/1999/freebsd-current/19991003.freebsd-current

http://www.freebsd.org/cgi/query-pr.cgi?pr=140474



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