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.3 by schorsch, Mon Jul 14 20:02:29 2003 UTC vs.
Revision 1.5 by greg, Fri Jun 9 15:25:49 2023 UTC

# Line 11 | Line 11 | static const char      RCSid[] = "$Id$";
11  
12  
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 30 | Line 30 | char  *fname, *mode;
30  
31  
32   FILE *
33 < mfopen(fname, mode)             /* open a program metafile */
34 <
35 < char  *fname;
36 < char  *mode;
37 <
33 > mfopen(         /* open a program metafile */
34 > const char  *fname,
35 > const char  *mode
36 > )
37   {
38      char  *mdir, stemp[MAXFNAME];
40 #if  UNIX || MAC || _WIN32
39      char  *getenv();
40  
41      if ((mdir = getenv("MDIR")) == NULL)
44 #endif
42          mdir = MDIR;
43      sprintf(stemp, "%s%s", mdir, fname);
44  
# Line 49 | Line 46 | char  *mode;
46   }
47  
48  
52
53 #ifdef  CPM
54 getpid()                        /* for CP/M, get user number */
55
56 {
57
58 return(getusr());
59 }
60 #endif
61
62
63
64 #ifdef  MAC
65 getpid()                        /* dummy value for MacIntosh */
66
67 {
68
69 return(0);
70 }
71 #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines