/[pcre]/code/trunk/sljit/sljitUtils.c
ViewVC logotype

Diff of /code/trunk/sljit/sljitUtils.c

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

revision 1182 by zherczeg, Sun Oct 28 05:22:32 2012 UTC revision 1183 by zherczeg, Sun Oct 28 05:50:36 2012 UTC
# Line 251  SLJIT_API_FUNC_ATTRIBUTE struct sljit_st Line 251  SLJIT_API_FUNC_ATTRIBUTE struct sljit_st
251          }          }
252  #else  #else
253  #ifdef MAP_ANON  #ifdef MAP_ANON
254          base.ptr = mmap(0, max_limit, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);          base.ptr = mmap(NULL, max_limit, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);
255  #else  #else
256          if (dev_zero < 0) {          if (dev_zero < 0) {
257                  if (open_dev_zero()) {                  if (open_dev_zero()) {
# Line 259  SLJIT_API_FUNC_ATTRIBUTE struct sljit_st Line 259  SLJIT_API_FUNC_ATTRIBUTE struct sljit_st
259                          return NULL;                          return NULL;
260                  }                  }
261          }          }
262          base.ptr = mmap(0, max_limit, PROT_READ | PROT_WRITE, MAP_PRIVATE, dev_zero, 0);          base.ptr = mmap(NULL, max_limit, PROT_READ | PROT_WRITE, MAP_PRIVATE, dev_zero, 0);
263  #endif  #endif
264          if (base.ptr == MAP_FAILED) {          if (base.ptr == MAP_FAILED) {
265                  SLJIT_FREE(stack);                  SLJIT_FREE(stack);

Legend:
Removed from v.1182  
changed lines
  Added in v.1183

  ViewVC Help
Powered by ViewVC 1.1.5