docs/72375: prototype error in signal(3)

Giorgos Keramidas keramida at ceid.upatras.gr
Wed Oct 6 11:40:26 UTC 2004


The following reply was made to PR docs/72375; it has been noted by GNATS.

From: Giorgos Keramidas <keramida at ceid.upatras.gr>
To: Joseph Koshy <joseph.koshy at gmail.com>
Cc: bug-followup at freebsd.org
Subject: Re: docs/72375: prototype error in signal(3)
Date: Wed, 6 Oct 2004 14:36:36 +0300

 On 2004-10-06 16:53, Joseph Koshy <joseph.koshy at gmail.com> wrote:
 > Suggested fix.
 >
 >  .\" The following is Quite Ugly, but syntactically correct.
 >  .\" Don't try to
 >  .\" fix it.
 > -.Ft void \*(lp*
 > +.Ft void \*(lp*\*(rp
 >  .Fn signal "int sig" "void \*(lp*func\*(rp\*(lpint\*(rp\*(rp\*(rp\*(lpint"
 
 Err, please no.  The type of the return value of signal() is not really
 `void (*)' but something more like:
 
         void (*)(int)
 
 But this is not so easy to separate from the name of the signal()
 function without a typedef; at least not without breaking the validity
 of the C declaration, which is a bad thing since then manpage readers
 cannot copy/paste the prototype of signal() from its manpage.
 



More information about the freebsd-doc mailing list