File:  [DVB] / dietlibc / libpthread / pthread_fputc.c
Revision 1.2: download - view: text, annotated - select for diffs
Mon Jul 9 13:54:07 2001 UTC (22 years, 10 months ago) by fefe
Branches: MAIN
CVS tags: finnland_test_200301, branch_rc14_fieldtest_finnland, branch_rc13_fieldtest_finnland, branch_rc12_fieldtest_finnland, branch_rc10_fieldtest_finnland, RELEASE_finnland_200301_1, RC12_FIELDTEST_FINNLAND, RC10_FIELDTEST_FINNLAND, HEAD
ugh, touched all stdio and ripped out the non-ungetc and unbuffered
modes.  Did some ELF weak symbol trickery to make `puts("foo")' not
reference the whole stdio crap.

#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;
}

LinuxTV legacy CVS <linuxtv.org/cvs>