cleaning up syscalls in preparation for x86_64 port
- hide all the legacy xxxxxx32 name cruft in syscall.h so the actual source files can be clean and uniform across all archs. - cleanup llseek/lseek and mmap2/mmap handling for 32/64 bit systems - alternate implementation for nice if the target lacks nice syscall
This commit is contained in:
parent
978ca01659
commit
2cdfb7ca26
18 changed files with 79 additions and 37 deletions
|
|
@ -1,9 +1,7 @@
|
|||
#include <unistd.h>
|
||||
#define SYSCALL_STANDALONE
|
||||
#include "syscall.h"
|
||||
|
||||
int setgroups(int count, const gid_t list[])
|
||||
{
|
||||
/* this depends on our gid_t being 32bit */
|
||||
return syscall2(__NR_setgroups32, count, (long)list);
|
||||
return syscall2(__NR_setgroups, count, (long)list);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue