osprey/kgccfe/gnu/fixinc/server.c File Reference

#include "auto-host.h"
#include "ansidecl.h"
#include "system.h"
#include <signal.h>
#include "server.h"

Include dependency graph for server.c:

Go to the source code of this file.

Defines

#define volatile

Functions/Subroutines

static char *load_data PARAMS ((FILE *))
static char * load_data (FILE *fp)
void close_server ()
static void sig_handler PARAMS ((int))
static void sig_handler (signo)
static void server_setup PARAMS ((void))
static void server_setup ()
static const char * find_shell ()
char * run_shell (char *pz_cmd) const

Variables

STATIC enum t_bool read_pipe_timeout
STATIC pid_t server_master_pid = NOPROCESS
tSCC * def_args []
STATIC t_pf_pair server_pair
STATIC pid_t server_id = NULLPROCESS
tSCC z_done [] = "ShElL-OuTpUt-HaS-bEeN-cOmPlEtEd"
tSCC * p_cur_dir = (char *) NULL


Define Documentation

#define volatile

Definition at line 57 of file server.c.


Function Documentation

void close_server ( void   ) 

Definition at line 148 of file server.c.

Referenced by run_shell(), server_setup(), and sig_handler().

static const char* find_shell ( void   )  [static]

Definition at line 224 of file server.c.

References getenv().

Referenced by run_shell().

static char* load_data ( FILE fp  )  [static]

static void server_setup PARAMS ( (void  )  [static, read]

Definition at line 77 of file cplus-dem.c.

static void sig_handler PARAMS ( (int)   )  [static]

static char* load_data PARAMS ( (FILE *)   )  [static]

char* run_shell ( char *  pz_cmd  )  const

static void server_setup ( void   )  [static]

static void sig_handler ( signo   )  [static]

Definition at line 170 of file server.c.

References BOOL_TRUE, close_server(), fprintf(), read_pipe_timeout, server_id, and SIGPIPE.

Referenced by server_setup().


Variable Documentation

tSCC* def_args[]

Initial value:

{ (char *) NULL, (char *) NULL }

Definition at line 63 of file server.c.

tSCC* p_cur_dir = (char *) NULL

Definition at line 74 of file server.c.

Referenced by run_shell(), and server_setup().

Definition at line 60 of file server.c.

Referenced by load_data(), and sig_handler().

STATIC pid_t server_id = NULLPROCESS

Definition at line 67 of file server.c.

Referenced by close_server(), run_shell(), and sig_handler().

STATIC pid_t server_master_pid = NOPROCESS

Definition at line 61 of file server.c.

Referenced by close_server(), and server_setup().

Initial value:

{ (FILE *) NULL, (FILE *) NULL }

Definition at line 65 of file server.c.

Referenced by close_server(), run_shell(), and server_setup().

tSCC z_done[] = "ShElL-OuTpUt-HaS-bEeN-cOmPlEtEd"

Definition at line 73 of file server.c.

Referenced by load_data(), and run_shell().


Generated on Wed Apr 8 15:50:21 2009 for Open64 by  doxygen 1.5.6