From c910533bcbb2c7f9e8ef3628b012bfc70c2c33c9 Mon Sep 17 00:00:00 2001 From: 4lDO2 <4lDO2@protonmail.com> Date: Wed, 25 Sep 2024 19:36:40 +0200 Subject: [PATCH] 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. --- src/call.rs | 5 ----- src/number.rs | 1 - 2 files changed, 6 deletions(-) diff --git a/src/call.rs b/src/call.rs index 4dd79f6b73..fa49e48511 100644 --- a/src/call.rs +++ b/src/call.rs @@ -292,11 +292,6 @@ pub fn setreuid(ruid: usize, euid: usize) -> Result { unsafe { syscall2(SYS_SETREUID, ruid, euid) } } -/// Set the file mode creation mask -pub fn umask(mask: usize) -> Result { - unsafe { syscall1(SYS_UMASK, mask) } -} - /// Remove a file pub fn unlink>(path: T) -> Result { unsafe { diff --git a/src/number.rs b/src/number.rs index 2a53a57b88..e2ba3a27d8 100644 --- a/src/number.rs +++ b/src/number.rs @@ -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;