version 1.6, 2022/03/18 20:54:01 |
version 1.7, 2022/03/19 06:16:18 |
|
|
/* |
/* |
1;95;0c * Copyright (c) 2022 Daniel Kroczynski <d@kroczynski.net> |
* Copyright (c) 2022 Daniel Kroczynski <d@kroczynski.net> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
Line 26 static int log_background; |
|
Line 26 static int log_background; |
|
static int log_verbose; |
static int log_verbose; |
const char *log_procname; |
const char *log_procname; |
|
|
void log_initialize(int, int); |
void log_init(int, int); |
void log_setverbose(int); |
void log_setv(int); |
int log_getverbose(void); |
int log_getv(void); |
void log_send(const char *, va_list) |
void log_send(const char *, va_list) |
__attribute__((__format__ (printf, 1, 0))); |
__attribute__((__format__ (printf, 1, 0))); |
void log_info(const char *, ...) |
void log_info(const char *, ...) |
Line 39 __dead void log_fatal(const char *, ...) |
|
Line 39 __dead void log_fatal(const char *, ...) |
|
__attribute__((__format__ (printf, 1, 2))); |
__attribute__((__format__ (printf, 1, 2))); |
|
|
void |
void |
log_initialize(int background, int facility) |
log_init(int background, int facility) |
{ |
{ |
extern char *__progname; |
extern char *__progname; |
|
|
Line 54 log_initialize(int background, int facility) |
|
Line 54 log_initialize(int background, int facility) |
|
} |
} |
|
|
void |
void |
log_setverbose(int verb) |
log_setv(int verb) |
{ |
{ |
log_verbose = verb; |
log_verbose = verb; |
} |
} |
|
|
int |
int |
log_getverbose(void) |
log_getv(void) |
{ |
{ |
return (log_verbose); |
return (log_verbose); |
} |
} |