*BSD News Article 32316


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!pipex!relay2.pipex.net!not-for-mail
From: tim@pipex.net (Tim Goodwin)
Newsgroups: comp.unix.bsd
Subject: Large UIDs in 4.4bsd?
Date: 3 Jul 1994 13:14:42 +0100
Organization: PIPEX, 216 Science Park, Cambridge, England
Lines: 23
Message-ID: <2v6a3i$gcb@relay2.pipex.net>
NNTP-Posting-Host: relay2.pipex.net

I seem to remember hearing that 4.4bsd supports UIDs longer than 16
bits.  Is this correct?

I did try to `Use the Source, Luke', but it's a bit confusing.
/usr/src/sys/sys/types.h of the lite distribution reads

        typedef unsigned long uid_t;

which looks encouraging, but then /usr/src/share/man/man5/types.5 reads

        typedef u_short uid_t;

Assuming it's the documentation that's wrong, would this translate into
a UID range of 0 - 4294967295 on, say, the SPARC architecture?  What
about a 64 bit machine?

Any clarification appreciated.  Mail me, and I'll summarize.

Tim.
-- 
Tim Goodwin        | "Any time *anything* goes wrong on a
Public IP Exchange | PC, I immediately suspect a hardware
Cambridge, UK      | problem :-)." -- Chris Torek