• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: get currently logging in users
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get currently logging in users


  • Subject: Re: get currently logging in users
  • From: Michael Watson <email@hidden>
  • Date: Fri, 14 Mar 2008 01:18:33 -0400

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:
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>)

  • Prev by Date: Re: Core Animation - Modifying CAConstraints
  • Next by Date: Re: get currently logging in users
  • Previous by thread: Re: get currently logging in users
  • Next by thread: Re: get currently logging in users
  • Index(es):
    • Date
    • Thread