Source-Changes-HG archive

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

[src/trunk]: src/sys Regen.



details:   https://anonhg.NetBSD.org/src/rev/8077ddfc851c
branches:  trunk
changeset: 335606:8077ddfc851c
user:      dennis <dennis%NetBSD.org@localhost>
date:      Fri Jan 16 21:41:07 2015 +0000

description:
Regen.

diffstat:

 sys/rump/include/rump/rump_namei.h |   4 +-
 sys/sys/namei.h                    |  43 ++++++++++++++++++++++---------------
 2 files changed, 27 insertions(+), 20 deletions(-)

diffs (94 lines):

diff -r 0e758ee8269c -r 8077ddfc851c sys/rump/include/rump/rump_namei.h
--- a/sys/rump/include/rump/rump_namei.h        Fri Jan 16 21:38:26 2015 +0000
+++ b/sys/rump/include/rump/rump_namei.h        Fri Jan 16 21:41:07 2015 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: rump_namei.h,v 1.25 2014/12/24 19:56:49 dennis Exp $   */
+/*     $NetBSD: rump_namei.h,v 1.26 2015/01/16 21:41:07 dennis Exp $   */
 
 
 /*
  * WARNING: GENERATED FILE.  DO NOT EDIT
  * (edit namei.src and run make namei in src/sys/sys)
  *   by:   NetBSD: gennameih.awk,v 1.5 2009/12/23 14:17:19 pooka Exp 
- *   from: NetBSD: namei.src,v 1.34 2014/12/24 19:50:04 dennis Exp 
+ *   from: NetBSD: namei.src,v 1.35 2015/01/16 21:38:26 dennis Exp 
  */
 
 #ifndef _RUMP_RUMP_NAMEI_H_
diff -r 0e758ee8269c -r 8077ddfc851c sys/sys/namei.h
--- a/sys/sys/namei.h   Fri Jan 16 21:38:26 2015 +0000
+++ b/sys/sys/namei.h   Fri Jan 16 21:41:07 2015 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: namei.h,v 1.91 2014/12/24 19:56:49 dennis Exp $        */
+/*     $NetBSD: namei.h,v 1.92 2015/01/16 21:41:07 dennis Exp $        */
 
 
 /*
  * WARNING: GENERATED FILE.  DO NOT EDIT
  * (edit namei.src and run make namei in src/sys/sys)
  *   by:   NetBSD: gennameih.awk,v 1.5 2009/12/23 14:17:19 pooka Exp 
- *   from: NetBSD: namei.src,v 1.34 2014/12/24 19:50:04 dennis Exp 
+ *   from: NetBSD: namei.src,v 1.35 2015/01/16 21:38:26 dennis Exp 
  */
 
 /*
@@ -85,6 +85,26 @@
 int pathbuf_maybe_copyin(const char *userpath, enum uio_seg seg, struct pathbuf **ret);
 
 /*
+ * Lookup parameters: this structure describes the subset of
+ * information from the nameidata structure that is passed
+ * through the VOP interface.
+ */
+struct componentname {
+       /*
+        * Arguments to lookup.
+        */
+       uint32_t        cn_nameiop;     /* namei operation */
+       uint32_t        cn_flags;       /* flags to namei */
+       kauth_cred_t    cn_cred;        /* credentials */
+       /*
+        * Shared between lookup and commit routines.
+        */
+       const char      *cn_nameptr;    /* pointer to looked up name */
+       size_t          cn_namelen;     /* length of looked up comp */
+       size_t          cn_consume;     /* chars to consume in lookup */
+};
+
+/*
  * Encapsulation of namei parameters.
  */
 struct nameidata {
@@ -115,20 +135,7 @@
         * information from the nameidata structure that is passed
         * through the VOP interface.
         */
-       struct componentname {
-               /*
-                * Arguments to lookup.
-                */
-               uint32_t        cn_nameiop;     /* namei operation */
-               uint32_t        cn_flags;       /* flags to namei */
-               kauth_cred_t    cn_cred;        /* credentials */
-               /*
-                * Shared between lookup and commit routines.
-                */
-               const char      *cn_nameptr;    /* pointer to looked up name */
-               size_t          cn_namelen;     /* length of looked up comp */
-               size_t          cn_consume;     /* chars to consume in lookup */
-       } ni_cnd;
+       struct componentname ni_cnd;
 };
 
 /*
@@ -229,8 +236,8 @@
 
 extern pool_cache_t pnbuf_cache;       /* pathname buffer cache */
 
-#define        PNBUF_GET()     pool_cache_get(pnbuf_cache, PR_WAITOK)
-#define        PNBUF_PUT(pnb)  pool_cache_put(pnbuf_cache, (pnb))
+#define        PNBUF_GET()     ((char *)pool_cache_get(pnbuf_cache, PR_WAITOK))
+#define        PNBUF_PUT(pnb)  pool_cache_put(pnbuf_cache, (void *)(pnb))
 
 /*
  * Typesafe flags for namei_simple/nameiat_simple.



Home | Main Index | Thread Index | Old Index