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

Go to the source code of this file.

Data Structures

struct  delivery
 

Macros

#define BUF_COMMANDS   1024
 
#define BUFSIZE_MINI   128
 

Functions

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

Variables

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

Macro Definition Documentation

◆ BUF_COMMANDS

#define BUF_COMMANDS   1024

Definition at line 23 of file spawn.c.

◆ BUFSIZE_MINI

#define BUFSIZE_MINI   128

Definition at line 24 of file spawn.c.

Function Documentation

◆ docmd()

void docmd ( )

Definition at line 93 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 83 of file spawn.c.

Here is the caller graph for this function:

◆ getcmd()

void getcmd ( )

Definition at line 159 of file spawn.c.

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

◆ initialize()

void initialize ( int  argc,
char **  argv 
)

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

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

◆ main()

int main ( int  argc,
char *const *  argv 
)

Definition at line 199 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 61 of file spawn.c.

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

◆ report()

void report ( buffer *  log,
int  wstat,
char *  s,
int  len 
)

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

Here is the caller graph for this function:

◆ sigchld()

void sigchld ( )

Definition at line 44 of file spawn.c.

Here is the caller graph for this function:

◆ spawn()

int spawn ( int  fdmess,
int  fdout,
const char *  s,
char *  r,
const int  at 
)

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

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

Variable Documentation

◆ bo

buffer bo

Definition at line 74 of file spawn.c.

◆ cmdbuf

char cmdbuf[BUF_COMMANDS]

Definition at line 157 of file spawn.c.

◆ d

struct delivery* d

Definition at line 42 of file spawn.c.

◆ delnum

int delnum

Definition at line 78 of file spawn.c.

◆ flagabort

int flagabort = 0

Definition at line 77 of file spawn.c.

◆ flagreading

int flagreading = 1

Definition at line 72 of file spawn.c.

◆ flagwriting

int flagwriting = 1

Definition at line 59 of file spawn.c.

◆ inbuf

char inbuf[BUFFER_SMALL]

Definition at line 197 of file spawn.c.

◆ messid

stralloc messid = {0}

Definition at line 79 of file spawn.c.

◆ outbuf

char outbuf[BUFSIZE_LINE]

Definition at line 73 of file spawn.c.

◆ recip

stralloc recip = {0}

Definition at line 81 of file spawn.c.

◆ sender

stralloc sender = {0}

Definition at line 80 of file spawn.c.

◆ stage

int stage = 0

Definition at line 76 of file spawn.c.

◆ truncreport

int truncreport
extern

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