Here are two patches that allow operation of ned, the (31-bit) UTS Global full-screen 3270 editor, on 64-bit zSeries machines. Each patch changes arch/s390x/kernel/ioctl32.c to enable processing of the 3270 ioctl commands.
The first patch was developed on the Red Hat 2.4.21-15.EL kernel but should work with offsets on all other recent 2.4 kernels. RedHat, please apply this patch. The second patch was developed on Marcelo's 2.4.27-rc5 kernel. Marcelo, please apply this patch. For other 2.4 kernen versions, one or the other patch will probably apply with only offsets; in any case, interpolation should be easy. -------- Start of patch for Red Hat 2.4.21-15.EL diff -urN linux-2.4.21-15.EL/arch/s390x/kernel/ioctl32.c linux-2.4.21-15.ELcustom/arch/s390x/kernel/ioctl32.c --- linux-2.4.21-15.EL/arch/s390x/kernel/ioctl32.c 2004-04-21 21:08:47.000000000 -0700 +++ linux-2.4.21-15.ELcustom/arch/s390x/kernel/ioctl32.c 2004-08-04 16:06:29.000000000 -0700 @@ -35,6 +35,7 @@ #include <asm/uaccess.h> #include <asm/dasd.h> #include <asm/tape390.h> +#include "../../../drivers/s390/char/tubio.h" #include <asm/sockios.h> #include <asm/ioctls.h> @@ -861,6 +862,12 @@ IOCTL32_HANDLER(HDIO_GETGEO, hd_geometry_ioctl), + IOCTL32_DEFAULT(TUBICMD), + IOCTL32_DEFAULT(TUBOCMD), + IOCTL32_DEFAULT(TUBGETI), + IOCTL32_DEFAULT(TUBGETO), + IOCTL32_DEFAULT(TUBSETMOD), + IOCTL32_DEFAULT(TUBGETMOD), IOCTL32_DEFAULT(TCGETA), IOCTL32_DEFAULT(TCSETA), IOCTL32_DEFAULT(TCSETAW), -------- End of patch for Red Hat 2.4.21-15.EL -------- Start of patch for 2.4.27-rc5 diff -urN linux-2.4.26/arch/s390x/kernel/ioctl32.c NEWlinux-2.4.26/arch/s390x/kernel/ioctl32.c --- linux-2.4.26/arch/s390x/kernel/ioctl32.c 2003-08-25 04:44:40.000000000 -0700 +++ NEWlinux-2.4.26/arch/s390x/kernel/ioctl32.c 2004-08-05 18:14:56.000000000 -0700 @@ -34,6 +34,7 @@ #include <asm/uaccess.h> #include <asm/dasd.h> #include <asm/sockios.h> +#include "../../../drivers/s390/char/tubio.h" #include "linux32.h" @@ -535,6 +536,12 @@ IOCTL32_HANDLER(HDIO_GETGEO, hd_geometry_ioctl), + IOCTL32_DEFAULT(TUBICMD), + IOCTL32_DEFAULT(TUBOCMD), + IOCTL32_DEFAULT(TUBGETI), + IOCTL32_DEFAULT(TUBGETO), + IOCTL32_DEFAULT(TUBSETMOD), + IOCTL32_DEFAULT(TUBGETMOD), IOCTL32_DEFAULT(TCGETA), IOCTL32_DEFAULT(TCSETA), IOCTL32_DEFAULT(TCSETAW), -------- End of patch for 2.4.27-rc5 Dick Hitt [EMAIL PROTECTED] ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390