]> granicus.if.org Git - strace/commitdiff
Remove ioctl header file names from the executable
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 3 Nov 2014 20:37:39 +0000 (20:37 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 4 Nov 2014 03:13:50 +0000 (03:13 +0000)
* defs.h (struct ioctlent): Remove "doth" field.
* Makefile.am ($(ioctlent_h)): Remove 1st field.

Makefile.am
defs.h

index fa6e73e6e2ac7886a04a1ed0443fdf092d192394..f23dee612fbe8e527911fc166e687fc0939aa87f 100644 (file)
@@ -315,4 +315,5 @@ $(ioctlent_h): $(top_builddir)/config.status $(ioctlent_h_deps)
        $(MKDIR_P) $(builddir)/$(OS)
        cat $(ioctlent_h_deps) | \
                $(COMPILE) -E -P - | \
-               LC_ALL=C sort -u -k3,3 -k2,2 > $@
+               sed 's/^\([[:space:]]*{\)"[^"]\+",[[:space:]]*/\1/' | \
+               LC_ALL=C sort -u -k2,2 -k1,1 > $@
diff --git a/defs.h b/defs.h
index d41af968c03f75c09198bafd0bc345f0c233e95a..c75da14857eba9f2d9e33011a1af3b9e78ee6d1d 100644 (file)
--- a/defs.h
+++ b/defs.h
@@ -395,7 +395,6 @@ typedef struct sysent {
 } struct_sysent;
 
 typedef struct ioctlent {
-       const char *doth;
        const char *symbol;
        unsigned long code;
 } struct_ioctlent;