From kde-core-devel Fri Jan 28 17:37:51 2000 From: Sven Radej Date: Fri, 28 Jan 2000 17:37:51 +0000 To: kde-core-devel Subject: Fwd: KDirWatch addition... X-MARC-Message: https://marc.info/?l=kde-core-devel&m=94908202625881 Hi, I got this mail. Since I never heard for something like FAM (but I did have a strange dream about something like that) nor did I touch kdirwatch in last year-or-so, I´m forwarding this here. Patches are ~6KB so I´d rather not molest listserver with that. Who works with kdirwatch now? Speak up, and I´ll send his patches. thanks, Sven ---------- Forwarded Message ---------- Subject: KDirWatch addition... Date: Fri, 28 Jan 2000 17:23:54 +0100 From: Josef Weidendorfer Hello Sven, I most of the time work under IRIX; recently I tried the actual KDE2 snapshot: and it's great! But I noted that kded used ~ 3% CPU load all the time and I found that stating a bunch of NFS mounted directories every second caused this load. IRIX has a nice feature, the FAM (file alteration monitor), which is used e.g. by the file manager and the mail tool. I updated the KDirWatch class to use it, and it's doing quite good here (no CPU load any more). As you seem to be the maintainer for this class: Can you look at the patch, perhaps comment, and if you find it OK, commit it? I'm not sure if I did the configure stuff right: For integration of FAM support I check for the fam.h include file and compile things in according to the test (seems right). This means adding fam.h to kdelibs/configure.in(.in): AC_CHECK_HEADERS( [snip] ... fstab.h sys/soundcard.h fam.h) ===== For conditionally inclusion of libfam into libkio I changed the following line in kdelibs/kio/Makefile.am to libkio_la_LIBADD = ../kdeui/libkdeui.la $(LIBFAM) and added in kdelibs/configure.in(.in): AC_CHECK_LIB(fam, FAMOpen, [LIBFAM="-lfam"]) dnl for IRIX/FAM (JW) This way $(LIBFAM) is set to "-lfam" when needed. If you have a better way to add this without all the #ifdef's in the code please let me know. Greetings, Josef ------------------------------------------------------- -- Sven Radej radej@kde.org KDE developer Visit http://www.kde.org