Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 May 2005 13:32:09 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Mark Murray <markm@FreeBSD.ORG>
Cc:        freebsd-standards@FreeBSD.ORG
Subject:   Re: Read /dev/null differs from POSIX
Message-ID:  <20050521203209.GA60647@troutmask.apl.washington.edu>
In-Reply-To: <200505212013.j4LKDTMC070728@grovel.grondar.org>
References:  <20050521193605.GB51782@troutmask.apl.washington.edu> <200505212013.j4LKDTMC070728@grovel.grondar.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, May 21, 2005 at 09:13:29PM +0100, Mark Murray wrote:
> Steve Kargl writes:
> > >From http://www.opengroup.org/onlinepubs/009695399/toc.htm
> > 
> >    /dev/null -- An infinite data source and data sink.  Data
> >    written to /dev/null shall be discarded.  Reads from
> >    /dev/null shall always return end-of-file (EOF).
> > 
> > This program
> 
> ... abuses fread(3) return values.
> 

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.

-- 
Steve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050521203209.GA60647>