Re: getutxent() not returning values when using 10.4u SDK
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com if ((ut = fopen(_PATH_UTMP, "r")) == NULL) err(1, "%s", _PATH_UTMP); This file utmp does not appear to exist on 10.5. On Jul 24, 2008, at 4:22 PM, Terry Lambert wrote: --- Sincerely, Rosyna Keller Technical Support/Carbon troll/Always needs a hug Unsanity: Unsane Tools for Insanely Great People It's either this, or imagining Phil Schiller in a thong. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I tried using the utmp code in http://www.opensource.apple.com/darwinsource/10.5.4/shell_cmds-118/w/w.c but it gives an error, "/var/run/utmp: No such file or directory" when attempting: (Basically, my only goal here is to find how long the current user has been logged in and doing it from a daemon safe framework/library. If you want the same information back for both SDKs, then you need to limit yourself to utmp instead, since that was fully supported in 10.4, and is a common API (it's considered legacy on 10.5 and later, but it should give the same answers for both SDKs). This email sent to site_archiver@lists.apple.com
participants (1)
-
Rosyna