]> git.hungrycats.org Git - linux/commit
[PATCH] x86_64: no TIOCSBRK/TIOCCBRK in ia32 emulation
authorWerner Almesberger <werner@almesberger.net>
Thu, 21 Oct 2004 03:57:15 +0000 (20:57 -0700)
committerLinus Torvalds <torvalds@evo.osdl.org>
Thu, 21 Oct 2004 03:57:15 +0000 (20:57 -0700)
commit74ad0fc69ce520c2c5e65543a581869e8b206805
treed712e851ac5005fa93667acecfbbc40bb1150bb0
parent2e036bd1e8e4b094cf31a2e744076ad6087acf48
[PATCH] x86_64: no TIOCSBRK/TIOCCBRK in ia32 emulation

In ia32 emulation, the amd64 kernel refuses the ioctls TIOCSBRK and
TIOCCBRK with EINVAL.  I've attached a patch that adds them to the
compatibility list.

Since all architectures have these ioctls ("m68knommu" inherits them from
"m68k", "um" from its host) and use the same code, I think adding them to
compat_ioctl.h is the correct choice (as opposed to adding them to
arch/x86_64/ia32/ia32_ioctl.c).

Signed-off-by: Werner Almesberger <werner@almesberger.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/compat_ioctl.h