s/qmail 4.2.29a
Next generation secure email transport
Loading...
Searching...
No Matches
Data Structures | Functions | Variables
spawn.c File Reference
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "alloc.h"
#include "sig.h"
#include "wait.h"
#include "buffer.h"
#include "byte.h"
#include "str.h"
#include "stralloc.h"
#include "select.h"
#include "exit.h"
#include "fd.h"
#include "open.h"
#include "error.h"
#include "auto_qmail.h"
#include "auto_uids.h"
#include "auto_spawn.h"
Include dependency graph for spawn.c:

Go to the source code of this file.

Data Structures

struct  delivery
 

Functions

int spawn ()
 
void report ()
 
void initialize ()
 
void sigchld ()
 
ssize_t okwrite (int fd, char *buf, int n)
 
void err (char *s)
 
void docmd ()
 
void getcmd ()
 
int main (int argc, char **argv)
 

Variables

int truncreport
 
struct deliveryd
 
int flagwriting = 1
 
int flagreading = 1
 
char outbuf [1024]
 
buffer bo
 
int stage = 0
 
int flagabort = 0
 
int delnum
 
stralloc messid = {0}
 
stralloc sender = {0}
 
stralloc recip = {0}
 
char cmdbuf [1024]
 
char inbuf [128]
 

Function Documentation

◆ docmd()

void docmd ( )

Definition at line 87 of file spawn.c.

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

◆ err()

void err ( char *  s)

Definition at line 77 of file spawn.c.

Here is the caller graph for this function:

◆ getcmd()

void getcmd ( )

Definition at line 153 of file spawn.c.

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

◆ initialize()

void initialize ( )
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 193 of file spawn.c.

Here is the call graph for this function:

◆ okwrite()

ssize_t okwrite ( int  fd,
char *  buf,
int  n 
)

Definition at line 55 of file spawn.c.

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

◆ report()

void report ( )
Here is the caller graph for this function:

◆ sigchld()

void sigchld ( )

Definition at line 38 of file spawn.c.

Here is the caller graph for this function:

◆ spawn()

int spawn ( )
Here is the caller graph for this function:

Variable Documentation

◆ bo

buffer bo

Definition at line 68 of file spawn.c.

◆ cmdbuf

char cmdbuf[1024]

Definition at line 151 of file spawn.c.

◆ d

struct delivery* d

Definition at line 36 of file spawn.c.

◆ delnum

int delnum

Definition at line 72 of file spawn.c.

◆ flagabort

int flagabort = 0

Definition at line 71 of file spawn.c.

◆ flagreading

int flagreading = 1

Definition at line 66 of file spawn.c.

◆ flagwriting

int flagwriting = 1

Definition at line 53 of file spawn.c.

◆ inbuf

char inbuf[128]

Definition at line 191 of file spawn.c.

◆ messid

stralloc messid = {0}

Definition at line 73 of file spawn.c.

◆ outbuf

char outbuf[1024]

Definition at line 67 of file spawn.c.

◆ recip

stralloc recip = {0}

Definition at line 75 of file spawn.c.

◆ sender

stralloc sender = {0}

Definition at line 74 of file spawn.c.

◆ stage

int stage = 0

Definition at line 70 of file spawn.c.

◆ truncreport

int truncreport
extern

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