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:

To avoid amibiguities, I say that a digits-only name MUST match the
integer name.  ...

Yes, I would agree with your match criterium.

... That is, this should not be allowed:

sysctl_createv(NULL, 0,
              NULL, &cnode,
              CTLFLAG_PERMANENT, CTLTYPE_NODE, "17", NULL,
              NULL, 0, NULL, 0, 12, 3, CTL_EOL);

because that would create a node with the numeric path 12.3 whose string
path ends in "17".

So all we end up doing is easing the restriction from "no leading digit" to "at least one non-digit" in the node names.

But that doesn't solve the problem which started this thread. In that example, we had a node whose entire name was "3"

:)





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