fs: Make obsolete syscalls optional
This patch adds a new symbol, CONFIG_OBSOLETE_SYSCALLS, that allows compiling
out all of the obsolete syscalls. The list of optional deprecated syscalls is
not final and is to be updated.
Running against a kernel with this option disabled requires a libc that only
calls the latest version of each system call, not any older versions, even in
cases where the older version would suffice.
Bloat-o-meter output:
add/remove: 0/12 grow/shrink: 2/0 up/down: 445/-1668 (-1223)
function old new delta
sys_newuname 111 355 +244
vfs_statfs 153 354 +201
warncount 4 - -4
sys_ustat 16 - -16
sys_stat 41 - -41
sys_lstat 41 - -41
sys_fstat 41 - -41
vfs_ustat 63 - -63
SYSC_ustat 119 - -119
sys_uname 127 - -127
statfs_by_dentry 207 - -207
override_release 298 - -298
sys_olduname 329 - -329
cp_old_stat 382 - -382
Signed-off-by: Iulia Manda <iulia.manda21@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
7 files changed