diff options
| author | guenther <> | 2024-08-12 20:53:09 +0000 |
|---|---|---|
| committer | guenther <> | 2024-08-12 20:53:09 +0000 |
| commit | f7005808e10f9952d53be75e414a7944967d1cc0 (patch) | |
| tree | 88e61c19bb26d31d6eeff4f1621a656445839b5d /src | |
| parent | 74ed67efcbb6bda895054baea22372140e2d3e99 (diff) | |
| download | openbsd-f7005808e10f9952d53be75e414a7944967d1cc0.tar.gz openbsd-f7005808e10f9952d53be75e414a7944967d1cc0.tar.bz2 openbsd-f7005808e10f9952d53be75e414a7944967d1cc0.zip | |
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 'src')
| -rw-r--r-- | src/lib/libc/stdlib/exit.3 | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/lib/libc/stdlib/exit.3 b/src/lib/libc/stdlib/exit.3 index a1c43780d6..5e006e53f4 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.16 2014/11/30 21:21:59 schwarze Exp $ | 32 | .\" $OpenBSD: exit.3,v 1.17 2024/08/12 20:53:09 guenther Exp $ |
| 33 | .\" | 33 | .\" |
| 34 | .Dd $Mdocdate: November 30 2014 $ | 34 | .Dd $Mdocdate: August 12 2024 $ |
| 35 | .Dt EXIT 3 | 35 | .Dt EXIT 3 |
| 36 | .Os | 36 | .Os |
| 37 | .Sh NAME | 37 | .Sh NAME |
| @@ -54,9 +54,7 @@ Call the functions registered with the | |||
| 54 | .Xr atexit 3 | 54 | .Xr atexit 3 |
| 55 | function, in the reverse order of their registration. | 55 | function, in the reverse order of their registration. |
| 56 | .It | 56 | .It |
| 57 | Flush all open output streams. | 57 | Flush and close all open streams. |
| 58 | .It | ||
| 59 | Close all open streams. | ||
| 60 | .It | 58 | .It |
| 61 | Unlink all files created with the | 59 | Unlink all files created with the |
| 62 | .Xr tmpfile 3 | 60 | .Xr tmpfile 3 |
| @@ -79,6 +77,7 @@ function never returns. | |||
| 79 | .Sh SEE ALSO | 77 | .Sh SEE ALSO |
| 80 | .Xr _exit 2 , | 78 | .Xr _exit 2 , |
| 81 | .Xr atexit 3 , | 79 | .Xr atexit 3 , |
| 80 | .Xr fflush 3 , | ||
| 82 | .Xr intro 3 , | 81 | .Xr intro 3 , |
| 83 | .Xr sysexits 3 , | 82 | .Xr sysexits 3 , |
| 84 | .Xr tmpfile 3 | 83 | .Xr tmpfile 3 |
| @@ -86,7 +85,7 @@ function never returns. | |||
| 86 | The | 85 | The |
| 87 | .Fn exit | 86 | .Fn exit |
| 88 | function conforms to | 87 | function conforms to |
| 89 | .St -isoC-99 . | 88 | .St -p1003.1-2024 . |
| 90 | .Sh HISTORY | 89 | .Sh HISTORY |
| 91 | An | 90 | An |
| 92 | .Fn exit | 91 | .Fn exit |
