nightmaremail

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

qmail.h (593B)


      1 #ifndef QMAIL_H
      2 #define QMAIL_H
      3 
      4 #include "substdio.h"
      5 
      6 #include <string.h>
      7 
      8 struct qmail {
      9   int flagerr;
     10   unsigned long pid;
     11   int fdm;
     12   int fde;
     13   int fderr;
     14   substdio ss;
     15   char buf[1024];
     16 } ;
     17 
     18 extern int qmail_open();
     19 extern void qmail_put();
     20 #define qmail_puts(qq,s) qmail_put(qq,s,strlen(s))
     21 extern void qmail_from();
     22 extern void qmail_to();
     23 extern void qmail_fail();
     24 extern char *qmail_close();
     25 extern unsigned long qmail_qp();
     26 
     27 #define GEN_QMAILPUT_WRITE(qq) \
     28 ssize_t qmail_put_write(int fd, const void *buf, size_t len) \
     29 { \
     30   qmail_put(qq,buf,len); \
     31   return len; \
     32 }
     33 
     34 #endif