chiark / gitweb /
Import ezmlm 0.53
[ezmlm] / strerr_die.c
CommitLineData
5b62e993
MW
1#include "substdio.h"
2#include "subfd.h"
3#include "exit.h"
4#include "strerr.h"
5
6void strerr_warn(x1,x2,x3,x4,x5,x6,se)
7char *x1; char *x2; char *x3; char *x4; char *x5; char *x6;
8struct strerr *se;
9{
10 strerr_sysinit();
11
12 if (x1) substdio_puts(subfderr,x1);
13 if (x2) substdio_puts(subfderr,x2);
14 if (x3) substdio_puts(subfderr,x3);
15 if (x4) substdio_puts(subfderr,x4);
16 if (x5) substdio_puts(subfderr,x5);
17 if (x6) substdio_puts(subfderr,x6);
18
19 while(se) {
20 if (se->x) substdio_puts(subfderr,se->x);
21 if (se->y) substdio_puts(subfderr,se->y);
22 if (se->z) substdio_puts(subfderr,se->z);
23 se = se->who;
24 }
25
26 substdio_puts(subfderr,"\n");
27 substdio_flush(subfderr);
28}
29
30void strerr_die(e,x1,x2,x3,x4,x5,x6,se)
31int e;
32char *x1; char *x2; char *x3; char *x4; char *x5; char *x6;
33struct strerr *se;
34{
35 strerr_warn(x1,x2,x3,x4,x5,x6,se);
36 _exit(e);
37}