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

Comparing ray/src/common/malloc.c (file contents):
Revision 1.7 by greg, Tue Oct 2 12:00:03 1990 UTC vs.
Revision 1.8 by greg, Wed Oct 3 16:20:38 1990 UTC

# Line 13 | Line 13 | static char SCCSid[] = "$SunId$ LBL";
13   * bmalloc() doesn't keep track of free lists -- it's usually
14   *      just a buffered call to sbrk(2).  However, bmalloc will
15   *      call mscrounge() if sbrk fails.
16 < * mscrounge() returns whatever memory it can find to satisfy the
16 > * mscrounge() returns whatever free memory it can find to satisfy the
17   *      request along with the number of bytes (modified).
18   *
19   *      Greg Ward       Lawrence Berkeley Laboratory
# Line 219 | Line 219 | char   *p;
219   int
220   getpagesize()                   /* use SYSV var structure to get page size */
221   {
222        static int  pagesz = 0;
222          struct var  v;
223  
224 <        if (pagesz == 0) {
225 <                uvar(&v);
227 <                pagesz = 1 << v.v_pageshift;
228 <        }
229 <        return(pagesz);
224 >        uvar(&v);
225 >        return(1 << v.v_pageshift);
226   }
227   #endif
228   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines