diff options
author | Jeremy Allison <jra@samba.org> | 2002-03-27 23:17:50 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-03-27 23:17:50 +0000 |
commit | 0cb0c6e90348c9e85e38b65778b93a78af7462a5 (patch) | |
tree | f24d6612b27f70ccb9794a2a56d27a43c8899a3e /source3/include | |
parent | a2819db2f0a2b09f1d518ba7459dade3d5363de3 (diff) | |
download | samba-0cb0c6e90348c9e85e38b65778b93a78af7462a5.tar.gz samba-0cb0c6e90348c9e85e38b65778b93a78af7462a5.tar.bz2 samba-0cb0c6e90348c9e85e38b65778b93a78af7462a5.zip |
Added sys_adminlog() system for info the appliance admins really
need to know about. Different from the DEBUG system.
Jeremy.
(This used to be commit 74eac41c681f92a6da0ae2167f031e021862e0d8)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/includes.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h index 3bb7d13f7f..e19961b575 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -1049,6 +1049,39 @@ int vasprintf(char **ptr, const char *format, va_list ap); #define S_IXOTH 00001 /* execute permission: other */ #endif +/* For sys_adminlog(). */ +#ifndef LOG_EMERG +#define LOG_EMERG 0 /* system is unusable */ +#endif + +#ifndef LOG_ALERT +#define LOG_ALERT 1 /* action must be taken immediately */ +#endif + +#ifndef LOG_CRIT +#define LOG_CRIT 2 /* critical conditions */ +#endif + +#ifndef LOG_ERR +#define LOG_ERR 3 /* error conditions */ +#endif + +#ifndef LOG_WARNING +#define LOG_WARNING 4 /* warning conditions */ +#endif + +#ifndef LOG_NOTICE +#define LOG_NOTICE 5 /* normal but significant condition */ +#endif + +#ifndef LOG_INFO +#define LOG_INFO 6 /* informational */ +#endif + +#ifndef LOG_DEBUG +#define LOG_DEBUG 7 /* debug-level messages */ +#endif + /* NetBSD doesn't have these */ #ifndef SHM_R #define SHM_R 0400 |