diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2018-10-23 17:24:09 +0300 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2019-12-12 21:00:36 +0300 |
commit | 8243186f0cc7c57cf9d6a110cd7315c44e3e0be8 (patch) | |
tree | 16ca25ed6b291eb41de0d11b383fa7a263ad1121 /include | |
parent | b49a733d684e0096340b93e9dfd471f0e3ddc06d (diff) | |
download | linux-8243186f0cc7c57cf9d6a110cd7315c44e3e0be8.tar.xz |
fs: remove ksys_dup()
ksys_dup() is used only at one place in the kernel, namely to duplicate
fd 0 of /dev/console to stdout and stderr. The same functionality can be
achieved by using functions already available within the kernel namespace.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/syscalls.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 5262b7a76d39..2960dedcfde8 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h @@ -1232,7 +1232,6 @@ asmlinkage long sys_ni_syscall(void); */ int ksys_umount(char __user *name, int flags); -int ksys_dup(unsigned int fildes); int ksys_chroot(const char __user *filename); ssize_t ksys_write(unsigned int fd, const char __user *buf, size_t count); int ksys_chdir(const char __user *filename); |