msgsendstdout((MSGFACILITY *)NULL, MT_NERROR, flags, mbuf);
msgsendstdout(NULL, MT_NERROR, flags, mbuf);
static void _message(flags, msgbuf)	int flags;	char *msgbuf;{	register int i, x;	register char *cp;	static char mbuf[2048];	if (msgbuf && *msgbuf) {		/*		 * Ensure no stray newlines are present		 */		if (cp = strchr(msgbuf, '\n'))			*cp = CNULL;		checkhostname();		if (strncmp(currenthost, msgbuf, strlen(currenthost)) == 0)			(void) strcpy(mbuf, msgbuf);		else			(void) sprintf(mbuf, "%s: %s", currenthost, msgbuf);	} else		(void) strcpy(mbuf, "");	/*	 * Special case for messages that only get	 * logged to the system log facility	 */	if (IS_ON(flags, MT_SYSLOG)) {		msgsendsyslog((MSGFACILITY *)NULL, MT_SYSLOG, flags, mbuf);		return;	}	/*	 * Special cases	 */	if (isserver && IS_ON(flags, MT_NOTICE)) {		msgsendstdout((MSGFACILITY *)NULL, MT_NOTICE, flags, mbuf);		return;	} else if (isserver && IS_ON(flags, MT_REMOTE))		msgsendstdout((MSGFACILITY *)NULL, MT_REMOTE, flags, mbuf);	else if (isserver && IS_ON(flags, MT_NERROR))		msgsendstdout((MSGFACILITY *)NULL, MT_NERROR, flags, mbuf);	else if (isserver && IS_ON(flags, MT_FERROR))		msgsendstdout((MSGFACILITY *)NULL, MT_FERROR, flags, mbuf);	/*	 * For each Message Facility, check each Message Type to see	 * if the bits in "flags" are set.  If so, call the appropriate	 * Message Facility to dispatch the message.	 */	for (i = 0; msgfacility[i].mf_name; ++i)		for (x = 0; msgtypes[x].mt_name; ++x)			/* 			 * XXX MT_ALL should not be used directly 			 */			if (msgtypes[x].mt_type != MT_ALL &&			    IS_ON(flags, msgtypes[x].mt_type) &&			    IS_ON(msgfacility[i].mf_msgtypes,				  msgtypes[x].mt_type))				(*msgfacility[i].mf_sendfunc)(&msgfacility[i],							   msgtypes[x].mt_type,							      flags,							      mbuf);}