| author | |
| committer | |
| log | 3ce9428e3d617625227bf6b61cae0b4ded946bfe |
| tree | 506d1cbca176da50f0d000dfe93dc87f51b3592f |
| parent | 5474d4338905e8535b13391f952830a15bc5eaeb |
2 files changed, 7 insertions(+), 3 deletions(-)
lib/std/os/linux.zig+7-1| ... | ... | @@ -1279,7 +1279,13 @@ pub fn setrlimit(resource: rlimit_resource, rlim: *const rlimit) usize { |
| 1279 | 1279 | } |
| 1280 | 1280 | |
| 1281 | 1281 | pub fn prlimit(pid: pid_t, resource: rlimit_resource, new_limit: ?*const rlimit, old_limit: ?*rlimit) usize { |
| 1282 | return syscall4(.prlimit64, @bitCast(usize, @as(isize, pid)), @bitCast(usize, @as(isize, @enumToInt(resource))), @ptrToInt(new_limit), @ptrToInt(old_limit)); | |
| 1282 | return syscall4( | |
| 1283 | .prlimit64, | |
| 1284 | @bitCast(usize, @as(isize, pid)), | |
| 1285 | @bitCast(usize, @as(isize, @enumToInt(resource))), | |
| 1286 | @ptrToInt(new_limit), | |
| 1287 | @ptrToInt(old_limit), | |
| 1288 | ); | |
| 1283 | 1289 | } |
| 1284 | 1290 | |
| 1285 | 1291 | test "" { |
lib/std/special/c.zig-2| ... | ... | @@ -528,10 +528,8 @@ fn clone() callconv(.Naked) void { |
| 528 | 528 | ); |
| 529 | 529 | }, |
| 530 | 530 | .sparcv9 => { |
| 531 | // Implementation by @LemonBoy (https://github.com/LemonBoy) | |
| 532 | 531 | // __clone(func, stack, flags, arg, ptid, tls, ctid) |
| 533 | 532 | // i0, i1, i2, i3, i4, i5, sp |
| 534 | ||
| 535 | 533 | // syscall(SYS_clone, flags, stack, ptid, tls, ctid) |
| 536 | 534 | // g1 o0, o1, o2, o3, o4 |
| 537 | 535 | asm volatile ( |