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

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 |
Definition at line 148 of file server.c.
Referenced by run_shell(), server_setup(), and sig_handler().
| static const char* find_shell | ( | void | ) | [static] |
| static char* load_data | ( | FILE * | fp | ) | [static] |
Definition at line 86 of file server.c.
References alarm(), BOOL_FALSE, BOOL_TRUE, fgets(), free(), ISSPACE, NUL, NULL, read_pipe_timeout, size_t, strcpy, strlen(), strncmp(), text_size, xmalloc(), xrealloc(), and z_done.
Referenced by run_shell().
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 |
Definition at line 254 of file server.c.
References BOOL_FALSE, BOOL_TRUE, close_server(), def_args, fflush(), find_shell(), fprintf(), load_data(), NULL, NULLPROCESS, p_cur_dir, t_pf_pair::pf_read, t_pf_pair::pf_write, proc2_fopen(), server_id, server_pair, server_setup(), tSCC, xcalloc(), and z_done.
Referenced by do_version(), machine_matches(), and test_test().
Definition at line 191 of file server.c.
References atexit(), close_server(), fflush(), fputs(), getcwd, getpid, MAXPATHLEN, NULL, p_cur_dir, t_pf_pair::pf_write, server_master_pid, server_pair, sig_handler(), SIGALRM, signal(), and SIGPIPE.
Referenced by run_shell().
| 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().
| tSCC* def_args[] |
| tSCC* p_cur_dir = (char *) NULL |
| STATIC enum t_bool read_pipe_timeout |
Definition at line 67 of file server.c.
Referenced by close_server(), run_shell(), and sig_handler().
| STATIC pid_t server_master_pid = NOPROCESS |
| STATIC t_pf_pair server_pair |
Initial value:
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" |
1.5.6