git: kernel: Make chflags syscalls argument types consistent with userland.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Sun Oct 6 03:42:36 PDT 2019


commit 513a5bc47eb6dbacacf9572911d8a1b2461e6679
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Sun Oct 6 10:30:02 2019 +0300

    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.

Summary of changes:
 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(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/513a5bc47eb6dbacacf9572911d8a1b2461e6679


-- 
DragonFly BSD source repository


More information about the Commits mailing list