Fixed calls to ioctl; sizes of structs are different in ACK
This commit is contained in:
@@ -4,5 +4,5 @@ _gtty(fildes,argp)
|
|||||||
int fildes ;
|
int fildes ;
|
||||||
struct sgttyb *argp ;
|
struct sgttyb *argp ;
|
||||||
{
|
{
|
||||||
return _ioctl(fildes,TIOCGETP,argp) ;
|
return _ioctl(fildes,0x40067408,argp) ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ gtty(fildes,argp)
|
|||||||
int fildes ;
|
int fildes ;
|
||||||
struct sgttyb *argp ;
|
struct sgttyb *argp ;
|
||||||
{
|
{
|
||||||
return ioctl(fildes,TIOCGETP,argp) ;
|
return ioctl(fildes,0x40067408,argp) ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,5 +3,5 @@ int stty(fildes,argp)
|
|||||||
int fildes ;
|
int fildes ;
|
||||||
struct sgttyb *argp ;
|
struct sgttyb *argp ;
|
||||||
{
|
{
|
||||||
return ioctl(fildes,TIOCSETP,argp) ;
|
return ioctl(fildes,0x80067409,argp) ;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user