Add internal inline functions _getchar_unlocked() and _putchar_unlocked() if __CUSTOM_FILE_IO__ is not defined. These functions get _REENT only once. Use them for getchar_unlocked() and putchar_unlocked(). Define getchar() and putchar() to these unlocked internal functions if __SINGLE_THREAD__ is defined, otherwise use the external functions to use proper locking of the FILE object. Assumes that __SINGLE_THREAD__ is not defined if __CYGWIN__ is defined. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de> |
||
|---|---|---|
| .. | ||
| argz | ||
| ctype | ||
| errno | ||
| iconv | ||
| include | ||
| locale | ||
| machine | ||
| misc | ||
| posix | ||
| reent | ||
| search | ||
| signal | ||
| stdio | ||
| stdio64 | ||
| stdlib | ||
| string | ||
| sys | ||
| syscalls | ||
| time | ||
| unix | ||
| xdr | ||
| Makefile.am | ||
| Makefile.in | ||
| aclocal.m4 | ||
| configure | ||
| configure.in | ||
| libc.in.xml | ||
| libc.texinfo | ||
| saber | ||
| sys.tex | ||