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

Comparing ray/src/meta/syscalls.c (file contents):
Revision 1.2 by schorsch, Mon Jun 30 14:59:12 2003 UTC vs.
Revision 1.4 by schorsch, Fri Aug 1 14:14:24 2003 UTC

# Line 5 | Line 5 | static const char      RCSid[] = "$Id$";
5   *  System calls for meta-file routines
6   */
7  
8 < #ifdef _WIN32
9 <  #include <process.h> /* getpid() */
10 < #endif
11 <
8 > #include "rtprocess.h" /* getpid() */
9 > #include "rterror.h"
10   #include  "meta.h"
11  
12  
15
16
17
13   FILE *
14   efopen(fname, mode)             /* open a file, report errors */
15  
# Line 42 | Line 37 | char  *mode;
37  
38   {
39      char  *mdir, stemp[MAXFNAME];
45 #if  UNIX || MAC || _WIN32
40      char  *getenv();
41  
42      if ((mdir = getenv("MDIR")) == NULL)
49 #endif
43          mdir = MDIR;
44      sprintf(stemp, "%s%s", mdir, fname);
45  
# Line 54 | Line 47 | char  *mode;
47   }
48  
49  
57
58 #ifdef  CPM
59 getpid()                        /* for CP/M, get user number */
60
61 {
62
63 return(getusr());
64 }
65 #endif
66
67
68
69 #ifdef  MAC
70 getpid()                        /* dummy value for MacIntosh */
71
72 {
73
74 return(0);
75 }
76 #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines