fcntl and siginfo_t in python

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Apr 28 22:35:45 EDT 2009


En Tue, 28 Apr 2009 17:56:21 -0300, ma <mabdelkader at gmail.com> escribió:

> Developing on a machine with a 2.6.5 kernel, which unfortunately, is not
> blessed with inotify and we do not have FAM. I was wondering if there are
> pre-built extensions ( a few google searches turned up fruitless) that
> utilize fcntl properly and allow for siginfo_t struct support when
> attempting to monitor directories/files?
>
> If there aren't any, I'll see if it's feasible to add this functionality  
> as
> a py extension. Maybe this would be easier to do in ctypes first? Then
> again, ctypes wasn't introduced until 2.5+. Suggestions or hints are
> appreciated.

In case you don't find any existing library, yes, I think you could do  
that using ctypes. It's available as a separate download from  
http://sourceforge.net/projects/ctypes/ and I think it works from 2.4 up.

-- 
Gabriel Genellina




More information about the Python-list mailing list