On the subject of numbers for facilities:
#define LOG_AUTHPRIV (10<<3) /* audit daemon */
#define LOG_FTP (11<<3) /* audit daemon */
#define LOG_NTP (12<<3) /* NTP daemon */
#define LOG_AUDIT (13<<3) /* audit daemon */
#define LOG_LFMT (14<<3) /* logalert daemon */
LOG_CRON is a PITA. Sun use one value, everyone else uses another.
Sun:
#define LOG_CRON (15<<3) /* cron/at subsystem */
Everyone else:
#define LOG_CRON (9<<3) /* cron/at subsystem */
My approach was to define "cron" and "cron2" (cron matching the local
system definitation, cron2 the "other").
I'm not aware of any of these being deprecated. The open source Unixes
seem to have eaten up any "reserved" numbers without too much thought.
> I've just found another reference that LOG_AUTHPRIV was deprecated
Who, what, where, when ?
It's still in active use on BSD systems.
Darren