git: <sys/types.h>: Get rid of udev_t.

Sascha Wildner swildner at crater.dragonflybsd.org
Sun Dec 1 03:10:09 PST 2019


commit 91ffdfc56308b48600d5b200bd03a4da6ae6e2e4
Author: Sascha Wildner <saw at online.de>
Date:   Sun Dec 1 11:59:08 2019 +0100

    <sys/types.h>: Get rid of udev_t.
    
    In a time long long ago, dev_t was a pointer, which later became cdev_t
    during the great cleanups, until it ended up being a uint32_t, just like
    udev_t. See for example the definitions of __dev_t in <sys/stat.h>.
    
    This commit cleans up further by removing the udev_t type, leaving just
    the POSIX dev_t type for both kernel and userland. Put it inside a
    _DEV_T_DECLARED to prepare for further cleanups in <sys/stat.h>.

Summary of changes:
 sbin/sysctl/sysctl.8               |  8 ++++----
 sys/dev/disk/dm/dm.h               |  2 +-
 sys/dev/misc/snp/snp.c             |  2 +-
 sys/kern/kern_conf.c               | 16 ++++++++--------
 sys/kern/kern_proc.c               |  2 +-
 sys/kern/kern_shutdown.c           |  2 +-
 sys/kern/vfs_jops.c                |  2 +-
 sys/kern/vfs_journal.c             |  2 +-
 sys/sys/acct.h                     | 10 +---------
 sys/sys/conf.h                     |  2 +-
 sys/sys/devfs.h                    |  4 ++--
 sys/sys/param.h                    |  2 +-
 sys/sys/snoop.h                    | 10 ----------
 sys/sys/stat.h                     | 12 ++----------
 sys/sys/sysctl.h                   |  2 +-
 sys/sys/systm.h                    | 10 +++++-----
 sys/sys/types.h                    | 20 +++++++-------------
 sys/sys/vfscache.h                 |  2 +-
 sys/vfs/devfs/devfs_core.c         |  8 ++++----
 sys/vfs/hammer/hammer.h            |  4 ++--
 sys/vfs/hammer/hammer_subs.c       |  4 ++--
 sys/vfs/isofs/cd9660/cd9660_node.h |  2 +-
 sys/vfs/nfs/nfs_serv.c             |  2 +-
 sys/vfs/nfs/nfs_subs.c             |  4 ++--
 sys/vfs/tmpfs/tmpfs_subr.c         |  2 +-
 usr.bin/fstat/fstat.c              | 16 ++++++++--------
 usr.bin/fstat/fstat.h              |  4 ++--
 usr.bin/fstat/hammer.c             |  4 ++--
 usr.bin/fstat/hammer2.c            |  4 ++--
 usr.bin/fstat/tmpfs.c              |  4 ++--
 30 files changed, 68 insertions(+), 100 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/91ffdfc56308b48600d5b200bd03a4da6ae6e2e4


-- 
DragonFly BSD source repository


More information about the Commits mailing list