Lines Matching refs:msgbuf

270 	static char ebuf[BUFSIZ], msgbuf[MSGBUFSIZ];  in msgparseopts()  local
279 (void) strlcpy(msgbuf, msgstr, sizeof(msgbuf)); in msgparseopts()
284 for (optstr = strtok(msgbuf, ":"); optstr; in msgparseopts()
325 msgsendstdout(struct msgfacility *msgfac, int mtype, int flags, char *msgbuf) in msgsendstdout() argument
343 (void) sendcmd(cmd, "%s", msgbuf); in msgsendstdout()
348 if (msgbuf && *msgbuf) { in msgsendstdout()
349 (void) fprintf(stderr, "%s\n", msgbuf); in msgsendstdout()
366 if (msgbuf && *msgbuf) { in msgsendstdout()
367 (void) printf("%s\n", msgbuf); in msgsendstdout()
379 msgsendsyslog(struct msgfacility *msgfac, int mtype, int flags, char *msgbuf) in msgsendsyslog() argument
383 if (!msgbuf || !*msgbuf) in msgsendsyslog()
413 syslog(syslvl, "%s", msgbuf); in msgsendsyslog()
420 msgsendfile(struct msgfacility *msgfac, int mtype, int flags, char *msgbuf) in msgsendfile() argument
425 if (!msgbuf || !*msgbuf) in msgsendfile()
428 (void) fprintf(msgfac->mf_fptr, "%s\n", msgbuf); in msgsendfile()
436 msgsendnotify(struct msgfacility *msgfac, int mtype, int flags, char *msgbuf) in msgsendnotify() argument
443 if (!msgbuf || !*msgbuf) in msgsendnotify()
472 (void) fprintf(msgfac->mf_fptr, "%s\n", msgbuf); in msgsendnotify()
499 _message(int flags, char *msgbuf) in _message() argument
504 if (msgbuf && *msgbuf) { in _message()
508 msgbuf[strcspn(msgbuf, "\n")] = CNULL; in _message()
511 if (strncmp(currenthost, msgbuf, strlen(currenthost)) == 0) in _message()
512 (void) strlcpy(mbuf, msgbuf, sizeof(mbuf)); in _message()
515 "%s: %s", currenthost, msgbuf); in _message()