Return to pthread_fread.c CVS log | Up to [DVB] / dietlibc / libpthread |
enable additional warnings shut those warnings up :-) try to make stdio thread-safe
#include <dietstdio.h> size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream) { size_t tmp; pthread_mutex_lock(&stream->m); tmp=fread_unlocked(ptr,size,nmemb,stream); pthread_mutex_unlock(&stream->m); return tmp; }