kernel: Make chflags syscalls argument types consistent with userland.
authorzrj <rimvydas.jasinskas@gmail.com>
Sun, 6 Oct 2019 07:30:02 +0000 (10:30 +0300)
committerzrj <rimvydas.jasinskas@gmail.com>
Sun, 6 Oct 2019 11:03:37 +0000 (14:03 +0300)
commit513a5bc47eb6dbacacf9572911d8a1b2461e6679
treecbf30fa089e442d4b1d325611e13bf12041f715a
parente63f92998d853b901a27a28c2793fbb92d5936a0
kernel: Make chflags syscalls argument types consistent with userland.

 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.
15 files changed:
bin/mv/mv.c
include/unistd.h
lib/libc/gen/strtofflags.3
lib/libc/sys/chflags.2
sys/kern/syscalls.master
sys/kern/vfs_syscalls.c
sys/sys/stat.h
sys/sys/sysproto.h
sys/vfs/dirfs/dirfs.h
sys/vfs/dirfs/dirfs_subr.c
sys/vfs/tmpfs/tmpfs.h
sys/vfs/tmpfs/tmpfs_subr.c
usr.bin/kdump/kdump.c
usr.bin/kdump/kdump_subr.h
usr.bin/kdump/mksubr