--- ray/src/util/netproc.c 1996/03/04 09:22:50 2.4 +++ ray/src/util/netproc.c 1997/10/28 14:01:39 2.8 @@ -9,36 +9,19 @@ static char SCCSid[] = "$SunId$ LBL"; */ #include -#include -#include #include #include +#include "selcall.h" #include "netproc.h" +#include "paths.h" #include "vfork.h" - /* select call compatibility stuff */ -#ifndef FD_SETSIZE -#include -#define FD_SETSIZE NOFILE /* maximum # select file descriptors */ -#endif -#ifndef FD_SET -#ifndef NFDBITS -#define NFDBITS (8*sizeof(int)) /* number of bits per fd_mask */ -#endif -#define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS))) -#define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS))) -#define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS))) -#ifndef BSD -#define bzero(d,n) (void)memset(d,0,n) -#endif -#define FD_ZERO(p) bzero((char *)(p), sizeof(*(p))) -#endif PSERVER *pslist = NULL; /* global process server list */ static PROC *pindex[FD_SETSIZE]; /* process index table */ static char ourhost[64]; /* this host name */ -static char ourdir[MAXPATHLEN]; /* our working directory */ +static char ourdir[MAXPATH]; /* our working directory */ static char ouruser[32]; /* our user name */ static char *ourshell; /* our user's shell */ @@ -64,7 +47,7 @@ int np; if (ps == NULL) return(NULL); if (!ourhost[0]) { /* initialize */ - char dirtmp[MAXPATHLEN]; + char dirtmp[MAXPATH]; register char *cp; register int len; @@ -170,7 +153,7 @@ register PSERVER *ps; char *command; int (*compf)(); { - char udirt[MAXPATHLEN]; + char udirt[MAXPATH]; char *av[16]; int pfd[2], pid; register int i;