mescc: Mes C Library: Have write behave well with buffered reads.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 28 Jul 2019 11:01:37 +0000 (13:01 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 28 Jul 2019 11:01:37 +0000 (13:01 +0200)
commit1bb64ec48f17a1932f86840c97a3e3956d84bd4f
treeb5965f9a2dbdefeaaab2b79324d52aba463ad224
parentef29ade04b883d407c9bdda8cf3895a8c51920a4
mescc: Mes C Library: Have write behave well with buffered reads.

* lib/mes/write.c: New file.
* build-aux/configure-lib.sh (libc_mini_SOURCES): Add it.
(libc_mini_shared_SOURCES): New variable.
(libc_mini_SOURCES, libmes_SOURCES): Use it.
(libmes_SOURCES): Add lib/linux/lseek.c, lib/posix/write.c.
(libc_tcc_SOURCES): Remove lib/linux/lseek.c.
* lib/posix/write.c (write): Correct for read buffer.
* lib/stdio/fwrite.c (fwrite): Remove read buffer correction.
* simple.sh: Update.
build-aux/configure-lib.sh
lib/mes/write.c [new file with mode: 0644]
lib/posix/write.c
lib/stdio/fwrite.c
simple.sh