[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Savannah-hackers] snapshots
From: |
Colin Walters |
Subject: |
Re: [Savannah-hackers] snapshots |
Date: |
19 Apr 2002 00:01:12 -0400 |
On Thu, 2002-04-18 at 18:23, Gord Eagle wrote:
> Mostly, I remember that the alternative solutions were less portable
> and/or harder to maintain than the hack I suggested...
I actually wasn't complaining about the approach in general (since I
don't know the details), rather just the use of inline i386 assembly to
make a system call, instead of just using the syscall glibc function.
I'm thinking of something like the following:
int
setgroups (size_t n, const gid_t *groups)
{
size_t i;
__kernel_gid_t kernel_groups[n];
for (i = 0; i < n; i ++)
kernel_groups[i] = groups[i];
{
int ret = syscall(__NR_setgroups, n, kernel_groups);
return (ret);
}
}
- Re: [Savannah-hackers] snapshots, (continued)
- Re: [Savannah-hackers] snapshots, Mathieu Roy, 2002/04/18
- Re: [Savannah-hackers] snapshots, Jaime E . Villate, 2002/04/18
- Re: [Savannah-hackers] snapshots, Loic Dachary, 2002/04/18
- Re: [Savannah-hackers] snapshots, Colin Walters, 2002/04/18
- Re: [Savannah-hackers] snapshots, Loic Dachary, 2002/04/19
- Re: [Savannah-hackers] snapshots, Colin Walters, 2002/04/20
- Re: [Savannah-hackers] snapshots, Loic Dachary, 2002/04/23
- Re: [Savannah-hackers] snapshots, Colin Walters, 2002/04/29
Re: [Savannah-hackers] snapshots, Loic Dachary, 2002/04/18