File:  [DVB] / dietlibc / libpthread / pthread_fread.c
Revision 1.1: download - view: text, annotated - select for diffs
Fri May 9 04:36:56 2008 UTC (16 years ago) by leitner
Branches: MAIN
CVS tags: HEAD
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;
}

LinuxTV legacy CVS <linuxtv.org/cvs>