projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Integrazioni su write
[gapil.git]
/
sources
/
DirMonitor.c
diff --git
a/sources/DirMonitor.c
b/sources/DirMonitor.c
index 8a696fe0fbc067e8d1a3b6dd037aa6a715dc158e..aece529fcef7c3302aa62e3cb160e80f18fc48fe 100644
(file)
--- a/
sources/DirMonitor.c
+++ b/
sources/DirMonitor.c
@@
-38,7
+38,7
@@
/* Help printing routine */
void usage(void);
/* Help printing routine */
void usage(void);
-/* computation function for
DirS
can */
+/* computation function for
dir_s
can */
int ComputeValues(struct dirent * direntry);
void HandSIGTERM(int signo);
int ComputeValues(struct dirent * direntry);
void HandSIGTERM(int signo);
@@
-118,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 */
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 */
}
}
/*
MutexUnlock(mutex); /* unlock shared memory */
sleep(pause); /* sleep until next watch */
}
}
/*
- * Routine to compute directory properties inside
DirS
can
+ * Routine to compute directory properties inside
dir_s
can
*/
int ComputeValues(struct dirent * direntry)
{
*/
int ComputeValues(struct dirent * direntry)
{