home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / sys / h / dnlc < prev    next >
Encoding:
Text File  |  1995-01-11  |  1.2 KB  |  50 lines

  1. /*
  2.  * $Header: /ax/networking:include/sys/dnlc.h:networking  1.1  $
  3.  * $Source: /ax/networking:include/sys/dnlc.h: $
  4.  *
  5.  * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
  6.  *
  7.  * $Log:    dnlc.h,v $
  8.  * Revision 1.1  95/01/11  10:19:08  kwelton
  9.  * Initial revision
  10.  * 
  11.  * Revision 1.3  88/06/17  20:18:55  beta
  12.  * Acorn Unix initial beta version
  13.  * 
  14.  */
  15. /* @(#)dnlc.h    1.1 87/08/26 3.2/4.3NFSSRC */
  16. /*    @(#)dnlc.h 1.1 86/09/25 SMI    */
  17.  
  18. /*
  19.  * Copyright (c) 1984 Sun Microsystems Inc.
  20.  */
  21.  
  22. /*
  23.  * This structure describes the elements in the cache of recent
  24.  * names looked up.
  25.  */
  26.  
  27. #define    NC_NAMLEN    15    /* maximum name segment length we bother with*/
  28.  
  29. struct    ncache {
  30.     struct    ncache    *hash_next, *hash_prev;    /* hash chain, MUST BE FIRST */
  31.     struct     ncache    *lru_next, *lru_prev;    /* LRU chain */
  32.     struct    vnode    *vp;            /* vnode the name refers to */
  33.     struct    vnode    *dp;            /* vno of parent of name */
  34.     char        namlen;            /* length of name */
  35.     char        name[NC_NAMLEN];    /* segment name */
  36.     struct    ucred    *cred;            /* credentials */
  37. };
  38.  
  39. #define    ANYCRED    ((struct ucred *) -1)
  40. #define    NOCRED    ((struct ucred *) 0)
  41.  
  42. int    ncsize;
  43. #ifdef    DYNALLOC
  44. struct    ncache *ncache;
  45. #else    DYNALLOC
  46. struct    ncache stat_ncache[NCSIZE], *ncache;
  47. #endif    DYNALLOC
  48.  
  49. /* EOF dnlc.h */
  50.