Blame SOURCES/0002-Add-fake-fcgiapp.h-for-rgw.patch

9c220d
From c0ea79151d25c2e2e486cbc86cbdf9f375c13e34 Mon Sep 17 00:00:00 2001
9c220d
From: Boris Ranto <branto@redhat.com>
9c220d
Date: Tue, 21 Feb 2017 13:46:59 +0100
9c220d
Subject: [PATCH] Add fake fcgiapp.h for rgw
9c220d
9c220d
- do not link against fcgi
9c220d
9c220d
Signed-off-by: Boris Ranto <branto@redhat.com>
9c220d
---
9c220d
 src/rgw/Makefile.am |   1 -
9c220d
 src/rgw/fcgiapp.h   | 622 ++++++++++++++++++++++++++++++++++++++++++++++++++++
9c220d
 2 files changed, 622 insertions(+), 1 deletion(-)
9c220d
 create mode 100644 src/rgw/fcgiapp.h
9c220d
9c220d
diff --git a/src/rgw/Makefile.am b/src/rgw/Makefile.am
9c220d
index a94e4e2..d4c5ad8 100644
9c220d
--- a/src/rgw/Makefile.am
9c220d
+++ b/src/rgw/Makefile.am
9c220d
@@ -93,7 +93,6 @@ LIBRGW_DEPS += \
9c220d
 	-lcurl \
9c220d
 	-lexpat \
9c220d
 	-lm \
9c220d
-	-lfcgi \
9c220d
 	-ldl
9c220d
 
9c220d
 librgw_la_LIBADD = $(LIBRGW_DEPS) \
9c220d
diff --git a/src/rgw/fcgiapp.h b/src/rgw/fcgiapp.h
9c220d
new file mode 100644
9c220d
index 0000000..41852f9
9c220d
--- /dev/null
9c220d
+++ b/src/rgw/fcgiapp.h
9c220d
@@ -0,0 +1,622 @@
9c220d
+/*
9c220d
+ * fcgiapp.h --
9c220d
+ *
9c220d
+ *      Definitions for FastCGI application server programs
9c220d
+ *
9c220d
+ *
9c220d
+ * Copyright (c) 1996 Open Market, Inc.
9c220d
+ *
9c220d
+ * See the file "LICENSE.TERMS" for information on usage and redistribution
9c220d
+ * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
9c220d
+ *
9c220d
+ * $Id: fcgiapp.h,v 1.12 2001/11/21 21:10:11 robs Exp $
9c220d
+ */
9c220d
+
9c220d
+#ifndef _FCGIAPP_H
9c220d
+#define _FCGIAPP_H
9c220d
+
9c220d
+/* Hack to see if we are building TCL - TCL needs varargs not stdarg */
9c220d
+#ifndef TCL_LIBRARY
9c220d
+#include <stdarg.h>
9c220d
+#else
9c220d
+#include <varargs.h>
9c220d
+#endif
9c220d
+
9c220d
+#ifndef DLLAPI
9c220d
+#ifdef _WIN32
9c220d
+#define DLLAPI __declspec(dllimport)
9c220d
+#else
9c220d
+#define DLLAPI
9c220d
+#endif
9c220d
+#endif
9c220d
+
9c220d
+#if defined (c_plusplus) || defined (__cplusplus)
9c220d
+extern "C" {
9c220d
+#endif
9c220d
+
9c220d
+/*
9c220d
+ * Error codes.  Assigned to avoid conflict with EOF and errno(2).
9c220d
+ */
9c220d
+#define FCGX_UNSUPPORTED_VERSION -2
9c220d
+#define FCGX_PROTOCOL_ERROR -3
9c220d
+#define FCGX_PARAMS_ERROR -4
9c220d
+#define FCGX_CALL_SEQ_ERROR -5
9c220d
+
9c220d
+/*
9c220d
+ * This structure defines the state of a FastCGI stream.
9c220d
+ * Streams are modeled after the FILE type defined in stdio.h.
9c220d
+ * (We wouldn't need our own if platform vendors provided a
9c220d
+ * standard way to subclass theirs.)
9c220d
+ * The state of a stream is private and should only be accessed
9c220d
+ * by the procedures defined below.
9c220d
+ */
9c220d
+typedef struct FCGX_Stream {
9c220d
+    unsigned char *rdNext;    /* reader: first valid byte
9c220d
+                               * writer: equals stop */
9c220d
+    unsigned char *wrNext;    /* writer: first free byte
9c220d
+                               * reader: equals stop */
9c220d
+    unsigned char *stop;      /* reader: last valid byte + 1
9c220d
+                               * writer: last free byte + 1 */
9c220d
+    unsigned char *stopUnget; /* reader: first byte of current buffer
9c220d
+                               * fragment, for ungetc
9c220d
+                               * writer: undefined */
9c220d
+    int isReader;
9c220d
+    int isClosed;
9c220d
+    int wasFCloseCalled;
9c220d
+    int FCGI_errno;                /* error status */
9c220d
+    void (*fillBuffProc) (struct FCGX_Stream *stream);
9c220d
+    void (*emptyBuffProc) (struct FCGX_Stream *stream, int doClose);
9c220d
+    void *data;
9c220d
+} FCGX_Stream;
9c220d
+
9c220d
+/*
9c220d
+ * An environment (as defined by environ(7)): A NULL-terminated array
9c220d
+ * of strings, each string having the form name=value.
9c220d
+ */
9c220d
+typedef char **FCGX_ParamArray;
9c220d
+
9c220d
+/*
9c220d
+ * FCGX_Request Flags
9c220d
+ *
9c220d
+ * Setting FCGI_FAIL_ACCEPT_ON_INTR prevents FCGX_Accept() from
9c220d
+ * restarting upon being interrupted.
9c220d
+ */
9c220d
+#define FCGI_FAIL_ACCEPT_ON_INTR	1
9c220d
+
9c220d
+/*
9c220d
+ * FCGX_Request -- State associated with a request.
9c220d
+ *
9c220d
+ * Its exposed for API simplicity, I expect parts of it to change!
9c220d
+ */
9c220d
+typedef struct FCGX_Request {
9c220d
+    int requestId;            /* valid if isBeginProcessed */
9c220d
+    int role;
9c220d
+    FCGX_Stream *in;
9c220d
+    FCGX_Stream *out;
9c220d
+    FCGX_Stream *err;
9c220d
+	char **envp;
9c220d
+
9c220d
+	/* Don't use anything below here */
9c220d
+
9c220d
+    struct Params *paramsPtr;
9c220d
+    int ipcFd;               /* < 0 means no connection */
9c220d
+    int isBeginProcessed;     /* FCGI_BEGIN_REQUEST seen */
9c220d
+    int keepConnection;       /* don't close ipcFd at end of request */
9c220d
+    int appStatus;
9c220d
+    int nWriters;             /* number of open writers (0..2) */
9c220d
+	int flags;
9c220d
+	int listen_sock;
9c220d
+} FCGX_Request;
9c220d
+
9c220d
+
9c220d
+/*
9c220d
+ *======================================================================
9c220d
+ * Control
9c220d
+ *======================================================================
9c220d
+ */
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_IsCGI --
9c220d
+ *
9c220d
+ *      Returns TRUE iff this process appears to be a CGI process
9c220d
+ *      rather than a FastCGI process.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI int FCGX_IsCGI(void) {return 0;};
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_Init --
9c220d
+ *
9c220d
+ *      Initialize the FCGX library.  Call in multi-threaded apps
9c220d
+ *      before calling FCGX_Accept_r().
9c220d
+ *
9c220d
+ *      Returns 0 upon success.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI int FCGX_Init(void) {return 0;};
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_OpenSocket --
9c220d
+ *
9c220d
+ *	Create a FastCGI listen socket.
9c220d
+ *
9c220d
+ *	path is the Unix domain socket (named pipe for WinNT), or a colon
9c220d
+ *	followed by a port number.  e.g. "/tmp/fastcgi/mysocket", ":5000"
9c220d
+ *
9c220d
+ *	backlog is the listen queue depth used in the listen() call.
9c220d
+ *
9c220d
+ *  Returns the socket's file descriptor or -1 on error.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI int FCGX_OpenSocket(const char *path, int backlog) {return 0;};
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_InitRequest --
9c220d
+ *
9c220d
+ *	Initialize a FCGX_Request for use with FCGX_Accept_r().
9c220d
+ *
9c220d
+ * 	sock is a file descriptor returned by FCGX_OpenSocket() or 0 (default).
9c220d
+ * 	The only supported flag at this time is FCGI_FAIL_ON_INTR.
9c220d
+ *
9c220d
+ * 	Returns 0 upon success.
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI int FCGX_InitRequest(FCGX_Request *request, int sock, int flags) {return 0;};
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_Accept_r --
9c220d
+ *
9c220d
+ *      Accept a new request (multi-thread safe).  Be sure to call
9c220d
+ * 	FCGX_Init() first.
9c220d
+ *
9c220d
+ * Results:
9c220d
+ *	0 for successful call, -1 for error.
9c220d
+ *
9c220d
+ * Side effects:
9c220d
+ *
9c220d
+ *      Finishes the request accepted by (and frees any
9c220d
+ *      storage allocated by) the previous call to FCGX_Accept.
9c220d
+ *      Creates input, output, and error streams and
9c220d
+ *      assigns them to *in, *out, and *err respectively.
9c220d
+ *      Creates a parameters data structure to be accessed
9c220d
+ *      via getenv(3) (if assigned to environ) or by FCGX_GetParam
9c220d
+ *      and assigns it to *envp.
9c220d
+ *
9c220d
+ *      DO NOT retain pointers to the envp array or any strings
9c220d
+ *      contained in it (e.g. to the result of calling FCGX_GetParam),
9c220d
+ *      since these will be freed by the next call to FCGX_Finish
9c220d
+ *      or FCGX_Accept.
9c220d
+ *
9c220d
+ *	DON'T use the FCGX_Request, its structure WILL change.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI int FCGX_Accept_r(FCGX_Request *request) {return 0;};
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_Finish_r --
9c220d
+ *
9c220d
+ *      Finish the request (multi-thread safe).
9c220d
+ *
9c220d
+ * Side effects:
9c220d
+ *
9c220d
+ *      Finishes the request accepted by (and frees any
9c220d
+ *      storage allocated by) the previous call to FCGX_Accept.
9c220d
+ *
9c220d
+ *      DO NOT retain pointers to the envp array or any strings
9c220d
+ *      contained in it (e.g. to the result of calling FCGX_GetParam),
9c220d
+ *      since these will be freed by the next call to FCGX_Finish
9c220d
+ *      or FCGX_Accept.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI void FCGX_Finish_r(FCGX_Request *request) {};
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_Free --
9c220d
+ *
9c220d
+ *      Free the memory and, if close is true, 
9c220d
+ *	    IPC FD associated with the request (multi-thread safe).
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI void FCGX_Free(FCGX_Request * request, int close) {};
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_Accept --
9c220d
+ *
9c220d
+ *      Accept a new request (NOT multi-thread safe).
9c220d
+ *
9c220d
+ * Results:
9c220d
+ *	0 for successful call, -1 for error.
9c220d
+ *
9c220d
+ * Side effects:
9c220d
+ *
9c220d
+ *      Finishes the request accepted by (and frees any
9c220d
+ *      storage allocated by) the previous call to FCGX_Accept.
9c220d
+ *      Creates input, output, and error streams and
9c220d
+ *      assigns them to *in, *out, and *err respectively.
9c220d
+ *      Creates a parameters data structure to be accessed
9c220d
+ *      via getenv(3) (if assigned to environ) or by FCGX_GetParam
9c220d
+ *      and assigns it to *envp.
9c220d
+ *
9c220d
+ *      DO NOT retain pointers to the envp array or any strings
9c220d
+ *      contained in it (e.g. to the result of calling FCGX_GetParam),
9c220d
+ *      since these will be freed by the next call to FCGX_Finish
9c220d
+ *      or FCGX_Accept.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI int FCGX_Accept(
9c220d
+        FCGX_Stream **in,
9c220d
+        FCGX_Stream **out,
9c220d
+        FCGX_Stream **err,
9c220d
+        FCGX_ParamArray *envp) {return 0;};
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_Finish --
9c220d
+ *
9c220d
+ *      Finish the current request (NOT multi-thread safe).
9c220d
+ *
9c220d
+ * Side effects:
9c220d
+ *
9c220d
+ *      Finishes the request accepted by (and frees any
9c220d
+ *      storage allocated by) the previous call to FCGX_Accept.
9c220d
+ *
9c220d
+ *      DO NOT retain pointers to the envp array or any strings
9c220d
+ *      contained in it (e.g. to the result of calling FCGX_GetParam),
9c220d
+ *      since these will be freed by the next call to FCGX_Finish
9c220d
+ *      or FCGX_Accept.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI void FCGX_Finish(void) {};
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_StartFilterData --
9c220d
+ *
9c220d
+ *      stream is an input stream for a FCGI_FILTER request.
9c220d
+ *      stream is positioned at EOF on FCGI_STDIN.
9c220d
+ *      Repositions stream to the start of FCGI_DATA.
9c220d
+ *      If the preconditions are not met (e.g. FCGI_STDIN has not
9c220d
+ *      been read to EOF) sets the stream error code to
9c220d
+ *      FCGX_CALL_SEQ_ERROR.
9c220d
+ *
9c220d
+ * Results:
9c220d
+ *      0 for a normal return, < 0 for error
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI int FCGX_StartFilterData(FCGX_Stream *stream) {return 0;};
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_SetExitStatus --
9c220d
+ *
9c220d
+ *      Sets the exit status for stream's request. The exit status
9c220d
+ *      is the status code the request would have exited with, had
9c220d
+ *      the request been run as a CGI program.  You can call
9c220d
+ *      SetExitStatus several times during a request; the last call
9c220d
+ *      before the request ends determines the value.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI void FCGX_SetExitStatus(int status, FCGX_Stream *stream) {};
9c220d
+
9c220d
+/*
9c220d
+ *======================================================================
9c220d
+ * Parameters
9c220d
+ *======================================================================
9c220d
+ */
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_GetParam -- obtain value of FCGI parameter in environment
9c220d
+ *
9c220d
+ *
9c220d
+ * Results:
9c220d
+ *	Value bound to name, NULL if name not present in the
9c220d
+ *      environment envp.  Caller must not mutate the result
9c220d
+ *      or retain it past the end of this request.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI char *FCGX_GetParam(const char *name, FCGX_ParamArray envp) {return 0;};
9c220d
+
9c220d
+/*
9c220d
+ *======================================================================
9c220d
+ * Readers
9c220d
+ *======================================================================
9c220d
+ */
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_GetChar --
9c220d
+ *
9c220d
+ *      Reads a byte from the input stream and returns it.
9c220d
+ *
9c220d
+ * Results:
9c220d
+ *	The byte, or EOF (-1) if the end of input has been reached.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI int FCGX_GetChar(FCGX_Stream *stream) {return 0;};
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_UnGetChar --
9c220d
+ *
9c220d
+ *      Pushes back the character c onto the input stream.  One
9c220d
+ *      character of pushback is guaranteed once a character
9c220d
+ *      has been read.  No pushback is possible for EOF.
9c220d
+ *
9c220d
+ * Results:
9c220d
+ *	Returns c if the pushback succeeded, EOF if not.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI int FCGX_UnGetChar(int c, FCGX_Stream *stream) {return 0;};
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_GetStr --
9c220d
+ *
9c220d
+ *      Reads up to n consecutive bytes from the input stream
9c220d
+ *      into the character array str.  Performs no interpretation
9c220d
+ *      of the input bytes.
9c220d
+ *
9c220d
+ * Results:
9c220d
+ *	Number of bytes read.  If result is smaller than n,
9c220d
+ *      the end of input has been reached.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI int FCGX_GetStr(char *str, int n, FCGX_Stream *stream) {return 0;};
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_GetLine --
9c220d
+ *
9c220d
+ *      Reads up to n-1 consecutive bytes from the input stream
9c220d
+ *      into the character array str.  Stops before n-1 bytes
9c220d
+ *      have been read if '\n' or EOF is read.  The terminating '\n'
9c220d
+ *      is copied to str.  After copying the last byte into str,
9c220d
+ *      stores a '\0' terminator.
9c220d
+ *
9c220d
+ * Results:
9c220d
+ *	NULL if EOF is the first thing read from the input stream,
9c220d
+ *      str otherwise.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI char *FCGX_GetLine(char *str, int n, FCGX_Stream *stream) {return 0;};
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_HasSeenEOF --
9c220d
+ *
9c220d
+ *      Returns EOF if end-of-file has been detected while reading
9c220d
+ *      from stream; otherwise returns 0.
9c220d
+ *
9c220d
+ *      Note that FCGX_HasSeenEOF(s) may return 0, yet an immediately
9c220d
+ *      following FCGX_GetChar(s) may return EOF.  This function, like
9c220d
+ *      the standard C stdio function feof, does not provide the
9c220d
+ *      ability to peek ahead.
9c220d
+ *
9c220d
+ * Results:
9c220d
+ *	EOF if end-of-file has been detected, 0 if not.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+
9c220d
+DLLAPI  int FCGX_HasSeenEOF(FCGX_Stream *stream) {return 0;};
9c220d
+
9c220d
+/*
9c220d
+ *======================================================================
9c220d
+ * Writers
9c220d
+ *======================================================================
9c220d
+ */
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_PutChar --
9c220d
+ *
9c220d
+ *      Writes a byte to the output stream.
9c220d
+ *
9c220d
+ * Results:
9c220d
+ *	The byte, or EOF (-1) if an error occurred.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI int FCGX_PutChar(int c, FCGX_Stream *stream) {return 0;};
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_PutStr --
9c220d
+ *
9c220d
+ *      Writes n consecutive bytes from the character array str
9c220d
+ *      into the output stream.  Performs no interpretation
9c220d
+ *      of the output bytes.
9c220d
+ *
9c220d
+ * Results:
9c220d
+ *      Number of bytes written (n) for normal return,
9c220d
+ *      EOF (-1) if an error occurred.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI int FCGX_PutStr(const char *str, int n, FCGX_Stream *stream) {return 0;};
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_PutS --
9c220d
+ *
9c220d
+ *      Writes a null-terminated character string to the output stream.
9c220d
+ *
9c220d
+ * Results:
9c220d
+ *      number of bytes written for normal return,
9c220d
+ *      EOF (-1) if an error occurred.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI int FCGX_PutS(const char *str, FCGX_Stream *stream) {return 0;};
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_FPrintF, FCGX_VFPrintF --
9c220d
+ *
9c220d
+ *      Performs printf-style output formatting and writes the results
9c220d
+ *      to the output stream.
9c220d
+ *
9c220d
+ * Results:
9c220d
+ *      number of bytes written for normal return,
9c220d
+ *      EOF (-1) if an error occurred.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI int FCGX_FPrintF(FCGX_Stream *stream, const char *format, ...) {return 0;};
9c220d
+
9c220d
+DLLAPI int FCGX_VFPrintF(FCGX_Stream *stream, const char *format, va_list arg) {return 0;};
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_FFlush --
9c220d
+ *
9c220d
+ *      Flushes any buffered output.
9c220d
+ *
9c220d
+ *      Server-push is a legitimate application of FCGX_FFlush.
9c220d
+ *      Otherwise, FCGX_FFlush is not very useful, since FCGX_Accept
9c220d
+ *      does it implicitly.  Calling FCGX_FFlush in non-push applications
9c220d
+ *      results in extra writes and therefore reduces performance.
9c220d
+ *
9c220d
+ * Results:
9c220d
+ *      EOF (-1) if an error occurred.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI int FCGX_FFlush(FCGX_Stream *stream) {return 0;};
9c220d
+
9c220d
+/*
9c220d
+ *======================================================================
9c220d
+ * Both Readers and Writers
9c220d
+ *======================================================================
9c220d
+ */
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_FClose --
9c220d
+ *
9c220d
+ *      Closes the stream.  For writers, flushes any buffered
9c220d
+ *      output.
9c220d
+ *
9c220d
+ *      Close is not a very useful operation since FCGX_Accept
9c220d
+ *      does it implicitly.  Closing the out stream before the
9c220d
+ *      err stream results in an extra write if there's nothing
9c220d
+ *      in the err stream, and therefore reduces performance.
9c220d
+ *
9c220d
+ * Results:
9c220d
+ *      EOF (-1) if an error occurred.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI int FCGX_FClose(FCGX_Stream *stream) {return 0;};
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_GetError --
9c220d
+ *
9c220d
+ *      Return the stream error code.  0 means no error, > 0
9c220d
+ *      is an errno(2) error, < 0 is an FastCGI error.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI int FCGX_GetError(FCGX_Stream *stream) {return 0;};
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_ClearError --
9c220d
+ *
9c220d
+ *      Clear the stream error code and end-of-file indication.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI void FCGX_ClearError(FCGX_Stream *stream) {};
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_CreateWriter --
9c220d
+ *
9c220d
+ *      Create a FCGX_Stream (used by cgi-fcgi).  This shouldn't 
9c220d
+ *      be needed by a FastCGI applictaion.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI FCGX_Stream *FCGX_CreateWriter(
9c220d
+        int socket,
9c220d
+        int requestId,
9c220d
+        int bufflen,
9c220d
+        int streamType) {return 0;};
9c220d
+
9c220d
+/*
9c220d
+ *----------------------------------------------------------------------
9c220d
+ *
9c220d
+ * FCGX_FreeStream --
9c220d
+ *
9c220d
+ *      Free a FCGX_Stream (used by cgi-fcgi).  This shouldn't 
9c220d
+ *      be needed by a FastCGI applictaion.
9c220d
+ *
9c220d
+ *----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI void FCGX_FreeStream(FCGX_Stream **stream) {};
9c220d
+
9c220d
+/* ----------------------------------------------------------------------
9c220d
+ *
9c220d
+ *  Prevent the lib from accepting any new requests.  Signal handler safe.
9c220d
+ *
9c220d
+ * ----------------------------------------------------------------------
9c220d
+ */
9c220d
+DLLAPI void FCGX_ShutdownPending(void) {};
9c220d
+
9c220d
+#if defined (__cplusplus) || defined (c_plusplus)
9c220d
+} /* terminate extern "C" { */
9c220d
+#endif
9c220d
+
9c220d
+#endif	/* _FCGIAPP_H */
9c220d
-- 
9c220d
2.9.3
9c220d