freebsd-dev/sys/fs
Bruce Evans 80987b7a3b Fixed EOF handing.
1. SS_CANTRCVMORE was initially set on the wrong socket, so reads
when there has never been a writer on the socket did not return 0.
Note that such reads are only possible if the fifo was opened in
(O_RDONLY | O_NONBLOCK) mode.

2. SS_CANTSENDMORE was initially set on the wrong socket, but this
was harmless because the wrong socket is never sent from and there
is no need to set the flag initially on the right socket (since open
in (O_WRONLY | O_NONBLOCK) mode fails if there is no reader...).

3. SS_CANTRCVMORE was cleared when read() returns.  This broke the
case where read() returns 0 - subsequent reads are supposed to
return 0 until a writer appears.  There is no need to clear the
flag when read() returns, since it is cleared correctly when a
writer appears.
1997-12-13 13:49:59 +00:00
..
cd9660 Staticize a few things. 1997-11-18 14:40:36 +00:00
deadfs Don't include <sys/lock.h> in headers when only `struct simplelock' is 1997-12-05 19:55:52 +00:00
fdescfs Removed unused #includes. The need for most of them went away with 1997-10-27 13:33:47 +00:00
fifofs Fixed EOF handing. 1997-12-13 13:49:59 +00:00
msdosfs Reviewed by: various. 1997-11-12 05:42:33 +00:00
nullfs Fix the file leak bug. The lower layer wasn't informed the vnode was inactive 1997-10-21 21:01:34 +00:00
portalfs Move the "retval" (3rd) parameter from all syscall functions and put 1997-11-06 19:29:57 +00:00
procfs Change the ioctls for procfs around a bit; in particular, whever possible, 1997-12-13 03:13:49 +00:00
specfs Removed unused #includes. The need for most of them went away with 1997-10-27 13:33:47 +00:00
umapfs Fix the same leak as in nullfs. Now the lowervp is properly marked inactive. 1997-10-21 21:08:17 +00:00
unionfs Staticize. 1997-11-18 15:07:35 +00:00