Google Groups Home
Help | Sign in
Inotify binding
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Vincent Hanquez  
View profile
 More options Nov 21 2006, 3:20 pm
Newsgroups: fa.caml
From: t...@snarc.org (Vincent Hanquez)
Date: Tue, 21 Nov 2006 20:20:57 UTC
Local: Tues, Nov 21 2006 3:20 pm
Subject: [Caml-list] Inotify binding
Hi,

I've made a small bindings for inotify, aka linux file system notification
new subsystem.

It's available here:

http://tab.snarc.org/projects/ocaml_inotify/

or the archive is directly here:

http://tab.snarc.org/download/ocaml/ocaml_inotify-0.2.tar.bz2

You need a really recent glibc to have inotify syscall available
through /usr/include/sys/inotify.h. I didn't bother putting some code
to handle old glibc, but I accept patch :)

The archive contains an example program on how to use the interface.

Cheers,
--
Vincent Hanquez

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard Jones  
View profile
 More options Nov 21 2006, 6:59 pm
Newsgroups: fa.caml
From: Richard Jones <r...@annexia.org>
Date: Tue, 21 Nov 2006 23:59:01 UTC
Local: Tues, Nov 21 2006 6:59 pm
Subject: Re: [Caml-list] Inotify binding

On Tue, Nov 21, 2006 at 09:18:34PM +0100, Vincent Hanquez wrote:
> I've made a small bindings for inotify, aka linux file system notification
> new subsystem.

I think OMake includes bindings for gamin.  Or FAM which is the older
SGI-based daemon, but gamin is C API compatible with FAM.

http://svn.metaprl.org/viewvc/mojave/omake/src/clib/omake_notify.c?re...
http://www.gnome.org/~veillard/gamin/

Rich.

--
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Internet Marketing and AdWords courses - http://merjis.com/courses - NEW!
Merjis blog - http://blog.merjis.com - NEW!

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vincent Hanquez  
View profile
 More options Nov 21 2006, 7:18 pm
Newsgroups: fa.caml
From: t...@snarc.org (Vincent Hanquez)
Date: Wed, 22 Nov 2006 00:18:52 UTC
Local: Tues, Nov 21 2006 7:18 pm
Subject: Re: [Caml-list] Inotify binding

On Tue, Nov 21, 2006 at 11:55:46PM +0000, Richard Jones wrote:
> On Tue, Nov 21, 2006 at 09:18:34PM +0100, Vincent Hanquez wrote:
> > I've made a small bindings for inotify, aka linux file system notification
> > new subsystem.

> I think OMake includes bindings for gamin.

it seems to be talking FAM.

> Or FAM which is the older
> SGI-based daemon, but gamin is C API compatible with FAM.

Sounds more like a bad thing than a good thing to me.
Direct inotify binding are much smaller/simpler anyway.

Cheers,
--
Vincent Hanquez

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aleksey Nogin  
View profile
 More options Nov 29 2006, 1:30 am
Newsgroups: fa.caml
From: Aleksey Nogin <no...@metaprl.org>
Date: Wed, 29 Nov 2006 06:30:23 UTC
Local: Wed, Nov 29 2006 1:30 am
Subject: Re: [Caml-list] Inotify binding
On 21.11.2006 16:16, Vincent Hanquez wrote:

> On Tue, Nov 21, 2006 at 11:55:46PM +0000, Richard Jones wrote:
>> On Tue, Nov 21, 2006 at 09:18:34PM +0100, Vincent Hanquez wrote:
>>> I've made a small bindings for inotify, aka linux file system notification
>>> new subsystem.
>> I think OMake includes bindings for gamin.

> it seems to be talking FAM.

Actually, in our LibMojave (which is what OMake uses) we have bindings for:
 - FAM
 - Gamin (using either the generic FAM interface, or taking advantage of
Gamin extensions)
 - kqueue (FreeBSD, OS X)
 - inotify (Linux)
 - ??? (Win32) - not sure what exactly is used there

In all five cases, we provide the _same_ fam-style interface on the
OCaml side. We also have OMake autoconf-style scripts that can detect
which of the fours notification mechanisms is present on a specific
machine and use the appropriate one.

> Sounds more like a bad thing than a good thing to me.
> Direct inotify binding are much smaller/simpler anyway.

That might be true, but only if you happen to be on a machine that
provides inotify. We do utilize inotify if it is present, but we also
have an option of using one of the other four when there is no inotify.

Aleksey

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google