s/qmail 4.2.29a
Next generation secure email transport
Loading...
Searching...
No Matches
Macros | Functions | Variables
qmail-queue.c File Reference
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "sig.h"
#include "exit.h"
#include "open.h"
#include "seek.h"
#include "fmt.h"
#include "alloc.h"
#include "buffer.h"
#include "datetime.h"
#include "now.h"
#include "triggerpull.h"
#include "extra.h"
#include "auto_qmail.h"
#include "auto_uids.h"
#include "date822fmt.h"
#include "fmtqfn.h"
#include "env.h"
#include "wait.h"
#include "scan.h"
Include dependency graph for qmail-queue.c:

Go to the source code of this file.

Macros

#define DEATH   86400 /* 24 hours; _must_ be below q-s's OSSIFIED (36 hours) */
 
#define ADDR   1003
 

Functions

void cleanup ()
 
void die (int e)
 
void die_qhpsi ()
 
void die_write ()
 
void die_read ()
 
void sigalrm ()
 
void sigbug ()
 
void received_setup ()
 
unsigned int pidfmt (char *s, unsigned long seq)
 
char * fnnum (char *dirslash, int flagsplit)
 
void pidopen (void)
 
void qhpsiprog (char *arg)
 
int main ()
 

Variables

char inbuf [2048]
 
struct buffer bi
 
char outbuf [256]
 
struct buffer bo
 
datetime_sec starttime
 
struct datetime dt
 
unsigned long mypid
 
unsigned long uid
 
char * pidfn
 
struct stat pidst
 
unsigned long messnum
 
char * messfn
 
char * todofn
 
char * intdfn
 
int messfd
 
int intdfd
 
int flagmademess = 0
 
int flagmadeintd = 0
 
unsigned int receivedlen
 
char * received
 
char * qhpsi
 
char tmp [FMT_ULONG]
 

Macro Definition Documentation

◆ ADDR

#define ADDR   1003

Definition at line 25 of file qmail-queue.c.

◆ DEATH

#define DEATH   86400 /* 24 hours; _must_ be below q-s's OSSIFIED (36 hours) */

Definition at line 24 of file qmail-queue.c.

Function Documentation

◆ cleanup()

void cleanup ( )

Definition at line 47 of file qmail-queue.c.

Here is the caller graph for this function:

◆ die()

void die ( int  e)

Definition at line 59 of file qmail-queue.c.

Here is the call graph for this function:

◆ die_qhpsi()

void die_qhpsi ( )

Definition at line 60 of file qmail-queue.c.

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

◆ die_read()

void die_read ( void  )

Definition at line 62 of file qmail-queue.c.

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

◆ die_write()

void die_write ( )

Definition at line 61 of file qmail-queue.c.

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

◆ fnnum()

char * fnnum ( char *  dirslash,
int  flagsplit 
)

Definition at line 119 of file qmail-queue.c.

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

◆ main()

int main ( void  )

Definition at line 204 of file qmail-queue.c.

Here is the call graph for this function:

◆ pidfmt()

unsigned int pidfmt ( char *  s,
unsigned long  seq 
)

Definition at line 102 of file qmail-queue.c.

Here is the caller graph for this function:

◆ pidopen()

void pidopen ( void  )

Definition at line 129 of file qmail-queue.c.

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

◆ qhpsiprog()

void qhpsiprog ( char *  arg)

Definition at line 151 of file qmail-queue.c.

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

◆ received_setup()

void received_setup ( )

Definition at line 94 of file qmail-queue.c.

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

◆ sigalrm()

void sigalrm ( )

Definition at line 63 of file qmail-queue.c.

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

◆ sigbug()

void sigbug ( )

Definition at line 64 of file qmail-queue.c.

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

Variable Documentation

◆ bi

struct buffer bi

Definition at line 28 of file qmail-queue.c.

◆ bo

struct buffer bo

Definition at line 30 of file qmail-queue.c.

◆ dt

struct datetime dt

Definition at line 33 of file qmail-queue.c.

◆ flagmadeintd

int flagmadeintd = 0

Definition at line 45 of file qmail-queue.c.

◆ flagmademess

int flagmademess = 0

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

◆ inbuf

char inbuf[2048]

Definition at line 27 of file qmail-queue.c.

◆ intdfd

int intdfd

Definition at line 43 of file qmail-queue.c.

◆ intdfn

char* intdfn

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

◆ messfd

int messfd

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

◆ messfn

char* messfn

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

◆ messnum

unsigned long messnum

Definition at line 38 of file qmail-queue.c.

◆ mypid

unsigned long mypid

Definition at line 34 of file qmail-queue.c.

◆ outbuf

char outbuf[256]

Definition at line 29 of file qmail-queue.c.

◆ pidfn

char* pidfn

Definition at line 36 of file qmail-queue.c.

◆ pidst

struct stat pidst

Definition at line 37 of file qmail-queue.c.

◆ qhpsi

char* qhpsi

Definition at line 149 of file qmail-queue.c.

◆ received

char* received

Definition at line 67 of file qmail-queue.c.

◆ receivedlen

unsigned int receivedlen

Definition at line 66 of file qmail-queue.c.

◆ starttime

datetime_sec starttime

Definition at line 32 of file qmail-queue.c.

◆ tmp

char tmp[FMT_ULONG]

Definition at line 202 of file qmail-queue.c.

◆ todofn

char* todofn

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

◆ uid

unsigned long uid

Definition at line 35 of file qmail-queue.c.