Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Oct 2004 11:40:26 GMT
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        freebsd-doc@FreeBSD.org
Subject:   Re: docs/72375: prototype error in signal(3)
Message-ID:  <200410061140.i96BeQbZ043011@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/72375; it has been noted by GNATS.

From: Giorgos Keramidas <keramida@ceid.upatras.gr>
To: Joseph Koshy <joseph.koshy@gmail.com>
Cc: bug-followup@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@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.
 



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