[Bug 283014] POSIX issue 7: fileno should be able to fail with EBADF

[email protected]
Newsgroups gmane.os.freebsd.devel.standards
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283014

--- Comment #4 from [email protected] ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=7cd756ff4fe7e65a9a3f588904998bf6f4b37623

commit 7cd756ff4fe7e65a9a3f588904998bf6f4b37623
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2024-11-28 22:12:29 +0000
Commit:     Konstantin Belousov <[email protected]>
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 <[email protected]>
    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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.