]> Savannah Git Hosting - gnulib.git/commit
binary-io: Attempted use of O_BINARY on consoles no longer fails.
authorBruno Haible <bruno@clisp.org>
Wed, 29 May 2019 00:44:52 +0000 (02:44 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 31 May 2019 14:56:50 +0000 (16:56 +0200)
commit9c383f22c6d50f4bcd7b3e3aa4611cfb61874025
treede6171a261143768a6b962513cc3c2055606b9bf
parent1c0e950aa8238a6b5005ebde19ccf9cfd29afdd3
binary-io: Attempted use of O_BINARY on consoles no longer fails.

Reported by KO Myung-Hun <komh78@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.

* lib/binary-io.h (__gl_setmode_check): Remove function.
(set_binary_mode): Declare as notinline on DJGPP and EMX.
* lib/binary-io.c (__gl_setmode_check): Remove function.
(set_binary_mode): Define here on DJGPP and EMX. Inline
__gl_setmode_check. In case of a tty, don't return an error code.
ChangeLog
lib/binary-io.c
lib/binary-io.h