This bug is being filed retroactively to track MFCing r285140 to stable/10 and potentially stable/9.
The patch can be obtained via: svn diff -c 285140 http://svn.freebsd.org/base/head > r285140.patch && svn patch --dry-run r285140.patch && svn patch r285140.patch The diffstat for the change should be: $ svn diff -c 285140 http://svn.freebsd.org/base/head | diffstat include/stdio.h | 1 lib/libc/stdio/Symbol.map | 4 ++ lib/libc/stdio/fclose.3 | 82 +++++++++++++++++++++++++++++++++++++--------- lib/libc/stdio/fclose.c | 75 +++++++++++++++++++++++++++++++++++------- 4 files changed, 135 insertions(+), 27 deletions(-) $ Please let me know if you need any more help!