From owner-cvs-src@FreeBSD.ORG Thu Jan 26 01:32:48 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F41F16A424; Thu, 26 Jan 2006 01:32:47 +0000 (GMT) (envelope-from cognet@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35DAB43D46; Thu, 26 Jan 2006 01:32:47 +0000 (GMT) (envelope-from cognet@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k0Q1Wl2f009741; Thu, 26 Jan 2006 01:32:47 GMT (envelope-from cognet@repoman.freebsd.org) Received: (from cognet@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k0Q1Wl7R009740; Thu, 26 Jan 2006 01:32:47 GMT (envelope-from cognet) Message-Id: <200601260132.k0Q1Wl7R009740@repoman.freebsd.org> From: Olivier Houchard Date: Thu, 26 Jan 2006 01:32:47 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/compat/linux linux_ioctl.c linux_ioctl.h linux_stats.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jan 2006 01:32:48 -0000 cognet 2006-01-26 01:32:47 UTC FreeBSD src repository Modified files: sys/compat/linux linux_ioctl.c linux_ioctl.h linux_stats.c Log: 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. Revision Changes Path 1.132 +9 -1 src/sys/compat/linux/linux_ioctl.c 1.23 +2 -0 src/sys/compat/linux/linux_ioctl.h 1.73 +22 -0 src/sys/compat/linux/linux_stats.c