ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/netproc.c
(Generate patch)

Comparing ray/src/util/netproc.c (file contents):
Revision 2.4 by greg, Mon Mar 4 09:22:50 1996 UTC vs.
Revision 2.8 by gregl, Tue Oct 28 14:01:39 1997 UTC

# Line 9 | Line 9 | static char SCCSid[] = "$SunId$ LBL";
9   */
10  
11   #include <stdio.h>
12 #include <sys/types.h>
13 #include <sys/param.h>
12   #include <signal.h>
13   #include <fcntl.h>
14 + #include "selcall.h"
15   #include "netproc.h"
16 + #include "paths.h"
17   #include "vfork.h"
18                                        /* select call compatibility stuff */
19 #ifndef FD_SETSIZE
20 #include <sys/param.h>
21 #define FD_SETSIZE      NOFILE          /* maximum # select file descriptors */
22 #endif
23 #ifndef FD_SET
24 #ifndef NFDBITS
25 #define NFDBITS         (8*sizeof(int)) /* number of bits per fd_mask */
26 #endif
27 #define FD_SET(n, p)    ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))
28 #define FD_CLR(n, p)    ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
29 #define FD_ISSET(n, p)  ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
30 #ifndef BSD
31 #define bzero(d,n)      (void)memset(d,0,n)
32 #endif
33 #define FD_ZERO(p)      bzero((char *)(p), sizeof(*(p)))
34 #endif
18  
19   PSERVER *pslist = NULL;         /* global process server list */
20  
21   static PROC     *pindex[FD_SETSIZE];    /* process index table */
22  
23   static char     ourhost[64];    /* this host name */
24 < static char     ourdir[MAXPATHLEN];     /* our working directory */
24 > static char     ourdir[MAXPATH];        /* our working directory */
25   static char     ouruser[32];    /* our user name */
26   static char     *ourshell;      /* our user's shell */
27  
# Line 64 | Line 47 | int    np;
47          if (ps == NULL)
48                  return(NULL);
49          if (!ourhost[0]) {              /* initialize */
50 <                char    dirtmp[MAXPATHLEN];
50 >                char    dirtmp[MAXPATH];
51                  register char   *cp;
52                  register int    len;
53  
# Line 170 | Line 153 | register PSERVER       *ps;
153   char    *command;
154   int     (*compf)();
155   {
156 <        char    udirt[MAXPATHLEN];
156 >        char    udirt[MAXPATH];
157          char    *av[16];
158          int     pfd[2], pid;
159          register int    i;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines