Mark umask as safe

parent a595f2fc
......@@ -328,8 +328,8 @@ pub fn sigreturn() -> Result<usize> {
}
/// Set the file mode creation mask
pub unsafe fn umask(mask: usize) -> Result<usize> {
syscall1(SYS_UMASK, mask)
pub fn umask(mask: usize) -> Result<usize> {
unsafe { syscall1(SYS_UMASK, mask) }
}
/// Remove a file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment