mescc: Mes C Library: Fix ungetc.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 16 Mar 2019 10:55:00 +0000 (11:55 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 16 Mar 2019 10:55:00 +0000 (11:55 +0100)
commitff32cd03cc256a61968f5a3166508697088dc061
tree47c54bf9a74534b1c8c7f2b1631f4ded650da7ba
parent48a0bf181d6730ff6f9ff3e5b13ade93c13df104
mescc: Mes C Library: Fix ungetc.

* include/sys/resource.h (OPEN_MAX, RLIMIT_NOFILE): New macro.
* lib/libc.c: Add memset.c include.
* lib/libc+tcc.c: Remove memset.c include.
* lib/linux/tcc.c (close):
* lib/mes/fdgetc.c (__ungetc_buf): New global.
(_ungetc_pos, _ungetc_fd, _ungetc_buf): Remove.  Update users.
* scaffold/tests/65-read.c: Update.
include/sys/resource.h
lib/libc+tcc.c
lib/libc.c
lib/linux/libc.c
lib/linux/tcc.c
lib/mes/fdgetc.c
lib/mes/fdungetc.c
scaffold/tests/65-read.c