Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions

ven05.c File Reference


Detailed Description

Client RunTime: Virtual Printer (using standard spooler "lp").

Author:
JoergM
See also:

Definition in file ven05.c.

#include "gen00.h"
#include "heo00.h"
#include "heo46.h"
#include "hen50.h"
#include "hen40.h"

Go to the source code of this file.

Defines

#define DEST   "-d"
#define ERRTEXT(v, t)   { eo46CtoP(v,t,MAXERRORTEXT); }
#define LP   "lp"
#define MAX_DR_ANZ   3
#define MAX_PID   8
#define MOD__   "ven05.c:"
#define SPL_NAME   "/tmp/spl"
#define STD_ERR   2
#define STD_IN   0
#define STD_OUT   1

Functions

static void dup_in (tsp00_Bool *notok)
static void dup_in ()
static void dup_stderr (tsp00_Bool *ok)
static void dup_stderr ()
static void dup_stdout (tsp00_Bool *ok)
static void dup_stdout ()
static void init_printer ()
static void newdest ()
static void spoolname (pid_t pid, tsp00_Int4 dr_anz)
static void spoolname ()
void vpoff (tsp00_Bool print)
void vpon (tsp00_PrtName printer, tsp00_Bool *vpok)
void vprint (tsp00_PrtLine line, tsp00_Int2 length, tsp00_VpLinefeeds lfeeds, tsp00_ErrText errtext, tsp00_Bool *vpok)

Variables

struct {
   char   dest [2]
   PRINTERNAMEC   printer
destination
static int fildes [2] = { 0, 0 }
static tsp00_Bool has_printed = 0
static pid_t sql05_apc_pid = (pid_t)0
static tsp00_VFilenamec sql05_lp
static char * sql05_pr_argv [3] = { NULL, NULL, NULL }
static char sql05_pr_cr = 0
static char sql05_pr_ff = 0
static tsp00_VFilenamec sql05_pr_file
static char sql05_pr_lf = 0
static tsp00_Int4 sql05_pr_number = 0
static tsp00_VFilenamec sql05_spl_filename
static int sql05_spool_fd
static tsp00_Bool sql05_vp_initial_printer = (tsp00_Bool)TRUE


Generated by  Doxygen 1.6.0   Back to index