| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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:
if ((ut = fopen(_PATH_UTMP, "r")) == NULL) err(1, "%s", _PATH_UTMP);
This file utmp does not appear to exist on 10.5.
(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.
-
-- Terry _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/email@hidden
| References: | |
| >getutxent() not returning values when using 10.4u SDK (From: Rosyna <email@hidden>) | |
| >Re: getutxent() not returning values when using 10.4u SDK (From: Terry Lambert <email@hidden>) | |
| >Re: getutxent() not returning values when using 10.4u SDK (From: Rosyna <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.