Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys avoid "u_int"



details:   https://anonhg.NetBSD.org/src/rev/6a999cf170bd
branches:  trunk
changeset: 345643:6a999cf170bd
user:      dholland <dholland%NetBSD.org@localhost>
date:      Fri Jun 03 15:15:22 2016 +0000

description:
avoid "u_int"

diffstat:

 sys/sys/ieee754.h |  30 +++++++++++++++---------------
 sys/sys/vnode.h   |  10 +++++-----
 2 files changed, 20 insertions(+), 20 deletions(-)

diffs (91 lines):

diff -r e6dea27bf2df -r 6a999cf170bd sys/sys/ieee754.h
--- a/sys/sys/ieee754.h Fri Jun 03 15:14:57 2016 +0000
+++ b/sys/sys/ieee754.h Fri Jun 03 15:15:22 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ieee754.h,v 1.15 2014/02/01 16:39:52 matt Exp $        */
+/*     $NetBSD: ieee754.h,v 1.16 2016/06/03 15:15:22 dholland Exp $    */
 
 /*
  * Copyright (c) 1992, 1993
@@ -90,13 +90,13 @@
 
 struct ieee_single {
 #if _BYTE_ORDER == _BIG_ENDIAN
-       u_int   sng_sign:1;
-       u_int   sng_exp:SNG_EXPBITS;
-       u_int   sng_frac:SNG_FRACBITS;
+       unsigned int    sng_sign:1;
+       unsigned int    sng_exp:SNG_EXPBITS;
+       unsigned int    sng_frac:SNG_FRACBITS;
 #else
-       u_int   sng_frac:SNG_FRACBITS;
-       u_int   sng_exp:SNG_EXPBITS;
-       u_int   sng_sign:1;
+       unsigned int    sng_frac:SNG_FRACBITS;
+       unsigned int    sng_exp:SNG_EXPBITS;
+       unsigned int    sng_sign:1;
 #endif
 };
 
@@ -107,15 +107,15 @@
 
 struct ieee_double {
 #if _BYTE_ORDER == _BIG_ENDIAN
-       u_int   dbl_sign:1;
-       u_int   dbl_exp:DBL_EXPBITS;
-       u_int   dbl_frach:DBL_FRACHBITS;
-       u_int   dbl_fracl:DBL_FRACLBITS;
+       unsigned int    dbl_sign:1;
+       unsigned int    dbl_exp:DBL_EXPBITS;
+       unsigned int    dbl_frach:DBL_FRACHBITS;
+       unsigned int    dbl_fracl:DBL_FRACLBITS;
 #else
-       u_int   dbl_fracl:DBL_FRACLBITS;
-       u_int   dbl_frach:DBL_FRACHBITS;
-       u_int   dbl_exp:DBL_EXPBITS;
-       u_int   dbl_sign:1;
+       unsigned int    dbl_fracl:DBL_FRACLBITS;
+       unsigned int    dbl_frach:DBL_FRACHBITS;
+       unsigned int    dbl_exp:DBL_EXPBITS;
+       unsigned int    dbl_sign:1;
 #endif
 };
 
diff -r e6dea27bf2df -r 6a999cf170bd sys/sys/vnode.h
--- a/sys/sys/vnode.h   Fri Jun 03 15:14:57 2016 +0000
+++ b/sys/sys/vnode.h   Fri Jun 03 15:15:22 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vnode.h,v 1.262 2016/05/26 11:09:55 hannken Exp $      */
+/*     $NetBSD: vnode.h,v 1.263 2016/06/03 15:15:49 dholland Exp $     */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -248,7 +248,7 @@
        dev_t           va_rdev;        /* device the special file represents */
        u_quad_t        va_bytes;       /* bytes of disk space held by file */
        u_quad_t        va_filerev;     /* file modification number */
-       u_int           va_vaflags;     /* operations flags, see below */
+       unsigned int    va_vaflags;     /* operations flags, see below */
        long            va_spare;       /* remain quad aligned */
 };
 
@@ -375,7 +375,7 @@
  */
 extern struct vnode    *rootvnode;     /* root (i.e. "/") vnode */
 extern int             desiredvnodes;  /* number of vnodes desired */
-extern u_int           numvnodes;      /* current number of vnodes */
+extern unsigned int    numvnodes;      /* current number of vnodes */
 
 #endif /* _KERNEL */
 
@@ -555,8 +555,8 @@
 int    vn_open(struct nameidata *, int, int);
 int    vn_rdwr(enum uio_rw, struct vnode *, void *, int, off_t, enum uio_seg,
     int, kauth_cred_t, size_t *, struct lwp *);
-int    vn_readdir(struct file *, char *, int, u_int, int *, struct lwp *,
-    off_t **, int *);
+int    vn_readdir(struct file *, char *, int, unsigned int, int *,
+    struct lwp *, off_t **, int *);
 int    vn_stat(struct vnode *, struct stat *);
 int    vn_kqfilter(struct file *, struct knote *);
 int    vn_writechk(struct vnode *);



Home | Main Index | Thread Index | Old Index