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.5 by greg, Fri Jun 9 15:25:49 2023 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 <
16 < char  *fname, *mode;
17 <
14 > efopen(         /* open a file, report errors */
15 > const char  *fname,
16 > const char  *mode
17 > )
18   {
19 < register FILE  *fp;
19 > FILE  *fp;
20   FILE  *fopen();
21  
22   if ((fp = fopen(fname, mode)) == NULL)  {
# Line 32 | Line 30 | char  *fname, *mode;
30  
31  
32   FILE *
33 < mfopen(fname, mode)             /* open a program metafile */
34 <
35 < char  *fname;
36 < char  *mode;
39 <
33 > mfopen(         /* open a program metafile */
34 > const char  *fname,
35 > const char  *mode
36 > )
37   {
38      char  *mdir, stemp[MAXFNAME];
42 #if  UNIX || MAC
39      char  *getenv();
40  
41      if ((mdir = getenv("MDIR")) == NULL)
46 #endif
42          mdir = MDIR;
43      sprintf(stemp, "%s%s", mdir, fname);
44  
# Line 51 | Line 46 | char  *mode;
46   }
47  
48  
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