Return to forward.c CVS log | Up to [local] / src / usr.bin / tail |
version 1.7, 1999/02/03 02:09:30 | version 1.8, 1999/08/04 18:24:10 | ||
---|---|---|---|
|
|
||
if (size > SIZE_T_MAX) | if (size > SIZE_T_MAX) | ||
return (1); | return (1); | ||
if ((start = mmap(NULL, (size_t)size, PROT_READ, 0, fileno(fp), | if ((start = mmap(NULL, (size_t)size, PROT_READ, MAP_PRIVATE, | ||
(off_t)0)) == (caddr_t)-1) | fileno(fp), (off_t)0)) == (caddr_t)-1) | ||
return (1); | return (1); | ||
/* Last char is special, ignore whether newline or not. */ | /* Last char is special, ignore whether newline or not. */ |