Duplicate ioctls in sound and tty

Keith Owens (kaos@ocs.com.au)
Wed, 24 Jun 1998 18:52:48 +1000


strace-3.1-3 claimed that bash was doing ioctl SNDCTL_TMR_START on the
terminal. Turns out that include/asm-i386/ioctls.h defines 0x5402 to
be TCSETS, include/linux/soundcard.h defines SNDCTL_TMR_START as "_IO
('T', 2)" which also maps to 0x5402. Strange thing is that strace gets
the termios structure decode right, even though the ioctl name is
wrong. 2.0.34, glibc (Redhat 5.0).

Changing one of the ioctls to remove the duplicate would break existing
binaries, either tty or sound. Is it worth it?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu