4 trap 'status=$?; rm -f $tmp && exit $status' 0
5 trap 'exit $?' 1 2 13 15
9 # define UNLOCKED_IO_H 1
13 /* These are wrappers for functions/macros from GNU libc.
14 The standard I/O functions are thread-safe. These *_unlocked ones
15 are more efficient but not thread-safe. That they're not thread-safe
16 is fine since all these applications are single threaded. */
21 u=`echo $f|tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
22 echo "# if HAVE_${u}_UNLOCKED"
27 putchar | clearerr | feof | ferror | fflush | getc )
29 putc | fputc | fputs )
36 echo $0: missing case for $f 2>&1; exit 1;;
38 echo "# define $f($params) ${f}_unlocked ($params)"
44 # endif /* USE_UNLOCKED_IO */
45 #endif /* UNLOCKED_IO_H */