ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/Development/ray/src/gen/ezxml.c
(Generate patch)

Comparing ray/src/gen/ezxml.c (file contents):
Revision 2.1 by greg, Fri Sep 21 05:53:21 2007 UTC vs.
Revision 2.2 by greg, Wed Dec 12 05:09:58 2007 UTC

# Line 638 | Line 638 | ezxml_t ezxml_parse_fd(int fd)
638  
639   #ifndef EZXML_NOMMAP
640      l = (st.st_size + sysconf(_SC_PAGESIZE) - 1) & ~(sysconf(_SC_PAGESIZE) -1);
641 <    if ((m = mmap(NULL, l, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0)) !=
642 <        MAP_FAILED) {
641 >    if ((m = mmap(NULL, l, PROT_READ, MAP_PRIVATE, fd, 0)) !=  MAP_FAILED) {
642          madvise(m, l, MADV_SEQUENTIAL); // optimize for sequential access
643          root = (ezxml_root_t)ezxml_parse_str(m, st.st_size);
644          madvise(m, root->len = l, MADV_NORMAL); // put it back to normal

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines