PERFORCE change 119347 for review
Roman Divacky
rdivacky at FreeBSD.org
Sun May 6 16:00:35 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=119347
Change 119347 by rdivacky at rdivacky_witten on 2007/05/06 15:59:47
Style changes suggested by pjd.
Affected files ...
.. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_syscalls.c#4 edit
.. //depot/projects/soc2007/rdivacky/linux_at/sys/sys/namei.h#4 edit
Differences ...
==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/vfs_syscalls.c#4 (text+ko) ====
@@ -88,9 +88,9 @@
static int vn_access(struct vnode *vp, int user_flags, struct ucred *cred,
struct thread *td);
static int kern_common_open(struct thread *td, char *path, enum uio_seg pathseg,
- int flags, int mode, struct nameidata *nd);
+ int flags, int mode, struct nameidata *nd);
static int kern_common_access(struct thread *td, char *path, enum uio_seg pathseg,
- int flags, struct nameidata *nd);
+ int flags, struct nameidata *nd);
/*
* The module initialization routine for POSIX asynchronous I/O will
==== //depot/projects/soc2007/rdivacky/linux_at/sys/sys/namei.h#4 (text+ko) ====
@@ -66,7 +66,10 @@
/*
* Arguments to lookup.
*/
- struct vnode *ni_startdir; /* starting directory, used for *at stuff */
+ struct vnode *ni_startdir; /*
+ * starting directory, also used for
+ * rename and *at functions
+ */
struct vnode *ni_rootdir; /* logical root directory */
struct vnode *ni_topdir; /* logical top directory */
/*
@@ -148,20 +151,8 @@
/*
* Initialization of a nameidata structure.
*/
-static __inline void
-NDINIT(struct nameidata *ndp,
- u_long op, u_long flags,
- enum uio_seg segflg,
- const char *namep,
- struct thread *td)
-{
- ndp->ni_cnd.cn_nameiop = op;
- ndp->ni_cnd.cn_flags = flags;
- ndp->ni_segflg = segflg;
- ndp->ni_dirp = namep;
- ndp->ni_cnd.cn_thread = td;
- ndp->ni_startdir = NULL;
-}
+#define NDINIT(ndp, op, flags, segflg, namep, td) \
+ NDINIT_AT(ndp, op, flags, segflg, namep, td, NULL)
static __inline void
NDINIT_AT(struct nameidata *ndp,
More information about the p4-projects
mailing list