From owner-freebsd-emulation@FreeBSD.ORG Mon Nov 15 17:10:16 2010 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C123C106564A for ; Mon, 15 Nov 2010 17:10:16 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 2923A8FC1E for ; Mon, 15 Nov 2010 17:10:15 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id oAFH9xdn013755; Mon, 15 Nov 2010 18:10:14 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id oAFH9xPu013754; Mon, 15 Nov 2010 18:09:59 +0100 (CET) (envelope-from olli) Date: Mon, 15 Nov 2010 18:09:59 +0100 (CET) Message-Id: <201011151709.oAFH9xPu013754@lurza.secnetix.de> From: Oliver Fromme To: freebsd-emulation@FreeBSD.ORG, Alexander@leidinger.net In-Reply-To: <20101115151256.13513f6rcjsjgkqo@webmail.leidinger.net> X-Newsgroups: list.freebsd-emulation User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Mon, 15 Nov 2010 18:10:14 +0100 (CET) Cc: Subject: Re: MFC (RELENG_8) testers for a linprocfs patch? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Nov 2010 17:10:16 -0000 Alexander Leidinger wrote: > can someone please test the attached patch on a recent RELENG_8 > system? I got a request to MFC it, but I do not have a RELENG_8 system > around to test it (I haven't even compile-tested it). > > The changes are for > /compat/linux/proc/uptime > /compat/linux/proc//stat > /compat/linux/proc//procstatus > > I would like to just to know if it compiles fine and does not panic > the system when you access those files with cat. I've tested the patch on a RELENG_8 that's a few weeks old. Seems to work fine (except that you probably meant "status" instead of "procstatus"): # cat /usr/compat/linux/proc/uptime 33545.12 32346.33 # cat /usr/compat/linux/proc/$$/stat 2723 (zsh) S 2722 2723 2688 129 39437 0 3559 0 0 0 296 147 71712 7647 128 0 0 0 3151747 21069824 1162 4640 134512640 136077312 0 0 0 0 0 0 0 0 0 0 0 0 0 3 # cat /usr/compat/linux/proc/$$/status Name: zsh State: S (sleeping) Pid: 2723 PPid: 2722 Uid: 0 0 0 0 Gid: 0 0 0 0 Groups: 0 5 VmSize: 5144 kB VmLck: 0 kB VmRSS: 4648 kB VmData: 3488 kB VmStk: 128 kB VmExe: 1528 kB VmLib: 18446744073709551612 kB SigPnd: 00000000 SigBlk: 00000000 SigIgn: 1072c004 SigCgt: 08082003 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 # Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd $ dd if=/dev/urandom of=test.pl count=1 $ file test.pl test.pl: perl script text executable