10 constant_LOG_NO(char *name, int len)
12 switch (name[6 + 0]) {
14 if (strEQ(name + 6, "TICE")) { /* LOG_NO removed */
22 if (strEQ(name + 6, "WAIT")) { /* LOG_NO removed */
39 constant_LOG_N(char *name, int len)
41 switch (name[5 + 0]) {
43 if (strEQ(name + 5, "DELAY")) { /* LOG_N removed */
51 if (strEQ(name + 5, "EWS")) { /* LOG_N removed */
59 if (strEQ(name + 5, "FACILITIES")) { /* LOG_N removed */
60 #ifdef LOG_NFACILITIES
61 return LOG_NFACILITIES;
67 return constant_LOG_NO(name, len);
78 constant_LOG_P(char *name, int len)
80 switch (name[5 + 0]) {
82 if (strEQ(name + 5, "ID")) { /* LOG_P removed */
90 if (strEQ(name + 5, "RIMASK")) { /* LOG_P removed */
107 constant_LOG_AU(char *name, int len)
113 switch (name[6 + 2]) {
115 if (strEQ(name + 6, "TH")) { /* LOG_AU removed */
123 if (strEQ(name + 6, "THPRIV")) { /* LOG_AU removed */
140 constant_LOG_A(char *name, int len)
142 switch (name[5 + 0]) {
144 if (strEQ(name + 5, "LERT")) { /* LOG_A removed */
152 return constant_LOG_AU(name, len);
163 constant_LOG_CR(char *name, int len)
165 switch (name[6 + 0]) {
167 if (strEQ(name + 6, "IT")) { /* LOG_CR removed */
175 if (strEQ(name + 6, "ON")) { /* LOG_CR removed */
192 constant_LOG_C(char *name, int len)
194 switch (name[5 + 0]) {
196 if (strEQ(name + 5, "ONS")) { /* LOG_C removed */
204 return constant_LOG_CR(name, len);
215 constant_LOG_D(char *name, int len)
217 switch (name[5 + 0]) {
219 if (strEQ(name + 5, "AEMON")) { /* LOG_D removed */
227 if (strEQ(name + 5, "EBUG")) { /* LOG_D removed */
244 constant_LOG_U(char *name, int len)
246 switch (name[5 + 0]) {
248 if (strEQ(name + 5, "SER")) { /* LOG_U removed */
256 if (strEQ(name + 5, "UCP")) { /* LOG_U removed */
273 constant_LOG_E(char *name, int len)
275 switch (name[5 + 0]) {
277 if (strEQ(name + 5, "MERG")) { /* LOG_E removed */
285 if (strEQ(name + 5, "RR")) { /* LOG_E removed */
302 constant_LOG_F(char *name, int len)
304 switch (name[5 + 0]) {
306 if (strEQ(name + 5, "ACMASK")) { /* LOG_F removed */
314 if (strEQ(name + 5, "TP")) { /* LOG_F removed */
331 constant_LOG_LO(char *name, int len)
337 switch (name[6 + 3]) {
339 if (strEQ(name + 6, "CAL0")) { /* LOG_LO removed */
347 if (strEQ(name + 6, "CAL1")) { /* LOG_LO removed */
355 if (strEQ(name + 6, "CAL2")) { /* LOG_LO removed */
363 if (strEQ(name + 6, "CAL3")) { /* LOG_LO removed */
371 if (strEQ(name + 6, "CAL4")) { /* LOG_LO removed */
379 if (strEQ(name + 6, "CAL5")) { /* LOG_LO removed */
387 if (strEQ(name + 6, "CAL6")) { /* LOG_LO removed */
395 if (strEQ(name + 6, "CAL7")) { /* LOG_LO removed */
412 constant_LOG_L(char *name, int len)
414 switch (name[5 + 0]) {
416 if (strEQ(name + 5, "FMT")) { /* LOG_L removed */
424 return constant_LOG_LO(name, len);
426 if (strEQ(name + 5, "PR")) { /* LOG_L removed */
443 constant(char *name, int len)
450 switch (name[0 + 4]) {
452 if (!strnEQ(name + 0,"LOG_", 4))
454 return constant_LOG_A(name, len);
456 if (!strnEQ(name + 0,"LOG_", 4))
458 return constant_LOG_C(name, len);
460 if (!strnEQ(name + 0,"LOG_", 4))
462 return constant_LOG_D(name, len);
464 if (!strnEQ(name + 0,"LOG_", 4))
466 return constant_LOG_E(name, len);
468 if (!strnEQ(name + 0,"LOG_", 4))
470 return constant_LOG_F(name, len);
472 if (strEQ(name + 0, "LOG_INFO")) { /* removed */
480 if (strEQ(name + 0, "LOG_KERN")) { /* removed */
488 if (!strnEQ(name + 0,"LOG_", 4))
490 return constant_LOG_L(name, len);
492 if (strEQ(name + 0, "LOG_MAIL")) { /* removed */
500 if (!strnEQ(name + 0,"LOG_", 4))
502 return constant_LOG_N(name, len);
504 if (strEQ(name + 0, "LOG_ODELAY")) { /* removed */
512 if (!strnEQ(name + 0,"LOG_", 4))
514 return constant_LOG_P(name, len);
516 if (strEQ(name + 0, "LOG_SYSLOG")) { /* removed */
524 if (!strnEQ(name + 0,"LOG_", 4))
526 return constant_LOG_U(name, len);
528 if (strEQ(name + 0, "LOG_WARNING")) { /* removed */
545 MODULE = Sys::Syslog PACKAGE = Sys::Syslog
553 croak("Your vendor has not defined the Sys::Syslog macro _PATH_LOG");
567 croak("Your vendor has not defined the Sys::Syslog macro LOG_FAC");
581 croak("Your vendor has not defined the Sys::Syslog macro LOG_PRI");
594 RETVAL = LOG_MAKEPRI(fac,pri);
596 croak("Your vendor has not defined the Sys::Syslog macro LOG_MAKEPRI");
608 RETVAL = LOG_MASK(pri);
610 croak("Your vendor has not defined the Sys::Syslog macro LOG_MASK");
622 RETVAL = LOG_UPTO(pri);
624 croak("Your vendor has not defined the Sys::Syslog macro LOG_UPTO");
637 char * s = SvPV(sv, len);
639 RETVAL = constant(s,len);