On Fri, Jan 19, 2007 at 11:07:14AM -0500, Adam wrote: > If you can't fread() from a stream > that is associated with a directory, then why associate the stream with > a directory in the first place?
Does the C (or any) standard say it should fail? fopen(3) works on directories under Linux and Solaris, so OpenBSD certainly isn't unique in this regard.