diff options
Diffstat (limited to 'apps/JAWS/clients/WebSTONE')
41 files changed, 470 insertions, 470 deletions
diff --git a/apps/JAWS/clients/WebSTONE/src/acconfig.h b/apps/JAWS/clients/WebSTONE/src/acconfig.h index ea85c00c0ba..7878554b6b8 100644 --- a/apps/JAWS/clients/WebSTONE/src/acconfig.h +++ b/apps/JAWS/clients/WebSTONE/src/acconfig.h @@ -1,5 +1,5 @@ -/* Special definitions for autoheader - Copyright (C) 1995 Silicon Graphics, Inc. +/* Special definitions for autoheader + Copyright (C) 1995 Silicon Graphics, Inc. $Header$ */ diff --git a/apps/JAWS/clients/WebSTONE/src/bench.h b/apps/JAWS/clients/WebSTONE/src/bench.h index 069bf3c1694..cc196ef09ac 100644 --- a/apps/JAWS/clients/WebSTONE/src/bench.h +++ b/apps/JAWS/clients/WebSTONE/src/bench.h @@ -1,14 +1,14 @@ /************************************************************************** - * * - * Copyright (C) 1995 Silicon Graphics, Inc. * - * * - * These coded instructions, statements, and computer programs were * + * * + * Copyright (C) 1995 Silicon Graphics, Inc. * + * * + * These coded instructions, statements, and computer programs were * * developed by SGI for public use. If any changes are made to this code* * please try to get the changes back to the author. Feel free to make * - * modifications and changes to the code and release it. * - * * + * modifications and changes to the code and release it. * + * * **************************************************************************/ -#ifndef __BENCH_H__ +#ifndef __BENCH_H__ #define __BENCH_H__ #include <stdio.h> #include <stdarg.h> @@ -16,82 +16,82 @@ #include <sys/time.h> #endif /* WIN32 */ -#define USECINSEC 1000000 -#define MSECINSEC 1000 -#define MAX_ACCEPT_SECS 180 /* maximum time master will wait for listen() */ +#define USECINSEC 1000000 +#define MSECINSEC 1000 +#define MAX_ACCEPT_SECS 180 /* maximum time master will wait for listen() */ -#define NCCARGS 4096 -#define MAXCLIENTS 1024 -#define MAXUSERNAME 25 -#define MAXPASSWD 20 -#define BUFSIZE 4096 +#define NCCARGS 4096 +#define MAXCLIENTS 1024 +#define MAXUSERNAME 25 +#define MAXPASSWD 20 +#define BUFSIZE 4096 -#define MAXTOTALPROCS MAXCLIENTS /* overall max # of procs */ -#define MAXPROCSPERNODE MAXCLIENTS /* max # of procs/node */ +#define MAXTOTALPROCS MAXCLIENTS /* overall max # of procs */ +#define MAXPROCSPERNODE MAXCLIENTS /* max # of procs/node */ -#define CONTENT_LENGTH_STRING "CONTENT-LENGTH:" -#define OKSTR "OK" -#define OKSTRLEN ((int)strlen(OKSTR)) -#define GOSTR "GO" -#define GOSTRLEN ((int)strlen(GOSTR)) -#define READYSTR "READY" -#define READYSTRLEN ((int)strlen(READYSTR)) -#define ABORTSTR "ABORT" -#define ABORTSTRLEN ((int)strlen(ABORTSTR)) +#define CONTENT_LENGTH_STRING "CONTENT-LENGTH:" +#define OKSTR "OK" +#define OKSTRLEN ((int)strlen(OKSTR)) +#define GOSTR "GO" +#define GOSTRLEN ((int)strlen(GOSTR)) +#define READYSTR "READY" +#define READYSTRLEN ((int)strlen(READYSTR)) +#define ABORTSTR "ABORT" +#define ABORTSTRLEN ((int)strlen(ABORTSTR)) -#define MAXNUMOFFILES 1 /* max # of files per page */ -#define URL_SIZE 1024 -#define MAXNUMOFPAGES 100 +#define MAXNUMOFFILES 1 /* max # of files per page */ +#define URL_SIZE 1024 +#define MAXNUMOFPAGES 100 #define SIZEOF_TIMEVALTEXT 18 #define SIZEOF_DOUBLETEXT 18 #define SIZEOF_RQSTSTATSTEXT ((7 * SIZEOF_TIMEVALTEXT) + \ - (12 * SIZEOF_DOUBLETEXT) + 1) + (12 * SIZEOF_DOUBLETEXT) + 1) #define SIZEOF_STATSTEXTBASE (SIZEOF_RQSTSTATSTEXT + \ - (3 * SIZEOF_TIMEVALTEXT) + \ - (2 * SIZEOF_DOUBLETEXT) + 1) + (3 * SIZEOF_TIMEVALTEXT) + \ + (2 * SIZEOF_DOUBLETEXT) + 1) #define SIZEOF_STATSTEXT (SIZEOF_STATSTEXTBASE + MAXNUMOFPAGES * SIZEOF_DOUBLETEXT) #define SIZEOF_PAGESTATSTEXT (SIZEOF_RQSTSTATSTEXT + \ - (0 * SIZEOF_TIMEVALTEXT) + \ - (3 * SIZEOF_DOUBLETEXT) + 1) + (0 * SIZEOF_TIMEVALTEXT) + \ + (3 * SIZEOF_DOUBLETEXT) + 1) #define D_PRINTF debug && d_printf #ifdef USE_TIMEZONE typedef struct rqst_timer { - struct timeval entertime; - struct timezone entertimezone; - struct timeval beforeconnect; - struct timezone beforeconnectzone; - struct timeval afterconnect; - struct timezone afterconnectzone; - struct timeval beforeheader; - struct timezone beforeheaderzone; - struct timeval afterheader; - struct timezone afterheaderzone; - struct timeval afterbody; - struct timezone afterbodyzone; - struct timeval exittime; - struct timezone exittimezone; - long unsigned int totalbytes; - long unsigned int bodybytes; - int valid; - long unsigned int page_number; + struct timeval entertime; + struct timezone entertimezone; + struct timeval beforeconnect; + struct timezone beforeconnectzone; + struct timeval afterconnect; + struct timezone afterconnectzone; + struct timeval beforeheader; + struct timezone beforeheaderzone; + struct timeval afterheader; + struct timezone afterheaderzone; + struct timeval afterbody; + struct timezone afterbodyzone; + struct timeval exittime; + struct timezone exittimezone; + long unsigned int totalbytes; + long unsigned int bodybytes; + int valid; + long unsigned int page_number; } rqst_timer_t; #else typedef struct rqst_timer { - struct timeval entertime; - struct timeval beforeconnect; - struct timeval afterconnect; - struct timeval beforeheader; - struct timeval afterheader; - struct timeval afterbody; - struct timeval exittime; - long unsigned int totalbytes; - long unsigned int bodybytes; - int valid; - long unsigned int page_number; + struct timeval entertime; + struct timeval beforeconnect; + struct timeval afterconnect; + struct timeval beforeheader; + struct timeval afterheader; + struct timeval afterbody; + struct timeval exittime; + long unsigned int totalbytes; + long unsigned int bodybytes; + int valid; + long unsigned int page_number; } rqst_timer_t; #endif /* USE_TIMEZONE */ @@ -101,52 +101,52 @@ extern void rqtimer_init(rqst_timer_t *); typedef struct rqst_stats { struct timeval totalresponsetime; struct timezone totalresponsetimezone; - double totalresponsetimesq; + double totalresponsetimesq; struct timeval minresponsetime; struct timezone minresponsetimezone; struct timeval maxresponsetime; struct timezone maxresponsetimezone; struct timeval totalconnecttime; struct timezone totalconnecttimezone; - double totalconnecttimesq; + double totalconnecttimesq; struct timeval minconnecttime; struct timezone minconnecttimezone; struct timeval maxconnecttime; struct timezone maxconnecttimezone; - long unsigned int totalconnects; - long unsigned int totalerrs; - struct timeval totalerrortime; - struct timezone totalerrortimezone; - double totalbytes; - double totalbytessq; - double minbytes; - double maxbytes; - double totalbody; - double totalbodysq; - double minbody; - double maxbody; + long unsigned int totalconnects; + long unsigned int totalerrs; + struct timeval totalerrortime; + struct timezone totalerrortimezone; + double totalbytes; + double totalbytessq; + double minbytes; + double maxbytes; + double totalbody; + double totalbodysq; + double minbody; + double maxbody; } rqst_stats_t; #else typedef struct rqst_stats { struct timeval totalresponsetime; - double totalresponsetimesq; + double totalresponsetimesq; struct timeval minresponsetime; struct timeval maxresponsetime; struct timeval totalconnecttime; - double totalconnecttimesq; + double totalconnecttimesq; struct timeval minconnecttime; struct timeval maxconnecttime; - long unsigned int totalconnects; - long unsigned int totalerrs; - struct timeval totalerrortime; - double totalbytes; - double totalbytessq; - double minbytes; - double maxbytes; - double totalbody; - double totalbodysq; - double minbody; - double maxbody; + long unsigned int totalconnects; + long unsigned int totalerrs; + struct timeval totalerrortime; + double totalbytes; + double totalbytessq; + double minbytes; + double maxbytes; + double totalbody; + double totalbodysq; + double minbody; + double maxbody; } rqst_stats_t; #endif /* USE_TIMEZONE */ @@ -158,28 +158,28 @@ extern void rqstat_times(rqst_stats_t *, rqst_timer_t *); #ifdef USE_TIMEZONE typedef struct stats { - /* char hostname[MAXHOSTNAMELEN]; */ - rqst_stats_t rs; + /* char hostname[MAXHOSTNAMELEN]; */ + rqst_stats_t rs; struct timeval starttime; struct timezone starttimezone; struct timeval endtime; struct timezone endtimezone; - struct timeval datatime; - struct timezone datatimezone; - long unsigned int totalpages; - unsigned int total_num_of_files; - unsigned int page_numbers[MAXNUMOFPAGES]; + struct timeval datatime; + struct timezone datatimezone; + long unsigned int totalpages; + unsigned int total_num_of_files; + unsigned int page_numbers[MAXNUMOFPAGES]; } stats_t; #else typedef struct stats { - /* char hostname[MAXHOSTNAMELEN]; */ - rqst_stats_t rs; + /* char hostname[MAXHOSTNAMELEN]; */ + rqst_stats_t rs; struct timeval starttime; struct timeval endtime; - struct timeval datatime; - long unsigned int totalpages; - unsigned int total_num_of_files; - unsigned int page_numbers[MAXNUMOFPAGES]; + struct timeval datatime; + long unsigned int totalpages; + unsigned int total_num_of_files; + unsigned int page_numbers[MAXNUMOFPAGES]; } stats_t; #endif /* USE_TIMEZONE */ @@ -188,10 +188,10 @@ extern stats_t * text_to_stats(char *); extern char * stats_to_text(const stats_t *); typedef struct page_stats { - rqst_stats_t rs; - long unsigned int totalpages; - unsigned int page_size; - int page_valid; + rqst_stats_t rs; + long unsigned int totalpages; + unsigned int page_size; + int page_valid; } page_stats_t; extern void page_stats_init(page_stats_t *); @@ -200,11 +200,11 @@ extern char * page_stats_to_text(const page_stats_t *); /* THIS STRUCTURE DEFINES A PAGE. */ typedef struct page_list { - int load_num; - int num_of_files; - char *(filename[MAXNUMOFFILES]); - char *(servername[MAXNUMOFFILES]); - int port_number[MAXNUMOFFILES]; + int load_num; + int num_of_files; + char *(filename[MAXNUMOFFILES]); + char *(servername[MAXNUMOFFILES]); + int port_number[MAXNUMOFFILES]; }page_list_t; @@ -213,8 +213,8 @@ typedef struct page_list { extern THREAD FILE *debugfile; extern int debug; -extern int savefile; -extern int timeexpired; +extern int savefile; +extern int timeexpired; extern long int number_of_pages; /* routines in bench.c */ @@ -239,32 +239,32 @@ extern int get(char *loc, NETPORT port, char *url, rqst_timer_t *timer); /* routines in parse_file_list.c */ extern int count_file_list(const char *url_list_file); -extern void parse_file_list (const char *url_list_file, page_list_t *page_list, - long int *num_of_pages, long int *num_of_files); +extern void parse_file_list (const char *url_list_file, page_list_t *page_list, + long int *num_of_pages, long int *num_of_files); extern long int load_percent(page_list_t *page_list, long int number_of_pages); /* routines in statistics.c (formerly statistics.h) */ -extern double mean(const double, const int); -extern double variance(const double, const double, const int); -extern double stddev(const double, const double, const int); +extern double mean(const double, const int); +extern double variance(const double, const double, const int); +extern double stddev(const double, const double, const int); /* routines in timefunc.c (formerly timefunc.h) */ -extern double timevaldouble(struct timeval *); -extern void doubletimeval(const double, struct timeval *); +extern double timevaldouble(struct timeval *); +extern void doubletimeval(const double, struct timeval *); -extern void addtime(struct timeval *, struct timeval *); -extern void compdifftime(struct timeval *, struct timeval *, struct timeval *); -extern void mintime(struct timeval *, struct timeval *); -extern void maxtime(struct timeval *, struct timeval *); -extern void avgtime(struct timeval *, int, struct timeval *); -extern void variancetime(struct timeval *, double, int, struct timeval *); -extern void stddevtime(struct timeval *, double, int, struct timeval *); +extern void addtime(struct timeval *, struct timeval *); +extern void compdifftime(struct timeval *, struct timeval *, struct timeval *); +extern void mintime(struct timeval *, struct timeval *); +extern void maxtime(struct timeval *, struct timeval *); +extern void avgtime(struct timeval *, int, struct timeval *); +extern void variancetime(struct timeval *, double, int, struct timeval *); +extern void stddevtime(struct timeval *, double, int, struct timeval *); -extern void sqtime(struct timeval *, struct timeval *); +extern void sqtime(struct timeval *, struct timeval *); -extern double thruputpersec(const double, struct timeval *); +extern double thruputpersec(const double, struct timeval *); /* routines in webclient.c */ diff --git a/apps/JAWS/clients/WebSTONE/src/get.h b/apps/JAWS/clients/WebSTONE/src/get.h index 3f9fb7a1e76..0b254d1519a 100644 --- a/apps/JAWS/clients/WebSTONE/src/get.h +++ b/apps/JAWS/clients/WebSTONE/src/get.h @@ -2,15 +2,15 @@ #define __GET_H__ /************************************************************************** $Header$ - * Copyright (C) 1995 Silicon Graphics, Inc. * - * * - * These coded instructions, statements, and computer programs where * + * Copyright (C) 1995 Silicon Graphics, Inc. * + * * + * These coded instructions, statements, and computer programs where * * deveolped by SGI for public use. If anychanges are made to this code * * please try to get the changes back to the author. Feel free to make * - * modfications and changes to the code and release it. * - * * + * modfications and changes to the code and release it. * + * * **************************************************************************/ - -extern int get(char *loc, int port, char *url, rqst_timer_t *timer); + +extern int get(char *loc, int port, char *url, rqst_timer_t *timer); #endif /* !__GET_H__ */ diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/buffer.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/buffer.h index 0ceb060d766..8f368ed1525 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/buffer.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/buffer.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -13,24 +13,24 @@ /* * buffer.h: For performing buffered I/O on a file or socket descriptor. - * + * * This is an abstraction to allow I/O to be performed regardless of the - * current system. That way, an integer file descriptor can be used under + * current system. That way, an integer file descriptor can be used under * UNIX but a stdio FILE structure could be used on systems which don't * support that or don't support it as efficiently. - * + * * Two abstractions are defined: A file buffer, and a network buffer. A * distinction is made so that mmap() can be used on files (but is not - * required). Also, the file buffer takes a file name as the object to + * required). Also, the file buffer takes a file name as the object to * open instead of a file descriptor. A lot of the network buffering * is almost an exact duplicate of the non-mmap file buffering. - * + * * If an error occurs, system-independent means to obtain an error string * are also provided. However, if the underlying system is UNIX the error * may not be accurate in a threaded environment. - * + * * Rob McCool - * + * */ @@ -50,7 +50,7 @@ #include "net.h" /* - * Requires that the macro MALLOC be set to a "safe" malloc that will + * Requires that the macro MALLOC be set to a "safe" malloc that will * exit if no memory is available. If not under MCC httpd, define MALLOC * to be the real malloc and play with fire, or make your own function. */ @@ -102,9 +102,9 @@ typedef struct { /* - * netbuf_getc gets a character from the given network buffer and returns + * netbuf_getc gets a character from the given network buffer and returns * it. (as an integer). - * + * * It will return (int) IO_ERROR for an error and (int) IO_EOF for * an error condition or EOF respectively. */ @@ -128,7 +128,7 @@ typedef struct { #define buffer_error(b) ((b)->errmsg) /* - * buffer_flush flushes any data after the current pos to the file + * buffer_flush flushes any data after the current pos to the file * descriptor fd. Regardless of buffer type. */ @@ -144,7 +144,7 @@ typedef struct { * buffer of size sz, and returns a new buffer structure which will hold * the data. * - * If FILE_UNIX_MMAP is defined, this may return NULL. If it does, check + * If FILE_UNIX_MMAP is defined, this may return NULL. If it does, check * system_errmsg to get a message about the error. */ @@ -181,12 +181,12 @@ void filebuf_close(filebuf *buf); void netbuf_close(netbuf *buf); /* - * buffer_grab will set the buffer's inbuf array to an array of sz bytes - * from the buffer's associated object. It returns the number of bytes + * buffer_grab will set the buffer's inbuf array to an array of sz bytes + * from the buffer's associated object. It returns the number of bytes * actually read (between 1 and sz). It returns IO_EOF upon EOF or IO_ERROR * upon error. The cursize entry of the structure will reflect the size * of the iobuf array. - * + * * The buffer will take care of allocation and deallocation of this array. */ @@ -204,7 +204,7 @@ int netbuf_grab(netbuf *buf, int sz); int netbuf_buf2sd(netbuf *buf, SYS_NETFD sd, int len); /* - * filebuf_buf2sd assumes that nothing has been read from the filebuf, + * filebuf_buf2sd assumes that nothing has been read from the filebuf, * and just sends the file out to the given socket. Returns IO_ERROR on error * and the number of bytes sent otherwise. * diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/cinfo.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/cinfo.h index 543147104a2..6cfdbd6c2c6 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/cinfo.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/cinfo.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -13,9 +13,9 @@ /* * cinfo.h: Content Information for a file, i.e. its type, etc. - * - * See cinfo.c for dependency information. - * + * + * See cinfo.c for dependency information. + * * Rob McCool */ @@ -62,9 +62,9 @@ /* * The ContentInfo structure. - * + * * Currently, we support the following attributes: - * + * * 1. Type: This identifies what kind of data is in the file. * 2. Encoding: Identifies any compression or otherwise content-independent * transformation which has been applied to the file (uuencode, etc.) @@ -72,7 +72,7 @@ * 4. Description: A text string describing the file. * 5. Viewer: The program to use to view the file. * - * Multiple items are separated with a comma, e.g. + * Multiple items are separated with a comma, e.g. * encoding="x-gzip, x-uuencode" */ @@ -87,7 +87,7 @@ typedef struct { /* - * cinfo_init initializes the content info system. Call this before + * cinfo_init initializes the content info system. Call this before * cinfo_merge. */ @@ -100,7 +100,7 @@ void cinfo_init(void); void cinfo_terminate(void); /* - * cinfo_merge merges the contents of the given filename with the current + * cinfo_merge merges the contents of the given filename with the current * cinfo database. It returns NULL upon success and a string (which you * must deallocate) upon error. */ @@ -114,7 +114,7 @@ char *cinfo_merge(char *fn); * separated by CINFO_SEPARATOR. You may pass in a filename instead of uri. * * Returns a newly allocated cinfo structure with the information it - * finds. The elements of this structure are coming right out of the types + * finds. The elements of this structure are coming right out of the types * database and so if you change it or want to keep it around for long you * should strdup it. You should free only the structure itself when finished * with it. @@ -127,7 +127,7 @@ char *cinfo_merge(char *fn); cinfo *cinfo_find(char *uri); /* - * cinfo_lookup finds the information about the given content-type, and + * cinfo_lookup finds the information about the given content-type, and * returns a cinfo structure so you can look up description and icon. */ diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/crit.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/crit.h index 04954857c0c..5ed576edb57 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/crit.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/crit.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -15,9 +15,9 @@ * crit.h: Critical section abstraction. Used in threaded servers to protect * areas where two threads can interfere with each other. * - * Condvars are condition variables that are used for thread-thread + * Condvars are condition variables that are used for thread-thread * synchronization. - * + * * Rob McCool */ @@ -33,7 +33,7 @@ typedef void *CRITICAL; #endif /* - * crit_init creates and returns a new critical section variable. At the + * crit_init creates and returns a new critical section variable. At the * time of creation no one has entered it. */ #ifdef USE_NSPR @@ -79,8 +79,8 @@ typedef void* CONDVAR; #endif /* - * condvar_init initializes and returns a new condition variable. You - * must provide a critical section to be associated with this condition + * condvar_init initializes and returns a new condition variable. You + * must provide a critical section to be associated with this condition * variable. */ #ifdef USE_NSPR diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/daemon.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/daemon.h index 24b44ad0cd0..d3846b6de8b 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/daemon.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/daemon.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -13,7 +13,7 @@ /* * daemon.h: Things related to the accepting connections - * + * * Rob McCool */ @@ -76,10 +76,10 @@ extern int child_serial; /* * daemon_run accepts whether or not it should detach from its parent process, - * and a daemon structure as its arguments. The daemon structure contains - * a port number, a root directory to chroot to (can be NULL), a filename to + * and a daemon structure as its arguments. The daemon structure contains + * a port number, a root directory to chroot to (can be NULL), a filename to * log the daemon pid to (can be NULL). daemon_run never returns. - * + * * child_callback is a function which will be called every time a new * connection is recieved. Session is a new session ID. * diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/dll.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/dll.h index 0a3edb0633e..65ba77dd0e7 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/dll.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/dll.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -13,7 +13,7 @@ /* * dll.h: Handle dynamically linked libraries - * + * * Rob McCool */ @@ -66,7 +66,7 @@ DLHANDLE dll_open(char *libfn); /* - * dll_findsym looks for a symbol with the given name in the library + * dll_findsym looks for a symbol with the given name in the library * pointed to by the given handle. Returns a pointer to the named function. */ diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/ereport.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/ereport.h index c10c6ab86b5..8fe585f9e00 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/ereport.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/ereport.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -13,7 +13,7 @@ /* * ereport.h: Records transactions, reports errors to administrators, etc. - * + * * Rob McCool */ @@ -40,13 +40,13 @@ /* A warning is a minor mishap, such as a 404 being issued. */ #define LOG_WARN 0 -/* +/* * A misconfig is when there is a syntax error or permission violation in * a config. file. */ #define LOG_MISCONFIG 1 -/* +/* * Security warnings are issued when authentication fails, or a host is * given a 403 return code. */ @@ -54,14 +54,14 @@ /* * A failure is when a request could not be fulfilled due to an internal - * problem, such as a CGI script exiting prematurely, or a filesystem + * problem, such as a CGI script exiting prematurely, or a filesystem * permissions problem. */ #define LOG_FAILURE 3 /* * A catastrophe is a fatal server error such as running out of - * memory or processes, or a system call failing, or even a server crash. + * memory or processes, or a system call failing, or even a server crash. * The server child cannot recover from a catastrophe. */ #define LOG_CATASTROPHE 4 @@ -88,8 +88,8 @@ /* - * ereport logs an error of the given degree and formats the arguments with - * the printf() style fmt. Returns whether the log was successful. Records + * ereport logs an error of the given degree and formats the arguments with + * the printf() style fmt. Returns whether the log was successful. Records * the current date. */ @@ -99,7 +99,7 @@ int ereport(int degree, char *fmt, ...); * ereport_init initializes the error logging subsystem and opens the static * file descriptors. It returns NULL upon success and an error string upon * error. If a userpw is given, the logs will be chowned to that user. - * + * * email is the address of a person to mail upon catastrophic error. It * can be NULL if no e-mail is desired. ereport_init will not duplicate * its own copy of this string; you must make sure it stays around and free diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/eventlog.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/eventlog.h index 8218f875075..ce78bab46be 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/eventlog.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/eventlog.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -29,18 +29,18 @@ VOID TerminateHttpdLogging(); VOID TerminateHttpsLogging(); VOID LogErrorEvent(PCHAR ServiceName, WORD fwEventType, WORD fwCategory, DWORD IDEvent, - LPTSTR chMsg, LPTSTR lpszMsg); + LPTSTR chMsg, LPTSTR lpszMsg); // Functions in error.c VOID ReportError(PCHAR ErrorMsg); BOOL CALLBACK ErrorDialogProc( - HWND hDlg, - UINT message, - WPARAM wParam, - LPARAM lParam - ); + HWND hDlg, + UINT message, + WPARAM wParam, + LPARAM lParam + ); diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/file.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/file.h index f0efb1ee582..fc4d26b32ec 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/file.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/file.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -13,7 +13,7 @@ /* * file.h: system specific functions for reading/writing files - * + * * Rob McCool */ @@ -86,7 +86,7 @@ typedef int SYS_FILE; /* * system_fread reads sz bytes from fd into to buf, return number of bytes - * read, or IO_EOF if EOF, or IO_ERROR if error. + * read, or IO_EOF if EOF, or IO_ERROR if error. */ #if defined(FILE_STDIO) diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/minissl.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/minissl.h index 1a00323cecc..4eb09688d4c 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/minissl.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/minissl.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/net.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/net.h index 0454ac69c84..349018ba048 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/net.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/net.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -13,7 +13,7 @@ /* * net.h: system specific networking definitions - * + * * Rob McCool */ @@ -161,7 +161,7 @@ char *net_find_fqdn(struct hostent *p); * net_ip2host transforms the given textual IP number into a FQDN. If it * can't find a FQDN, it will return what it can get. Otherwise, NULL. * - * verify is whether or not the function should verify the hostname it + * verify is whether or not the function should verify the hostname it * gets. This takes an extra query but is safer for use in access control. */ diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/nodelock.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/nodelock.h index c69c553a2a4..e0672366a2a 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/nodelock.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/nodelock.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -11,14 +11,14 @@ /* ------------------------------------------------------------------------ */ -/* +/* * nodelock.h: licensing stuff */ #ifndef _NODELOCK_H #define _NODELOCK_H -/* +/* * Do the initial IP address check and expiration date check. Reads a file * from admin/config, as #define'd. * @@ -37,7 +37,7 @@ int node_check(void); /* * So how we doin, license - * + * * Returns 1 on error, 0 on AOK */ int node_status(void); diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/nterrors.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/nterrors.h index 7c85116faee..d83a3caaf6e 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/nterrors.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/nterrors.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -14,9 +14,9 @@ /* DO NOT EDIT THIS FILE - it is automatically generated */ struct _NtError { - int ErrorNumber; - char *ErrorString; - struct _NtError *next; + int ErrorNumber; + char *ErrorString; + struct _NtError *next; } ; typedef struct _NtError NtError; diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/objndx.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/objndx.h index 7fb14eecf06..09573ffeb03 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/objndx.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/objndx.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -15,7 +15,7 @@ #define __objndx_h /* Define maximum length of object name strings */ -#define OBJNDXNAMLEN 16 +#define OBJNDXNAMLEN 16 /* Functions in objndx.c */ extern void * objndx_create(int size, void (*freefunc)(void *)); diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/pblock.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/pblock.h index e2d3642a611..dc0c8de76e4 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/pblock.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/pblock.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -13,33 +13,33 @@ /* * pblock.h: Header for Parameter Block handling functions - * * - * A parameter block is a set of name=value pairs which are generally used - * as parameters, but can be anything. They are kept in a hash table for + * + * A parameter block is a set of name=value pairs which are generally used + * as parameters, but can be anything. They are kept in a hash table for * reasonable speed, but if you are doing any intensive modification or * access of them you should probably make a local copy of each parameter * while working. * * When creating a pblock, you specify the hash table size for that pblock. - * You should set this size larger if you know that many items will be in + * You should set this size larger if you know that many items will be in * that pblock, and smaller if only a few will be used or if speed is not * a concern. * - * The hashing function is very simple right now, and only looks at the + * The hashing function is very simple right now, and only looks at the * first character of name. * * Rob McCool - * + * */ #ifndef PBLOCK_H #define PBLOCK_H /* - * Requires that the macros MALLOC and STRDUP be set to "safe" versions that - * will exit if no memory is available. If not under MCC httpd, define - * them to be the real functions and play with fire, or make your own + * Requires that the macros MALLOC and STRDUP be set to "safe" versions that + * will exit if no memory is available. If not under MCC httpd, define + * them to be the real functions and play with fire, or make your own * function. */ @@ -82,15 +82,15 @@ pb_param *param_create(char *name, char *value); /* * param_free frees a given parameter if it's non-NULL, and returns 1 if * p was non-NULL, and 0 if p was NULL. - * + * * Useful for error checking pblock_remove. */ int param_free(pb_param *pp); -/* +/* * pblock_create creates a new pblock with hash table size n. - * + * * It returns the newly allocated pblock. */ @@ -98,14 +98,14 @@ pblock *pblock_create(int n); /* * pblock_free frees the given pblock and any entries inside it. - * - * If you want to save anything in a pblock, remove its entities with + * + * If you want to save anything in a pblock, remove its entities with * pblock_remove first and save the pointers you get. */ void pblock_free(pblock *pb); -/* +/* * pblock_find finds the entry with the given name in pblock pb. * * If it is successful, it returns the param block. If not, it returns NULL. @@ -130,7 +130,7 @@ char *pblock_findval(char *name, pblock *pb); /* * pblock_nvinsert creates a new parameter with the given name and value * and inserts it into pblock pb. The name and value in the parameter are - * also newly allocated. Returns the pb_param it allocated (in case you + * also newly allocated. Returns the pb_param it allocated (in case you * need it). * * pblock_nninsert inserts a numerical value. @@ -147,18 +147,18 @@ void pblock_pinsert(pb_param *pp, pblock *pb); /* * pblock_str2pblock scans the given string str for parameter pairs - * name=value, or name="value". Any \ must be followed by a literal + * name=value, or name="value". Any \ must be followed by a literal * character. If a string value is found, with no unescaped = signs, it * will be added with the name 1, 2, 3, etc. depending on whether it was * first, second, third, etc. in the stream (zero doesn't count). - * + * * Returns the number of parameters added to the table, or -1 upon error. */ int pblock_str2pblock(char *str, pblock *pb); /* - * pblock_pblock2str places all of the parameters in the given pblock + * pblock_pblock2str places all of the parameters in the given pblock * into the given string (NULL if it needs creation). It will re-allocate * more space for the string. Each parameter is separated by a space and of * the form name="value" @@ -167,7 +167,7 @@ int pblock_str2pblock(char *str, pblock *pb); char *pblock_pblock2str(pblock *pb, char *str); /* - * pblock_copy copies the entries in the given source pblock to the + * pblock_copy copies the entries in the given source pblock to the * destination one. The entries are newly allocated so that the original * pblock may be freed or the new one changed without affecting the other. */ diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/sem.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/sem.h index c6ea65b834b..a6d061b1a5b 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/sem.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/sem.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -13,7 +13,7 @@ /* * sem.h: Attempt to provide multi-process semaphores across platforms - * + * * Rob McCool */ @@ -37,8 +37,8 @@ typedef int SEMAPHORE; #endif /* SEM_WIN32 */ /* - * sem_init creates a semaphore using the given name and unique - * identification number. filename should be a file accessible to the + * sem_init creates a semaphore using the given name and unique + * identification number. filename should be a file accessible to the * process. Returns SEM_ERROR on error. */ diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/session.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/session.h index c404dfa5a8c..4531a34e966 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/session.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/session.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -72,8 +72,8 @@ void session_free(Session *sn); #define session_dns(sn) session_dns_lookup(sn, 0) /* - * session_maxdns looks up a hostname from an IP address, and then verifies - * that the host is really who they claim to be. + * session_maxdns looks up a hostname from an IP address, and then verifies + * that the host is really who they claim to be. */ #define session_maxdns(sn) session_dns_lookup(sn, 1) diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/shexp.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/shexp.h index 38b7e4982aa..d7a49a65aaf 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/shexp.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/shexp.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -13,11 +13,11 @@ /* * shexp.h: Defines and prototypes for shell exp. match routines - * + * * * This routine will match a string with a shell expression. The expressions * accepted are based loosely on the expressions accepted by zsh. - * + * * o * matches anything * o ? matches one character * o \ will escape a special character @@ -30,18 +30,18 @@ * matching the shell expression from the match list * o (foo|bar) will match either the substring foo, or the substring bar. * These can be shell expressions as well. - * + * * The public interface to these routines is documented below. - * + * * Rob McCool - * + * */ #ifndef SHEXP_H #define SHEXP_H /* - * Requires that the macro MALLOC be set to a "safe" malloc that will + * Requires that the macro MALLOC be set to a "safe" malloc that will * exit if no memory is available. If not under MCC httpd, define MALLOC * to be the real malloc and play with fire, or make your own function. */ @@ -58,7 +58,7 @@ /* * shexp_valid takes a shell expression exp as input. It returns: - * + * * NON_SXP if exp is a standard string * INVALID_SXP if exp is a shell expression, but invalid * VALID_SXP if exp is a valid shell expression @@ -71,8 +71,8 @@ int shexp_valid(char *exp); /* - * shexp_match - * + * shexp_match + * * Takes a prevalidated shell expression exp, and a string str. * * Returns 0 on match and 1 on non-match. @@ -83,9 +83,9 @@ int shexp_match(char *str, char *exp); /* * shexp_cmp - * + * * Same as above, but validates the exp first. 0 on match, 1 on non-match, - * -1 on invalid exp. shexp_casecmp does the same thing but is case + * -1 on invalid exp. shexp_casecmp does the same thing but is case * insensitive. */ diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/shmem.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/shmem.h index ec536cf4d9c..345efe9ad2f 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/shmem.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/shmem.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -13,7 +13,7 @@ /* * shmem.h: Portable abstraction for memory shared among a server's workers - * + * * Rob McCool */ @@ -49,8 +49,8 @@ typedef struct { /* * shmem_alloc allocates a region of shared memory of the given size, using * the given name to avoid conflicts between multiple regions within the - * program. The region will not be automatically grown if its boundaries - * are over-run, use shmem_realloc for that. + * program. The region will not be automatically grown if its boundaries + * are over-run, use shmem_realloc for that. * * If expose is non-zero and the underlying system supports it, the * file used to create the shared region will be visible to other processes @@ -59,7 +59,7 @@ typedef struct { * name should be unique to the program which calls this routine, otherwise * conflicts will arise. * - * Returns a new shared memory region, with the data element being a + * Returns a new shared memory region, with the data element being a * pointer to the shared memory. This function must be called before any * daemon workers are spawned, in order for the handle to the shared region * to be inherited by the children. diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/systems.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/systems.h index b54f085e6a9..5635625e2bb 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/systems.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/systems.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -13,8 +13,8 @@ /* * systems.h: Lists of defines for systems - * - * This sets what general flavor the system is (UNIX, etc.), + * + * This sets what general flavor the system is (UNIX, etc.), * and defines what extra functions your particular system needs. */ @@ -209,12 +209,12 @@ typedef void* PASSWD; /* The stat call under NT doesn't define these macros */ #define S_ISDIR(mode) ((mode&S_IFMT) == S_IFDIR) -#define S_ISREG(mode) ((mode&S_IFMT) == S_IFREG) +#define S_ISREG(mode) ((mode&S_IFMT) == S_IFREG) #define strcasecmp util_strcasecmp #define strncasecmp util_strncasecmp int util_strcasecmp(const char *s1, const char *s2); int util_strncasecmp(const char *s1, const char *s2, int n); -#endif /* Windows NT */ +#endif /* Windows NT */ #endif diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/systhr.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/systhr.h index 81e101076f9..f359b8b9a64 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/systhr.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/systhr.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -13,7 +13,7 @@ /* * systhr.h: Abstracted threading mechanisms - * + * * Rob McCool */ @@ -46,14 +46,14 @@ typedef sys_thread_s *SYS_THREAD; /* * systhread_start creates a thread with the given priority, will allocate * a stack of stksz bytes, and calls fn with arg as its argument. stksz - * of zero will allocate a default stack size. - * + * of zero will allocate a default stack size. + * * XXX Priorities are system dependent */ SYS_THREAD systhread_start(int prio, int stksz, void (*fn)(void *), void *arg); -/* +/* * systhread_current returns a pointer to the current thread. */ #ifdef USE_NSPR @@ -69,7 +69,7 @@ SYS_THREAD systhread_start(int prio, int stksz, void (*fn)(void *), void *arg); SYS_THREAD systhread_attach(); -/* +/* * systhread_terminate terminates the thread that is passed in. */ void systhread_terminate(SYS_THREAD thr); @@ -105,7 +105,7 @@ void systhread_init(char *name); /* * newkey allocates a new integer id for thread-private data. Use this - * key to identify a variable which you want to appear differently + * key to identify a variable which you want to appear differently * between threads, and then use setdata to associate a value with this * key for each thread. */ @@ -113,7 +113,7 @@ int systhread_newkey(void); /* * Get data that has been previously associated with key in this thread. - * Returns NULL if setkey has not been called with this key by this + * Returns NULL if setkey has not been called with this key by this * thread previously, or the data that was previously used with setkey * by this thread with this key. */ diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/util.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/util.h index cf2f1c0764d..17972cb518a 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/util.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/base/util.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -12,9 +12,9 @@ /* - * util.h: A hodge podge of utility functions and standard functions which + * util.h: A hodge podge of utility functions and standard functions which * are unavailable on certain systems - * + * * Rob McCool */ @@ -33,7 +33,7 @@ /* * getline scans in buf until it finds a LF or CRLF, storing the string in * l. It will terminate the string and return: - * + * * 0 when done, with the scanned line (minus CR or LF) in l * 1 upon EOF, with the scanned line (minus CR or LF) in l * -1 on error with the error description in l (uses lineno for information) @@ -43,7 +43,7 @@ int util_getline(filebuf *buf, int lineno, int maxlen, char *l); /* - * can_exec returns 1 if you can execute the file described by finfo, and + * can_exec returns 1 if you can execute the file described by finfo, and * 0 if you can't. */ @@ -58,7 +58,7 @@ int util_can_exec(struct stat *finfo, uid_t uid, gid_t gid); * env_create creates a new environment with the given env, with n new * entries, and places the current position that you should add your * entries with at pos. - * + * * If env is NULL, it will allocate a new one. If not, it will reallocate * that one. */ @@ -73,7 +73,7 @@ char **util_env_create(char **env, int n, int *pos); char *util_env_str(char *name, char *value); /* - * env_replace replaces the occurrence of the given variable with the + * env_replace replaces the occurrence of the given variable with the * value you give. */ @@ -110,25 +110,25 @@ int util_chdir2path(char *path); /* * is_mozilla checks if the given user-agent is mozilla, of at least - * the given major and minor revisions. These are strings to avoid + * the given major and minor revisions. These are strings to avoid * ambiguities like 1.56 > 1.5 */ int util_is_mozilla(char *ua, char *major, char *minor); /* - * is_url will return 1 if the given string seems to be a URL, or will - * return 0 otherwise. - * - * Because of stupid news URLs, this will return 1 if the string has - * all alphabetic characters up to the first colon and will not check for + * is_url will return 1 if the given string seems to be a URL, or will + * return 0 otherwise. + * + * Because of stupid news URLs, this will return 1 if the string has + * all alphabetic characters up to the first colon and will not check for * the double slash. */ int util_is_url(char *url); /* - * util_later_than checks the date in the string ims, and if that date is + * util_later_than checks the date in the string ims, and if that date is * later than or equal to the one in the tm struct lms, then it returns 1. * * Handles RFC 822, 850, and ctime formats. @@ -144,7 +144,7 @@ int util_uri_is_evil(char *t); /* * util_uri_parse gets rid of /../, /./, and //. - * + * * Assumes that either the string starts with a /, or the string will * not .. right off of its beginning. As such, ../foo.gif will * not be changed, although /../foo.gif will become /foo.gif. @@ -163,7 +163,7 @@ void util_uri_unescape(char *s); * If d is NULL, it will allocate and return a properly sized string. * Warning: does not check bounds on a given d. * - * util_url_escape does the same thing but does it for a url, i.e. ?:+ is + * util_url_escape does the same thing but does it for a url, i.e. ?:+ is * not escaped. */ @@ -184,9 +184,9 @@ char *util_sh_escape(char *s); int util_itoa(int i, char *a); /* - * util_vsprintf and util_sprintf are simplified clones of the System V + * util_vsprintf and util_sprintf are simplified clones of the System V * vsprintf and sprintf routines. - * + * * Returns the number of characters printed. Only handles %d and %s, * does not handle any width or precision. */ diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/conf.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/conf.h index ec632f2d84b..79a8b84dbbc 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/conf.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/conf.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -13,12 +13,12 @@ /* * conf.h: Deals with the server configuration file. - * + * * Object configuration is an entirely different matter. This deals with * things like what port the server runs on, how many children it spawns, * and other server-related issues. Information related configuration is * handled by the object conf. - * + * * Rob McCool */ @@ -67,7 +67,7 @@ /* * These server parameters are made global because they really don't - * belong anywhere else. + * belong anywhere else. */ #if defined(DAEMON_ANY) @@ -145,7 +145,7 @@ void conf_terminate(void); /* - * conf_vars2daemon transfers these globals to a daemon structure + * conf_vars2daemon transfers these globals to a daemon structure */ void conf_vars2daemon(daemon_s *d); diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/dnfilter.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/dnfilter.h index 3904af7b37c..63545df5ad1 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/dnfilter.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/dnfilter.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -15,22 +15,22 @@ #define __dnfilter_h /* Error codes */ -#define DNFERR_MAX (-1) /* maximum error code */ -#define DNFERR_MALLOC (-1) /* insufficient memory */ -#define DNFERR_FOPEN (-2) /* file open error */ -#define DNFERR_FILEIO (-3) /* file I/O error */ -#define DNFERR_DUPSPEC (-4) /* duplicate filter specification */ -#define DNFERR_INTERR (-5) /* internal error (bug) */ -#define DNFERR_SYNTAX (-6) /* syntax error in filter file */ -#define DNFERR_MIN (-6) /* minimum error code */ +#define DNFERR_MAX (-1) /* maximum error code */ +#define DNFERR_MALLOC (-1) /* insufficient memory */ +#define DNFERR_FOPEN (-2) /* file open error */ +#define DNFERR_FILEIO (-3) /* file I/O error */ +#define DNFERR_DUPSPEC (-4) /* duplicate filter specification */ +#define DNFERR_INTERR (-5) /* internal error (bug) */ +#define DNFERR_SYNTAX (-6) /* syntax error in filter file */ +#define DNFERR_MIN (-6) /* minimum error code */ /* This is used to return error information from dns_filter_setup() */ typedef struct DNSFilterErr_s DNSFilterErr_t; struct DNSFilterErr_s { - int errNo; /* DNFERR_xxxx error code */ - int lineno; /* file line number, if applicable */ - char * filename; /* filename, if applicable */ - char * errstr; /* error text, if any */ + int errNo; /* DNFERR_xxxx error code */ + int lineno; /* file line number, if applicable */ + char * filename; /* filename, if applicable */ + char * errstr; /* error text, if any */ }; /* Data and functions in dnfilter.c */ diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/func.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/func.h index 45383c76d23..7bce6c285ba 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/func.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/func.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -13,11 +13,11 @@ /* * func.h: Handles the function hash table - * + * * httpd uses a table of internal functions hashed by a name string such that * users can reference specific functions from the configuration files. - * - * Any function referenced by configuration files will be passed a + * + * Any function referenced by configuration files will be passed a * parameter, a Request structure. The functions do not return anything. * * Rob McCool @@ -44,8 +44,8 @@ typedef int Func(pblock *, Session *, Request *); typedef Func *FuncPtr; /* - * FuncStruct is a structure used in the static declaration of the - * functions. This static declaration is parsed into a hash table at + * FuncStruct is a structure used in the static declaration of the + * functions. This static declaration is parsed into a hash table at * startup. You should initialize the next entry to NULL. */ @@ -59,7 +59,7 @@ struct FuncStruct { /* --------------------------- Hash definitions --------------------------- */ -/* +/* * This is a primitive hash function. Once more is known about the names of * the functions, this will be optimized. */ @@ -72,7 +72,7 @@ struct FuncStruct { /* - * func_init reads the static FuncStruct arrays and creates the global + * func_init reads the static FuncStruct arrays and creates the global * function table from them. * * func_init will only read from the static arrays defined in func.c. @@ -91,7 +91,7 @@ FuncPtr func_find(char *name); * func_exec will try to execute the function whose name is the "fn" entry * in the given pblock. If name is not found, it will log a misconfig of * missing fn parameter. If it can't find it, it will log that. In these - * cases it will return REQ_ABORTED. Otherwise, it will return what the + * cases it will return REQ_ABORTED. Otherwise, it will return what the * function being executed returns. */ @@ -99,8 +99,8 @@ int func_exec(pblock *pb, Session *sn, Request *rq); /* * func_insert dynamically inserts a named function into the server's - * table of functions. Returns the FuncStruct it keeps in internal - * databases, because on server restart you are responsible for freeing + * table of functions. Returns the FuncStruct it keeps in internal + * databases, because on server restart you are responsible for freeing * (or not) its contents. */ diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/http.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/http.h index bc23879ebe8..c139d536482 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/http.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/http.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -13,7 +13,7 @@ /* * http.h: Deals with HTTP-related issues - * + * * Rob McCool */ @@ -78,7 +78,7 @@ int http_parse_request(char *t, Request *rq, Session *sn); /* * Scans HTTP headers from the given netbuf, and places them in headers. * If netbuf is NULL, the session's inbuf is used. - * + * * Folded lines are joined and the linefeed removed (but not the whitespace). * If there are any repeat headers they are joined and the two field bodies * separated by a comma and space. @@ -106,7 +106,7 @@ int http_start_response(Session *sn, Request *rq); /* * http_hdrs2env takes the entries from the given pblock and converts them - * to an environment. + * to an environment. * * Each name entry will be made uppercase, prefixed with HTTP_ and any * occurrence of - will be converted to _. @@ -133,7 +133,7 @@ int http_set_finfo(Session *sn, Request *rq, struct stat *finfo); /* - * Takes the given pblock and prints headers into the given buffer at + * Takes the given pblock and prints headers into the given buffer at * position pos. Returns the buffer, reallocated if needed. Modifies pos. */ @@ -155,10 +155,10 @@ void http_finish_request(Session *sn, Request *rq); void http_handle_session(Session *sn); /* - * http_uri2url takes the give URI prefix and URI suffix and creates a + * http_uri2url takes the give URI prefix and URI suffix and creates a * newly-allocated full URL from them of the form * http://(server):(port)(prefix)(suffix) - * + * * If you want either prefix or suffix to be skipped, use "" instead of NULL. */ diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/httpact.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/httpact.h index efc6d1202e3..ee50b8a7821 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/httpact.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/httpact.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -13,7 +13,7 @@ /* * httpact.h: Defines the API characteristics for HTTP servers - * + * * Rob McCool */ @@ -44,7 +44,7 @@ /* * directive_name2num will return the position of the abbreviated directive * dir in the directive table. - * + * * If dir does not exist in the table, it will return -1. */ @@ -113,6 +113,6 @@ struct hostent *servact_gethostbyname(char *host, Session *sn, Request *rq); int servact_connect(char *host, int port, Session *sn, Request *rq); -#endif /* ! MCC_PROXY */ +#endif /* ! MCC_PROXY */ #endif diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/ipfilter.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/ipfilter.h index a0aa92e3ac9..a5d490798c3 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/ipfilter.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/ipfilter.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -15,15 +15,15 @@ #define __ipfilter_h /* Define error codes */ -#define IPFERR_MAX (-1) /* maximum error code value */ -#define IPFERR_MALLOC (-1) /* insufficient memory */ -#define IPFERR_FOPEN (-2) /* file open error */ -#define IPFERR_FILEIO (-3) /* file I/O error */ -#define IPFERR_DUPSPEC (-4) /* duplicate filter specification */ -#define IPFERR_INTERR (-5) /* internal error (bug) */ -#define IPFERR_SYNTAX (-6) /* syntax error in filter file */ -#define IPFERR_CNFLICT (-7) /* conflicting filter specification */ -#define IPFERR_MIN (-7) /* minimum error code value */ +#define IPFERR_MAX (-1) /* maximum error code value */ +#define IPFERR_MALLOC (-1) /* insufficient memory */ +#define IPFERR_FOPEN (-2) /* file open error */ +#define IPFERR_FILEIO (-3) /* file I/O error */ +#define IPFERR_DUPSPEC (-4) /* duplicate filter specification */ +#define IPFERR_INTERR (-5) /* internal error (bug) */ +#define IPFERR_SYNTAX (-6) /* syntax error in filter file */ +#define IPFERR_CNFLICT (-7) /* conflicting filter specification */ +#define IPFERR_MIN (-7) /* minimum error code value */ /* Define a scalar IP address value */ typedef unsigned long IPAddr_t; @@ -31,10 +31,10 @@ typedef unsigned long IPAddr_t; /* Define structure for returning error information */ typedef struct IPFilterErr_s IPFilterErr_t; struct IPFilterErr_s { - int errNo; /* IPFERR_xxxx error code */ - int lineno; /* file line number, if applicable */ - char * filename; /* filename, if applicable */ - char * errstr; /* error text, if any */ + int errNo; /* IPFERR_xxxx error code */ + int lineno; /* file line number, if applicable */ + char * filename; /* filename, if applicable */ + char * errstr; /* error text, if any */ }; /* Data and functions in ipfilter.c */ diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/log.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/log.h index 2641e87246c..6666b336c15 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/log.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/log.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -13,7 +13,7 @@ /* * log.h: Records transactions, reports errors to administrators, etc. - * + * * Rob McCool */ @@ -43,7 +43,7 @@ * will be reported. */ -int log_error(int degree, char *func, Session *sn, Request *rq, +int log_error(int degree, char *func, Session *sn, Request *rq, char *fmt, ...); #endif diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/object.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/object.h index d7d49816280..40a1590e913 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/object.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/object.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -13,17 +13,17 @@ /* * object.h: Handle httpd objects - * + * * Manages information about a document from config. files. Called mainly * by objset.c. - * + * * This module does not assume anything about the directives being parsed. * That is handled by objset.c. - * + * * This module requires the pblock module from the base library. - * + * * Rob McCool - * + * */ @@ -53,8 +53,8 @@ /* * Hierarchy of httpd_object * - * An object contains dtables. - * + * An object contains dtables. + * * Each dtable is a table of directives that were entered of a certain type. * There is one dtable for each unique type of directive. * @@ -93,7 +93,7 @@ typedef struct { * * The name pblock array contains the names for this object, such as its * virtual location, its physical location, or its identifier. - * + * * tmpl contains any templates allocated to this object. */ @@ -113,7 +113,7 @@ typedef struct { /* * directive_name2num will return the position of the abbreviated directive * dir in the directive table. - * + * * If dir does not exist in the table, it will return -1. */ @@ -141,7 +141,7 @@ httpd_object *object_create(int nd, pblock *name); void object_free(httpd_object *obj); /* - * object_add_directive will add a new directive to the dtable for + * object_add_directive will add a new directive to the dtable for * the directive class at position dc. */ @@ -150,7 +150,7 @@ void object_add_directive(int dc, pblock *p, pblock *c, httpd_object *obj); /* * object_findnext finds the object configured to follow the given object, - * and stores the variables in rq->vars. It returns REQ_PROCEED if more + * and stores the variables in rq->vars. It returns REQ_PROCEED if more * objects should be processed, or REQ_NOACTION if it did not find any * further objects to process. If something bad happens, REQ_ABORTED is * returned. diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/objset.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/objset.h index f7e07ef243b..6022433e27d 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/objset.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/objset.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -13,11 +13,11 @@ /* * objset.h: Handles object sets - * + * * Each object is produced by reading a config file of some form. See the - * server documentation for descriptions of the directives that are + * server documentation for descriptions of the directives that are * recognized, what they do, and how they are parsed. - * + * * This module requires the pblock and buffer modules from the base library. * * Rob McCool @@ -42,9 +42,9 @@ /* ------------------------------ Constants ------------------------------- */ -/* +/* * The default number of objects to leave room for in an object set, - * and the number of new entries by which to increase the size when that + * and the number of new entries by which to increase the size when that * room is filled. */ @@ -53,7 +53,7 @@ /* * When parsing config. files, httpd will put a limit on how long * the parameters to a directive can be (in characters). - * + * * Currently set to 10 lines (80 chars/line). */ @@ -70,7 +70,7 @@ /* - * httpd_objset is a container for a bunch of objects. obj is a + * httpd_objset is a container for a bunch of objects. obj is a * NULL-terminated array of objects. pos points to the entry after the last * one in the array. You should not mess with pos, but can read it to find * the last entry. @@ -86,8 +86,8 @@ typedef struct { /* - * objset_scan_buffer will scan through buffer, looking for object - * configuration information, and adding them to the object set os if it + * objset_scan_buffer will scan through buffer, looking for object + * configuration information, and adding them to the object set os if it * finds any. If os is NULL it will allocate a new object set. * * If any error occurs (syntax error, premature EOF) this function will @@ -121,7 +121,7 @@ void objset_free_setonly(httpd_objset *os); /* * objset_new_object will add a new object to objset with the specified - * name. It returns a pointer to the new object (which may be anywhere in + * name. It returns a pointer to the new object (which may be anywhere in * the objset). */ @@ -139,16 +139,16 @@ void objset_add_object(httpd_object *obj, httpd_objset *os); * ign is a set of objects to ignore. */ -httpd_object *objset_findbyname(char *name, httpd_objset *ign, +httpd_object *objset_findbyname(char *name, httpd_objset *ign, httpd_objset *os); /* - * objset_findbyppath will find the object in objset having the given + * objset_findbyppath will find the object in objset having the given * partial path entry. Returns object if found, NULL otherwise. * ign is a set of objects to ignore. */ -httpd_object *objset_findbyppath(char *ppath, httpd_objset *ign, +httpd_object *objset_findbyppath(char *ppath, httpd_objset *ign, httpd_objset *os); diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/protocol.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/protocol.h index a57d9fc7aa4..bf7f6ec3e4d 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/protocol.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/protocol.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -12,10 +12,10 @@ /* - * protocol.h: Switch which protocol we're speaking. - * + * protocol.h: Switch which protocol we're speaking. + * * Currently only HTTP, but expected to include MTP in the future. - * + * * Rob McCool */ diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/req.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/req.h index 46ff5e2d4fb..e198ce22df8 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/req.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/req.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -13,7 +13,7 @@ /* * req.h: Request-specific data structures and functions - * + * * Rob McCool */ @@ -37,7 +37,7 @@ #define REQ_HASHSIZE 10 #define REQ_MAX_LINE 4096 - + /* * The REQ_ return codes. These codes are used to determine what the server * should do after a particular module completes its task. @@ -108,7 +108,7 @@ void request_free(Request *req); /* * Restarts a request for a given URI internally. If rq is non-NULL, the - * function will keep the old request's headers and protocol, but with a new + * function will keep the old request's headers and protocol, but with a new * URI and method of GET. If the previous method was HEAD, this is preserved. * Any other method becomes GET. You may assume that if you give it a request * structure that it will use the same structure. @@ -122,7 +122,7 @@ Request *request_restart_internal(char *uri, Request *rq); /* * request_translate_uri performs virtual to physical mapping on the given - * uri and returns either a path string or NULL depending on whether it was + * uri and returns either a path string or NULL depending on whether it was * successful or not. */ @@ -130,8 +130,8 @@ char *request_translate_uri(char *uri, Session *sn); /* - * request_header finds the named header depending on the requesting - * protocol. If possible, it will not load headers until the first is + * request_header finds the named header depending on the requesting + * protocol. If possible, it will not load headers until the first is * requested. You have to watch out because this can return REQ_ABORTED. */ @@ -146,9 +146,9 @@ int request_loadheaders(Session *sn, Request *rq); /* * request_stat_path tries to stat path. If path is NULL, it will look in - * the vars pblock for "path". If the stat is successful, it returns the stat - * structure. If not, returns NULL and leaves a message in rq->staterr. If a - * previous call to this function was successful, and path is the same, the + * the vars pblock for "path". If the stat is successful, it returns the stat + * structure. If not, returns NULL and leaves a message in rq->staterr. If a + * previous call to this function was successful, and path is the same, the * function will simply return the previously found value. * * User functions should not free this structure. @@ -178,7 +178,7 @@ int request_fileinfo(Session *sn, Request *rq); /* - * request_handle_processed takes a Request structure with its reqpb + * request_handle_processed takes a Request structure with its reqpb * block filled in and handles the request. */ @@ -200,7 +200,7 @@ int request_service(Session *sn, Request *rq); void request_handle(Session *sn); /* - * Moved here due to problems with interdependency. See object.h for + * Moved here due to problems with interdependency. See object.h for * description. */ diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/servact.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/servact.h index 79c7e3f5347..292ca95d732 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/servact.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/frame/servact.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. @@ -12,7 +12,7 @@ /* - * servact.h: Define the server's actions, depending on what type of + * servact.h: Define the server's actions, depending on what type of * server it is. * * Rob McCool diff --git a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/netsite.h b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/netsite.h index 61d51923500..68983c7aeae 100644 --- a/apps/JAWS/clients/WebSTONE/src/nsapi-includes/netsite.h +++ b/apps/JAWS/clients/WebSTONE/src/nsapi-includes/netsite.h @@ -1,7 +1,7 @@ /* * Copyright (c) 1994, 1995. Netscape Communications Corporation. All * rights reserved. - * + * * Use of this software is governed by the terms of the license agreement for * the Netscape Communications or Netscape Comemrce Server between the * parties. diff --git a/apps/JAWS/clients/WebSTONE/src/parse_file_list.h b/apps/JAWS/clients/WebSTONE/src/parse_file_list.h index 6733c0ec638..ce2767105e6 100644 --- a/apps/JAWS/clients/WebSTONE/src/parse_file_list.h +++ b/apps/JAWS/clients/WebSTONE/src/parse_file_list.h @@ -13,7 +13,7 @@ extern int count_file_list(const char *); -extern void parse_file_list (char *, page_list_t *, - long int *, long int *); +extern void parse_file_list (char *, page_list_t *, + long int *, long int *); #endif /* !__PARSE_FILE_LIST_H__ */ diff --git a/apps/JAWS/clients/WebSTONE/src/statistics.h b/apps/JAWS/clients/WebSTONE/src/statistics.h index c1693d8fc34..75b6be86e87 100644 --- a/apps/JAWS/clients/WebSTONE/src/statistics.h +++ b/apps/JAWS/clients/WebSTONE/src/statistics.h @@ -4,8 +4,8 @@ #ifndef _STATISTICS_H_ #define _STATISTICS_H_ -extern double mean(const double, const int); -extern double variance(const double, const double, const int); -extern double stddev(const double, const double, const int); +extern double mean(const double, const int); +extern double variance(const double, const double, const int); +extern double stddev(const double, const double, const int); #endif /* ! _STATISTICS_H_ */ diff --git a/apps/JAWS/clients/WebSTONE/src/sysdep.h b/apps/JAWS/clients/WebSTONE/src/sysdep.h index 03c6602789b..5b6e533291e 100644 --- a/apps/JAWS/clients/WebSTONE/src/sysdep.h +++ b/apps/JAWS/clients/WebSTONE/src/sysdep.h @@ -1,14 +1,14 @@ -#ifndef __SYSDEP_H__ +#ifndef __SYSDEP_H__ #define __SYSDEP_H__ /************************************************************************** - * $Header$ * - * Copyright (C) 1995 Silicon Graphics, Inc. * - * * - * These coded instructions, statements, and computer programs were * + * $Header$ * + * Copyright (C) 1995 Silicon Graphics, Inc. * + * * + * These coded instructions, statements, and computer programs were * * developed by SGI for public use. If any changes are made to this code* * please try to get the changes back to the author. Feel free to make * - * modifications and changes to the code and release it. * - * * + * modifications and changes to the code and release it. * + * * **************************************************************************/ /* include config.h, output from autoconf */ @@ -36,87 +36,87 @@ /* encapsulation of minor UNIX/WIN NT differences */ #ifdef WIN32 -#define NETREAD(sock, buf, len) recv(sock, buf, len, 0) -#define NETWRITE(sock, buf, len) send(sock, buf, len, 0) -#define NETCLOSE(sock) closesocket(sock) -#define BADSOCKET(sock) ((sock) == INVALID_SOCKET) -#define BADSOCKET_ERRNO(sock) BADSOCKET(sock) -#define BADSOCKET_VALUE INVALID_SOCKET -#define S_ADDR S_un.S_addr +#define NETREAD(sock, buf, len) recv(sock, buf, len, 0) +#define NETWRITE(sock, buf, len) send(sock, buf, len, 0) +#define NETCLOSE(sock) closesocket(sock) +#define BADSOCKET(sock) ((sock) == INVALID_SOCKET) +#define BADSOCKET_ERRNO(sock) BADSOCKET(sock) +#define BADSOCKET_VALUE INVALID_SOCKET +#define S_ADDR S_un.S_addr #ifdef USE_TIMEZONE #error NT gettimeofday() doesn't support USE_TIMEZONE (yet) #else -#define GETTIMEOFDAY(timeval, tz) gettimeofday(timeval) +#define GETTIMEOFDAY(timeval, tz) gettimeofday(timeval) #endif /* USE_TIMEZONE */ -typedef unsigned short NETPORT; -#define SRANDOM srand +typedef unsigned short NETPORT; +#define SRANDOM srand #define RANDOM_R rand_r -#define RANDOM rand -#define THREAD __declspec ( thread ) -#define PROGPATH "c:\\webstone\\webclient" -#define FILENAME_SIZE 256 -#define HAVE_VPRINTF 1 +#define RANDOM rand +#define THREAD __declspec ( thread ) +#define PROGPATH "c:\\webstone\\webclient" +#define FILENAME_SIZE 256 +#define HAVE_VPRINTF 1 -#define SIGCHLD 0 /* dummy value */ -#define SIGALRM 0 /* dummy value */ -typedef int pid_t; -typedef unsigned short ushort; -#define MAXPATHLEN 512 +#define SIGCHLD 0 /* dummy value */ +#define SIGALRM 0 /* dummy value */ +typedef int pid_t; +typedef unsigned short ushort; +#define MAXPATHLEN 512 #else /* not WIN32 */ -#define NETREAD(sock, buf, len) read(sock, buf, len) -#define NETWRITE(sock, buf, len) write(sock, buf, len) -#define NETCLOSE(sock) close(sock) -#define BADSOCKET(sock) ((sock) < 0) -#define BADSOCKET_ERRNO(sock) (BADSOCKET(sock) || errno) -#define BADSOCKET_VALUE (-1) -#define S_ADDR s_addr +#define NETREAD(sock, buf, len) read(sock, buf, len) +#define NETWRITE(sock, buf, len) write(sock, buf, len) +#define NETCLOSE(sock) close(sock) +#define BADSOCKET(sock) ((sock) < 0) +#define BADSOCKET_ERRNO(sock) (BADSOCKET(sock) || errno) +#define BADSOCKET_VALUE (-1) +#define S_ADDR s_addr #ifdef USE_TIMEZONE -#define GETTIMEOFDAY(timeval,tz) gettimeofday(timeval, NULL) +#define GETTIMEOFDAY(timeval,tz) gettimeofday(timeval, NULL) #else -#define GETTIMEOFDAY(timeval,tz) gettimeofday(timeval, tz) +#define GETTIMEOFDAY(timeval,tz) gettimeofday(timeval, tz) #endif /* USE_TIMEZONE */ -typedef unsigned short NETPORT; -#define SRANDOM srandom -#define RANDOM random -#define THREAD -#define PROGPATH "/tmp/webclient" /* "/usr/local/bin/webclient" */ -#define FILENAME_SIZE 1024 -#define HAVE_VPRINTF 1 - -typedef int SOCKET; -#define min(a,b) (((a) < (b)) ? a : b) -#define max(a,b) (((a) > (b)) ? a : b) +typedef unsigned short NETPORT; +#define SRANDOM srandom +#define RANDOM random +#define THREAD +#define PROGPATH "/tmp/webclient" /* "/usr/local/bin/webclient" */ +#define FILENAME_SIZE 1024 +#define HAVE_VPRINTF 1 + +typedef int SOCKET; +#define min(a,b) (((a) < (b)) ? a : b) +#define max(a,b) (((a) > (b)) ? a : b) #endif /* WIN32 */ /* function prototypes */ #ifdef WIN32 -int getopt(int argc, char ** argv, char *opts); -int getpid(void); -int gettimeofday(struct timeval *curTimeP); -int random_number(int max); -SOCKET rexec(const char **hostname, NETPORT port, char *username, char *password, - char *command, SOCKET *sockerr); -void sleep(int secs); +int getopt(int argc, char ** argv, char *opts); +int getpid(void); +int gettimeofday(struct timeval *curTimeP); +int random_number(int max); +SOCKET rexec(const char **hostname, NETPORT port, char *username, char *password, + char *command, SOCKET *sockerr); +void sleep(int secs); #else #ifdef NO_REXEC -extern int rexec(char **, int, char *, char *, char *, int *); -#endif +extern int rexec(char **, int, char *, char *, char *, int *); +#endif #endif /* WIN32 */ #ifndef HAVE_STRERROR /* strerror() is not available on SunOS 4.x and others */ -char *strerror(int errnum); +char *strerror(int errnum); #endif /* strerror() */ diff --git a/apps/JAWS/clients/WebSTONE/src/timefunc.h b/apps/JAWS/clients/WebSTONE/src/timefunc.h index a1514358316..5690a2aafab 100644 --- a/apps/JAWS/clients/WebSTONE/src/timefunc.h +++ b/apps/JAWS/clients/WebSTONE/src/timefunc.h @@ -1,30 +1,30 @@ /************************************************************************** $Header$ - * Copyright (C) 1995 Silicon Graphics, Inc. * - * * - * These coded instructions, statements, and computer programs were * + * Copyright (C) 1995 Silicon Graphics, Inc. * + * * + * These coded instructions, statements, and computer programs were * * developed by SGI for public use. If any changes are made to this code* * please try to get the changes back to the author. Feel free to make * - * modifications and changes to the code and release it. * - * * + * modifications and changes to the code and release it. * + * * **************************************************************************/ #ifndef __TIMEFUNC_H__ #define __TIMEFUNC_H__ -extern double timevaldouble(struct timeval *); -extern void doubletimeval(const double, struct timeval *); +extern double timevaldouble(struct timeval *); +extern void doubletimeval(const double, struct timeval *); -extern void addtime(struct timeval *, struct timeval *); -extern void compdifftime(struct timeval *, struct timeval *, struct timeval *); -extern void mintime(struct timeval *, struct timeval *); -extern void maxtime(struct timeval *, struct timeval *); -extern void avgtime(struct timeval *, int, struct timeval *); -extern void variancetime(struct timeval *, double, int, struct timeval *); -extern void stddevtime(struct timeval *, double, int, struct timeval *); +extern void addtime(struct timeval *, struct timeval *); +extern void compdifftime(struct timeval *, struct timeval *, struct timeval *); +extern void mintime(struct timeval *, struct timeval *); +extern void maxtime(struct timeval *, struct timeval *); +extern void avgtime(struct timeval *, int, struct timeval *); +extern void variancetime(struct timeval *, double, int, struct timeval *); +extern void stddevtime(struct timeval *, double, int, struct timeval *); -extern void sqtime(struct timeval *, struct timeval *); +extern void sqtime(struct timeval *, struct timeval *); -extern double thruputpersec(const double, struct timeval *); +extern double thruputpersec(const double, struct timeval *); #endif /* !__TIMEFUNC_H__ */ |