diff options
author | Jim Meyering <jim@meyering.net> | 2002-12-06 13:37:49 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-12-06 13:37:49 +0000 |
commit | 6fe922b850d8175833c81ce90b16a7e0ede527cb (patch) | |
tree | 97ff0c4ce83e1e1184dfa735395f1bd5575a3cce /lib/gen-uio | |
parent | 5d1b8286019cd9470e9ce74c18bc2faf8fd4f3d0 (diff) | |
download | coreutils-6fe922b850d8175833c81ce90b16a7e0ede527cb.tar.xz |
remove, now that unlocked-io.h is maintained manually
Diffstat (limited to 'lib/gen-uio')
-rwxr-xr-x | lib/gen-uio | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/lib/gen-uio b/lib/gen-uio deleted file mode 100755 index e7ef6a365..000000000 --- a/lib/gen-uio +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -fail=0 -cat <<\EOF || fail=1 -#ifndef UNLOCKED_IO_H -# define UNLOCKED_IO_H 1 - -# ifndef USE_UNLOCKED_IO -# define USE_UNLOCKED_IO 1 -# endif - -# if USE_UNLOCKED_IO - -/* These are wrappers for functions/macros from GNU libc. - The standard I/O functions are thread-safe. These *_unlocked ones are - more efficient but not thread-safe. That they're not thread-safe is - fine since all of the applications in this package are single threaded. */ - -EOF - -for f in $@; do - u=`echo $f|tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` - cat <<EOF || fail=1 -# if HAVE_${u}_UNLOCKED -# undef $f -EOF - case $f in - getchar) - params=;; - putchar | clearerr | feof | ferror | fflush | getc ) - params=x;; - putc | fputc | fputs ) - params=x,y;; - fgets ) - params=x,y,z;; - fread | fwrite ) - params=w,x,y,z;; - *) - echo $0: missing case for $f 2>&1; fail=1;; - esac - cat <<EOF || fail=1 -# define $f($params) ${f}_unlocked ($params) -# endif -EOF -done - -cat <<\EOF || fail=1 - -# endif /* USE_UNLOCKED_IO */ -#endif /* UNLOCKED_IO_H */ -EOF - -(exit $fail); exit |