[LLVMdev] misc CVS patches

Reid Spencer
Thu, 21 Apr 2005 16:17:32 -0000

On Thu, 2005-04-21 at 17:56 +0200, Markus F.X.J. Oberhumer wrote:

> Reid Spencer wrote:
> > If a specific value for these is
> > needed on a given platform, then we need to implement something like
> > "getDefaultUserId" and "getDefaultGroupId"
functions in lib/System and
> > use those in lib/Bytecode/Archive.
>
> That's probably the way to go.


Implemented as sys::Process::GetCurrentUserId() and
sys::Process::GetCurrentGroupId(). Both Unix and Win32 implementations
have been provided. Jeff, is there something more intelligent on Win32
that these methods could return (other than 65536)?.

I've also corrected the ArchiveWriter to use these methods when it is
defaulting the archive header.

Reid
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20050421/fe35e8cd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20050421/fe35e8cd/attachment.sig>