acadia-newlib/newlib/libc
Sebastian Huber b0f271d1db Proper locking for getchar() and putchar()
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>
2017-08-07 07:54:58 +02:00
..
argz
ctype
errno
iconv
include Proper locking for getchar() and putchar() 2017-08-07 07:54:58 +02:00
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