--- ray/src/util/win_netproc.c 2003/10/27 10:32:06 2.1 +++ ray/src/util/win_netproc.c 2016/03/06 01:13:18 2.5 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: win_netproc.c,v 2.1 2003/10/27 10:32:06 schorsch Exp $"; +static const char RCSid[] = "$Id: win_netproc.c,v 2.5 2016/03/06 01:13:18 schorsch Exp $"; #endif /* @@ -20,12 +20,6 @@ static const char RCSid[] = "$Id: win_netproc.c,v 2.1 #include "netproc.h" #include "paths.h" -PSERVER* addpserver(char*, char*, char*, int); -void delpserver(); -int startjob(PSERVER*, char*, int(*)()); -int wait4job(PSERVER*, int); - -//static fd_set errdesc; static int maxfd; static char ourdir[PATH_MAX]; static char ourhost[64]; @@ -33,7 +27,14 @@ static char *ourshell; static char ouruser[32]; PSERVER *pslist = NULL; -PSERVER* addpserver(char* host, char* dir, char* usr, int np) { +PSERVER* +addpserver( + char* host, + char* dir, + char* usr, + int np +) +{ PSERVER* ps; if (np < 1) return(NULL); @@ -48,7 +49,7 @@ PSERVER* addpserver(char* host, char* dir, char* usr, register int len; strcpy(ourhost, myhostname()); - getcwd(dirtmp, sizeof(dirtmp)); + _getcwd(dirtmp, sizeof(dirtmp)); if ((cp = getenv("HOME")) != NULL) { if (!strcmp(cp, dirtmp)) ourdir[0] = '\0'; @@ -111,13 +112,13 @@ PSERVER* findjob(int *pnp) return &ps; } -int -kill(pid_t pid, int sig) -{ - return 0; -} -int startjob(PSERVER* pPS, char* command, int (*compf)()) { +int startjob( + PSERVER* pPS, + char* command, + pscompfunc *compf +) +{ return 0; }