• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include "stdio_impl.h"
2 #include "pthread_impl.h"
3 
4 #ifdef __GNUC__
5 __attribute__((__noinline__))
6 #endif
locking_putc(int c,FILE * f)7 static int locking_putc(int c, FILE *f)
8 {
9     FLOCK(f);
10     c = putc_unlocked(c, f);
11     FUNLOCK(f);
12     return c;
13 }
14 
do_putc(int c,FILE * f)15 static inline int do_putc(int c, FILE *f)
16 {
17 	return locking_putc(c, f);
18 }
19