• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include "stdio_impl.h"
2 #include "pthread.h"
3 
__lockfile(FILE * f)4 int __lockfile(FILE *f)
5 {
6 	return pthread_mutex_lock((pthread_mutex_t *)f->lock);
7 }
8 
__unlockfile(FILE * f)9 int __unlockfile(FILE *f)
10 {
11 	return pthread_mutex_unlock((pthread_mutex_t *)f->lock);
12 }
13