From owner-freebsd-emulation Tue Dec 29 03:23:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA19335 for freebsd-emulation-outgoing; Tue, 29 Dec 1998 03:23:14 -0800 (PST) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from gaia.euronet.nl (gaia.euronet.nl [194.134.0.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA19327 for ; Tue, 29 Dec 1998 03:23:12 -0800 (PST) (envelope-from marcel@scc.nl) Received: from scones.sup.scc.nl (i448.ztm.euronet.nl [194.134.67.169]) by gaia.euronet.nl (8.8.8/8.8.8) with ESMTP id MAA29839; Tue, 29 Dec 1998 12:22:52 +0100 (MET) Received: from scc.nl (scones.sup.scc.nl [192.168.2.4]) by scones.sup.scc.nl (8.9.1/8.9.1) with ESMTP id MAA17729; Tue, 29 Dec 1998 12:22:18 +0100 (CET) (envelope-from marcel@scc.nl) Message-ID: <3688BB6A.40F80E67@scc.nl> Date: Tue, 29 Dec 1998 12:22:18 +0100 From: Marcel Moolenaar Organization: SCC vof X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 3.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: Greg Lehey CC: freebsd-emulation@FreeBSD.ORG Subject: Re: linux ps(1) for FreeBSD References: <3688B050.B0E97AA9@scc.nl> <19981229212208.V32696@freebie.lemis.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Greg Lehey wrote: > > > if not; is somebody currently porting ps(1)? > > if not; is ps(1) needed in other situations that a port is at all justified? > > The problem is that ps(1) reflects some of the kernel's most intimate > parts. It's very difficult to fake a Linux environment at this > level. About the best you can hope for is to fake something which > Oracle will accept. That's the idea: make a version of ps(1) that mimics the behaviour os a Linux ps(1). I don't think a true port of ps(1) is necessary or even feasable. A version which handles the most common process info. should be possible. Any application that depends on specific intimate Linux info. probably goes to the /proc filesystem itself, don't you think? > Do you have more details? Yes. What do you have in mind? :-) I'll try to extract the "ps|grep" pipe details from a ktrace. That should give you a better context. marcel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message