20 |
|
#include "netproc.h" |
21 |
|
#include "paths.h" |
22 |
|
|
23 |
– |
PSERVER* addpserver(char*, char*, char*, int); |
24 |
– |
void delpserver(); |
25 |
– |
int startjob(PSERVER*, char*, int(*)()); |
26 |
– |
int wait4job(PSERVER*, int); |
27 |
– |
|
28 |
– |
//static fd_set errdesc; |
23 |
|
static int maxfd; |
24 |
|
static char ourdir[PATH_MAX]; |
25 |
|
static char ourhost[64]; |
27 |
|
static char ouruser[32]; |
28 |
|
PSERVER *pslist = NULL; |
29 |
|
|
30 |
< |
PSERVER* addpserver(char* host, char* dir, char* usr, int np) { |
30 |
> |
PSERVER* |
31 |
> |
addpserver( |
32 |
> |
char* host, |
33 |
> |
char* dir, |
34 |
> |
char* usr, |
35 |
> |
int np |
36 |
> |
) |
37 |
> |
{ |
38 |
|
PSERVER* ps; |
39 |
|
if (np < 1) |
40 |
|
return(NULL); |
112 |
|
return &ps; |
113 |
|
} |
114 |
|
|
114 |
– |
int |
115 |
– |
kill(pid_t pid, int sig) |
116 |
– |
{ |
117 |
– |
return 0; |
118 |
– |
} |
115 |
|
|
116 |
< |
int startjob(PSERVER* pPS, char* command, int (*compf)()) { |
116 |
> |
int startjob( |
117 |
> |
PSERVER* pPS, |
118 |
> |
char* command, |
119 |
> |
pscompfunc *compf |
120 |
> |
) |
121 |
> |
{ |
122 |
|
return 0; |
123 |
|
} |
124 |
|
|