*/
#ifndef lint
-static const char rcsid[] = "$Id: echo.c,v 1.1 1997/09/16 15:36:28 stanleyg Exp $";
+static const char rcsid[] = "$Id: echo.c,v 1.2 1999/01/30 22:27:31 roberts Exp $";
#endif /* not lint */
+#if defined HAVE_UNISTD_H || __linux__
+#include <unistd.h>
+#endif
+
#include "fcgi_stdio.h"
#include <stdlib.h>
extern char **environ;
#endif
-void PrintEnv(char *label, char **envp)
+static void PrintEnv(char *label, char **envp)
{
printf("%s:<br>\n<pre>\n", label);
for(; *envp != NULL; envp++) {
*/
#ifndef lint
-static const char rcsid[] = "$Id: echo2.c,v 1.1 1997/09/16 15:36:28 stanleyg Exp $";
+static const char rcsid[] = "$Id: echo2.c,v 1.2 1999/01/30 22:27:32 roberts Exp $";
#endif /* not lint */
+#if defined HAVE_UNISTD_H || __linux__
+#include <unistd.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include "fcgiapp.h"
#include <process.h>
#endif
-void PrintEnv(FCGX_Stream *out, char *label, char **envp)
+static void PrintEnv(FCGX_Stream *out, char *label, char **envp)
{
printf("%s:<br>\n<pre>\n", label);
FCGX_FPrintF(out, "%s:<br>\n<pre>\n", label);
*/
#ifndef lint
-static const char rcsid[] = "$Id: sample-store.c,v 1.1 1997/09/16 15:36:28 stanleyg Exp $";
+static const char rcsid[] = "$Id: sample-store.c,v 1.2 1999/01/30 22:27:34 roberts Exp $";
#endif /* not lint */
#include "fcgi_stdio.h" /* FCGI_Accept, FCGI_Finish, stdio */
#include <dirent.h> /* readdir, closedir, DIR, dirent */
#include <unistd.h> /* fsync */
+#if defined __linux__
+int fsync(int fd);
+#endif
+
/*
- * sample-store is designed to be configured as follows:
+ * sample-store is designed to be configured as follows (for the OM server):
*
* SI_Department SampleStoreDept -EnableAnonymousTicketing 1
* Region /SampleStore/* { SI_RequireSI SampleStoreDept 1 }
#define Strlen(str) (((str) == NULL) ? 0 : strlen(str))
+void panic(char *format,
+ char *arg1, char *arg2, char *arg3, char *arg4,
+ char *arg5, char *arg6, char *arg7, char *arg8);
+
static void *Malloc(size_t size);
static void Free(void *ptr);
static char *StringNCopy(char *str, int strLen);
*/
static void Initialize(void)
{
- char *temp;
ListOfString *fileList;
int stateDirLen;
/*
WriteLog(LR_ADD_ITEM, userId, item, TRUE);
}
}
+ return 0;
}
\f
static void DisplayCart(
CartObj *cart = Tcl_GetHashValue(cartEntry);
ListOfString *items = cart->items;
int numberOfItems = ListOfString_Length(items);
- int i;
DisplayHead("Your shopping cart", parent, "Images/cart-hd.gif");
DisplayNumberOfItems(numberOfItems, processId);
}
}
}
+ return 0;
}
\f
static void Purchase(
static char *QueryLookup(char *query, char *name)
{
int nameLen = strlen(name);
- char *queryTail, *nameFirst, *valueFirst, *valueLast, *value;
+ char *queryTail, *nameFirst, *valueFirst, *valueLast;
+
if(query == NULL) {
return NULL;
}
* of the Rights in Technical Data and Computer Software Clause as DFARS
* 252.227-7013 and FAR 52.227-19.
*
- * $Id: tclHash.c,v 1.1 1997/09/16 15:36:28 stanleyg Exp $
+ * $Id: tclHash.c,v 1.2 1999/01/30 22:27:35 roberts Exp $
*
*/
#ifndef lint
-static char sccsid[] = "@(#) tclHash.c 1.14 94/12/17 16:14:17";
+static const char rcsid[] = "$Id: tclHash.c,v 1.2 1999/01/30 22:27:35 roberts Exp $";
#endif /* not lint */
#include "tclInt.h"