From e9ca3b20d06aa1b701d3a21d6ee46762a8b24569 Mon Sep 17 00:00:00 2001
From: guenther <>
Date: Fri, 30 Aug 2024 03:44:48 +0000
Subject: Revert commitid KcCtsA53F9UQzc0t: "Make exit(), fclose(), fflush(),
 and freopen() comply with POSIX-2008  requirements for setting the underlying
 file position when flushing  read-mode streams, and make an
 fseek()-after-fflush() not change the  underlying file position."

Something isn't correct about it and it breaks at least initdb from
the postgresql-server package.

discussed with tb@, semarie@, and deraadt@
---
 src/lib/libc/stdlib/exit.3 | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

(limited to 'src/lib')

diff --git a/src/lib/libc/stdlib/exit.3 b/src/lib/libc/stdlib/exit.3
index 5e006e53f4..22acade86c 100644
--- a/src/lib/libc/stdlib/exit.3
+++ b/src/lib/libc/stdlib/exit.3
@@ -29,9 +29,9 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\"	$OpenBSD: exit.3,v 1.17 2024/08/12 20:53:09 guenther Exp $
+.\"	$OpenBSD: exit.3,v 1.18 2024/08/30 03:44:48 guenther Exp $
 .\"
-.Dd $Mdocdate: August 12 2024 $
+.Dd $Mdocdate: August 30 2024 $
 .Dt EXIT 3
 .Os
 .Sh NAME
@@ -54,7 +54,9 @@ Call the functions registered with the
 .Xr atexit 3
 function, in the reverse order of their registration.
 .It
-Flush and close all open streams.
+Flush all open output streams.
+.It
+Close all open streams.
 .It
 Unlink all files created with the
 .Xr tmpfile 3
@@ -77,7 +79,6 @@ function never returns.
 .Sh SEE ALSO
 .Xr _exit 2 ,
 .Xr atexit 3 ,
-.Xr fflush 3 ,
 .Xr intro 3 ,
 .Xr sysexits 3 ,
 .Xr tmpfile 3
@@ -85,7 +86,7 @@ function never returns.
 The
 .Fn exit
 function conforms to
-.St -p1003.1-2024 .
+.St -isoC-99 .
 .Sh HISTORY
 An
 .Fn exit
-- 
cgit v1.2.3-55-g6feb