# HG changeset patch # User Jim Meyering # Date 1001492357 0 # Node ID 4cfc9bb4c2a535f5838c6b9c28e3fb21bbeca78c # Parent fc06aa9f08c8818d93dbba5b2ce1cf24814280ed portability tweaks diff --git a/lib/gen-uio b/lib/gen-uio --- a/lib/gen-uio +++ b/lib/gen-uio @@ -2,25 +2,27 @@ tmp=gen-uio.$$ trap 'status=$?; rm -f $tmp && exit $status' 0 -trap 'exit $?' 1 2 13 15 +trap '{ (exit 1); exit 1; }' 1 2 13 15 -cat <<\EOF +cat <<\EOF || exit 1 #ifndef UNLOCKED_IO_H # define UNLOCKED_IO_H 1 # 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 these applications are single threaded. */ + 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` - echo "# if HAVE_${u}_UNLOCKED" - echo "# undef $f" + cat <&1; exit 1;; esac - echo "# define $f($params) ${f}_unlocked ($params)" - echo '# endif' + cat <