Remove SYS_UMASK.

Now that all POSIX open-related calls go through relibc, this value can
be downgraded to a (process-local) global variable in userspace.
This commit is contained in:
4lDO2
2024-09-25 19:36:40 +02:00
parent d4bb34e06c
commit c910533bcb
2 changed files with 0 additions and 6 deletions
-5
View File
@@ -292,11 +292,6 @@ pub fn setreuid(ruid: usize, euid: usize) -> Result<usize> {
unsafe { syscall2(SYS_SETREUID, ruid, euid) }
}
/// Set the file mode creation mask
pub fn umask(mask: usize) -> Result<usize> {
unsafe { syscall1(SYS_UMASK, mask) }
}
/// Remove a file
pub fn unlink<T: AsRef<str>>(path: T) -> Result<usize> {
unsafe {
-1
View File
@@ -88,6 +88,5 @@ pub const SYS_SETPGID: usize = 57;
pub const SYS_SETREGID: usize = 204;
pub const SYS_SETRENS: usize = 952;
pub const SYS_SETREUID: usize = 203;
pub const SYS_UMASK: usize = 60;
pub const SYS_WAITPID: usize = 7;
pub const SYS_YIELD: usize = 158;