version 1.3, 2007/07/26 16:10:16 |
version 1.4, 2008/11/14 11:58:08 |
|
|
/* |
/* |
* Copyright (c) 1999, 2004 Todd C. Miller <Todd.Miller@courtesan.com> |
* Copyright (c) 1999-2005, 2008 |
|
* Todd C. Miller <Todd.Miller@courtesan.com> |
* |
* |
* 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 |
|
|
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
|
* |
|
* $Sudo: logging.h,v 1.13 2008/11/09 14:13:12 millert Exp $ |
*/ |
*/ |
|
|
#ifndef _LOGGING_H |
#ifndef _LOGGING_H |
|
|
#define USE_ERRNO 0x02 |
#define USE_ERRNO 0x02 |
#define NO_MAIL 0x04 |
#define NO_MAIL 0x04 |
#define NO_EXIT 0x08 |
#define NO_EXIT 0x08 |
|
#define NO_STDERR 0x10 |
|
|
/* |
/* |
* Maximum number of characters to log per entry. The syslogger |
* Maximum number of characters to log per entry. The syslogger |
|
|
# define MAXSYSLOGLEN 960 |
# define MAXSYSLOGLEN 960 |
#endif |
#endif |
|
|
void log_auth __P((int, int)); |
void log_allowed __P((int)); |
|
void log_denial __P((int, int)); |
void log_error __P((int flags, const char *fmt, ...)) |
void log_error __P((int flags, const char *fmt, ...)) |
__printflike(2, 3); |
__printflike(2, 3); |
RETSIGTYPE reapchild __P((int)); |
RETSIGTYPE reapchild __P((int)); |