sysctl ???

Rainer Müller raimue at
Wed Apr 17 04:56:10 PDT 2013

On 2013-04-17 12:31, vincent habchi wrote:
>> There is no "standard Tcl ‘sysctl’ call". The sysctl proc you can call
>> from portfiles is defined in src/macports1.0/sysctl.c. It's just a thin
>> wrapper around sysctlbyname(3) to make it available from Tcl.

Why is this wrapper in macports1.0 and not in pextlib1.0 where we define
all the others?

> […]
> BTW, “Macports sysctl” does not handle any options, so “sysctl -n …” returns “wrong number of args”.

/usr/sbin/sysctl -n only suppresses printing the label, so for our
wrapper it would not change anything.


More information about the macports-dev mailing list