diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-08-07 07:35:19 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-08-07 07:54:58 +0200 |
commit | b0f271d1db223b2cadd73e10258c48013d943691 (patch) | |
tree | 256125354b3908f77046435ce99dc18e17b6d06c /newlib/libc/unix/sigset.c | |
parent | 65c13851b3fdb695cc415cb77c18931b8594763f (diff) | |
download | cygnal-b0f271d1db223b2cadd73e10258c48013d943691.tar.gz cygnal-b0f271d1db223b2cadd73e10258c48013d943691.tar.bz2 cygnal-b0f271d1db223b2cadd73e10258c48013d943691.zip |
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>
Diffstat (limited to 'newlib/libc/unix/sigset.c')
0 files changed, 0 insertions, 0 deletions