CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2015/05/29 06:33:41

Modified files:
        usr.bin/file   : file.c 

Log message:
Only mmap() on regular files; mmap() on /dev/stdin will happily map as
much as we ask for but only the first page will be usable. (We could get
the actual size with ioctl(FIONREAD) and mmap() that but it would need
to be done in the parent - I think just using read() is simpler.)

Reply via email to