Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get currently logging in users



First, seconding what others are saying. This is not the right list for your problem if you go into the low-level APIs.

The main difference between tiger and leopard's who source is the use of utmp and utmpx. utmp has been deprecated on leopard. leopard uses utmpx to retrieve currently logging in users. utmp uses at tiger is buggy?

It's just limited. It's pretty easy to spot the difference in this regard, no guessing needed: the size of the ut_name member of the utmp struct is defined as 8 bytes. In the utmpx struct, however, you'll find that the size of the ut_user member is defined as 256 bytes. The old struct could only hold the first eight characters of the short name, while the one preferred under Leopard can hold very long short names.



-- m-s _______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >get currently logging in users (From: lazuardi <email@hidden>)
 >Re: get currently logging in users (From: Andrew Farmer <email@hidden>)
 >Re: get currently logging in users (From: lazuardi <email@hidden>)
 >Re: get currently logging in users (From: "Kyle Sluder" <email@hidden>)
 >Re: get currently logging in users (From: lazuardi <email@hidden>)
 >Re: get currently logging in users (From: Michael Watson <email@hidden>)
 >Re: get currently logging in users (From: lazuardi <email@hidden>)



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.