kernel: Make chflags syscalls argument types consistent with userland

Operating Systems / DragonFlyBSD - zrj [gmail.com] - 6 October 2019 11:03 EDT

There was an inconsistency between userland and syscalls argument types that was inherited after initial fork. Adjust prototypes to use u_long and add missing const char* too. Rerun sysent. Change tmpfs/dirfs to use u_int for flags since mask for superuser changeable flags is SF_SETTABLE 0xffff0000 (most fs use uint32_t), adjust mksubr script. Remove no longer needed (u_long) casts I could find elsewhere.

While there, adjust unistd.h prototypes to use generic types too.

513a5bc47e kernel: Make chflags syscalls argument types consistent with userland.
bin/mv/mv.c | 2 +-
include/unistd.h | 4 ++--
lib/libc/gen/strtofflags.3 | 7 +++----
lib/libc/sys/chflags.2 | 10 +++++-----
sys/kern/syscalls.master | 8 ++++----
sys/kern/vfs_syscalls.c | 12 ++++++------
sys/sys/stat.h | 8 ++++----
sys/sys/sysproto.h | 12 ++++++------
sys/vfs/dirfs/dirfs.h | 4 ++--
sys/vfs/dirfs/dirfs_subr.c | 2 +-
sys/vfs/tmpfs/tmpfs.h | 4 ++--
sys/vfs/tmpfs/tmpfs_subr.c | 2 +-
usr.bin/kdump/kdump.c | 2 +-
usr.bin/kdump/kdump_subr.h | 2 +-
usr.bin/kdump/mksubr | 40 +++++++++++++++++++++++++++++++++++++++-
15 files changed, 78 insertions(+), 41 deletions(-)

Upstream: gitweb.dragonflybsd.org


  • Share