-struct mount;
-extern u_long nextvnodeid;
-int namei __P((struct nameidata *ndp));
-int lookup __P((struct nameidata *ndp));
-int relookup __P((struct vnode *dvp, struct vnode **vpp,
- struct componentname *cnp));
-
-/* namecache function prototypes */
-int cache_lookup __P((struct vnode *dvp, struct vnode **vpp,
- struct componentname *cnp));
-void cache_enter __P((struct vnode *dvp, struct vnode *vpp,
- struct componentname *cnp));
-void cache_purge __P((struct vnode *vp));
-void cache_purgevfs __P((struct mount *mp));
+
+int namei(struct nameidata *ndp);
+void nameidone(struct nameidata *);
+int lookup(struct nameidata *ndp);
+int relookup(struct vnode *dvp, struct vnode **vpp,
+ struct componentname *cnp);
+
+/*
+ * namecache function prototypes
+ */
+void cache_purgevfs(mount_t mp);
+int cache_lookup_path(struct nameidata *ndp, struct componentname *cnp, vnode_t dp,
+ vfs_context_t context, int *trailing_slash, int *dp_authorized);
+
+void vnode_cache_credentials(vnode_t vp, vfs_context_t context);
+void vnode_uncache_credentials(vnode_t vp);
+int reverse_lookup(vnode_t start_vp, vnode_t *lookup_vpp,
+ struct filedesc *fdp, vfs_context_t context, int *dp_authorized);
+