#include <iostream>#include <fstream>#include <netinet/in.h>Go to the source code of this file.
Defines | |
| #define | TRUE 1 |
| #define | FALSE 0 |
| #define | MIN(X, Y) ((X) < (Y) ? (X) : (Y)) |
| #define | MAX(X, Y) ((X) > (Y) ? (X) : (Y)) |
| #define | ABS(X) ((X) < 0 ? -(X) : (X)) |
| #define | INRANGE(X, Y, Z) ((X) >= (Y) && (X) <= (Z)) |
| #define | TRACEID(FNAME, TRACELEV) |
| #define | MSGSTR com_msgstr |
| #define | MSG(SEVLEV, PRINTFARG) |
Typedefs | |
| typedef int | BOOLEAN |
| typedef char * | STRING |
| typedef unsigned char | UCHAR |
| typedef signed char | SCHAR |
| typedef unsigned long int | ULONG |
| typedef signed long int | LONG |
| typedef unsigned short int | USHORT |
| typedef signed short int | SHORT |
| typedef signed long long int | LONG_LONG |
| typedef unsigned long long int | LONG_ULONG |
| typedef float | FLOAT |
| typedef double | DOUBLE |
| typedef long double | LDOUBLE |
| typedef LONG_LONG | TIME_T |
Enumerations | |
| enum | MSG_LEV_ { SEV_T, SEV_S, SEV_E, SEV_W, SEV_I, NOID, FLUSH, STATS, SEV_1, SEV_2, SEV_3, SEV_4, SEV_5 } |
Functions | |
| LONG | com_abortrc (STRING) |
| LONG | com_debuglevel (STRING) |
| void | com_msg (MSG_LEV_, const char *, LONG *, const char *) |
| const char * | com_msgstr (const char *,...) |
Variables | |
| LONG | COM_RC |
| LONG | COM_SRC |
| LONG | COM_ABORT_RC |
| LONG | COM_DBGLEV |
| LONG | COM_MSGFLUSH |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Value: if (SEVLEV-6 <= COM_DBGLEV) \ com_msg(SEVLEV,(const char*)FUNCNAME,&SRC,(const char*)com_msgstr PRINTFARG); |
|
|
|
|
|
Value: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ ³ ³ Name : com_abortrc ³ ³ ³ ³ Purpose : Common processor of the abort level. ³ ³ ³ ³ Parms : (STRING) the specified abort level (W, E, S or T). ³ ³ ³ ³ Returns : (LONG ) SRC. ³ ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ |
|
|
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ ³ ³ Name : com_debuglevel ³ ³ ³ ³ Purpose : Common processor of the debug level. ³ ³ ³ ³ Parms : (STRING) the specified debug level (0, 1, 2, 3, 4 or 5). ³ ³ ³ ³ Returns : (LONG ) SRC. ³ ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ |
|
||||||||||||||||||||
|
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ ³ ³ Name : com_msg ³ ³ ³ ³ Purpose : Common processor for handling message requests. Also checks ³ ³ the corresponding message code against the global return ³ ³ code to determine if processing should terminate. ³ ³ ³ ³ Parms : (MSG_LEV_) the type of message being written. ³ ³ (const char *) the file id. ³ ³ (LONG*) pointer to the local return code ³ ³ (const char *) printf-type format sstring. ³ ³ ³ ³ Returns : (void) ³ ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ |
|
||||||||||||
|
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ ³ ³ Name : com_msgstr ³ ³ ³ ³ Purpose : Format a sstring with printf-type syntax. ³ ³ ³ ³ Parms : (const char *) printf-type format sstring. ³ ³ ³ ³ Returns : (STRING) ³ ³ ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|