English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Diff of /branches/common-nfo/tools/nfotiser/parser.c

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

revision 3573 by tg, Mon Aug 13 14:55:59 2007 UTC revision 3574 by tg, Wed Sep 12 12:59:14 2007 UTC
# Line 115  nfo_parse(int fd, const struct parser_ke Line 115  nfo_parse(int fd, const struct parser_ke
115          /* slurp whole file into mapped memory */          /* slurp whole file into mapped memory */
116          len = sb.st_size;          len = sb.st_size;
117          D(2, "trying to mmap %zu bytes...", len);          D(2, "trying to mmap %zu bytes...", len);
118          if ((cp = mmap(NULL, len, PROT_READ, MAP_FILE, fd, 0)) == MAP_FAILED)          if ((cp = mmap(NULL, len, PROT_READ, MAP_FILE | MAP_PRIVATE,
119                fd, 0)) == MAP_FAILED)
120                  err(255, "cannot mmap %zu bytes", len);                  err(255, "cannot mmap %zu bytes", len);
121          D(2, "ok\n");          D(2, "ok\n");
122          /* make a nice NUL-terminated copy (malloc'd) */          /* make a nice NUL-terminated copy (malloc'd) */

Legend:
Removed from v.3573  
changed lines
  Added in v.3574

root@freewrt.org:443
ViewVC Help
Powered by ViewVC 1.1.20