diff options
Diffstat (limited to 'mdk-stage1/dietlibc/libpthread/pthread_fputc.c')
-rw-r--r-- | mdk-stage1/dietlibc/libpthread/pthread_fputc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/libpthread/pthread_fputc.c b/mdk-stage1/dietlibc/libpthread/pthread_fputc.c new file mode 100644 index 000000000..82344b107 --- /dev/null +++ b/mdk-stage1/dietlibc/libpthread/pthread_fputc.c @@ -0,0 +1,9 @@ +#include <dietstdio.h> + +int fputc(int c, FILE *stream) { + int tmp; + pthread_mutex_lock(&stream->m); + tmp=fputc_unlocked(c,stream); + pthread_mutex_unlock(&stream->m); + return tmp; +} |