version 1.3, 1997/01/15 23:42:48 |
version 1.4, 1999/12/21 05:52:46 |
|
|
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)); |