docs/140474: signal(3) missing reference to NSIG

arundel at FreeBSD.org arundel at FreeBSD.org
Tue Aug 10 00:48:32 UTC 2010


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



More information about the freebsd-doc mailing list