Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Apply manu's change to namei.h correctly.
details: https://anonhg.NetBSD.org/src/rev/496f5993a402
branches: trunk
changeset: 782742:496f5993a402
user: dholland <dholland%NetBSD.org@localhost>
date: Sun Nov 18 18:25:08 2012 +0000
description:
Apply manu's change to namei.h correctly.
diffstat:
sys/sys/namei.src | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diffs (45 lines):
diff -r d7c62293fa12 -r 496f5993a402 sys/sys/namei.src
--- a/sys/sys/namei.src Sun Nov 18 18:20:56 2012 +0000
+++ b/sys/sys/namei.src Sun Nov 18 18:25:08 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: namei.src,v 1.30 2012/11/05 19:06:26 dholland Exp $ */
+/* $NetBSD: namei.src,v 1.31 2012/11/18 18:25:08 dholland Exp $ */
/*
* Copyright (c) 1985, 1989, 1991, 1993
@@ -225,7 +225,7 @@
#define PNBUF_PUT(pnb) pool_cache_put(pnbuf_cache, (pnb))
/*
- * Typesafe flags for namei_simple.
+ * Typesafe flags for namei_simple/nameiat_simple.
*
* This encoding is not optimal but serves the important purpose of
* not being type-compatible with the regular namei flags.
@@ -239,11 +239,13 @@
NSM_FOLLOW_TRYEMULROOT;
/*
- * namei_simple_* - the simple cases of namei, with no struct
- * nameidata involved.
+ * namei(at)?_simple_* - the simple cases of namei, with no struct
+ * nameidata involved.
*
* namei_simple_kernel takes a kernel-space path as the first argument.
* namei_simple_user takes a user-space path as the first argument.
+ * The nameiat_simple_* variants handle relative path using the given
+ * directory vnode instead of current directory.
*
* A namei call can be converted to namei_simple_* if:
* - the second arg to NDINIT is LOOKUP;
@@ -253,6 +255,10 @@
*/
int namei_simple_kernel(const char *, namei_simple_flags_t, struct vnode **);
int namei_simple_user(const char *, namei_simple_flags_t, struct vnode **);
+int nameiat_simple_kernel(struct vnode *, const char *, namei_simple_flags_t,
+ struct vnode **);
+int nameiat_simple_user(struct vnode *, const char *, namei_simple_flags_t,
+ struct vnode **);
int namei(struct nameidata *);
uint32_t namei_hash(const char *, const char **);
Home |
Main Index |
Thread Index |
Old Index