[0001] [0002] [0003] [0004] [0005] [0006] [0007] [0008] [0009] [0010] [0011] [0012] [0013] [0014] [0015] [0016] [0017] [0018] [0019] [0020] [0021] [0022] [0023] [0024] [0025] [0026] [0027] [0028] [0029] [0030] [0031] [0032] [0033] [0034] [0035] [0036] [0037] [0038] [0039] [0040] [0041] [0042] [0043] [0044] [0045] [0046] [0047] [0048] [0049] [0050] [0051] [0052] [0053] [0054] [0055] [0056] [0057] [0058] [0059] [0060] [0061] [0062] [0063] [0064] [0065] [0066] [0067] [0068] [0069] [0070] [0071] [0072] [0073] [0074] [0075] [0076] [0077] [0078] [0079] [0080] [0081] [0082] [0083] [0084] [0085] [0086] [0087] [0088] [0089]
/*****************************************************************************/ /* Support.h */ /*****************************************************************************/ #ifndef SUPPORT_H_LOADED #define SUPPORT_H_LOADED 1 /* standard C header files */ #include <time.h> /* VMS related header files */ #include <fab.h> #include <nam.h> /* application related header files */ #include "wasd.h" /**********/ /* macros */ /**********/ /* the current size determined by the The Apache Group */ #define UNIQUE_ID_SIZE 19 /***********************/ /* function prototypes */ /***********************/ LIST_ENTRY* ListAddHead (LIST_HEAD*, LIST_ENTRY*, ulong); LIST_ENTRY* ListAddTail (LIST_HEAD*, LIST_ENTRY*, ulong); LIST_ENTRY* ListAddBefore (LIST_HEAD*, LIST_ENTRY*, LIST_ENTRY*, ulong); LIST_ENTRY* ListRemove (LIST_HEAD*, LIST_ENTRY*); LIST_ENTRY* ListRemoveTail (LIST_HEAD*); LIST_ENTRY* ListRemoveHead (LIST_HEAD*); ListDebug (LIST_HEAD*); #ifdef __x86_64 void x86ASTs (char*, int); #endif char* AverageDurationString (REQUEST_STRUCT*, int64*, ulong); int BytesPerSecond (ulong*, ulong*, ulong*); char* ClientHostString (REQUEST_STRUCT*); int ConvertFromUtf8 (char*, int, char); int ConvertToUtf8 (char*, int, int); int ConvertUtf8ToEscape (char*, char*, int); int CopyTextIntoHtml (char*, char*, int); char* DayOfWeekName (int64*); char* DateTime (ulong*, int); char* DigitDayTime (int64*); char* DurationString (REQUEST_STRUCT*, int64*); float FloatDeltaTime (ulong*); int FormatProtection (ushort, char*); char* GenerateUniqueId (REQUEST_STRUCT*); int GetVmsVersion (); char* HtmlMetaInfo (REQUEST_STRUCT*, char*); char* HttpStatusCodeText (int); char* HttpStatusCodeExplanation (REQUEST_STRUCT*, int); int HttpGetTime (char*, int64*); int HttpGmTime (char*, int64*); int HttpGmTimeString (char*, int64*); int HttIsoTime (char*, int64*); int HttpIsoTimeString (BOOL, char*, int64*); BOOL HttpIfModifiedSince (REQUEST_STRUCT*, int64*, int); void HttpIfRange (REQUEST_STRUCT*, int64*); BOOL HttpIfUnModifiedSince (REQUEST_STRUCT*, int64*); int ipow (int, int); int MatchPerf (); int PercentOf32 (ulong, ulong); int PercentOf64 (uint64*, uint64*); void SetAnyTime (char*, ulong*); int SetGlobalSymbol (char*, char*); char* ServerSignature (REQUEST_STRUCT*, char*, int); char* SysTrnLnm (char*); void TimeAdjustToGMT (int64*); void TimeAdjustFromGMT (int64*); void TimeSansYear (ulong*, char*); void TimeSetHttpdUTC (); int TimeVmsToUnix (int64*, struct tm*); void ThisLongAgo (int64*, char*); char* UserAtClient (REQUEST_STRUCT *rqptr); int VmsToHttpStatus (int); char* v10orPrev10 (char*, int); #endif /* SUPPORT_H_LOADED */ /*****************************************************************************/