Module Name: src
Committed By: dholland
Date: Sun Nov 18 18:25:08 UTC 2012
Modified Files:
src/sys/sys: namei.src
Log Message:
Apply manu's change to namei.h correctly.
To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/sys/namei.src
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/namei.src
diff -u src/sys/sys/namei.src:1.30 src/sys/sys/namei.src:1.31
--- src/sys/sys/namei.src:1.30 Mon Nov 5 19:06:26 2012
+++ src/sys/sys/namei.src Sun Nov 18 18:25:08 2012
@@ -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 @@ extern pool_cache_t pnbuf_cache; /* path
#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 @@ extern const namei_simple_flags_t
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 @@ extern const namei_simple_flags_t
*/
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 **);