Ver código fonte

Fixed calls to ioctl; sizes of structs are different in ACK

ceriel 33 anos atrás
pai
commit
52a38e47ca
3 arquivos alterados com 3 adições e 3 exclusões
  1. 1 1
      mach/sparc/libsys/_gtty.c
  2. 1 1
      mach/sparc/libsys/gtty.c
  3. 1 1
      mach/sparc/libsys/stty.c

+ 1 - 1
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) ;
 }

+ 1 - 1
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) ;
 }

+ 1 - 1
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) ;
 }