# include <log.h>
# endif LOG
-static char SccsId[] = "@(#)err.c 1.2 %G%";
+static char SccsId[] = "@(#)err.c 2.1 %G%";
/*
-** ERR -- Print error message.
+** SYSERR -- Print error message.
**
** Prints an error message via printf to the diagnostic
** output. If LOG is defined, it logs it also.
** -1 always
**
** Side Effects:
-** Sets Error.
-** Sets ExitStat.
-**
-** Requires:
-** sprintf (sys)
-** printf (sys)
-** logmsg
-**
-** History:
-** 12/29/79 -- written.
+** increments Errors.
+** sets ExitStat.
*/
/*VARARGS1*/
sprintf(p, ": error %d", errno);
}
printf("delivermail: %s\n", errbuf);
- Error++;
+ Errors++;
/* determine exit status if not already set */
if (ExitStat == EX_OK)
if (errno == 0)
ExitStat = EX_SOFTWARE;
else
- ExitStat = EX_UNAVAIL;
+ ExitStat = EX_OSERR;
}
# ifdef LOG
** -1
**
** Side Effects:
-** sets Error.
-**
-** Requires:
-** printf (sys)
-**
-** History:
-** 1/1/80 -- written.
+** increments Errors.
*/
/*VARARGS1*/
if (SuprErrs)
return;
- Error++;
+ Errors++;
if (To != NULL)
printf("%s... ", To);
printf(fmt, a, b, c, d, e);