| ... | ... | @@ -865,7 +865,13 @@ pub const mlockall = @compileError("TODO: mlockall"); |
| 865 | 865 | // munlockall |
| 866 | 866 | // int munlockall(void); |
| 867 | 867 | // asmlinkage long sys_munlockall(void); |
| 868 | | pub const munlockall = @compileError("TODO: munlockall"); |
| 868 | pub fn munlockall() errno.Error!c_int { |
| 869 | const r = syscall0(.munlockall); |
| 870 | return switch (_errno(r)) { |
| 871 | .ok => @intCast(r), |
| 872 | _ => |c| errno.errorFromInt(@intFromEnum(c)), |
| 873 | }; |
| 874 | } |
| 869 | 875 | |
| 870 | 876 | // vhangup |
| 871 | 877 | // int vhangup(void); |