From owner-freebsd-current Fri Sep 29 10:13:20 2000 Delivered-To: freebsd-current@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 3AB1137B423 for ; Fri, 29 Sep 2000 10:13:18 -0700 (PDT) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.3) with ESMTP id KAA08186; Fri, 29 Sep 2000 10:12:29 -0700 (PDT) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.3/8.9.1) id KAA16764; Fri, 29 Sep 2000 10:12:28 -0700 (PDT) (envelope-from jdp@polstra.com) Date: Fri, 29 Sep 2000 10:12:28 -0700 (PDT) Message-Id: <200009291712.KAA16764@vashon.polstra.com> To: current@freebsd.org Reply-To: current@freebsd.org Cc: mirko.viviani@rccr.cremona.it Subject: Re: procfs info. In-Reply-To: <200009291631.SAA25964@rccr1.rccr.cremona.it> References: <200009291631.SAA25964@rccr1.rccr.cremona.it> Organization: Polstra & Co., Seattle, WA Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <200009291631.SAA25964@rccr1.rccr.cremona.it>, wrote: > 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. I'm not seeing that on my 4.x-stable system from about a month ago: austin$ sleep 100 & [1] 67372 austin$ hd 67372/cmdline 00000000 73 6c 65 65 70 00 31 30 30 00 |sleep.100.| 0000000a As you can see, there's just a single NUL at the end. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message