search for: getcurrentuserid

Displaying 4 results from an estimated 4 matches for "getcurrentuserid".

2005 Apr 21
0
[LLVMdev] misc CVS patches
...> 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...
2010 Oct 25
1
[LLVMdev] sprintf -> snprintf conversion
...e,buffer,10); @@ -290,16 +290,16 @@ memcpy(Hdr.name,ARFILE_LLVM_SYMTAB_NAME,16); uint64_t secondsSinceEpoch = sys::TimeValue::now().toEpochTime(); char buffer[32]; - sprintf(buffer, "%-8o", 0644); - memcpy(Hdr.mode,buffer,8); - sprintf(buffer, "%-6u", sys::Process::GetCurrentUserId()); - memcpy(Hdr.uid,buffer,6); - sprintf(buffer, "%-6u", sys::Process::GetCurrentGroupId()); - memcpy(Hdr.gid,buffer,6); - sprintf(buffer,"%-12u", unsigned(secondsSinceEpoch)); - memcpy(Hdr.date,buffer,12); - sprintf(buffer,"%-10u",symTabSize); - memcpy(Hdr.siz...
2005 Apr 20
8
[LLVMdev] misc CVS patches
On Wed, Apr 20, 2005 at 12:12:54PM +0200, Markus F.X.J. Oberhumer wrote: > Misha Brukman wrote: > >On Tue, Apr 19, 2005 at 07:01:40AM +0200, Markus F.X.J. Oberhumer > >wrote: Have you considered using bugpoint for your codegen debugging > >needs? http://llvm.cs.uiuc.edu/docs/Bugpoint.html#codegendebug > > Well, the (critical) bug in question was >
2005 Apr 21
0
[LLVMdev] misc CVS patches
...ing 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...