ucspi-tcp6 1.13.02
ucspi-tcp6
Loading...
Searching...
No Matches
Macros | Functions | Variables
recordio.c File Reference
#include <unistd.h>
#include "sig.h"
#include "buffer.h"
#include "logmsg.h"
#include "str.h"
#include "byte.h"
#include "exit.h"
#include "fd.h"
#include "fmt.h"
#include "iopause.h"
#include "pathexec.h"
Include dependency graph for recordio.c:

Go to the source code of this file.

Macros

#define WHO   "recordio"
 

Functions

void record (char *buf, int len, char *direction)
 
void doit (int fdleft, int fdright)
 
int main (int argc, char *const *argv, char *const *envp)
 

Variables

char pid [FMT_ULONG]
 
char recordbuf [512]
 
buffer ssrecord = BUFFER_INIT(write,2,recordbuf,sizeof(recordbuf))
 
int leftstatus = 0
 
char leftbuf [256]
 
int leftlen
 
int leftpos
 
int rightstatus = 0
 
char rightbuf [256]
 
int rightlen
 
int rightpos
 

Macro Definition Documentation

◆ WHO

#define WHO   "recordio"

Definition at line 13 of file recordio.c.

Function Documentation

◆ doit()

void doit ( int  fdleft,
int  fdright 
)

Definition at line 54 of file recordio.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,
char *const *  envp 
)

Definition at line 145 of file recordio.c.

Here is the call graph for this function:

◆ record()

void record ( char *  buf,
int  len,
char *  direction 
)

Definition at line 20 of file recordio.c.

Here is the caller graph for this function:

Variable Documentation

◆ leftbuf

char leftbuf[256]

Definition at line 45 of file recordio.c.

◆ leftlen

int leftlen

Definition at line 46 of file recordio.c.

◆ leftpos

int leftpos

Definition at line 47 of file recordio.c.

◆ leftstatus

int leftstatus = 0

Definition at line 44 of file recordio.c.

◆ pid

char pid[FMT_ULONG]

Definition at line 15 of file recordio.c.

◆ recordbuf

char recordbuf[512]

Definition at line 17 of file recordio.c.

◆ rightbuf

char rightbuf[256]

Definition at line 50 of file recordio.c.

◆ rightlen

int rightlen

Definition at line 51 of file recordio.c.

◆ rightpos

int rightpos

Definition at line 52 of file recordio.c.

◆ rightstatus

int rightstatus = 0

Definition at line 49 of file recordio.c.

◆ ssrecord

buffer ssrecord = BUFFER_INIT(write,2,recordbuf,sizeof(recordbuf))

Definition at line 18 of file recordio.c.