summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorguenther <>2024-08-30 03:44:48 +0000
committerguenther <>2024-08-30 03:44:48 +0000
commite9ca3b20d06aa1b701d3a21d6ee46762a8b24569 (patch)
tree432ce21a8a058d0732f09d4c0f5256abc816fe9a /src
parent4ecc1701dee645b378c8c984c75f2cf309a776c2 (diff)
downloadopenbsd-e9ca3b20d06aa1b701d3a21d6ee46762a8b24569.tar.gz
openbsd-e9ca3b20d06aa1b701d3a21d6ee46762a8b24569.tar.bz2
openbsd-e9ca3b20d06aa1b701d3a21d6ee46762a8b24569.zip
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 'src')
-rw-r--r--src/lib/libc/stdlib/exit.311
1 files changed, 6 insertions, 5 deletions
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 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: exit.3,v 1.17 2024/08/12 20:53:09 guenther Exp $ 32.\" $OpenBSD: exit.3,v 1.18 2024/08/30 03:44:48 guenther Exp $
33.\" 33.\"
34.Dd $Mdocdate: August 12 2024 $ 34.Dd $Mdocdate: August 30 2024 $
35.Dt EXIT 3 35.Dt EXIT 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -54,7 +54,9 @@ Call the functions registered with the
54.Xr atexit 3 54.Xr atexit 3
55function, in the reverse order of their registration. 55function, in the reverse order of their registration.
56.It 56.It
57Flush and close all open streams. 57Flush all open output streams.
58.It
59Close all open streams.
58.It 60.It
59Unlink all files created with the 61Unlink all files created with the
60.Xr tmpfile 3 62.Xr tmpfile 3
@@ -77,7 +79,6 @@ function never returns.
77.Sh SEE ALSO 79.Sh SEE ALSO
78.Xr _exit 2 , 80.Xr _exit 2 ,
79.Xr atexit 3 , 81.Xr atexit 3 ,
80.Xr fflush 3 ,
81.Xr intro 3 , 82.Xr intro 3 ,
82.Xr sysexits 3 , 83.Xr sysexits 3 ,
83.Xr tmpfile 3 84.Xr tmpfile 3
@@ -85,7 +86,7 @@ function never returns.
85The 86The
86.Fn exit 87.Fn exit
87function conforms to 88function conforms to
88.St -p1003.1-2024 . 89.St -isoC-99 .
89.Sh HISTORY 90.Sh HISTORY
90An 91An
91.Fn exit 92.Fn exit