X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=libfcgi%2Fos_unix.c;h=10e76c8bcfba656fdc6b4bb430ec3e41dff7592d;hb=6ad90ad201152849cc42354608bd406684e290e6;hp=074943cc348d1992b9f0269c3057679b2739a132;hpb=d1ac78e4c5193867a4780853a5f70ea731366700;p=catagits%2Ffcgi2.git diff --git a/libfcgi/os_unix.c b/libfcgi/os_unix.c index 074943c..10e76c8 100755 --- a/libfcgi/os_unix.c +++ b/libfcgi/os_unix.c @@ -17,51 +17,54 @@ */ #ifndef lint -static const char rcsid[] = "$Id: os_unix.c,v 1.9 1999/07/27 15:00:18 roberts Exp $"; +static const char rcsid[] = "$Id: os_unix.c,v 1.10 1999/07/28 00:20:22 roberts Exp $"; #endif /* not lint */ -#include "fcgimisc.h" -#include "fcgiapp.h" -#include "fcgiappmisc.h" -#include "fastcgi.h" +#include "fcgi_config.h" -#include -#ifdef HAVE_UNISTD_H -#include -#endif +#include #include -#include -#include -#include /* for memchr() */ #include -#include +#include /* for fcntl */ #include -#ifdef HAVE_SYS_SOCKET_H -#include /* for getpeername */ -#endif +#include /* for memchr() */ +#include +#include +#include +#include +#include +#include +#include #include -#include /* for fcntl */ + #ifdef HAVE_NETDB_H #include #endif -#include -#include #ifdef HAVE_NETINET_IN_H #include #endif -#include -#include +#ifdef HAVE_SYS_SOCKET_H +#include /* for getpeername */ +#endif + +#ifdef HAVE_UNISTD_H +#include +#endif + +#include "fastcgi.h" +#include "fcgiapp.h" +#include "fcgiappmisc.h" +#include "fcgimisc.h" #include "fcgios.h" -#ifndef _CLIENTDATA -# if defined(__STDC__) || defined(__cplusplus) - typedef void *ClientData; -# else - typedef int *ClientData; -# endif /* __STDC__ */ -#define _CLIENTDATA +#ifndef FALSE +#define FALSE 0 +#endif + +#ifndef TRUE +#define TRUE 1 #endif /* @@ -88,17 +91,6 @@ typedef struct { static int asyncIoTableSize = 16; static AioInfo *asyncIoTable = NULL; -#define STDIN_FILENO 0 -#define STDOUT_FILENO 1 -#define STDERR_FILENO 2 - -#ifndef FALSE -#define FALSE 0 -#endif - -#ifndef TRUE -#define TRUE 1 -#endif static int isFastCGI = FALSE; static int libInitialized = FALSE;