logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: User authentication to services: msg#00005

freedesktop.dbus

Subject: Re: User authentication to services

On Wed, Jun 02, 2004 at 06:59:32AM +0100, Rob Taylor wrote:
> Ok. started implenting this and am pretty far in, but i have a problem
> with uids in that dbus represents them internally as unsigned longs, and
> if i expose these on dbus we'll have problems on mixed 32/64
> archictectures. I'm pretty certain that uid_t should be a 32 bit entitiy
> on both IAP32 and LP64, and if anyone knows this for certain i'll patch
> it up. If not, i've just subscribed to testdrive.hp.com so i'll just test
> it myself. if uid_t is really 64 bits on LP64, i'll just cast up, but i
> think this set of affairs would be pretty strange..

Indeed, on merkel.debian.org (an IA64):
daniels-sbOth6YQF1c@xxxxxxxxxxxxxxxx:~% cat foo.c
#include <stdio.h>
#include <pwd.h>

int main(int argc, char *argv[]) {
printf("uid_t: %d, unsigned long: %d\n", sizeof(uid_t), sizeof(unsigned
long));
return 0;
}
daniels-sbOth6YQF1c@xxxxxxxxxxxxxxxx:~% gcc -D_XOPEN_SOURCE -o foo foo.c
daniels-sbOth6YQF1c@xxxxxxxxxxxxxxxx:~% ./foo
uid_t: 4, unsigned long: 8

--
Daniel Stone
<daniel-CC+yJ3UmIYoUP7JLjWt5Lw@xxxxxxxxxxxxxxxxxxxx>
freedesktop.org: powering your desktop http://www.freedesktop.org

Attachment: signature.asc
Description: Digital signature






Only community members can participate in forum threads. You must Register or log in to contribute.

<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo