[PATCH] linux/ioctlent.sh: handle multiple defines per-ioctl

Denys Vlasenko dvlasenk at redhat.com
Fri Feb 20 17:04:20 UTC 2009


On Fri, 2009-02-13 at 17:30 -0500, Mike Frysinger wrote:
> On Wednesday 26 March 2008 19:08:59 Mike Frysinger wrote:
> > The current sed statement works fine if the ioctl definition only utilizes
> > one define in it.  If it uses two, things fall apart.  Such is the case
> > with linux/dm-ioctl.h:
> > _IOC(_IOC_NONE,DM_IOCTL,DM_LIST_DEVICES_CMD,....)
> > Only the last define (DM_LIST_DEVICES_CMD) gets extracted.  This tweaks the
> > sed to handle the two-define case.
> >
> > I also fixed uniq/sort as doing `... | uniq | sort` wont work, you need to
> > reverse the steps for uniq to actually work.
> 
> any chance of getting this merged ?

Which kernel has that? (linux-2.6.28.6 doesn't)
--
vda





More information about the Strace-devel mailing list