From b5ef900ccde41dd8bf922eeae8ebdcc964539f46 Mon Sep 17 00:00:00 2001 From: Liav A Date: Tue, 15 Feb 2022 21:41:41 +0200 Subject: Kernel: Don't assume paths of TTYs and pseudo terminals anymore The obsolete ttyname and ptsname syscalls are removed. LibC doesn't rely on these anymore, and it helps simplifying the Kernel in many places, so it's an overall an improvement. In addition to that, /proc/PID/tty node is removed too as it is not needed anymore by userspace to get the attached TTY of a process, as /dev/tty (which is already a character device) represents that as well. --- Kernel/API/Syscall.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'Kernel/API/Syscall.h') diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h index ab809805a4..921eb4ee8a 100644 --- a/Kernel/API/Syscall.h +++ b/Kernel/API/Syscall.h @@ -134,7 +134,6 @@ enum class NeedsBigProcessLock { S(profiling_enable, NeedsBigProcessLock::Yes) \ S(profiling_free_buffer, NeedsBigProcessLock::Yes) \ S(ptrace, NeedsBigProcessLock::Yes) \ - S(ptsname, NeedsBigProcessLock::Yes) \ S(purge, NeedsBigProcessLock::Yes) \ S(read, NeedsBigProcessLock::Yes) \ S(pread, NeedsBigProcessLock::Yes) \ @@ -181,7 +180,6 @@ enum class NeedsBigProcessLock { S(sync, NeedsBigProcessLock::No) \ S(sysconf, NeedsBigProcessLock::No) \ S(times, NeedsBigProcessLock::Yes) \ - S(ttyname, NeedsBigProcessLock::Yes) \ S(umask, NeedsBigProcessLock::Yes) \ S(umount, NeedsBigProcessLock::Yes) \ S(uname, NeedsBigProcessLock::No) \ -- cgit v1.2.3