s/qmail 4.3.20
Next generation secure email transport
Loading...
Searching...
No Matches
Macros | Functions | Variables
qmail-qmqpd.c File Reference
#include <unistd.h>
#include "auto_qmail.h"
#include "qmail.h"
#include "received.h"
#include "sig.h"
#include "buffer.h"
#include "exit.h"
#include "now.h"
#include "fmt.h"
#include "env.h"
#include "case.h"
#include "byte.h"
#include "ip.h"
#include "str.h"
Include dependency graph for qmail-qmqpd.c:

Go to the source code of this file.

Macros

#define PORT_QMQP   "628"
 
#define QMTP_SIZE   200000000
 
#define QMTP_TIMEOUT   3600
 

Functions

void resources ()
 
ssize_t safewrite (int fd, char *buf, int len)
 
ssize_t saferead (int fd, char *buf, int len)
 
void getbyte (char *ch)
 
unsigned long getlen ()
 
void getcomma ()
 
void identify ()
 
int getbuf ()
 
int main ()
 

Variables

char inbuf [BUFSIZE_MESS]
 
buffer bi = BUFFER_INIT(saferead,0,inbuf,sizeof(inbuf))
 
char outbuf [BUFSIZE_LINE]
 
buffer bo = BUFFER_INIT(safewrite,1,outbuf,sizeof(outbuf))
 
unsigned long bytesleft = 100
 
struct qmail qq
 
char buf [BUFSIZE_LINE]
 
char strnum [FMT_ULONG]
 
int flagok = 1
 

Macro Definition Documentation

◆ PORT_QMQP

#define PORT_QMQP   "628"

Definition at line 17 of file qmail-qmqpd.c.

◆ QMTP_SIZE

#define QMTP_SIZE   200000000

Definition at line 18 of file qmail-qmqpd.c.

◆ QMTP_TIMEOUT

#define QMTP_TIMEOUT   3600

Definition at line 19 of file qmail-qmqpd.c.

Function Documentation

◆ getbuf()

int getbuf ( )

Definition at line 106 of file qmail-qmqpd.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getbyte()

void getbyte ( char *  ch)

Definition at line 46 of file qmail-qmqpd.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getcomma()

void getcomma ( )

Definition at line 65 of file qmail-qmqpd.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getlen()

unsigned long getlen ( )

Definition at line 52 of file qmail-qmqpd.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ identify()

void identify ( )

Definition at line 74 of file qmail-qmqpd.c.

Here is the caller graph for this function:

◆ main()

int main ( void  )

Definition at line 127 of file qmail-qmqpd.c.

Here is the call graph for this function:

◆ resources()

void resources ( )

Definition at line 21 of file qmail-qmqpd.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ saferead()

ssize_t saferead ( int  fd,
char *  buf,
int  len 
)

Definition at line 31 of file qmail-qmqpd.c.

Here is the call graph for this function:

◆ safewrite()

ssize_t safewrite ( int  fd,
char *  buf,
int  len 
)

Definition at line 23 of file qmail-qmqpd.c.

Here is the call graph for this function:

Variable Documentation

◆ bi

buffer bi = BUFFER_INIT(saferead,0,inbuf,sizeof(inbuf))

Definition at line 40 of file qmail-qmqpd.c.

◆ bo

buffer bo = BUFFER_INIT(safewrite,1,outbuf,sizeof(outbuf))

Definition at line 42 of file qmail-qmqpd.c.

◆ buf

char buf[BUFSIZE_LINE]

Definition at line 103 of file qmail-qmqpd.c.

◆ bytesleft

unsigned long bytesleft = 100

Definition at line 44 of file qmail-qmqpd.c.

◆ flagok

int flagok = 1

Definition at line 125 of file qmail-qmqpd.c.

◆ inbuf

char inbuf[BUFSIZE_MESS]

Definition at line 39 of file qmail-qmqpd.c.

◆ outbuf

char outbuf[BUFSIZE_LINE]

Definition at line 41 of file qmail-qmqpd.c.

◆ qq

struct qmail qq

Definition at line 72 of file qmail-qmqpd.c.

◆ strnum

char strnum[FMT_ULONG]

Definition at line 104 of file qmail-qmqpd.c.