Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Sep 2000 10:12:28 -0700 (PDT)
From:      John Polstra <jdp@polstra.com>
To:        current@freebsd.org
Cc:        mirko.viviani@rccr.cremona.it
Subject:   Re: procfs info.
Message-ID:  <200009291712.KAA16764@vashon.polstra.com>
In-Reply-To: <200009291631.SAA25964@rccr1.rccr.cremona.it>
References:  <200009291631.SAA25964@rccr1.rccr.cremona.it>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <200009291631.SAA25964@rccr1.rccr.cremona.it>,
<mirko.viviani@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009291712.KAA16764>