Module Name: src Committed By: thorpej Date: Sat Oct 2 17:32:55 UTC 2021
Modified Files: src/sys/kern: uipc_syscalls.c src/sys/miscfs/fifofs: fifo_vnops.c src/tests/lib/libc/sys: t_poll.c Log Message: - Strenghen the poll(2) fifo_inout test to ensure that once the reader has read enough that exactly PIPE_BUF space is available that the FIFO becomes writable again. - When creating a FIFO, ensure that the receive low water mark is 1 (a FIFO must be readable when at least 1 byte is available); this was already the case implicitly, but this makes it explicit. - Similarly, set the send low water mark to PIPE_BUF to ensure that the pipe is writable when at least PIPE_BUF bytes of space are available in the send buffer. Without this change, the strengthened test case above does not pass (the default send low water mark is larger than PIPE_BUF; see soreserve()). - Make the same low water mark changes to the PIPE_SOCKETPAIR case. To generate a diff of this commit: cvs rdiff -u -r1.200 -r1.201 src/sys/kern/uipc_syscalls.c cvs rdiff -u -r1.87 -r1.88 src/sys/miscfs/fifofs/fifo_vnops.c cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libc/sys/t_poll.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.