version 1.6, 2004/12/06 21:03:12 |
version 1.7, 2004/12/07 17:10:56 |
|
|
* Initialize the logging facility of the server. |
* Initialize the logging facility of the server. |
* Returns 0 on success, or -1 on failure. |
* Returns 0 on success, or -1 on failure. |
*/ |
*/ |
|
|
int |
int |
cvs_log_init(u_int dest, u_int flags) |
cvs_log_init(u_int dest, u_int flags) |
{ |
{ |
|
|
* |
* |
* Cleanup the logging facility. |
* Cleanup the logging facility. |
*/ |
*/ |
|
|
void |
void |
cvs_log_cleanup(void) |
cvs_log_cleanup(void) |
{ |
{ |
closelog_r(&cvs_sl); |
|
|
|
|
closelog_r(&cvs_sl); |
} |
} |
|
|
|
|
|
|
* The <fmt> argument should not have a terminating newline, as this is taken |
* The <fmt> argument should not have a terminating newline, as this is taken |
* care of by the logging facility. |
* care of by the logging facility. |
*/ |
*/ |
|
|
int |
int |
cvs_log(u_int level, const char *fmt, ...) |
cvs_log(u_int level, const char *fmt, ...) |
{ |
{ |
|
|
* The <fmt> argument should not have a terminating newline, as this is taken |
* The <fmt> argument should not have a terminating newline, as this is taken |
* care of by the logging facility. |
* care of by the logging facility. |
*/ |
*/ |
|
|
int |
int |
cvs_vlog(u_int level, const char *fmt, va_list vap) |
cvs_vlog(u_int level, const char *fmt, va_list vap) |
{ |
{ |
|
|
* Wrapper function around printf() that prepends a 'M' or 'E' command when |
* Wrapper function around printf() that prepends a 'M' or 'E' command when |
* the program is acting as server. |
* the program is acting as server. |
*/ |
*/ |
|
|
int |
int |
cvs_printf(const char *fmt, ...) |
cvs_printf(const char *fmt, ...) |
{ |
{ |