"Fossies" - the Fresh Open Source Software Archive

Member "tcpproxy-2.0.0-beta15/procinfo.h" (28 Oct 2005, 1030 Bytes) of package /linux/privat/old/tcpproxy-2.0.0-beta15.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "procinfo.h" see the Fossies "Dox" file reference documentation.

    1 
    2 #ifndef _PROCINFO_INCLUDED
    3 #define _PROCINFO_INCLUDED
    4 
    5 
    6 #include <stdarg.h>
    7 
    8 
    9 
   10 
   11 typedef struct _procinfo {
   12     int     mainpid;
   13     char    pidfile[200];
   14 
   15     char    statfile[200];
   16     FILE    *statfp;
   17 
   18     char    sessionfile[200];
   19     FILE    *sessionfp;
   20     int     havemessages;
   21 
   22     int     errorcode, errormode;
   23     char    errorhandler[200];
   24     unsigned long errortypes;
   25     } procinfo_t;
   26 
   27 
   28 extern char statdir[200];
   29 extern char sessiondir[200];
   30 
   31 extern procinfo_t pi;
   32 
   33 
   34 extern int init_procinfo(char *vp);
   35 extern FILE *getstatfp(void);
   36 
   37 extern int geterrcode(char *name);
   38 extern int set_sessionmode(char *word, char *filename, int lineno);
   39 
   40 char *set_exithandler(char *handler);
   41 extern int set_exitcodes(int mask);
   42 extern int run_errorhandler(int error);
   43 
   44 extern int printerror(int rc, char *type, char *format, ...);
   45 
   46 char *setpidfile(char *pidfile);
   47 
   48 extern int cleanenv(char **envp);
   49 extern int setvar(char *prefix, char *var, char *value);
   50 extern int setnumvar(char *prefix, char *var, unsigned long value);
   51 
   52 void exithandler(void);
   53 
   54 #endif
   55