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, 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

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

Either way still results in possibility of ambiguity.



-------------------------------------------------------------------------
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:      |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul at whooppee.com   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index