diff options
Diffstat (limited to 'apps/JAWS')
93 files changed, 898 insertions, 726 deletions
diff --git a/apps/JAWS/PROTOTYPE/HTTPU/http_base.h b/apps/JAWS/PROTOTYPE/HTTPU/http_base.h index 8b939043cee..5f5486f888d 100644 --- a/apps/JAWS/PROTOTYPE/HTTPU/http_base.h +++ b/apps/JAWS/PROTOTYPE/HTTPU/http_base.h @@ -1,10 +1,14 @@ // $Id$ -#if !defined (HTTPU_HTTP_BASE_H) +#ifndef HTTPU_HTTP_BASE_H #define HTTPU_HTTP_BASE_H #include "ace/Message_Block.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "JAWS/Parse_Headers.h" #include "HTTPU/http_export.h" #include "HTTPU/http_status.h" diff --git a/apps/JAWS/PROTOTYPE/HTTPU/http_export.h b/apps/JAWS/PROTOTYPE/HTTPU/http_export.h index 2a4bc285735..84a819c8932 100644 --- a/apps/JAWS/PROTOTYPE/HTTPU/http_export.h +++ b/apps/JAWS/PROTOTYPE/HTTPU/http_export.h @@ -4,11 +4,15 @@ // This file is generated automatically by // ${TAO_ROOT}/TAO_IDL/GenExportH.BAT // ------------------------------ -#if !defined (HTTPU_EXPORT_H) +#ifndef HTTPU_EXPORT_H #define HTTPU_EXPORT_H #include "ace/OS.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #if defined (HTTPU_HAS_DLL) # if (HTTPU_HAS_DLL == 1) # if defined (HTTPU_BUILD_DLL) diff --git a/apps/JAWS/PROTOTYPE/HTTPU/http_headers.h b/apps/JAWS/PROTOTYPE/HTTPU/http_headers.h index 9dea72d399c..62bf936005a 100644 --- a/apps/JAWS/PROTOTYPE/HTTPU/http_headers.h +++ b/apps/JAWS/PROTOTYPE/HTTPU/http_headers.h @@ -3,10 +3,15 @@ // by James Hu // Borrowed from HTTP_Headers.*, which appears to be irrelevent now anyway. -#if !defined (HTTPU_HTTP_HEADERS_H) +#ifndef HTTPU_HTTP_HEADERS_H #define HTTPU_HTTP_HEADERS_H #include "ace/RB_Tree.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Singleton.h" #include "JAWS/Parse_Headers.h" diff --git a/apps/JAWS/PROTOTYPE/HTTPU/http_request.h b/apps/JAWS/PROTOTYPE/HTTPU/http_request.h index a6934f82b47..c04d08dabf6 100644 --- a/apps/JAWS/PROTOTYPE/HTTPU/http_request.h +++ b/apps/JAWS/PROTOTYPE/HTTPU/http_request.h @@ -4,11 +4,15 @@ // One is the kind you have to read in from the HTTP client. // The other is the kind you issue to the server. -#if !defined (HTTPU_HTTP_REQUEST_HPP) +#ifndef HTTPU_HTTP_REQUEST_HPP #define HTTPU_HTTP_REQUEST_HPP #include "ace/Message_Block.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "JAWS/Parse_Headers.h" #include "HTTPU/http_export.h" #include "HTTPU/http_base.h" diff --git a/apps/JAWS/PROTOTYPE/HTTPU/http_response.h b/apps/JAWS/PROTOTYPE/HTTPU/http_response.h index d22f736e4e2..71b6cae2fae 100644 --- a/apps/JAWS/PROTOTYPE/HTTPU/http_response.h +++ b/apps/JAWS/PROTOTYPE/HTTPU/http_response.h @@ -4,10 +4,15 @@ // One is the kind you have to read in from the HTTP server. // The other is the kind you issue to the HTTP client. -#if !defined (HTTPU_HTTP_RESPONSE_HPP) +#ifndef HTTPU_HTTP_RESPONSE_HPP #define HTTPU_HTTP_RESPONSE_HPP #include "ace/Message_Block.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "JAWS/Parse_Headers.h" #include "HTTPU/http_export.h" diff --git a/apps/JAWS/PROTOTYPE/HTTPU/http_status.h b/apps/JAWS/PROTOTYPE/HTTPU/http_status.h index 47f791675f5..c4d90657b15 100644 --- a/apps/JAWS/PROTOTYPE/HTTPU/http_status.h +++ b/apps/JAWS/PROTOTYPE/HTTPU/http_status.h @@ -5,6 +5,10 @@ #include "ace/Singleton.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "HTTPU/http_export.h" class HTTP_SCode_Base; diff --git a/apps/JAWS/PROTOTYPE/HTTPU/parse_http_request.h b/apps/JAWS/PROTOTYPE/HTTPU/parse_http_request.h index 0f19d9a4919..26c83348e37 100644 --- a/apps/JAWS/PROTOTYPE/HTTPU/parse_http_request.h +++ b/apps/JAWS/PROTOTYPE/HTTPU/parse_http_request.h @@ -1,9 +1,14 @@ // $Id$ -#if !defined (HTTPU_PARSE_HTTP_REQUEST_H) +#ifndef HTTPU_PARSE_HTTP_REQUEST_H #define HTTPU_PARSE_HTTP_REQUEST_H #include "ace/OS.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "HTTPU/http_headers.h" class HTTPU_Export Parse_HTTP_Request : public HTTP_HCodes diff --git a/apps/JAWS/PROTOTYPE/HTTPU/parse_http_response.h b/apps/JAWS/PROTOTYPE/HTTPU/parse_http_response.h index a4cbc4490ce..42fd5a31afe 100644 --- a/apps/JAWS/PROTOTYPE/HTTPU/parse_http_response.h +++ b/apps/JAWS/PROTOTYPE/HTTPU/parse_http_response.h @@ -1,9 +1,14 @@ // $Id$ -#if !defined (HTTPU_PARSE_HTTP_RESPONSE_H) +#ifndef HTTPU_PARSE_HTTP_RESPONSE_H #define HTTPU_PARSE_HTTP_RESPONSE_H #include "ace/OS.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "HTTPU/http_export.h" class HTTPU_Export Parse_HTTP_Response diff --git a/apps/JAWS/PROTOTYPE/HTTPU/parse_url.h b/apps/JAWS/PROTOTYPE/HTTPU/parse_url.h index 66dd4804341..64260edd2a8 100644 --- a/apps/JAWS/PROTOTYPE/HTTPU/parse_url.h +++ b/apps/JAWS/PROTOTYPE/HTTPU/parse_url.h @@ -1,7 +1,7 @@ /* -*- c++ -*- */ // $Id$ -#if !defined (HTTPU_HTTP_PARSE_H) +#ifndef HTTPU_HTTP_PARSE_H #define HTTPU_HTTP_PARSE_H #include "HTTPU/http_export.h" diff --git a/apps/JAWS/PROTOTYPE/HTTP_10.h b/apps/JAWS/PROTOTYPE/HTTP_10.h index 8280eb8a744..5e4055281b1 100644 --- a/apps/JAWS/PROTOTYPE/HTTP_10.h +++ b/apps/JAWS/PROTOTYPE/HTTP_10.h @@ -1,11 +1,15 @@ /* -*- c++ -*- */ // $Id$ -#if !defined (JAWS_HTTP_10_H) +#ifndef JAWS_HTTP_10_H #define JAWS_HTTP_10_H #include "ace/RB_Tree.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "JAWS/Pipeline_Tasks.h" // Forward declaration diff --git a/apps/JAWS/PROTOTYPE/HTTP_Policy.h b/apps/JAWS/PROTOTYPE/HTTP_Policy.h index 5963d191d36..873b30f5070 100644 --- a/apps/JAWS/PROTOTYPE/HTTP_Policy.h +++ b/apps/JAWS/PROTOTYPE/HTTP_Policy.h @@ -1,7 +1,7 @@ /* -*- c++ -*- */ // $Id$ -#if !defined (HTTP_POLICY_H) +#ifndef HTTP_POLICY_H #define HTTP_POLICY_H #include "JAWS/Concurrency.h" diff --git a/apps/JAWS/PROTOTYPE/JAWS/Assoc_Array.h b/apps/JAWS/PROTOTYPE/JAWS/Assoc_Array.h index 4e44efdb71e..8245cd67028 100644 --- a/apps/JAWS/PROTOTYPE/JAWS/Assoc_Array.h +++ b/apps/JAWS/PROTOTYPE/JAWS/Assoc_Array.h @@ -1,7 +1,7 @@ /* -*- c++ -*- */ // $Id$ -#if !defined (JAWS_ASSOC_ARRAY_H) +#ifndef JAWS_ASSOC_ARRAY_H #define JAWS_ASSOC_ARRAY_H template <class KEY, class DATA> class JAWS_Assoc_Array_Iterator; diff --git a/apps/JAWS/PROTOTYPE/JAWS/Concurrency.h b/apps/JAWS/PROTOTYPE/JAWS/Concurrency.h index a1ff3be7c5d..0b7019fe581 100644 --- a/apps/JAWS/PROTOTYPE/JAWS/Concurrency.h +++ b/apps/JAWS/PROTOTYPE/JAWS/Concurrency.h @@ -1,10 +1,15 @@ /* -*- c++ -*- */ // $Id$ -#if !defined (JAWS_CONCURRENCY_H) +#ifndef JAWS_CONCURRENCY_H #define JAWS_CONCURRENCY_H #include "ace/Singleton.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Synch.h" #include "ace/Task.h" diff --git a/apps/JAWS/PROTOTYPE/JAWS/Data_Block.h b/apps/JAWS/PROTOTYPE/JAWS/Data_Block.h index 8d05ee8003e..94afaa93586 100644 --- a/apps/JAWS/PROTOTYPE/JAWS/Data_Block.h +++ b/apps/JAWS/PROTOTYPE/JAWS/Data_Block.h @@ -1,11 +1,15 @@ /* -*- c++ -*- */ // $Id$ -#if !defined (JAWS_DATA_BLOCK_H) +#ifndef JAWS_DATA_BLOCK_H #define JAWS_DATA_BLOCK_H #include "ace/Message_Block.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "JAWS/Export.h" #include "JAWS/Pipeline.h" diff --git a/apps/JAWS/PROTOTYPE/JAWS/Export.h b/apps/JAWS/PROTOTYPE/JAWS/Export.h index b6be46cac93..f06afcdb767 100644 --- a/apps/JAWS/PROTOTYPE/JAWS/Export.h +++ b/apps/JAWS/PROTOTYPE/JAWS/Export.h @@ -4,11 +4,15 @@ // This file is generated automatically by // ${TAO_ROOT}/TAO_IDL/GenExportH.BAT // ------------------------------ -#if !defined (JAWS_EXPORT_H) +#ifndef JAWS_EXPORT_H #define JAWS_EXPORT_H #include "ace/OS.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #if defined (JAWS_HAS_DLL) # if (JAWS_HAS_DLL == 1) # if defined (JAWS_BUILD_DLL) diff --git a/apps/JAWS/PROTOTYPE/JAWS/Headers.h b/apps/JAWS/PROTOTYPE/JAWS/Headers.h index 56e8ad3f748..f16db921915 100644 --- a/apps/JAWS/PROTOTYPE/JAWS/Headers.h +++ b/apps/JAWS/PROTOTYPE/JAWS/Headers.h @@ -1,12 +1,16 @@ /* -*- c++ -*- */ // $Id$ -#if !defined (JAWS_HEADERS_H) +#ifndef JAWS_HEADERS_H #define JAWS_HEADERS_H #include "JAWS/Export.h" #include "ace/Containers.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + // Use scenario -- // Parse_Headers will parse out a header name and then will want to diff --git a/apps/JAWS/PROTOTYPE/JAWS/IO.h b/apps/JAWS/PROTOTYPE/JAWS/IO.h index 967bbe8c542..b2dfac81b98 100644 --- a/apps/JAWS/PROTOTYPE/JAWS/IO.h +++ b/apps/JAWS/PROTOTYPE/JAWS/IO.h @@ -15,7 +15,7 @@ // // ============================================================================ -#if !defined (JAWS_IO_H) +#ifndef JAWS_IO_H #define JAWS_IO_H class ACE_Message_Block; @@ -23,6 +23,11 @@ class JAWS_IO_Handler; class JAWS_IO_Acceptor; #include "ace/ACE.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Asynch_IO.h" #include "ace/SOCK_Stream.h" #include "ace/Singleton.h" diff --git a/apps/JAWS/PROTOTYPE/JAWS/IO_Acceptor.h b/apps/JAWS/PROTOTYPE/JAWS/IO_Acceptor.h index 4cc006d9033..78e861ec12e 100644 --- a/apps/JAWS/PROTOTYPE/JAWS/IO_Acceptor.h +++ b/apps/JAWS/PROTOTYPE/JAWS/IO_Acceptor.h @@ -1,13 +1,18 @@ /* -*- c++ -*- */ // $Id$ -#if !defined (JAWS_IO_ACCEPTOR_H) +#ifndef JAWS_IO_ACCEPTOR_H #define JAWS_IO_ACCEPTOR_H // Use the Adapter pattern to encapsulate either a LOCK_SOCK_Acceptor or // an ACE_Asynch_Acceptor #include "ace/Asynch_Acceptor.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/LOCK_SOCK_Acceptor.h" #include "ace/Singleton.h" diff --git a/apps/JAWS/PROTOTYPE/JAWS/IO_Handler.h b/apps/JAWS/PROTOTYPE/JAWS/IO_Handler.h index b474ac6d0bf..7d49dbe3f06 100644 --- a/apps/JAWS/PROTOTYPE/JAWS/IO_Handler.h +++ b/apps/JAWS/PROTOTYPE/JAWS/IO_Handler.h @@ -15,10 +15,15 @@ // // ============================================================================ -#if !defined (JAWS_IO_HANDLER_H) +#ifndef JAWS_IO_HANDLER_H #define JAWS_IO_HANDLER_H #include "ace/Asynch_IO.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Singleton.h" #include "JAWS/Export.h" diff --git a/apps/JAWS/PROTOTYPE/JAWS/JAWS.h b/apps/JAWS/PROTOTYPE/JAWS/JAWS.h index 72dcfc56401..27572fc3b07 100644 --- a/apps/JAWS/PROTOTYPE/JAWS/JAWS.h +++ b/apps/JAWS/PROTOTYPE/JAWS/JAWS.h @@ -8,7 +8,7 @@ ASYS_TEXT (__FILE__)) #endif /* JAWS_NTRACE */ -#if !defined (JAWS_JAWS_H) +#ifndef JAWS_JAWS_H #define JAWS_JAWS_H #endif /* JAWS_JAWS_H */ diff --git a/apps/JAWS/PROTOTYPE/JAWS/Parse_Headers.h b/apps/JAWS/PROTOTYPE/JAWS/Parse_Headers.h index beddd94a0d2..24bdc0d2462 100644 --- a/apps/JAWS/PROTOTYPE/JAWS/Parse_Headers.h +++ b/apps/JAWS/PROTOTYPE/JAWS/Parse_Headers.h @@ -1,11 +1,16 @@ /* -*- c++ -*- */ // $Id$ -#if !defined (JAWS_PARSE_HEADERS_H) +#ifndef JAWS_PARSE_HEADERS_H #define JAWS_PARSE_HEADERS_H #include "JAWS/Export.h" #include "ace/Singleton.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Message_Block.h" #include "Headers.h" diff --git a/apps/JAWS/PROTOTYPE/JAWS/Pipeline.h b/apps/JAWS/PROTOTYPE/JAWS/Pipeline.h index efd21bc556f..ff04b4fb61f 100644 --- a/apps/JAWS/PROTOTYPE/JAWS/Pipeline.h +++ b/apps/JAWS/PROTOTYPE/JAWS/Pipeline.h @@ -1,10 +1,15 @@ /* -*- c++ -*- */ // $Id$ -#if !defined (JAWS_PIPELINE_H) +#ifndef JAWS_PIPELINE_H #define JAWS_PIPELINE_H #include "ace/Synch.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Service_Config.h" #include "ace/Stream.h" #include "ace/Module.h" diff --git a/apps/JAWS/PROTOTYPE/JAWS/Pipeline_Handler.h b/apps/JAWS/PROTOTYPE/JAWS/Pipeline_Handler.h index 86bbe3930ed..7d95294bf03 100644 --- a/apps/JAWS/PROTOTYPE/JAWS/Pipeline_Handler.h +++ b/apps/JAWS/PROTOTYPE/JAWS/Pipeline_Handler.h @@ -1,7 +1,7 @@ /* -*- c++ -*- */ // $Id$ -#if !defined (JAWS_PIPELINE_HANDLER_H) +#ifndef JAWS_PIPELINE_HANDLER_H #define JAWS_PIPELINE_HANDLER_H #include "JAWS/Export.h" diff --git a/apps/JAWS/PROTOTYPE/JAWS/Pipeline_Tasks.h b/apps/JAWS/PROTOTYPE/JAWS/Pipeline_Tasks.h index 0877a40aaf2..4506885b0a2 100644 --- a/apps/JAWS/PROTOTYPE/JAWS/Pipeline_Tasks.h +++ b/apps/JAWS/PROTOTYPE/JAWS/Pipeline_Tasks.h @@ -1,11 +1,15 @@ /* -*- c++ -*- */ // $Id$ -#if !defined (JAWS_PIPELINE_TASKS_H) +#ifndef JAWS_PIPELINE_TASKS_H #define JAWS_PIPELINE_TASKS_H #include "ace/Singleton.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "JAWS/Export.h" #include "JAWS/Pipeline.h" #include "JAWS/Data_Block.h" diff --git a/apps/JAWS/PROTOTYPE/JAWS/Policy.h b/apps/JAWS/PROTOTYPE/JAWS/Policy.h index d916998bb92..9255594c056 100644 --- a/apps/JAWS/PROTOTYPE/JAWS/Policy.h +++ b/apps/JAWS/PROTOTYPE/JAWS/Policy.h @@ -1,7 +1,7 @@ /* -*- c++ -*- */ // $Id$ -#if !defined (JAWS_POLICY_H) +#ifndef JAWS_POLICY_H #define JAWS_POLICY_H #include "JAWS/Export.h" diff --git a/apps/JAWS/PROTOTYPE/JAWS/Reaper.h b/apps/JAWS/PROTOTYPE/JAWS/Reaper.h index 444083498ce..e23193441c7 100644 --- a/apps/JAWS/PROTOTYPE/JAWS/Reaper.h +++ b/apps/JAWS/PROTOTYPE/JAWS/Reaper.h @@ -1,10 +1,15 @@ /* -*- c++ -*- */ // $Id$ -#if !defined (JAWS_REAPER_H) +#ifndef JAWS_REAPER_H #define JAWS_REAPER_H #include "ace/Singleton.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Synch.h" #include "ace/Task.h" diff --git a/apps/JAWS/PROTOTYPE/JAWS/Server.h b/apps/JAWS/PROTOTYPE/JAWS/Server.h index 8fea040e47d..0cac8f17ae0 100644 --- a/apps/JAWS/PROTOTYPE/JAWS/Server.h +++ b/apps/JAWS/PROTOTYPE/JAWS/Server.h @@ -1,7 +1,7 @@ /* -*- c++ -*- */ // $Id$ -#if !defined (JAWS_SERVER_H) +#ifndef JAWS_SERVER_H #define JAWS_SERVER_H #include "JAWS/Export.h" diff --git a/apps/JAWS/PROTOTYPE/JAWS/Waiter.h b/apps/JAWS/PROTOTYPE/JAWS/Waiter.h index da2535deabf..57bd35086b0 100644 --- a/apps/JAWS/PROTOTYPE/JAWS/Waiter.h +++ b/apps/JAWS/PROTOTYPE/JAWS/Waiter.h @@ -1,11 +1,15 @@ /* -*- c++ -*- */ // $Id$ -#if !defined (JAWS_WAITER_H) +#ifndef JAWS_WAITER_H #define JAWS_WAITER_H #include "ace/Singleton.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "JAWS/Assoc_Array.h" #include "JAWS/Export.h" diff --git a/apps/JAWS/clients/Blobby/Blob.h b/apps/JAWS/clients/Blobby/Blob.h index 7f7c79076ec..293e530e696 100644 --- a/apps/JAWS/clients/Blobby/Blob.h +++ b/apps/JAWS/clients/Blobby/Blob.h @@ -5,23 +5,28 @@ // // = LIBRARY // JAWS -// +// // = FILENAME // Blob.h // // = DESCRIPTION // This is the ACE_Blob class, which is the API for doing file -// uploads/downloads. +// uploads/downloads. // // = AUTHOR // Prashant Jain and Sumedh Mungee -// +// //============================================================================ -#if !defined (ACE_BLOB_H) +#ifndef ACE_BLOB_H #define ACE_BLOB_H #include "ace/OS.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Connector.h" #include "ace/INET_Addr.h" #include "ace/Svc_Handler.h" @@ -29,12 +34,12 @@ #include "ace/Message_Block.h" #include "Blob_Handler.h" -class ACE_Blob +class ACE_Blob // = TITLE // Blob is intended to provide application API to // classes that wish to do network i/o at a very // high level of abstraction. - // + // // = This class provides the ability to retrieve data from // the network, of specified length and offset, and potentially // use any protocol "under the hood" to do so. It currently @@ -44,38 +49,38 @@ public: ACE_Blob (void); ~ACE_Blob (void); - int open (char *filename, - char *hostname = ACE_DEFAULT_SERVER_HOST , + int open (char *filename, + char *hostname = ACE_DEFAULT_SERVER_HOST , u_short port = 80); // initializes the class with the given filename, hostname and port. - // it should be called with the filename, before any read/write calls + // it should be called with the filename, before any read/write calls int read (ACE_Message_Block *mb, size_t length, size_t offset); // starts a connection, and reads a file from the server, // of length and offset as specified, into Message_Block mb // The message block should have capacity to hold length number - // of bytes + // of bytes int write (ACE_Message_Block *mb, size_t length, size_t offset); // starts a connection, and writes a file to the server, // of length and offset as specified, from Message_Block mb // thus the message block should contain atleast length + offset - // bytes of data - + // bytes of data + int close (); // Frees memory allocated for filename. private: ACE_INET_Addr inet_addr_; - // store the internet address of the server + // store the internet address of the server char *filename_; - // The filename + // The filename ACE_Connector<ACE_Blob_Handler, ACE_SOCK_CONNECTOR> connector_; - // The connector endpoint to initiate the client connection + // The connector endpoint to initiate the client connection }; diff --git a/apps/JAWS/clients/Blobby/Blob_Handler.h b/apps/JAWS/clients/Blobby/Blob_Handler.h index d58202afe5a..a55e0b68ee2 100644 --- a/apps/JAWS/clients/Blobby/Blob_Handler.h +++ b/apps/JAWS/clients/Blobby/Blob_Handler.h @@ -5,24 +5,29 @@ // // = LIBRARY // JAWS -// +// // = FILENAME // Blob.h // // = DESCRIPTION // ACE_Blob_Handler is a base class for ACE_Blob_Reader and // ACE_Blob_Writer which are created in response to calls to -// read/write, as appropriate +// read/write, as appropriate // // = AUTHOR // Prashant Jain and Sumedh Mungee -// +// //============================================================================ -#if !defined (ACE_BLOB_HANDLER_H) +#ifndef ACE_BLOB_HANDLER_H #define ACE_BLOB_HANDLER_H #include "ace/OS.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/SOCK_Stream.h" #include "ace/Svc_Handler.h" #include "ace/Message_Block.h" @@ -32,7 +37,7 @@ class ACE_Blob_Handler : public ACE_Svc_Handler <ACE_SOCK_STREAM, ACE_NULL_SYNCH // Blob is intended to provide application API to // classes that wish to do network i/o at a very // high level of abstraction. - // + // // = This class provides the ability to retrieve data from // the network, of specified length and offset, and potentially // use any protocol "under the hood" to do so. It currently @@ -53,7 +58,7 @@ public: virtual int close (u_long flags = 0); // Close down the Blob - + ~ACE_Blob_Handler (void); protected: @@ -65,7 +70,7 @@ protected: size_t offset_; char *filename_; int bytecount_; - enum + enum { MAX_HEADER_SIZE = 2048 // The handler assumes that the first 2048 bytes of a server response @@ -76,10 +81,10 @@ protected: class ACE_Blob_Reader : public ACE_Blob_Handler { public: - ACE_Blob_Reader (ACE_Message_Block *mb, - size_t length, - size_t offset, - char *filename, + ACE_Blob_Reader (ACE_Message_Block *mb, + size_t length, + size_t offset, + char *filename, char *request_prefix = "GET", char *request_suffix = "HTTP/1.0\r\n\r\n"); @@ -93,9 +98,9 @@ private: class ACE_Blob_Writer : public ACE_Blob_Handler { public: - ACE_Blob_Writer (ACE_Message_Block *mb, - size_t length, - size_t offset, + ACE_Blob_Writer (ACE_Message_Block *mb, + size_t length, + size_t offset, char *filename, char *request_prefix = "PUT", char *request_suffix = "HTTP/1.0\nContent-length:"); diff --git a/apps/JAWS/clients/Blobby/Options.h b/apps/JAWS/clients/Blobby/Options.h index 086fa003a37..5fe61c55cfa 100644 --- a/apps/JAWS/clients/Blobby/Options.h +++ b/apps/JAWS/clients/Blobby/Options.h @@ -5,7 +5,7 @@ // // = LIBRARY // JAWS -// +// // = FILENAME // Options.h // @@ -14,18 +14,23 @@ // // = AUTHOR // Prashant Jain and Sumedh Mungee -// +// //============================================================================ -#if !defined (ACE_BLOBBY_OPTIONS_H) +#ifndef ACE_BLOBBY_OPTIONS_H #define ACE_BLOBBY_OPTIONS_H #include "Blob.h" #include "Blob_Handler.h" #include "ace/Get_Opt.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/ARGV.h" -class Options +class Options { public: static Options *instance (void); @@ -38,7 +43,7 @@ public: // Hostname to connect to u_short port_; - // Port number to use + // Port number to use char *filename_; // Filename to upload/download diff --git a/apps/JAWS/clients/Caching/ID_Generator.h b/apps/JAWS/clients/Caching/ID_Generator.h index 0d73f72625c..3c02779f36e 100644 --- a/apps/JAWS/clients/Caching/ID_Generator.h +++ b/apps/JAWS/clients/Caching/ID_Generator.h @@ -15,16 +15,20 @@ // // ============================================================================ -#if !defined (ACE_ID_GENERATOR_H) +#ifndef ACE_ID_GENERATOR_H #define ACE_ID_GENERATOR_h #include "ace/Synch.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #define ACE_OFFER_ID_LENGTH 21 class ACE_ID_Generator // = TITLE - // An unique ID generator. + // An unique ID generator. // // = DESCRIPTION @@ -43,12 +47,12 @@ private: static ACE_SYNCH_MUTEX *get_lock (void); // Get the lock instance. - + static time_t last_time_; // Record the time last offer ID generated. static size_t last_number_; - // Record serial number of last offer ID with same + // Record serial number of last offer ID with same // generation time. static ACE_SYNCH_MUTEX *lock_; diff --git a/apps/JAWS/clients/Caching/Local_Locator.h b/apps/JAWS/clients/Caching/Local_Locator.h index aa6c73decf6..a88463b11fc 100644 --- a/apps/JAWS/clients/Caching/Local_Locator.h +++ b/apps/JAWS/clients/Caching/Local_Locator.h @@ -15,11 +15,16 @@ // // ============================================================================ -#if !defined (ACE_LOCAL_LOCATOR_H) +#ifndef ACE_LOCAL_LOCATOR_H #define ACE_LOCAL_LOCATOR_H #include "URL_Locator.h" #include "ace/Containers.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ID_Generator.h" class ACE_SVC_Export ACE_URL_Record @@ -76,30 +81,30 @@ class ACE_SVC_Export ACE_URL_Local_Locator // Default destructor. virtual int url_query (const ACE_URL_Locator::ACE_Selection_Criteria how, - const ACE_URL_Property_Seq *pseq, - const size_t how_many, - size_t &num_query, - ACE_URL_Offer_Seq *offer); + const ACE_URL_Property_Seq *pseq, + const size_t how_many, + size_t &num_query, + ACE_URL_Offer_Seq *offer); // Query the locator for HTTP with designate properties (none, some, // or all). The locator being queried will return a sequence of // offers with <how_many> offers in it. This interface allocates // <offer> so users must deallocate it after use. virtual int export_offer (ACE_URL_Offer *offer, - ACE_WString &offer_id); + ACE_WString &offer_id); // Export an offer to the locator. virtual int withdraw_offer (const ACE_WString &offer_id); // Withdraw an offer. return 0 if succeed, -1 otherwise. virtual int describe_offer (const ACE_WString &offer_id, - ACE_URL_Offer *offer); + ACE_URL_Offer *offer); // Query a specific offer. virtual int modify_offer (const ACE_WString &offer_id, - const ACE_WString *url = 0, - const ACE_URL_Property_Seq *del = 0, - const ACE_URL_Property_Seq *modify = 0); + const ACE_WString *url = 0, + const ACE_URL_Property_Seq *del = 0, + const ACE_URL_Property_Seq *modify = 0); // Modify a previously registered offer. protected: diff --git a/apps/JAWS/clients/Caching/Locator_Request_Reply.h b/apps/JAWS/clients/Caching/Locator_Request_Reply.h index 579ad82a5cd..85dd7a182a6 100644 --- a/apps/JAWS/clients/Caching/Locator_Request_Reply.h +++ b/apps/JAWS/clients/Caching/Locator_Request_Reply.h @@ -15,7 +15,7 @@ // // ============================================================================ -#if !defined (ACE_LOCATOR_REQUEST_REPLY_H) +#ifndef ACE_LOCATOR_REQUEST_REPLY_H #define ACE_LOCATOR_REQUEST_REPLY_H #include "URL_Properties.h" @@ -26,8 +26,8 @@ class ACE_SVC_Export ACE_URL_Locator_Request // // = DESCRIPTION // This class defines a URL request data. It is used - // to transform requests to an object so that we can - // ship them across network. + // to transform requests to an object so that we can + // ship them across network. { public: ACE_URL_Locator_Request (void); @@ -37,8 +37,8 @@ public: // Default dtor. int url_query (const int how, - const ACE_URL_Property_Seq &pseq, - const int how_many); + const ACE_URL_Property_Seq &pseq, + const int how_many); // Query the locator for HTTP with designate properties (none, some, // or all). The locator being queried will return a sequence of // offers with <how_many> offers in it. This interface allocates @@ -54,15 +54,15 @@ public: // Query a specific offer. int modify_offer (const ACE_WString &offer_id, - const char *url = 0, - const ACE_URL_Property_Seq &del = 0, - const ACE_URL_Property_Seq &modify = 0); + const char *url = 0, + const ACE_URL_Property_Seq &del = 0, + const ACE_URL_Property_Seq &modify = 0); // Modify a previously registered offer. int modify_offer (const ACE_WString &offer_id, - const ACE_WString *url = 0, - const ACE_URL_Property_Seq &del = 0, - const ACE_URL_Property_Seq &modify = 0); + const ACE_WString *url = 0, + const ACE_URL_Property_Seq &del = 0, + const ACE_URL_Property_Seq &modify = 0); // Modify a previously registered offer. size_t encode (void); @@ -101,7 +101,7 @@ protected: VALID_OFFER = 0X4 }; // These constants used to indicate which pointers are valid. - + u_int code_; // Request type code. @@ -128,9 +128,9 @@ protected: ACE_WString url_; // URL of this offer. - + char *buffer_; - // Buffer to store encoded data. + // Buffer to store encoded data. }; class ACE_SVC_Export ACE_URL_Locator_Reply @@ -139,8 +139,8 @@ class ACE_SVC_Export ACE_URL_Locator_Reply // // = DESCRIPTION // This class defines a URL reply data. It is used - // to transform reply messages to an object so that we can - // ship them across network. + // to transform reply messages to an object so that we can + // ship them across network. { public: ACE_URL_Locator_Reply (void); @@ -153,11 +153,11 @@ public: // Setup a reply message for EXPORT, WITHDRAW, or MODIFY operations. int query_reply (int result, size_t num, - const ACE_URL_Offer_Seq &offers); + const ACE_URL_Offer_Seq &offers); // Setup a reply for QUERY operation. int describe_reply (int result, - const ACE_URL_Offer &offer); + const ACE_URL_Offer &offer); // Construct a reply for DESCRIBE operation. size_t encode (void); @@ -191,7 +191,7 @@ protected: VALID_OFFERS = 0x2 }; // Valid pointer masks. - + u_int code_; // Holds the original op code. diff --git a/apps/JAWS/clients/Caching/URL_Array_Helper.h b/apps/JAWS/clients/Caching/URL_Array_Helper.h index 08a261138fc..f38f9ebf5dd 100644 --- a/apps/JAWS/clients/Caching/URL_Array_Helper.h +++ b/apps/JAWS/clients/Caching/URL_Array_Helper.h @@ -5,16 +5,16 @@ // // = LIBRARY // none -// +// // = FILENAME // URL_Array_Helper.h // // = AUTHOR // Nanbor Wang -// +// // ============================================================================ -#if !defined (ACE_URL_ARRAY_HELPER_H) +#ifndef ACE_URL_ARRAY_HELPER_H #define ACE_URL_ARRAY_HELPER_H // ### These template functions are probably named improperly. diff --git a/apps/JAWS/clients/Caching/URL_Locator.h b/apps/JAWS/clients/Caching/URL_Locator.h index 2b41cd5ed50..75ef5623b4e 100644 --- a/apps/JAWS/clients/Caching/URL_Locator.h +++ b/apps/JAWS/clients/Caching/URL_Locator.h @@ -15,7 +15,7 @@ // // ============================================================================ -#if !defined (ACE_URL_LOCATOR_H) +#ifndef ACE_URL_LOCATOR_H #define ACE_URL_LOCATOR_H #include "URL_Properties.h" @@ -29,7 +29,7 @@ class ACE_SVC_Export ACE_URL_Locator // This class defines the basic URL_Locator APIs. // An URL locator provides services for URL clients to // query specific URL location that has certain properties - // and URL providers to export their services and a set of + // and URL providers to export their services and a set of // APIs to maintain their offers. { public: @@ -41,19 +41,19 @@ public: WITHDRAW, DESCRIBE, MODIFY, - INVALID_OPERATION // LAST + INVALID_OPERATION // LAST }; static const char * const opname[]; // Human Readable operation name. - + // = Specify how to select offers. enum ACE_Selection_Criteria - { - NONE = 0, // URL that contains none of the properties. - SOME, // URL that contains some of the properties. - ALL, // URL that contains all of the properties. - INVALID_SELECTION // Invalid. + { + NONE = 0, // URL that contains none of the properties. + SOME, // URL that contains some of the properties. + ALL, // URL that contains all of the properties. + INVALID_SELECTION // Invalid. }; static const char * const selection_name[]; @@ -61,13 +61,13 @@ public: enum ACE_URL_Locator_Error // errno will set to one of these value. { - OK, // Everything is fine. - OFFER_EXIST, // trying to register an offer. - // that is already exist in repository. - NO_SUCH_OFFER, // No such offer in the repository. - INVALID_ARGUMENT, // Invalid argument encountered. - UNIMPLEMENTED, // function not implemented. - UNKNOWN, // Unknown error. + OK, // Everything is fine. + OFFER_EXIST, // trying to register an offer. + // that is already exist in repository. + NO_SUCH_OFFER, // No such offer in the repository. + INVALID_ARGUMENT, // Invalid argument encountered. + UNIMPLEMENTED, // function not implemented. + UNKNOWN, // Unknown error. MAX_URL_ERROR }; // Possible error code of URL_Locator. @@ -79,30 +79,30 @@ public: // Default destructor. virtual int url_query (const ACE_Selection_Criteria how, - const ACE_URL_Property_Seq *pseq, - const size_t how_many, - size_t &num_query, - ACE_URL_Offer_Seq *offer) = 0; + const ACE_URL_Property_Seq *pseq, + const size_t how_many, + size_t &num_query, + ACE_URL_Offer_Seq *offer) = 0; // Query the locator for HTTP with designate properties (none, some, // or all). The locator being queried will return a sequence of // offers with <how_many> offers in it. This interface allocates // <offer> so users must deallocate it after use. virtual int export_offer (ACE_URL_Offer *offer, - ACE_WString &offer_id) = 0; + ACE_WString &offer_id) = 0; // Export an offer to the locator. virtual int withdraw_offer (const ACE_WString &offer_id) = 0; // Withdraw an offer. return 0 if succeed, -1 otherwise. virtual int describe_offer (const ACE_WString &offer_id, - ACE_URL_Offer *offer) = 0; + ACE_URL_Offer *offer) = 0; // Query a specific offer. virtual int modify_offer (const ACE_WString &offer_id, - const ACE_WString *url = 0, - const ACE_URL_Property_Seq *del = 0, - const ACE_URL_Property_Seq *modify = 0) = 0; + const ACE_WString *url = 0, + const ACE_URL_Property_Seq *del = 0, + const ACE_URL_Property_Seq *modify = 0) = 0; // Modify a previously registered offer. virtual const char *error_status (void); diff --git a/apps/JAWS/clients/Caching/URL_Properties.h b/apps/JAWS/clients/Caching/URL_Properties.h index 18ae4bc6b2f..86cd5ff76b7 100644 --- a/apps/JAWS/clients/Caching/URL_Properties.h +++ b/apps/JAWS/clients/Caching/URL_Properties.h @@ -15,10 +15,15 @@ // // ============================================================================ -#if !defined (ACE_URL_PROPERTIES_H) +#ifndef ACE_URL_PROPERTIES_H #define ACE_URL_PROPERTIES_H #include "ace/SString.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Containers.h" class ACE_SVC_Export ACE_WString_Helper @@ -56,17 +61,17 @@ class ACE_SVC_Export ACE_URL_Property { public: ACE_URL_Property (const char *name = 0, - const char *value=0); + const char *value=0); // Create a new property. ACE_URL_Property (const ACE_USHORT16 *name, - const ACE_USHORT16 *value); + const ACE_USHORT16 *value); // Create a new property using wchar strings. This is mostly used // to support DBCS or UNICODE. ACE_URL_Property (const ACE_URL_Property &p); // Copy constructor. - + ~ACE_URL_Property (void); // Destructor. @@ -91,7 +96,7 @@ public: ACE_WString &value_rep (void); const ACE_WString &value (void) const; - // = Set property value. + // = Set property value. void value (const ACE_USHORT16 *v); void value (const char *v); @@ -104,15 +109,15 @@ public: size_t decode (void *buf); // Decodes buf and modifies this object, you should - // probably create this with default ctor. + // probably create this with default ctor. void dump (void) const; // Dump out this object for debug. - + protected: ACE_WString name_; // Property name pointer. - + ACE_WString value_; // Property value. } ; @@ -159,7 +164,7 @@ public: ACE_URL_Property_Seq &url_properties (void); // Get properties of this offer. - + void url_properties (const ACE_URL_Property_Seq &prop); // Set properties of this offer. This operation virtually get a // copy of the passed in prop. diff --git a/apps/JAWS/clients/Caching/http_handler.h b/apps/JAWS/clients/Caching/http_handler.h index 85a1b9338fe..ec736312c0e 100644 --- a/apps/JAWS/clients/Caching/http_handler.h +++ b/apps/JAWS/clients/Caching/http_handler.h @@ -6,22 +6,27 @@ // // = LIBRARY // apps/JAWS/clients/Caching -// +// // = FILENAME // http_handler.h // // = AUTHOR // James Hu -// +// // ============================================================================ #include "ace/Connector.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/SOCK_Connector.h" class HTTP_Handler : public ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH> // = TITLE // A simple HTTP protocol handler for clients. - // + // // = DESCRIPTION // Checks to see if the requested file is already cached. If // so, it says so. If not, the request is issued to the @@ -52,7 +57,7 @@ private: class HTTP_Connector // = TITLE // A simple HTTP connector. - // + // // = DESCRIPTION // Creates an HTTP Handler based on the URL, and then delegates // to to the SOCK_CONNECTOR. Adapter pattern. @@ -63,9 +68,9 @@ public: private: int parseurl (const char *url, - char *host, - u_short *port, - char *path); + char *host, + u_short *port, + char *path); // Helper function. private: 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__ */ diff --git a/apps/JAWS/remora/app/Remora_Export.h b/apps/JAWS/remora/app/Remora_Export.h index 379f3bb1a82..484cfd238d4 100644 --- a/apps/JAWS/remora/app/Remora_Export.h +++ b/apps/JAWS/remora/app/Remora_Export.h @@ -1,13 +1,13 @@ // $Id // =================================================================== -// +// // = FILENAME // Remora_Export.h // // = AUTHOR // Seth Widoff -// +// // =================================================================== @@ -24,24 +24,24 @@ class Remora_Export { public: - + Remora_Export(const char* label = NO_NAME, int value = 0, - int max_value = MAX_VALUE); + int max_value = MAX_VALUE); Remora_Export(const Remora_Export& export); ~Remora_Export(); - + void operator=(const int new_value); void operator=(const Remora_Export& export); - void operator+=(const int new_value); + void operator+=(const int new_value); void operator+=(const Remora_Export& export); - void operator*=(const int new_value); + void operator*=(const int new_value); void operator*=(const Remora_Export& export); - void operator/=(const int new_value); + void operator/=(const int new_value); void operator/=(const Remora_Export& export); void operator-=(const int new_value); @@ -49,19 +49,19 @@ public: operator CORBA::Long() const; operator CORBA::Long&(); - + friend int operator==(const Remora_Export& me, const int new_value); friend int operator==(const Remora_Export& me, const Remora_Export& export); friend int operator!=(const Remora_Export& me, const int new_value); friend int operator!=(const Remora_Export& me, const Remora_Export& export); - + friend int operator<=(const Remora_Export& me, const int new_value); friend int operator<=(const Remora_Export& me, const Remora_Export& export); - + friend int operator>=(const Remora_Export& me, const int new_value); friend int operator>=(const Remora_Export& me, const Remora_Export& export); - + friend int operator<(const Remora_Export& me, const int new_value); friend int operator<(const Remora_Export& me, const Remora_Export& export); @@ -71,13 +71,13 @@ public: private: void init(); - + void update_value(int new_value); remora::Statistic stat_; - + remora::Remora_Statistics_Agent_ptr remora_agent_; - + }; #include "Remora_Export.i" diff --git a/apps/JAWS/remora/app/Remora_Import.h b/apps/JAWS/remora/app/Remora_Import.h index 8cfecd84ac4..a41a1826448 100644 --- a/apps/JAWS/remora/app/Remora_Import.h +++ b/apps/JAWS/remora/app/Remora_Import.h @@ -1,13 +1,13 @@ // $Id // =================================================================== -// +// // = FILENAME // Remora_Import.h // // = AUTHOR // Seth Widoff -// +// // =================================================================== #ifndef REMORA_IMPORT_H @@ -25,14 +25,14 @@ class Remora_Import public: Remora_Import(const char * label = NO_NAME, int value = 0, - int min_value = 0, int max_value = MAX_VALUE); + int min_value = 0, int max_value = MAX_VALUE); Remora_Import(const Remora_Import& import); ~Remora_Import(); CORBA::Long get(void); - + operator CORBA::Long(); friend int operator==( Remora_Import& me, int new_value); @@ -40,13 +40,13 @@ public: friend int operator!=( Remora_Import& me, int new_value); friend int operator!=( Remora_Import& me, Remora_Import& export); - + friend int operator<=( Remora_Import& me, int new_value); friend int operator<=( Remora_Import& me, Remora_Import& export); - + friend int operator>=( Remora_Import& me, int new_value); friend int operator>=( Remora_Import& me, Remora_Import& export); - + friend int operator<( Remora_Import& me, int new_value); friend int operator<( Remora_Import& me, Remora_Import& export); @@ -62,7 +62,7 @@ private: remora::Control control_; remora::Remora_Controls_Agent_ptr remora_agent_; - + }; #include "Remora_Import.i" diff --git a/apps/JAWS/server/HTTP_Config.h b/apps/JAWS/server/HTTP_Config.h index fc8adacb0a1..1f978972750 100644 --- a/apps/JAWS/server/HTTP_Config.h +++ b/apps/JAWS/server/HTTP_Config.h @@ -6,13 +6,13 @@ // // = LIBRARY // jaws -// +// // = FILENAME // HTTP_Config.h // // = AUTHOR // James Hu -// +// // ============================================================================ // = Forward declaration. diff --git a/apps/JAWS/server/HTTP_Handler.h b/apps/JAWS/server/HTTP_Handler.h index 0865ee326ae..0a61ae88782 100644 --- a/apps/JAWS/server/HTTP_Handler.h +++ b/apps/JAWS/server/HTTP_Handler.h @@ -6,16 +6,16 @@ // // = LIBRARY // jaws -// +// // = FILENAME // HTTP_Handler.h // // = AUTHOR // James Hu and Irfan Pyarali -// +// // ============================================================================ -#if !defined (HTTP_HANDLER_H) +#ifndef HTTP_HANDLER_H #define HTTP_HANDLER_H // = Forward declarations @@ -23,22 +23,27 @@ class Message_Block; class HTTP_Handler_Factory; #include "ace/Asynch_IO.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "HTTP_Request.h" #include "HTTP_Response.h" #include "IO.h" class HTTP_Handler : protected JAWS_IO_Handler // = TITLE - // + // // This class is used to implement the HTTP protocol // // = DESCRIPTION - // - // The HTTP_Handler class is a state based implementation of the - // HTTP protocol. Therefore, it can be used synchronously and - // asynchronously. It uses an abstract IO class to move between - // different HTTP protocol states. It is up to the IO class to - // decide on synchronous or asynchronous I/O. + // + // The HTTP_Handler class is a state based implementation of the + // HTTP protocol. Therefore, it can be used synchronously and + // asynchronously. It uses an abstract IO class to move between + // different HTTP protocol states. It is up to the IO class to + // decide on synchronous or asynchronous I/O. { // Friend I/O classes. Can call protected methods. friend class JAWS_Synch_IO; @@ -49,8 +54,8 @@ class HTTP_Handler : protected JAWS_IO_Handler friend class Synch_HTTP_Handler_Factory; public: - virtual void open (ACE_HANDLE handle, - ACE_Message_Block &initial_data); + virtual void open (ACE_HANDLE handle, + ACE_Message_Block &initial_data); // The handler is initialized with a connection <handle> of a new // client and any <initial_data> that came across. The // <initial_data> block will be of MAX_REQUEST_SIZE and the number @@ -59,7 +64,7 @@ public: protected: HTTP_Handler (JAWS_IO &io, - HTTP_Handler_Factory &factory); + HTTP_Handler_Factory &factory); // The constructor is passed the factory that created <this> and the // IO mechanism that the handler should use. @@ -73,7 +78,7 @@ protected: // This is the termination state of the handler. After successful or // unsuccessful completions, the handler will end up in this state // (method). - + virtual void request_too_long (void); // Request too long. @@ -94,11 +99,11 @@ protected: virtual void error_message_complete (void); public: - enum + enum { MAX_SOCKBUFSIZE = 64 * 1024, MAX_REQUEST_SIZE = 8192, - METHODSIZ = 10, + METHODSIZ = 10, VERSIONSIZ = 10 }; @@ -118,11 +123,11 @@ private: class HTTP_Handler_Factory // = TITLE - // + // // This class is used to create new HTTP handlers // // = DESCRIPTION - // + // // This is an abstract factory for creating new HTTP handlers. { public: @@ -133,7 +138,7 @@ public: // This creates a new HTTP_Handler virtual void destroy_http_handler (HTTP_Handler &handler, - JAWS_IO &io) = 0; + JAWS_IO &io) = 0; // The HTTP handler will call this method from HTTP_Handler::done to // tell the factory to reap up the handler as it is now done with // the protocol @@ -141,7 +146,7 @@ public: class Synch_HTTP_Handler_Factory : public HTTP_Handler_Factory // = TITLE - // + // // This class is used to create new HTTP handlers that will use // Synch IO // @@ -152,7 +157,7 @@ public: // This creates a new HTTP_Handler void destroy_http_handler (HTTP_Handler &handler, - JAWS_IO &io); + JAWS_IO &io); // The HTTP handler will call this method from HTTP_Handler::done to // tell the factory to reap up the handler as it is now done with // the protocol @@ -168,7 +173,7 @@ class Asynch_HTTP_Handler_Factory : public HTTP_Handler_Factory, public ACE_Serv { public: void destroy_http_handler (HTTP_Handler &handler, - JAWS_IO &io); + JAWS_IO &io); // The HTTP handler will call this method from HTTP_Handler::done to // tell the factory to reap up the handler as it is now done with // the protocol diff --git a/apps/JAWS/server/HTTP_Helpers.h b/apps/JAWS/server/HTTP_Helpers.h index b22533d62b0..68f05729e48 100644 --- a/apps/JAWS/server/HTTP_Helpers.h +++ b/apps/JAWS/server/HTTP_Helpers.h @@ -6,20 +6,24 @@ // // = LIBRARY // apps -// +// // = FILENAME // HTTP_Helpers.h // // = AUTHOR // James Hu -// +// // ============================================================================ -#if !defined (HTTP_HELPERS_H) +#ifndef HTTP_HELPERS_H #define HTTP_HELPERS_H #include "ace/Synch.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + class HTTP_Helper // Static functions to enhance the lives of HTTP programmers everywhere. { @@ -68,7 +72,7 @@ public: static const char **instance (void); // Singleton access point. - enum STATUS_CODE + enum STATUS_CODE { STATUS_OK = 200, STATUS_CREATED = 201, @@ -88,7 +92,7 @@ public: STATUS_INSUFFICIENT_DATA = 399 }; - enum + enum { MAX_STATUS_CODE = 599 }; diff --git a/apps/JAWS/server/HTTP_Request.h b/apps/JAWS/server/HTTP_Request.h index 907926e70a4..48dac56366c 100644 --- a/apps/JAWS/server/HTTP_Request.h +++ b/apps/JAWS/server/HTTP_Request.h @@ -6,27 +6,32 @@ // // = LIBRARY // jaws -// +// // = FILENAME // HTTP_Request.h // // = AUTHOR // James Hu -// +// // ============================================================================ -#if !defined (HTTP_REQUEST_H) +#ifndef HTTP_REQUEST_H #define HTTP_REQUEST_H class ACE_Message_Block; #include "ace/OS.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "Parse_Headers.h" -class HTTP_Request +class HTTP_Request // = TITLE // This parses the client request of an HTTP transaction. - // + // // = DESCRIPTION { public: @@ -44,7 +49,7 @@ public: // form: METHOD URI VERSION. int init (char *const buffer, - int buflen); + int buflen); // Initialize the request object. This will parse the buffer and // prepare for the accessors. diff --git a/apps/JAWS/server/HTTP_Response.h b/apps/JAWS/server/HTTP_Response.h index 0ddbf7268d1..3b9a63b6433 100644 --- a/apps/JAWS/server/HTTP_Response.h +++ b/apps/JAWS/server/HTTP_Response.h @@ -6,16 +6,16 @@ // // = LIBRARY // jaws -// +// // = FILENAME // HTTP_Response.h // // = AUTHOR // James Hu -// +// // ============================================================================ -#if !defined (HTTP_RESPONSE_H) +#ifndef HTTP_RESPONSE_H #define HTTP_RESPONSE_H class JAWS_IO; @@ -33,7 +33,7 @@ class HTTP_Response { public: HTTP_Response (JAWS_IO &io, - HTTP_Request &request); + HTTP_Request &request); HTTP_Response (HTTP_Request &request, JAWS_IO &io); ~HTTP_Response (void); @@ -41,7 +41,7 @@ public: // This is called by the handler to initiate a response. void error_response (int status, - const char *log_message); + const char *log_message); // This returns an error response for cases where there is a problem // with the request, logging the log_message. diff --git a/apps/JAWS/server/HTTP_Server.h b/apps/JAWS/server/HTTP_Server.h index d682ffbc88f..614f98b3e24 100644 --- a/apps/JAWS/server/HTTP_Server.h +++ b/apps/JAWS/server/HTTP_Server.h @@ -5,19 +5,24 @@ // // = LIBRARY // jaws -// +// // = FILENAME // HTTP_Server.h // // = AUTHOR // James Hu -// +// // ============================================================================ -#if !defined (HTTP_SERVER_H) +#ifndef HTTP_SERVER_H #define HTTP_SERVER_H #include "ace/Service_Object.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Thread_Manager.h" #include "ace/Acceptor.h" #include "ace/LOCK_SOCK_Acceptor.h" @@ -40,7 +45,7 @@ class HTTP_Server : public ACE_Service_Object // = TITLE // This server is used to create HTTP Handlers for the Web // server - // + // // = DESCRIPTION { public: @@ -56,10 +61,10 @@ protected: virtual int asynch_thread_pool (void); // Asynch Thread Pool implementation - + virtual int synch_thread_pool (void); // Synch Thread Pool implementation - + private: // James, comment these data members. void parse_args (int argc, char **argv); @@ -75,7 +80,7 @@ private: class Synch_Thread_Pool_Task : public ACE_Task<ACE_NULL_SYNCH> // = TITLE // Used to implement Synch Thread Pool - // + // // = DESCRIPTION // Describe this and the others below. { @@ -92,7 +97,7 @@ private: class Thread_Per_Request_Task : public ACE_Task<ACE_NULL_SYNCH> // = TITLE // Used to implement Thread Per Request. - // + // // = DESCRIPTION // Spawns a new thread for every new incoming connection. The // handle below is the socket stream of the incoming connection. @@ -115,7 +120,7 @@ private: class Asynch_Thread_Pool_Task : public ACE_Task<ACE_NULL_SYNCH> // = TITLE // Used to implement Asynch Thread Pool - // + // // = DESCRIPTION // The proactor below utilizes WaitForMultipleObjects. { diff --git a/apps/JAWS/server/IO.h b/apps/JAWS/server/IO.h index 5f14a1ed965..cf22d1ff09f 100644 --- a/apps/JAWS/server/IO.h +++ b/apps/JAWS/server/IO.h @@ -6,32 +6,37 @@ // // = LIBRARY // jaws -// +// // = FILENAME // IO.h // // = AUTHOR // James Hu -// +// // ============================================================================ -#if !defined (JAWS_IO_H) +#ifndef JAWS_IO_H #define JAWS_IO_H class ACE_Message_Block; class JAWS_IO_Handler; #include "ace/ACE.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Asynch_IO.h" class JAWS_IO // = TITLE - // + // // This class defines the abstract interface for an I/O class in // the context of Web-likes servers // // = DESCRIPTION - // + // // An I/O class should have the following interface. Derived // classes will define the exactly how the I/O will take place // (Asynchronous, Synchronous, Reactive) @@ -49,24 +54,24 @@ public: // read from the handle size bytes into the message block. virtual void transmit_file (const char *filename, - const char *header, - int header_size, - const char *trailer, - int trailer_size) = 0; + const char *header, + int header_size, + const char *trailer, + int trailer_size) = 0; // send header, filename, trailer to the handle. virtual void receive_file (const char *filename, - void *initial_data, - int initial_data_length, - int entire_length) = 0; + void *initial_data, + int initial_data_length, + int entire_length) = 0; // read data from the handle and store in filename. - virtual void send_confirmation_message (const char *buffer, int length) = 0; + virtual void send_confirmation_message (const char *buffer, int length) = 0; // send a confirmation message to the handle. - virtual void send_error_message (const char *buffer, int length) = 0; + virtual void send_error_message (const char *buffer, int length) = 0; // send an error message to the handle. - + protected: ACE_HANDLE handle_; JAWS_IO_Handler *handler_; @@ -74,7 +79,7 @@ protected: class JAWS_IO_Handler // = TITLE - // + // // This class defines the abstract interface for an I/O handler class in // the context of Web-likes servers // @@ -121,7 +126,7 @@ public: class JAWS_Synch_IO : public JAWS_IO // = TITLE - // + // // This class defines the interface for a Synchronous I/O class. // // = DESCRIPTION @@ -131,28 +136,28 @@ public: ~JAWS_Synch_IO (void); - void read (ACE_Message_Block& mb, int size); + void read (ACE_Message_Block& mb, int size); void transmit_file (const char *filename, - const char *header, - int header_size, - const char *trailer, - int trailer_size); + const char *header, + int header_size, + const char *trailer, + int trailer_size); void receive_file (const char *filename, - void *initial_data, - int initial_data_length, - int entire_length); + void *initial_data, + int initial_data_length, + int entire_length); - void send_confirmation_message (const char *buffer, - int length); + void send_confirmation_message (const char *buffer, + int length); void send_error_message (const char *buffer, - int length); - + int length); + protected: virtual void send_message (const char *buffer, - int length); + int length); }; // This only works on Win32 @@ -160,7 +165,7 @@ protected: class JAWS_Asynch_IO : public JAWS_IO, public ACE_Handler // = TITLE - // + // // This class defines the interface for a Asynchronous I/O class. // // = DESCRIPTION @@ -173,21 +178,21 @@ public: void read (ACE_Message_Block& mb, int size); void transmit_file (const char *filename, - const char *header, - int header_size, - const char *trailer, - int trailer_size); + const char *header, + int header_size, + const char *trailer, + int trailer_size); void receive_file (const char *filename, - void *initial_data, - int initial_data_length, - int entire_length); + void *initial_data, + int initial_data_length, + int entire_length); void send_confirmation_message (const char *buffer, - int length); + int length); void send_error_message (const char *buffer, - int length); + int length); protected: enum Message_Types @@ -197,8 +202,8 @@ protected: }; virtual void send_message (const char *buffer, - int length, - int act); + int length, + int act); virtual void handle_read_stream (const ACE_Asynch_Read_Stream::Result &result); // This method will be called when an asynchronous read completes on diff --git a/apps/JAWS/server/JAWS_Concurrency.h b/apps/JAWS/server/JAWS_Concurrency.h index b6f9efe6fbb..39b4700df72 100644 --- a/apps/JAWS/server/JAWS_Concurrency.h +++ b/apps/JAWS/server/JAWS_Concurrency.h @@ -1,10 +1,15 @@ /* -*- c++ -*- */ // $Id$ -#if !defined (JAWS_CONCURRENCY_H) +#ifndef JAWS_CONCURRENCY_H #define JAWS_CONCURRENCY_H #include "ace/Synch.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Task.h" #include "IO.h" diff --git a/apps/JAWS/server/JAWS_Pipeline.h b/apps/JAWS/server/JAWS_Pipeline.h index 7867213076f..bac2acc6f91 100644 --- a/apps/JAWS/server/JAWS_Pipeline.h +++ b/apps/JAWS/server/JAWS_Pipeline.h @@ -1,10 +1,15 @@ /* -*- c++ -*- */ // $Id$ -#if !defined (JAWS_PIPELINE_H) +#ifndef JAWS_PIPELINE_H #define JAWS_PIPELINE_H #include "ace/Synch.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Service_Config.h" #include "ace/Stream.h" #include "ace/Module.h" diff --git a/apps/JAWS/server/JAWS_Pipeline_Handler.h b/apps/JAWS/server/JAWS_Pipeline_Handler.h index 784b44f8b7c..7e9becb6f5e 100644 --- a/apps/JAWS/server/JAWS_Pipeline_Handler.h +++ b/apps/JAWS/server/JAWS_Pipeline_Handler.h @@ -1,7 +1,7 @@ /* -*- c++ -*- */ // $Id$ -#if !defined (JAWS_PIPELINE_HANDLER_H) +#ifndef JAWS_PIPELINE_HANDLER_H #define JAWS_PIPELINE_HANDLER_H #include "JAWS_Pipeline.h" diff --git a/apps/JAWS/server/Parse_Headers.h b/apps/JAWS/server/Parse_Headers.h index 126243d4582..68274bd442b 100644 --- a/apps/JAWS/server/Parse_Headers.h +++ b/apps/JAWS/server/Parse_Headers.h @@ -15,11 +15,15 @@ // // ============================================================================ -#if !defined (PARSE_HEADERS_H) +#ifndef PARSE_HEADERS_H #define PARSE_HEADERS_H #include "ace/OS.h" +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + class Headers_Map_Item { friend class Headers_Map; diff --git a/apps/JAWS/stress_testing/global.h b/apps/JAWS/stress_testing/global.h index 8cb45fb3dd1..58a0b24b3e0 100644 --- a/apps/JAWS/stress_testing/global.h +++ b/apps/JAWS/stress_testing/global.h @@ -1,6 +1,11 @@ // $Id$ #include "ace/ACE.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/OS.h" #include "ace/SOCK_Acceptor.h" #include "ace/SOCK_Connector.h" |