diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2024-08-12 20:53:10 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2024-08-12 20:53:10 +0000 |
commit | 5d4e5874ed04b1a4c1cf1b5c2b62f1400651c0d6 (patch) | |
tree | 81a29c90ed3adee86b543d78e65fda9b3a481829 /lib/libc/stdlib | |
parent | a20e90e8c3317fd59cb16b445a5562e6f46bc005 (diff) |
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.
Much testing, review, and assistance from tb@
ok tb@ millert@
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r-- | lib/libc/stdlib/exit.3 | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/libc/stdlib/exit.3 b/lib/libc/stdlib/exit.3 index a1c43780d65..5e006e53f40 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.16 2014/11/30 21:21:59 schwarze Exp $ +.\" $OpenBSD: exit.3,v 1.17 2024/08/12 20:53:09 guenther Exp $ .\" -.Dd $Mdocdate: November 30 2014 $ +.Dd $Mdocdate: August 12 2024 $ .Dt EXIT 3 .Os .Sh NAME @@ -54,9 +54,7 @@ Call the functions registered with the .Xr atexit 3 function, in the reverse order of their registration. .It -Flush all open output streams. -.It -Close all open streams. +Flush and close all open streams. .It Unlink all files created with the .Xr tmpfile 3 @@ -79,6 +77,7 @@ function never returns. .Sh SEE ALSO .Xr _exit 2 , .Xr atexit 3 , +.Xr fflush 3 , .Xr intro 3 , .Xr sysexits 3 , .Xr tmpfile 3 @@ -86,7 +85,7 @@ function never returns. The .Fn exit function conforms to -.St -isoC-99 . +.St -p1003.1-2024 . .Sh HISTORY An .Fn exit |