The problem of close(2) returning an "unexpected" error showed up in the original Andrew Filesystem (AFS) papers from CMU, too - AFS syncs on close, which can fail, but they found most applications not checking the return code from close(2).
Erik <f...@netbsd.org>