ARPDAS_QNX6 1.0
Functions
msg.h File Reference
#include <stdarg.h>
Include dependency graph for msg.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

const char * msghdr_init (const char *hdr_default, int argc, char **argv)
void msg_init_options (const char *hdr, int argc, char **argv)
int msg (int level, const char *s,...)
int msgv (int level, const char *s, va_list args)
void msg_set_hdr (const char *hdr)

Function Documentation

int msg ( int  level,
const char *  fmt,
  ... 
)

msg() supports the nl_error() interface, but provides a considerable amount of additional functionality to support logging of messages within an application with multiple executables. Through command-line options, msg() can be configured to log to stderr and/or to a log file and/or to the memo application, and adds a timestamp to each message. See nl_error() for definition of the level options.

Returns:
the level argument.

Definition at line 107 of file msg.c.

References msgv().

Referenced by Ser_Sel::not_float(), Ser_Sel::report_err(), and Ser_Sel::report_ok().

Here is the call graph for this function:

Here is the caller graph for this function:

void msg_init_options ( const char *  hdr,
int  argc,
char **  argv 
)

Definition at line 50 of file msg.c.

References file_fp, memo_fp, msg_set_hdr(), nl_debug_level, opt_string, OPTIND_RESET, tm_dev_name(), write_to_file, write_to_memo, and write_to_stderr.

Here is the call graph for this function:

void msg_set_hdr ( const char *  hdr)

Definition at line 35 of file msg.c.

References msg_app_hdr, and MSG_MAX_HDR_LEN.

Referenced by msg_init_options().

Here is the caller graph for this function:

const char* msghdr_init ( const char *  hdr_default,
int  argc,
char **  argv 
)

Handle -h option

Definition at line 15 of file msg.c.

References opt_string, and OPTIND_RESET.

int msgv ( int  level,
const char *  s,
va_list  args 
)

Definition at line 126 of file msg.c.

References file_fp, memo_fp, msg_app_hdr, MSG_MAX_INTERNAL, nl_debug_level, write_msg(), write_to_file, write_to_memo, and write_to_stderr.

Referenced by msg(), and Ser_Sel::report_err().

Here is the call graph for this function:

Here is the caller graph for this function:

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines