entered into RCS
authorroland <roland>
Thu, 25 Jun 1992 02:02:57 +0000 (02:02 +0000)
committerroland <roland>
Thu, 25 Jun 1992 02:02:57 +0000 (02:02 +0000)
sysdeps/unix/snarf-ioctls

index 0f6a6fd..d2d02b1 100755 (executable)
 
 sysincludedir=${sysincludedir-/usr/include}
 
+if [ ! "$snarfexclude" ]; then
+  # Filter out some headers which cause trouble.
+  snarfexclude="`echo !${sysincludedir}/sys/param.h! \
+                     !${sysincludedir}/sys/time.h! \
+                     !${sysincludedir}/sys/types.h! \
+                | sed -e 's,/,\\\\/,g' \
+                      -e 's,!\\([^!]*\\)!,-e /\\1/d,g'`"
+fi
+
 for file in $*; do
   sed -n 's/^#define[  ]*\([A-Z][A-Z0-9_]*\)[  ][      ]*[^    ].*$/\1/p' \
     < $file