Lines Matching refs:buf
931 char buf[MAXLINE+1];
986 snprintf(buf, sizeof(buf), "%s: %s",
988 msg = buf;
989 msglen = strlen(buf);
1498 char buf[512];
1506 (void)snprintf(buf,
1507 sizeof buf, "syslogd: %s: %s", type, strerror(errno));
1509 (void)snprintf(buf, sizeof buf, "syslogd: %s", type);
1511 dprintf("%s\n", buf);
1512 logmsg(LOG_SYSLOG|LOG_ERR, buf, LocalHostName, ADDDATE);
1522 char buf[100];
1538 (void)snprintf(buf, sizeof(buf), "exiting on signal %d", signo);
1540 logerror(buf);
1797 char buf[MAXLINE], ebuf[100];
1875 for (bp = buf; *q && !strchr("\t,; ", *q); )
1884 if (*buf == '*') {
1889 for (i = strlen(buf) - 1; i >= 0 && buf[i] == ' '; i--)
1890 buf[i] = '\0';
1892 pri = decode(buf, prioritynames);
1896 "unknown priority name \"%s\"", buf);
1911 for (bp = buf; *p && !strchr("\t,;. ", *p); )
1915 if (*buf == '*') {
1921 i = decode(buf, facilitynames);
1926 buf);
2055 char *p, buf[40];
2060 for (p = buf; *name && p < &buf[sizeof(buf) - 1]; p++, name++) {
2068 if (!strcmp(buf, c->c_name))
2625 char buf[256];
2638 (void)snprintf(buf, sizeof buf,
2641 logerror(buf);