From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.lisp.guile.devel Subject: Re: inotify ffi Date: Tue, 11 Nov 2014 22:00:24 +0200 Message-ID: <837fz1mrs7.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1415736117 13862 80.91.229.3 (11 Nov 2014 20:01:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Nov 2014 20:01:57 +0000 (UTC) Cc: guile-devel@gnu.org To: Chaos Eternal Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Nov 11 21:01:52 2014 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XoHdP-0002w8-Q1 for guile-devel@m.gmane.org; Tue, 11 Nov 2014 21:01:51 +0100 Original-Received: from localhost ([::1]:50448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoHdP-00032S-BO for guile-devel@m.gmane.org; Tue, 11 Nov 2014 15:01:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoHdG-00032E-5y for guile-devel@gnu.org; Tue, 11 Nov 2014 15:01:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XoHd9-0005Oh-OF for guile-devel@gnu.org; Tue, 11 Nov 2014 15:01:42 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:47547) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoHd9-0005Oa-Gr for guile-devel@gnu.org; Tue, 11 Nov 2014 15:01:35 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NEW00K004K0E800@a-mtaout20.012.net.il> for guile-devel@gnu.org; Tue, 11 Nov 2014 22:00:32 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NEW00KRA4WUCP20@a-mtaout20.012.net.il>; Tue, 11 Nov 2014 22:00:32 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17602 Archived-At: > Date: Wed, 12 Nov 2014 01:59:13 +0800 > From: Chaos Eternal > > and it is not very portable. > > > On Wed, Nov 12, 2014 at 1:55 AM, Chaos Eternal wrote: > > i wrote a FFI to inotify system call. > > > > https://github.com/ChaosEternal/guile-inotify2 > > > > procedures: > > * inotify-init > > * inotify-init1 > > * inotify-add-watch > > * inotify-rm-watch > > * inotify-read-port > > > > the errno handle is unreliable, use with caution. > > > > License: LGPL v3 Why not use the glib file monitoring instead? It is much more portable, and has an inotify back-end AFAIK.