From nobody Fri Nov 29 15:26:28 2024 X-Original-To: standards@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y0H8N5wB0z5fK6t for ; Fri, 29 Nov 2024 15:26:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y0H8N3n1mz4SVB for ; Fri, 29 Nov 2024 15:26:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732893988; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8O4k7HIQhTKv6b6gviaKHQRh5KsBv14sXlgHIafuRB4=; b=SYvBYQR6l0Sbh5aWdA7nKAmJyb0pj+xoMc8NS1+i5+L1xhtgy/yhrayfdkow56CNBuRTFR 1Rxm98L0QzluKkT3g8bgOphgsnIWRlNz7o71Sw91WZ7BoW/pzXXCD8QDTGI+1lpoxVstxG 83+jlbuzRw9rhBWBxHbTpdqyEFIOINzRhNhp+KdbECQpJsw/8UduUAGsKdhZm7njs/bIwk 8yxuIJlTRoP4aamFWwbGSJMeD0iIJxq3aYk8BHb1eZ4AHSTZ7fRtyLhKyEM/UeqO9sHRFq 94socaqPjGApCMrNU8Yi2yUymrOKEw3I7WwcPN1Mdd2K7BI+BlI9L4sfWcm6yg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732893988; a=rsa-sha256; cv=none; b=tnguUa0wbQ9OxtHqoCywl/bolx1pXMq8Vq/I4dXcmzRtZrjJddT9No3MFVhBSLEYrkXlsU q4ucBBUV0Z5y9tFcQ2xsipBCSQLTdBu6ana0R7VgWArRfYcIWcbikAZcLFlsZ0oBtCKgiL zGzdl9RGqqHPVRZVn8d03S1xFK/HwmNvhD+YMkgvVdhcnyRdwlw4Yg1Xr5rKmgmg2RWDYt XzWLY2w/9a4kovQn44l/XpUBi59Mbf2V3fLkVNPGlZSqn3kxydcKtDKWPKz3b0nrTDr2mH gVGomUid1m4/rdw8rvYfZiatSkJGzLSgfjrUcdJRYyiC9TW55C6M08d69b8dxg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Y0H8N39WYzSpy for ; Fri, 29 Nov 2024 15:26:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4ATFQS6E068428 for ; Fri, 29 Nov 2024 15:26:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4ATFQSS6068427 for standards@FreeBSD.org; Fri, 29 Nov 2024 15:26:28 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 283014] POSIX issue 7: fileno should be able to fail with EBADF Date: Fri, 29 Nov 2024 15:26:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-standards@freebsd.org Sender: owner-freebsd-standards@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283014 --- Comment #4 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D7cd756ff4fe7e65a9a3f588904998bf6f= 4b37623 commit 7cd756ff4fe7e65a9a3f588904998bf6f4b37623 Author: Konstantin Belousov AuthorDate: 2024-11-28 22:12:29 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-29 15:25:32 +0000 fileno(3): set errno when returning -1 as required by IEEE Std 1003.1=E2=84=A2-2024. PR: 283014 Reported by: Graham Percival 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(-) --=20 You are receiving this mail because: You are the assignee for the bug.=