/[gcl]/gcl/h/linux.h
ViewVC logotype

Diff of /gcl/h/linux.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by camm, Tue Jun 14 17:27:38 2005 UTC revision 1.15 by camm, Thu Oct 6 20:30:08 2005 UTC
# Line 53  do {static struct sigaction action; \ Line 53  do {static struct sigaction action; \
53                                extern char etext; \                                extern char etext; \
54                                 real_maxpage = MAXPAGE ;\                                 real_maxpage = MAXPAGE ;\
55          getrlimit(RLIMIT_DATA, &data_rlimit); \          getrlimit(RLIMIT_DATA, &data_rlimit); \
56          real_maxpage = ((unsigned int)&etext/PAGESIZE \          real_maxpage = ((unsigned long)&etext/PAGESIZE \
57                          + data_rlimit.rlim_cur/PAGESIZE - ELF_TEXT_BASE/PAGESIZE); \                          + data_rlimit.rlim_cur/PAGESIZE - ELF_TEXT_BASE/PAGESIZE); \
58          if (real_maxpage > MAXPAGE) \          if (real_maxpage > MAXPAGE) \
59                  real_maxpage = MAXPAGE ; } while(0)                  real_maxpage = MAXPAGE ; } while(0)

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26