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.1 by greg, Sat Feb 22 02:07:26 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 <
8 > #include "rtprocess.h" /* getpid() */
9 > #include "rterror.h"
10   #include  "meta.h"
11  
12  
12
13
14
13   FILE *
14   efopen(fname, mode)             /* open a file, report errors */
15  
# Line 39 | Line 37 | char  *mode;
37  
38   {
39      char  *mdir, stemp[MAXFNAME];
42 #if  UNIX || MAC
40      char  *getenv();
41  
42      if ((mdir = getenv("MDIR")) == NULL)
46 #endif
43          mdir = MDIR;
44      sprintf(stemp, "%s%s", mdir, fname);
45  
# Line 51 | Line 47 | char  *mode;
47   }
48  
49  
54
55 #ifdef  CPM
56 getpid()                        /* for CP/M, get user number */
57
58 {
59
60 return(getusr());
61 }
62 #endif
63
64
65
66 #ifdef  MAC
67 getpid()                        /* dummy value for MacIntosh */
68
69 {
70
71 return(0);
72 }
73 #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines