I checked the man pages and documentation but they only discuss the command line call. I am talking about the C function. Two questions about it:
- What are the arguments to sysctl() in C? (I just want a general
description of what each argument is and what it is used for) - Is the sysctl() call still valid in Mac OS X Lion?
I am on Mac OS X Snow Leopard using Xcode 3.2.6
Well, quoting this page, assuming it has the prototype:
then it’s parameters would be as follows:
<linux/sysctl.h>.I’d recommend you read that entire page, since it provides more extensive details. And as for it being valid in Mac OS X Lion, I’m not sure, but I’d imagine.
Hope I helped!