X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FDirMonitor.c;h=aece529fcef7c3302aa62e3cb160e80f18fc48fe;hp=8c7335233000a3e5fe0f1c3c9c816c27c908e768;hb=72713a0d002a46946092d2168e4ea6203698fa41;hpb=de83478a4dec2c8dd1b3721c4548b8d902555566 diff --git a/sources/DirMonitor.c b/sources/DirMonitor.c index 8c73352..aece529 100644 --- a/sources/DirMonitor.c +++ b/sources/DirMonitor.c @@ -25,21 +25,20 @@ * * Author: S. Piccardi Jan. 2003 * - * $Id: DirMonitor.c,v 1.6 2003/02/26 21:37:36 piccardi Exp $ - * *****************************************************************************/ -#include -#include -#include /* directory */ -#include /* C standard library */ -#include +#include /* primitive system data types */ +#include /* file characteristics constants and functions */ +#include /* directory operation constants and functions */ +#include /* C standard library */ +#include /* unix standard library */ +#include /* C strings library */ #include "Gapil.h" #include "macros.h" /* Help printing routine */ void usage(void); -/* computation function for DirScan */ +/* computation function for dir_scan */ int ComputeValues(struct dirent * direntry); void HandSIGTERM(int signo); @@ -119,13 +118,13 @@ int main(int argc, char *argv[]) while (1) { MutexLock(mutex); /* lock shared memory */ memset(shmptr, 0, sizeof(struct DirProp)); /* erase previous data */ - DirScan(argv[1], ComputeValues); /* execute scan */ + dir_scan(argv[1], ComputeValues); /* execute scan */ MutexUnlock(mutex); /* unlock shared memory */ sleep(pause); /* sleep until next watch */ } } /* - * Routine to compute directory properties inside DirScan + * Routine to compute directory properties inside dir_scan */ int ComputeValues(struct dirent * direntry) {