From d6ecc915cc27c2d4d19e9d25926a18aae2eb5e13 Mon Sep 17 00:00:00 2001 From: cognet Date: Thu, 26 Jan 2006 01:32:46 +0000 Subject: Linux compat bits needed to make linux programs use the new ptys : linux_ioctl.[ch] : Implement LINUX_TIOCGPTN, which returns the pty number linux_stats.c : - Return the magic number for devfs. - In various stats()-related functions, check that we're stating a file in /dev/pts, and if so, change the st_rdev field to match what linux expects to be there for a slave pty device. The glibc checks for this, and their openpty() fails if it is no correct. --- sys/compat/linux/linux_ioctl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/compat/linux/linux_ioctl.h') diff --git a/sys/compat/linux/linux_ioctl.h b/sys/compat/linux/linux_ioctl.h index 96243dd..5e3b520 100644 --- a/sys/compat/linux/linux_ioctl.h +++ b/sys/compat/linux/linux_ioctl.h @@ -362,6 +362,8 @@ #define LINUX_TIOCSBRK 0x5427 #define LINUX_TIOCCBRK 0x5428 +#define LINUX_TIOCGPTN 0x5430 + #ifdef __alpha__ #define LINUX_FIOCLEX 0x6601 #define LINUX_FIONCLEX 0x6602 -- cgit v1.1