"David L. Thompson" wrote:
> 
> segg,
> 
> I've checked this out with the headers that define sigaction and I
> believe that it may not be an error. Is there any way you can prove
> to me that it is? The header is strange to me i.e.  int sigaction __P
> (...)

from /usr/include/stdio.h or /usr/include/libio.h

#ifndef
__P                                                                     
#if defined(__STDC__) || defined(__cplusplus) ||
defined(c_plusplus)            
#define __P(args)
args                                                          
#else                                                                           
#define __P(args)
()                                                            
#endif                                                                          
#endif
/*!__P*/                                                                 


in /usr/include/signal.h
extern int sigaction __P ((int __sig, __const struct sigaction *__act,
                           struct sigaction *__oact));

With Kernighan & Ritchie standard there is no prototype arguments,
we have then after the pre-processor:

extern int sigaction ();

With type checking, following the new standard:

extern int sigaction (int __sig, __const struct sigaction *__act,
                      struct sigaction *__oact);

and this is also confirm by the same function, 13 lignes before
and the previous patch, not resolving the comma from v 1.4 to v 1.5 by Peter
Daniel
Kirchner.

Reply via email to