summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/stdio.3
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1998-03-09 06:36:30 +0000
committerderaadt <deraadt@openbsd.org>1998-03-09 06:36:30 +0000
commit4371d1a50fa014310161091e7c84a4b525fbc7c8 (patch)
treecbda30f1fd0885771964d843b5d9ef3a975f4487 /lib/libc/stdio/stdio.3
parentgrammar fixes by mckay (diff)
downloadwireguard-openbsd-4371d1a50fa014310161091e7c84a4b525fbc7c8.tar.xz
wireguard-openbsd-4371d1a50fa014310161091e7c84a4b525fbc7c8.zip
POSIX behaviour of abort; mckay
Diffstat (limited to 'lib/libc/stdio/stdio.3')
-rw-r--r--lib/libc/stdio/stdio.310
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libc/stdio/stdio.3 b/lib/libc/stdio/stdio.3
index 4b7b79cc435..9c111d106dd 100644
--- a/lib/libc/stdio/stdio.3
+++ b/lib/libc/stdio/stdio.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: stdio.3,v 1.4 1998/03/09 06:09:08 deraadt Exp $
+.\" $OpenBSD: stdio.3,v 1.5 1998/03/09 06:36:30 deraadt Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -90,9 +90,13 @@ the
.Xr exit 3
function is called, all open files are closed (hence all output
streams are flushed) before program termination. Other methods
-of program termination, such as
+of program termination may not close files properly and hence
+buffered output may be lost. In particular,
+.Xr _exit 2
+does not flush stdio files. Neither does an exit due to a signal.
+Buffers are flushed by
.Xr abort 3
-do not bother about closing files properly.
+as required by POSIX, although previous implementations did not.
.Pp
This implementation needs and makes
no distinction between