| ... | @@ -865,7 +865,13 @@ pub const mlockall = @compileError("TODO: mlockall"); | ... | @@ -865,7 +865,13 @@ pub const mlockall = @compileError("TODO: mlockall"); |
| 865 | // munlockall | 865 | // munlockall |
| 866 | // int munlockall(void); | 866 | // int munlockall(void); |
| 867 | // asmlinkage long sys_munlockall(void); | 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 | // vhangup | 876 | // vhangup |
| 871 | // int vhangup(void); | 877 | // int vhangup(void); |