mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Remove four members of struct nameidata which have been commented
out since rev 1.1 (24 may 1994) of this file. Add a nail to the K&R coffin by removing the #ifdef'ed K&R function declaration for NDINIT.
This commit is contained in:
parent
abb50a48e8
commit
d675a1ed14
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109171
@ -66,13 +66,9 @@ struct nameidata {
|
||||
*/
|
||||
const char *ni_dirp; /* pathname pointer */
|
||||
enum uio_seg ni_segflg; /* location of pathname */
|
||||
/* u_long ni_nameiop; namei operation */
|
||||
/* u_long ni_flags; flags to namei */
|
||||
/* struct proc *ni_proc; process requesting lookup */
|
||||
/*
|
||||
* Arguments to lookup.
|
||||
*/
|
||||
/* struct ucred *ni_cred; credentials */
|
||||
struct vnode *ni_startdir; /* starting directory */
|
||||
struct vnode *ni_rootdir; /* logical root directory */
|
||||
struct vnode *ni_topdir; /* logical top directory */
|
||||
@ -153,20 +149,11 @@ struct nameidata {
|
||||
static void NDINIT(struct nameidata *, u_long, u_long, enum uio_seg,
|
||||
const char *, struct thread *);
|
||||
static __inline void
|
||||
#if defined(__STDC__) || defined(__cplusplus)
|
||||
NDINIT(struct nameidata *ndp,
|
||||
u_long op, u_long flags,
|
||||
enum uio_seg segflg,
|
||||
const char *namep,
|
||||
struct thread *td)
|
||||
#else
|
||||
NDINIT(ndp, op, flags, segflg, namep, td)
|
||||
struct nameidata *ndp;
|
||||
u_long op, flags;
|
||||
enum uio_seg segflg;
|
||||
const char *namep;
|
||||
struct thread *td;
|
||||
#endif
|
||||
{
|
||||
ndp->ni_cnd.cn_nameiop = op;
|
||||
ndp->ni_cnd.cn_flags = flags;
|
||||
|
Loading…
Reference in New Issue
Block a user