[BACK]Return to look.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / look

Diff for /src/usr.bin/look/look.c between version 1.3 and 1.4

version 1.3, 1997/01/15 23:42:48 version 1.4, 1999/12/21 05:52:46
Line 148 
Line 148 
         if (sb.st_size > SIZE_T_MAX)          if (sb.st_size > SIZE_T_MAX)
                 err(2, "%s: %s", file, strerror(EFBIG));                  err(2, "%s: %s", file, strerror(EFBIG));
         if ((front = mmap(NULL,          if ((front = mmap(NULL,
             (size_t)sb.st_size, PROT_READ, 0, fd, (off_t)0)) == NULL)              (size_t)sb.st_size, PROT_READ, MAP_PRIVATE, fd, (off_t)0)) == NULL)
                 err(2, "%s", file);                  err(2, "%s", file);
         back = front + sb.st_size;          back = front + sb.st_size;
         exit(look(string, front, back));          exit(look(string, front, back));

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4