httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <>
Subject auto configuration and full function prototypes
Date Wed, 26 Apr 2000 00:55:17 GMT
Can we assume that proper function prototypes (i.e., with argument
declarations) are available (and used) in system header files?  

In some cases (e.g., sigwait()), there are a couple of flavors which
can be readily identified from the number of arguments.

It is pretty simple to try to compile something like this

  #include <signal.h>

  void main(void)
    sigset_t set;

and set SIGWAIT_HAS_ONE_ARG (or some such) if it successfully
compiles, but if the declaration used from signal.h is "int sigwait()"
then configuration is broken on that platform.

Any better ideas?

Jeff Trawick | | PGP public key at web site:
          Born in Roswell... married an alien...

View raw message