mescc: Mes C Library: Use mes_open to avoid open trickery.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 12 May 2019 22:40:33 +0000 (00:40 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 12 May 2019 22:40:33 +0000 (00:40 +0200)
commit8bda737ee49fcbee3f5c41326a9bf1ebfeeb9203
treec4a26298c01c289d44ad16bbab2e81e3cd720b16
parenta5ae6569fb509d6668e1aba5679d5da1dc1aa868
mescc: Mes C Library: Use mes_open to avoid open trickery.

* include/mes/lib.h (mes_open): Declare.
* lib/libmes.c[WITH_GLIBC]: Remove open undefine.
(mes_open)[!WITH_GLIBC]: New function.
* src/mes.c (open_boot): Use mes_open.
* src/posix.c (open_input_file): Likewise.
(open_output_file): Likewise.
include/mes/lib.h
lib/libmes.c
src/mes.c
src/posix.c