[Bug 283014] POSIX issue 7: fileno should be able to fail with EBADF
Date: Fri, 29 Nov 2024 15:26:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283014
--- Comment #4 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=7cd756ff4fe7e65a9a3f588904998bf6f4b37623
commit 7cd756ff4fe7e65a9a3f588904998bf6f4b37623
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-11-28 22:12:29 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-11-29 15:25:32 +0000
fileno(3): set errno when returning -1
as required by IEEE Std 1003.1™-2024.
PR: 283014
Reported by: Graham Percival <gperciva@tarsnap.com>
Reviewed by: emaste, imp
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D47834
include/stdio.h | 4 ----
lib/libc/stdio/ferror.3 | 20 ++++++++++++++++++--
lib/libc/stdio/fileno.c | 25 ++++++++++++++++++++-----
3 files changed, 38 insertions(+), 11 deletions(-)
--
You are receiving this mail because:
You are the assignee for the bug.