* See the file "LICENSE.TERMS" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * $Id: fcgi_stdio.h,v 1.1 1997/09/16 15:36:32 stanleyg Exp $
+ * $Id: fcgi_stdio.h,v 1.2 1998/03/09 16:38:13 roberts Exp $
*/
#ifndef _FCGI_STDIO
DLLAPI int FCGI_feof(FCGI_FILE *fp);
DLLAPI int FCGI_ferror(FCGI_FILE *fp);
-DLLAPI void FCGI_clearerr(FCGI_FILE *fp);
+DLLAPI void FCGI_clearerr(FCGI_FILE *fp);\r
+\r
+DLLAPI FCGI_FILE *FCGI_tmpfile(void);
DLLAPI int FCGI_fileno(FCGI_FILE *fp);
DLLAPI FCGI_FILE *FCGI_fdopen(int fd, const char *mode);
#undef ferror
#define ferror FCGI_ferror
#undef clearerr
-#define clearerr FCGI_clearerr
+#define clearerr FCGI_clearerr\r
+\r
+#undef tmpfile\r
+#define tmpfile FCGI_tmpfile\r
#undef fileno
#define fileno FCGI_fileno
*/
#ifndef lint
-static const char rcsid[] = "$Id: fcgi_stdio.c,v 1.2 1998/03/09 15:47:09 roberts Exp $";
+static const char rcsid[] = "$Id: fcgi_stdio.c,v 1.3 1998/03/09 16:38:15 roberts Exp $";
#endif /* not lint */
#ifdef _WIN32
FCGX_ClearError(fp->fcgx_stream);
}
return;
+}\r
+\f
+/*
+ *----------------------------------------------------------------------
+ *
+ * FCGI_tmpfile --
+ *
+ * Wrappers for function defined in H&S Section 15.16
+ *
+ *----------------------------------------------------------------------
+ */
+FCGI_FILE *FCGI_tmpfile(void)
+{\r
+ return FCGI_OpenFromFile(tmpfile());
}
+
\f
/*
*----------------------------------------------------------------------