4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-30 02:50:25 +08:00
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
..
2016-07-04 17:13:55 +01:00
2016-07-04 17:13:55 +01:00
2016-07-04 17:13:55 +01:00
2016-07-04 17:13:55 +01:00
2016-07-04 17:13:55 +01:00
2017-07-28 15:05:54 +02:00
2016-07-04 17:13:55 +01:00
2016-07-04 17:13:55 +01:00
2017-02-06 16:55:09 -05:00
2016-07-04 17:13:55 +01:00
2016-07-04 17:13:55 +01:00
2016-07-04 14:17:10 +01:00
2016-07-04 14:17:10 +01:00
2000-02-17 19:39:52 +00:00