Revert commitid KcCtsA53F9UQzc0t:
authorguenther <guenther@openbsd.org>
Fri, 30 Aug 2024 03:44:48 +0000 (03:44 +0000)
committerguenther <guenther@openbsd.org>
Fri, 30 Aug 2024 03:44:48 +0000 (03:44 +0000)
commit0f4fed2b777706cdd6a28922ee70a2f2b12f2b46
tree00bf272f21e02c7c65d35e05322436b5ed4be3b8
parentcd6628ed63a03839b96a98900e417a4b95289a81
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@
lib/libc/stdio/fclose.3
lib/libc/stdio/fclose.c
lib/libc/stdio/fflush.3
lib/libc/stdio/fflush.c
lib/libc/stdio/freopen.c
lib/libc/stdio/fseek.c
lib/libc/stdio/ftell.c
lib/libc/stdlib/exit.3