10 |
|
|
11 |
|
#include <stdio.h> |
12 |
|
#include <sys/types.h> |
13 |
< |
#include <sys/param.h> |
13 |
> |
#ifdef INCL_SEL_H |
14 |
> |
#include <sys/select.h> |
15 |
> |
#endif |
16 |
|
#include <signal.h> |
17 |
|
#include <fcntl.h> |
18 |
|
#include "netproc.h" |
19 |
+ |
#include "paths.h" |
20 |
|
#include "vfork.h" |
21 |
|
/* select call compatibility stuff */ |
22 |
|
#ifndef FD_SETSIZE |
41 |
|
static PROC *pindex[FD_SETSIZE]; /* process index table */ |
42 |
|
|
43 |
|
static char ourhost[64]; /* this host name */ |
44 |
< |
static char ourdir[MAXPATHLEN]; /* our working directory */ |
44 |
> |
static char ourdir[MAXPATH]; /* our working directory */ |
45 |
|
static char ouruser[32]; /* our user name */ |
46 |
|
static char *ourshell; /* our user's shell */ |
47 |
|
|
67 |
|
if (ps == NULL) |
68 |
|
return(NULL); |
69 |
|
if (!ourhost[0]) { /* initialize */ |
70 |
< |
char dirtmp[MAXPATHLEN]; |
70 |
> |
char dirtmp[MAXPATH]; |
71 |
|
register char *cp; |
72 |
|
register int len; |
73 |
|
|
173 |
|
char *command; |
174 |
|
int (*compf)(); |
175 |
|
{ |
176 |
< |
char udirt[MAXPATHLEN]; |
176 |
> |
char udirt[MAXPATH]; |
177 |
|
char *av[16]; |
178 |
|
int pfd[2], pid; |
179 |
|
register int i; |