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

Comparing ray/src/common/getpagesize.c (file contents):
Revision 2.2 by greg, Mon Nov 25 11:24:41 1991 UTC vs.
Revision 2.3 by greg, Wed Oct 20 11:44:30 1993 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1991 Regents of the University of California */
1 > /* Copyright (c) 1993 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 32 | Line 32 | return(NBPG_PA83);     /* This is supposed to be ok for PA
32                                  I don't know about 1.1 (i.e. Snakes) */
33   }
34  
35 < #else                           /* Unknown version of UNIX */
35 > #else
36 > #if defined(sparc)
37  
38 + #include <unistd.h>
39 + int getpagesize()
40 + {
41 +        return (int)sysconf(_SC_PAGESIZE);
42 + }
43 + #else                           /* Unknown version of UNIX */
44   #ifndef PAGESIZE
45   #define PAGESIZE        8192            /* Guess on the high side */
46   #endif
# Line 43 | Line 50 | getpagesize()
50          return(PAGESIZE);
51   }
52  
53 + #endif
54   #endif
55   #endif
56  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines