summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2024-08-30 03:44:49 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2024-08-30 03:44:49 +0000
commitc067ceb2390d493124395ae5122e531b63f8bf70 (patch)
treee10c9cd56182f630bb56dc06bc739760027f64f6 /lib/libc/stdlib
parentbfdf876d826693b93d4071e253c34468ac36649b (diff)
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@
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/exit.311
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libc/stdlib/exit.3 b/lib/libc/stdlib/exit.3
index 5e006e53f40..22acade86cc 100644
--- a/lib/libc/stdlib/exit.3
+++ b/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