[BACK]Return to namei.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / sys

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/sys/namei.h between version 1.41.6.1 and 1.41.6.2

version 1.41.6.1, 2006/04/22 11:40:19 version 1.41.6.2, 2006/06/01 22:39:26
Line 36 
Line 36 
   
 #include <sys/queue.h>  #include <sys/queue.h>
   
   #ifdef _KERNEL
 /*  /*
  * Encapsulation of namei parameters.   * Encapsulation of namei parameters.
  */   */
Line 51  struct nameidata {
Line 52  struct nameidata {
         /*          /*
          * Arguments to lookup.           * Arguments to lookup.
          */           */
      /* struct  ucred *ni_cred;            credentials */       /* kauth_cred_t ni_cred;              credentials */
         struct  vnode *ni_startdir;     /* starting directory */          struct  vnode *ni_startdir;     /* starting directory */
         struct  vnode *ni_rootdir;      /* logical root directory */          struct  vnode *ni_rootdir;      /* logical root directory */
         /*          /*
Line 77  struct nameidata {
Line 78  struct nameidata {
                 u_long  cn_nameiop;     /* namei operation */                  u_long  cn_nameiop;     /* namei operation */
                 u_long  cn_flags;       /* flags to namei */                  u_long  cn_flags;       /* flags to namei */
                 struct  lwp *cn_lwp;    /* lwp requesting lookup */                  struct  lwp *cn_lwp;    /* lwp requesting lookup */
                 struct  ucred *cn_cred; /* credentials */                  kauth_cred_t cn_cred;   /* credentials */
                 /*                  /*
                  * Shared between lookup and commit routines.                   * Shared between lookup and commit routines.
                  */                   */
Line 89  struct nameidata {
Line 90  struct nameidata {
         } ni_cnd;          } ni_cnd;
 };  };
   
 #ifdef _KERNEL  
 /*  /*
  * namei operations   * namei operations
  */   */
Line 146  struct nameidata {
Line 146  struct nameidata {
         (ndp)->ni_segflg = segflg; \          (ndp)->ni_segflg = segflg; \
         (ndp)->ni_dirp = namep; \          (ndp)->ni_dirp = namep; \
         (ndp)->ni_cnd.cn_lwp = l; \          (ndp)->ni_cnd.cn_lwp = l; \
         (ndp)->ni_cnd.cn_cred = l->l_proc->p_ucred; \          (ndp)->ni_cnd.cn_cred = l->l_proc->p_cred; \
 }  }
 #endif  #endif
   

Legend:
Removed from v.1.41.6.1  
changed lines
  Added in v.1.41.6.2

CVSweb <webmaster@jp.NetBSD.org>