home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / communic / pcmail / daemon / mtime.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-05  |  1.0 KB  |  46 lines

  1. /*++
  2.  
  3. /* NAME
  4.  
  5. /*    mtime 5
  6.  
  7. /* SUMMARY
  8.  
  9. /*    maintain modification times of files
  10.  
  11. /* PROJECT
  12.  
  13. /*    pc-mail
  14.  
  15. /* PACKAGE
  16.  
  17. /*    nfs
  18.  
  19. /* SYNOPSIS
  20.  
  21. /*    #include "mtime.h"
  22.  
  23. /* DESCRIPTION
  24.  
  25. /* .nf
  26.  
  27.  
  28.  
  29.  /* structure of one symbol-table entry */
  30.  
  31.  
  32.  
  33. typedef struct MTIME {
  34.  
  35.     char   *path;            /* key */
  36.  
  37.     long    time;            /* value */
  38.  
  39.     struct MTIME *left;            /* left subtree */
  40.  
  41.     struct MTIME *rite;            /* right subtree */
  42.  
  43. }       MTIME;
  44.  
  45.  
  46.  
  47.  /* client interface */
  48.  
  49.  
  50.  
  51. #define mtime(path)    (mtime_tree = findtime(path,mtime_tree))
  52.  
  53.  
  54.  
  55.  /* actual interface */
  56.  
  57.  
  58.  
  59. extern MTIME *mtime_tree;        /* head of symbol table */
  60.  
  61. MTIME  *findtime();            /* actual access function */
  62.  
  63.  
  64.  
  65. /* AUTHOR(S)
  66.  
  67. /*    Wietse Z. Venema
  68.  
  69. /*    Eindhoven University of Technology
  70.  
  71. /*    Department of Mathematics and Computer Science
  72.  
  73. /*    Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands
  74.  
  75. /* CREATION DATE
  76.  
  77. /*    Sun Oct 29 15:48:01 MET 1989
  78.  
  79. /* LAST MODIFICATION DATE
  80.  
  81. /*    10/29/89 22:29:58
  82.  
  83. /* VERSION/RELEASE
  84.  
  85. /*    1.1
  86.  
  87. /*--*/
  88.  
  89.  
  90.  
  91.