remake  4.3+dbg-1.5
Data Structures | Macros | Typedefs | Functions | Variables
output.h File Reference

Go to the source code of this file.

Data Structures

struct  output
 

Macros

#define FD_STDIN   (fileno (stdin))
 
#define FD_STDOUT   (fileno (stdout))
 
#define FD_STDERR   (fileno (stderr))
 
#define OUTPUT_SET(_new)   do{ output_context = (_new)->syncout ? (_new) : NULL; }while(0)
 
#define OUTPUT_UNSET()   do{ output_context = NULL; }while(0)
 
#define OUTPUT_TRACED()   do{ stdio_traced = 1; }while(0)
 
#define OUTPUT_IS_TRACED()   (!!stdio_traced)
 
#define RECORD_SYNC_MUTEX(m)   (void)(m)
 

Typedefs

typedef int sync_handle_t
 

Functions

int output_write (int fd, const void *buffer, size_t len)
 
void output_init (struct output *out)
 
void output_close (struct output *out)
 
void output_start (void)
 
void outputs (int is_err, const char *msg)
 
int output_tmpfd (void)
 
void output_dump (struct output *out)
 

Variables

struct outputoutput_context
 
unsigned int stdio_traced
 

Macro Definition Documentation

◆ FD_STDERR

#define FD_STDERR   (fileno (stderr))

◆ FD_STDIN

#define FD_STDIN   (fileno (stdin))

◆ FD_STDOUT

#define FD_STDOUT   (fileno (stdout))

◆ OUTPUT_IS_TRACED

#define OUTPUT_IS_TRACED ( )    (!!stdio_traced)

◆ OUTPUT_SET

#define OUTPUT_SET (   _new)    do{ output_context = (_new)->syncout ? (_new) : NULL; }while(0)

◆ OUTPUT_TRACED

#define OUTPUT_TRACED ( )    do{ stdio_traced = 1; }while(0)

◆ OUTPUT_UNSET

#define OUTPUT_UNSET ( )    do{ output_context = NULL; }while(0)

◆ RECORD_SYNC_MUTEX

#define RECORD_SYNC_MUTEX (   m)    (void)(m)

Typedef Documentation

◆ sync_handle_t

typedef int sync_handle_t

Function Documentation

◆ output_close()

void output_close ( struct output out)

◆ output_dump()

void output_dump ( struct output out)

◆ output_init()

void output_init ( struct output out)

◆ output_start()

void output_start ( void  )

◆ output_tmpfd()

int output_tmpfd ( void  )

◆ output_write()

int output_write ( int  fd,
const void *  buffer,
size_t  len 
)

◆ outputs()

void outputs ( int  is_err,
const char *  msg 
)

Variable Documentation

◆ output_context

struct output* output_context

◆ stdio_traced

unsigned int stdio_traced