site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com -- Terry _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... Use the string version of the selector and sysctlbyname(). Expect that MIB-based sysctl() and OID definitions will go away at some point in the future, as they are not automatically extensible without recompilation of the command line tool. The other advantage of by name sysctl() is that you can know if it is supported or not on a given OS version by whether it returns an error, which is helpful to future-proof your applications. That way if you get run on an older version of the OS, you can decide to still run. All that said, the selector itself is not particularly useful, since launchd gets a -s argument in single user mode now, and it's really the only application that should care. On Apr 13, 2008, at 7:07 PM, Tony Scaminaci <friskythecat@sbcglobal.net> wrote: I just built my application under Xcode 3.0 and noticed that there's a new parameter returned by sysctl called kern.singleuser. However, I can't find a sysctl selector for this in sysctl.h. I was using KERN_SECURELVL in previous OS versions to determine whether I was running in single-user mode but this selector now returns 0 in multiuser mode under Leopard. What is the selector for kern.singleuser? _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/tlambert%40apple.com This email sent to tlambert@apple.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Terry Lambert