authorgravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2020-10-25 21:53:16+07:00
committergravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2020-10-25 21:53:16+07:00
log3ce9428e3d617625227bf6b61cae0b4ded946bfe
tree506d1cbca176da50f0d000dfe93dc87f51b3592f
parent5474d4338905e8535b13391f952830a15bc5eaeb

Various formatting fixes


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 {
12791279}
12801280
12811281pub 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 );
12831289}
12841290
12851291test "" {
lib/std/special/c.zig-2
......@@ -528,10 +528,8 @@ fn clone() callconv(.Naked) void {
528528 );
529529 },
530530 .sparcv9 => {
531 // Implementation by @LemonBoy (https://github.com/LemonBoy)
532531 // __clone(func, stack, flags, arg, ptid, tls, ctid)
533532 // i0, i1, i2, i3, i4, i5, sp
534
535533 // syscall(SYS_clone, flags, stack, ptid, tls, ctid)
536534 // g1 o0, o1, o2, o3, o4
537535 asm volatile (