From 52a38e47ca3cd581a5e7777954c0b433102c6972 Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 25 Sep 1991 15:35:57 +0000 Subject: [PATCH] Fixed calls to ioctl; sizes of structs are different in ACK --- mach/sparc/libsys/_gtty.c | 2 +- mach/sparc/libsys/gtty.c | 2 +- mach/sparc/libsys/stty.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mach/sparc/libsys/_gtty.c b/mach/sparc/libsys/_gtty.c index 0b2f0cc2b..bc364f8c8 100644 --- a/mach/sparc/libsys/_gtty.c +++ b/mach/sparc/libsys/_gtty.c @@ -4,5 +4,5 @@ _gtty(fildes,argp) int fildes ; struct sgttyb *argp ; { - return _ioctl(fildes,TIOCGETP,argp) ; + return _ioctl(fildes,0x40067408,argp) ; } diff --git a/mach/sparc/libsys/gtty.c b/mach/sparc/libsys/gtty.c index be841e7d0..49500bb4c 100644 --- a/mach/sparc/libsys/gtty.c +++ b/mach/sparc/libsys/gtty.c @@ -4,5 +4,5 @@ gtty(fildes,argp) int fildes ; struct sgttyb *argp ; { - return ioctl(fildes,TIOCGETP,argp) ; + return ioctl(fildes,0x40067408,argp) ; } diff --git a/mach/sparc/libsys/stty.c b/mach/sparc/libsys/stty.c index 222310cc3..3b539df52 100644 --- a/mach/sparc/libsys/stty.c +++ b/mach/sparc/libsys/stty.c @@ -3,5 +3,5 @@ int stty(fildes,argp) int fildes ; struct sgttyb *argp ; { - return ioctl(fildes,TIOCSETP,argp) ; + return ioctl(fildes,0x80067409,argp) ; }