16char stamp[FMT_ULONG + FMT_ULONG + 3];
22 gettimeofday(&tv,(
struct timezone *) 0);
24 s += fmt_ulong(s,(
unsigned long) tv.tv_sec);
26 s += fmt_uint0(s,(
unsigned int) tv.tv_usec,6);
39 if (str_start(
buf,
"warning:"))
priority = LOG_WARNING;
48int main(
int argc,
char *
const *argv)
54 unsigned long facility;
55 scan_ulong(argv[2],&facility);
56 openlog(argv[1],0,facility << 3);
59 openlog(argv[1],0,LOG_MAIL);
61 openlog(
"splogger",0,LOG_MAIL);
64 if (buffer_get(buffer_0,&ch,1) < 1)
_exit(0);
67 if ((ch < 32) || (ch > 126)) ch =
'?';
char stamp[FMT_ULONG+FMT_ULONG+3]