#include <sys/types.h>
#include <fcntl.h>
#include <ctype.h>
+#include <string.h>
+#include <stdlib.h>
#if !defined BB_SYSLOGD
while ((c = getc(stdin)) != EOF && i < sizeof(buf)) {
buf[i++] = c;
}
+ buf[i++] = '\0';
message = buf;
} else {
len = 1; /* for the '\0' */
openlog(name, option, (pri | LOG_FACMASK));
syslog(pri, "%s", message);
closelog();
-
return EXIT_SUCCESS;
}