Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/net



On Mon, Aug 17, 2009 at 12:15:45PM -0700, Paul Goyette wrote:
> On Mon, 17 Aug 2009, David Young wrote:
>
>>>> Except for the fact that a sysctl node name cannot begin with a digit.
>>>
>>> What's stopping us from removing that restriction?
>>
>> That's a good question.  I don't know.  I had hoped that if I passed
>> NULL for the string name, namep, then sysctl_createv(9) would derive a
>> name from the integer name.  It does not work that way, yet.
>>
>> I do think that if a node's string name is all digits, that it should
>> equal the string representation of the integer name.
>
> I'm not sure I'm parsing you correctly.  Are you saying that the '3' in
>
>       blah.3.foo
>
> should match the node whose numeric value is 3, as in
>
>       12.3.456

Yes.

> or that it should match the node whose name is the ASCII char '3'  
> followed by a NUL character?

No.

> Either way still results in possibility of ambiguity.

Either way?

Dave

-- 
David Young             OJC Technologies
dyoung%ojctech.com@localhost      Urbana, IL * (217) 278-3933


Home | Main Index | Thread Index | Old Index