Read /dev/null differs from POSIX

Steve Kargl sgk at troutmask.apl.washington.edu
Sat May 21 14:03:10 PDT 2005


On Sat, May 21, 2005 at 09:42:46PM +0100, Mark Murray wrote:
> Steve Kargl writes:
> > Sorry for the noise.  I remembered feof() about 15 minutes
> > ago.  FreeBSD's null(4) man page, although quite short, is
> > somewhat confusing in its vagueness.
> 
> NP. If the docs don't work, I guess we need to fix them. Given that 
> I've had my grimy paws in null(4), it seems fair that I fix the docs.
> 
> I'll give them a general looking over, but if you have any suggestions 
> you'd like to see put in there, I'd be happy to oblige.
> 

I have to run to a little league baseball game, so I think
about there.  Something along the lines:

   The null device has permission 666.  Upon writing to /dev/null,
   the data is thrown away.  Upon reading /dev/null, it will always
   return EOF.

-- 
Steve


More information about the freebsd-standards mailing list