--- Net2/sys/ioctl_compat.h 2018/04/24 18:03:58 1.1.1.1 +++ Net2/sys/ioctl_compat.h 2018/04/24 18:16:53 1.1.1.3 @@ -30,11 +30,12 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#)ioctl_compat.h 7.4 (Berkeley) 2/5/91 + * from: @(#)ioctl_compat.h 7.4 (Berkeley) 2/5/91 + * ioctl_compat.h,v 1.4 1993/05/20 16:22:25 cgd Exp */ -#ifndef _IOCTL_COMPAT_H_ -#define _IOCTL_COMPAT_H_ +#ifndef _SYS_IOCTL_COMPAT_H_ +#define _SYS_IOCTL_COMPAT_H_ #ifdef KERNEL #include "ttychars.h" @@ -164,4 +165,7 @@ struct sgttyb { #define NETLDISC 1 #define NTTYDISC 2 -#endif /* !_IOCTL_COMPAT_H_ */ +#define gtty(fd, tty) ioctl(fd, TIOCGETP, tty) +#define stty(fd, tty) ioctl(fd, TIOCSETP, tty) + +#endif /* !_SYS_IOCTL_COMPAT_H_ */