nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

strerr_die.c (870B)


      1 #include "substdio.h"
      2 #include "subfd.h"
      3 #include "exit.h"
      4 #include "strerr.h"
      5 
      6 void strerr_warn(x1,x2,x3,x4,x5,x6,se)
      7 char *x1; char *x2; char *x3; char *x4; char *x5; char *x6;
      8 struct 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 
     30 void strerr_die(e,x1,x2,x3,x4,x5,x6,se)
     31 int e;
     32 char *x1; char *x2; char *x3; char *x4; char *x5; char *x6;
     33 struct strerr *se;
     34 {
     35   strerr_warn(x1,x2,x3,x4,x5,x6,se);
     36   _exit(e);
     37 }