6 # define UNLOCKED_IO_H 1
8 # ifndef USE_UNLOCKED_IO
9 # define USE_UNLOCKED_IO 1
14 /* These are wrappers for functions/macros from GNU libc.
15 The standard I/O functions are thread-safe. These *_unlocked ones are
16 more efficient but not thread-safe. That they're not thread-safe is
17 fine since all of the applications in this package are single threaded. */
22 u=`echo $f|tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
24 # if HAVE_${u}_UNLOCKED
30 putchar | clearerr | feof | ferror | fflush | getc )
32 putc | fputc | fputs )
39 echo $0: missing case for $f 2>&1; fail=1;;
42 # define $f($params) ${f}_unlocked ($params)
49 # endif /* USE_UNLOCKED_IO */
50 #endif /* UNLOCKED_IO_H */