Various formatting fixes
This commit is contained in:
@@ -1279,7 +1279,13 @@ pub fn setrlimit(resource: rlimit_resource, rlim: *const rlimit) usize {
|
||||
}
|
||||
|
||||
pub fn prlimit(pid: pid_t, resource: rlimit_resource, new_limit: ?*const rlimit, old_limit: ?*rlimit) usize {
|
||||
return syscall4(.prlimit64, @bitCast(usize, @as(isize, pid)), @bitCast(usize, @as(isize, @enumToInt(resource))), @ptrToInt(new_limit), @ptrToInt(old_limit));
|
||||
return syscall4(
|
||||
.prlimit64,
|
||||
@bitCast(usize, @as(isize, pid)),
|
||||
@bitCast(usize, @as(isize, @enumToInt(resource))),
|
||||
@ptrToInt(new_limit),
|
||||
@ptrToInt(old_limit),
|
||||
);
|
||||
}
|
||||
|
||||
test "" {
|
||||
|
||||
@@ -528,10 +528,8 @@ fn clone() callconv(.Naked) void {
|
||||
);
|
||||
},
|
||||
.sparcv9 => {
|
||||
// Implementation by @LemonBoy (https://github.com/LemonBoy)
|
||||
// __clone(func, stack, flags, arg, ptid, tls, ctid)
|
||||
// i0, i1, i2, i3, i4, i5, sp
|
||||
|
||||
// syscall(SYS_clone, flags, stack, ptid, tls, ctid)
|
||||
// g1 o0, o1, o2, o3, o4
|
||||
asm volatile (
|
||||
|
||||
Reference in New Issue
Block a user