X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgen-uio;h=e7ef6a365caf3f0c573573e5be79800d258bb4af;hb=2c514edd2b01baa2ffec1f733a06f8a826b335a3;hp=02b7b1fdd0b6f67e46c96fb8825e5dd0bb501293;hpb=6e7a0d2046d454f972044259c2000f395573b0fb;p=gnulib.git diff --git a/lib/gen-uio b/lib/gen-uio index 02b7b1fdd..e7ef6a365 100755 --- a/lib/gen-uio +++ b/lib/gen-uio @@ -1,13 +1,14 @@ #!/bin/sh -tmp=gen-uio.$$ -trap 'status=$?; rm -f $tmp && exit $status' 0 -trap '{ (exit 1); exit 1; }' 1 2 13 15 - -cat <<\EOF || exit 1 +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. @@ -19,7 +20,7 @@ EOF for f in $@; do u=`echo $f|tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` - cat <&1; exit 1;; + echo $0: missing case for $f 2>&1; fail=1;; esac - cat <