From owner-freebsd-current Fri Sep 29 10: 7: 8 2000 Delivered-To: freebsd-current@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id C3A9D37B422 for ; Fri, 29 Sep 2000 10:07:05 -0700 (PDT) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id MAA20880; Fri, 29 Sep 2000 12:07:01 -0500 (CDT) (envelope-from dan) Date: Fri, 29 Sep 2000 12:07:01 -0500 From: Dan Nelson To: mirko.viviani@rccr.cremona.it Cc: current@FreeBSD.ORG Subject: Re: procfs info. Message-ID: <20000929120701.A10189@dan.emsphone.com> References: <200009291631.SAA25964@rccr1.rccr.cremona.it> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.3.9i In-Reply-To: <200009291631.SAA25964@rccr1.rccr.cremona.it>; from "mirko.viviani@rccr.cremona.it" on Fri Sep 29 18:31:26 GMT 2000 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Sep 29), mirko.viviani@rccr.cremona.it said: > I need to know the exact format of the /proc/*/cmdline of FreeBSD. > Actually I'm using 4.1 and I have discovered that at the end of > cmdline file there are always 2 NULL characters. You sure? $ uname -v FreeBSD 5.0-CURRENT #69: Tue Sep 5 18:59:54 CDT 2000 dan@dan.emsphone.com:/usr/src/sys/compile/DANSMP $ hd /proc/curproc/cmdline 00000000 68 64 00 2f 70 72 6f 63 2f 63 75 72 70 72 6f 63 |hd./proc/curproc| 00000010 2f 63 6d 64 6c 69 6e 65 00 |/cmdline.| 00000019 $ uname -v FreeBSD 4.0-STABLE #6: Tue Aug 8 18:35:09 CDT 2000 zsh@emssrv5.emsphone.com:/usr/src/sys/compile/EMSSRV5 $ hd /proc/curproc/cmdline 00000000 68 64 00 2f 70 72 6f 63 2f 63 75 72 70 72 6f 63 |hd./proc/curproc| 00000010 2f 63 6d 64 6c 69 6e 65 00 |/cmdline.| 00000019 -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message