search for: getcurrentgroupid

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

2005 Apr 21
0
[LLVMdev] misc CVS patches
...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...
2010 Oct 25
1
[LLVMdev] sprintf -> snprintf conversion
...ondsSinceEpoch = 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.size,buffer,10); + snprintf(buffer, sizeof(buffer), "%-8o", 0644); + memcpy(Hdr.mode,buffer,...
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
...Id" 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 > > defaulti...