From owner-freebsd-emulation Tue May 22 17: 9:25 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from mail.disney.com (mail.disney.com [204.128.192.15]) by hub.freebsd.org (Postfix) with ESMTP id 97AF537B42C for ; Tue, 22 May 2001 17:09:23 -0700 (PDT) (envelope-from Jim.Pirzyk@disney.com) Received: from pain10.corp.disney.com (root@pain10.corp.disney.com [153.7.110.100]) by mail.disney.com (Switch-2.0.1/Switch-2.0.1) with SMTP id f4N08hA29346 for ; Tue, 22 May 2001 17:08:43 -0700 (PDT) Received: from louie.fa.disney.com by pain.corp.disney.com with ESMTP for freebsd-emulation@freebsd.org; Tue, 22 May 2001 17:10:02 -0700 Received: from mercury.fan.fa.disney.com (mercury.fan.fa.disney.com [153.7.119.1]) by louie.fa.disney.com (8.9.2/8.9.2) with ESMTP id RAA22019 for ; Tue, 22 May 2001 17:09:13 -0700 (PDT) (envelope-from Jim.Pirzyk@disney.com) Received: from snoopy.fan.fa.disney.com by mercury.fan.fa.disney.com for freebsd-emulation@freebsd.org; Tue, 22 May 2001 17:09:12 -0700 Content-Type: text/plain; charset="us-ascii" From: Jim Pirzyk Organization: Walt Disney Feature Animation To: freebsd-emulation@freebsd.org Subject: Linux:/var/run/utmp Date: Tue, 22 May 2001 17:09:12 -0700 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <01052217091200.00708@snoopy> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org So I have a program here that needs to read the Linux /var/run/utmp file (Platform's LSF software), but the problem is that Linux's utmp format is not the same as FreeBSD's. Linux format is closer to SVR4. So my question is what would be the best way to support this app? Here are my ideas so far: 1) write an app that stats /var/run/utmp and when it is changed, it updates /compat/linux/var/run/utmp with the correct information. 2) modify /usr/bin/login so that if it detects the Linux compatability module is loaded, write utmp entries to /var/run/utmp and /compat/linux/var/run/utmp. - JimP -- --- @(#) $Id: dot.signature,v 1.10 2001/05/17 23:38:49 Jim.Pirzyk Exp $ __o Jim.Pirzyk@disney.com ------------- pirzyk@freebsd.org _'\<,_ Senior Systems Engineer, Walt Disney Feature Animation (*)/ (*) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message