home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume9 / pc-mail-nfs / mtime.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-26  |  943 b   |  46 lines

  1. /*++
  2. /* NAME
  3. /*    mtime 5
  4. /* SUMMARY
  5. /*    maintain modification times of files
  6. /* PROJECT
  7. /*    pc-mail
  8. /* PACKAGE
  9. /*    nfs
  10. /* SYNOPSIS
  11. /*    #include "mtime.h"
  12. /* DESCRIPTION
  13. /* .nf
  14.  
  15.  /* structure of one symbol-table entry */
  16.  
  17. typedef struct MTIME {
  18.     char   *path;            /* key */
  19.     long    time;            /* value */
  20.     struct MTIME *left;            /* left subtree */
  21.     struct MTIME *rite;            /* right subtree */
  22. }       MTIME;
  23.  
  24.  /* client interface */
  25.  
  26. #define mtime(path)    (mtime_tree = findtime(path,mtime_tree))
  27.  
  28.  /* actual interface */
  29.  
  30. extern MTIME *mtime_tree;        /* head of symbol table */
  31. MTIME  *findtime();            /* actual access function */
  32.  
  33. /* AUTHOR(S)
  34. /*    Wietse Z. Venema
  35. /*    Eindhoven University of Technology
  36. /*    Department of Mathematics and Computer Science
  37. /*    Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands
  38. /* CREATION DATE
  39. /*    Sun Oct 29 15:48:01 MET 1989
  40. /* LAST MODIFICATION DATE
  41. /*    10/29/89 22:29:58
  42. /* VERSION/RELEASE
  43. /*    1.1
  44. /*--*/
  45.  
  46.