the changes to syscall_ret are mostly no-ops in the generated code, just cleanup of type issues and removal of some implementation-defined behavior. the one exception is the change in the comparison value, which is fixed so that 0xf...f000 (which in principle could be a valid return value for mmap, although probably never in reality) is not treated as an error return.
8 lines
122 B
C
8 lines
122 B
C
#include <unistd.h>
|
|
#include "syscall.h"
|
|
|
|
int setpgid(pid_t pid, pid_t pgid)
|
|
{
|
|
return syscall(SYS_setpgid, pid, pgid);
|
|
}
|