Problems regenerating ioctlent.sh on UnixWare

John Hughes john at calva.com
Mon Oct 29 06:36:04 UTC 2001


> Previously John Hughes wrote:
> > On UnixWare I can't rebuild ioctlent.sh because some #defines are
> > inside #ifdef blocks:
> 
> Can you try to use the ioctlent.sh approach that Linux uses and
> see if that improves things?

Doesn't look like it'll work on SVR4, too many assumptions
about how ioctl's are defined, where they'll be defined and
so on.

The existing script can be made to work with just a little tweak:

--- ioctlent.sh Mon Oct 29 15:32:10 2001
+++ ioctlent.sh.new     Mon Oct 29 15:33:46 2001
@@ -47,6 +47,7 @@
        egrep -v "$bad_includes"
 echo xyzzy
 echo "struct ioctlent ioctlent[] = {"
-egrep -v "$bad_defines" ioctlent.tmp
+egrep -v "$bad_defines" ioctlent.tmp |
+awk '{ print "#ifdef " $4; print $0; print "#endif" }'
 echo "};"
 rm -f ioctlent.tmp

It might even be possible to get rid of "bad_defines/bad_includes",
but I don't have other svr4 systems to test it on.






More information about the Strace-devel mailing list