*/
#ifndef lint
-static const char rcsid[] = "$Id: fcgi_stdio.c,v 1.3 1998/03/09 16:38:15 roberts Exp $";
+static const char rcsid[] = "$Id: fcgi_stdio.c,v 1.4 1999/01/30 22:24:09 roberts Exp $";
#endif /* not lint */
#ifdef _WIN32
int FCGI_fflush(FCGI_FILE *fp)
{
- if(fp == null)\r
- return fflush(NULL);\r
+ if(fp == NULL)
+ return fflush(NULL);
if(fp->stdio_stream)
return fflush(fp->stdio_stream);
else if(fp->fcgx_stream)
FCGX_ClearError(fp->fcgx_stream);
}
return;
-}\r
+}
\f
/*
*----------------------------------------------------------------------
*----------------------------------------------------------------------
*/
FCGI_FILE *FCGI_tmpfile(void)
-{\r
- return FCGI_OpenFromFile(tmpfile());
+{
+ return FCGI_OpenFromFILE(tmpfile());
}
\f
*/
#ifndef lint
-static const char rcsid[] = "$Id: os_unix.c,v 1.5 1998/12/09 05:41:38 roberts Exp $";
+static const char rcsid[] = "$Id: os_unix.c,v 1.6 1999/01/30 22:24:11 roberts Exp $";
#endif /* not lint */
#include "fcgimisc.h"
struct sockaddr_un un;
struct sockaddr_in in;
} sa;
+#if defined __linux__
+ socklen_t clilen;
+#else
int clilen;
-
+#endif
+
if (AcquireLock(TRUE) < 0) {
return (-1);
}
struct sockaddr_in in;
struct sockaddr_un un;
} sa;
+#if defined __linux__
+ socklen_t len = sizeof(sa);
+#else
int len = sizeof(sa);
+#endif
if (getpeername(FCGI_LISTENSOCK_FILENO, (struct sockaddr *)&sa, &len) != 0
&& errno == ENOTCONN)