blob: 34e79e0fe74ecca04933bdb042a09c18f37ad13f (
plain)
1
2
3
4
5
6
7
8
9
10
|
#include "dietstdio.h"
#include <unistd.h>
int fgetc(FILE *stream) {
int tmp;
pthread_mutex_lock(&stream->m);
tmp=fgetc_unlocked(stream);
pthread_mutex_unlock(&stream->m);
return tmp;
}
|