From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D7DDC385380E; Sun, 18 Jul 2021 16:10:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D7DDC385380E From: "crrodriguez at opensuse dot org" To: glibc-bugs@sourceware.org Subject: [Bug stdio/28099] New: fcloseall doesn't close anything Date: Sun, 18 Jul 2021 16:10:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: stdio X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: crrodriguez at opensuse dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jul 2021 16:10:38 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28099 Bug ID: 28099 Summary: fcloseall doesn't close anything Product: glibc Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: stdio Assignee: unassigned at sourceware dot org Reporter: crrodriguez at opensuse dot org Target Milestone: --- Example to demonstrate de bug. #define _GNU_SOURCE #include #include int main(void) { FILE *fp, *fp1; fp =3D tmpfile(); fp1 =3Dtmpfile(); assert ( fcloseall() =3D=3D 0 ); assert ( fputs("doh", fp) < 0 ); assert ( fputs("bla", fp1) < 0 ); return 0; } after the fcloseall() call all writes to the stream must fail..it really do= es not appear to be doing anything. --=20 You are receiving this mail because: You are on the CC list for the bug.=