Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/twisted/python/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/twisted/python/_inotify.pyc

ó
øôMc@sŸdZddlZddlZdefd„ƒYZd„Zd„Zd„Zd„Zej	j
d	ƒZesed
ƒ‚nej
jeƒZeeƒdS(sŒ
Very low-level ctypes-based interface to Linux inotify(7).

ctypes and a version of libc which supports inotify system calls are
required.
iÿÿÿÿNtINotifyErrorcBseZdZRS(sR
    Unify all the possible exceptions that can be raised by the INotify API.
    (t__name__t
__module__t__doc__(((s;/usr/lib/python2.7/dist-packages/twisted/python/_inotify.pyRscCs+tjƒ}|dkr'tdƒ‚n|S(sO
    Create an inotify instance and return the associated file descriptor.
    isINotify initialization error.(tlibctinotify_initR(tfd((s;/usr/lib/python2.7/dist-packages/twisted/python/_inotify.pytinitscCs>tj|||ƒ}|dkr:td||fƒ‚n|S(sm
    Add a watch for the given path to the inotify file descriptor, and return
    the watch descriptor.
    is"Failed to add watch on '%r' - (%r)(Rtinotify_add_watchR(Rtpathtmasktwd((s;/usr/lib/python2.7/dist-packages/twisted/python/_inotify.pytadd#scCstj||ƒdS(sM
    Remove the given watch descriptor from the inotify file descriptor.
    N(Rtinotify_rm_watch(RR((s;/usr/lib/python2.7/dist-packages/twisted/python/_inotify.pytremove/scCs«x5dD]-}t||dƒdkrtdƒ‚qqWg|j_tj|j_tjtjg|j_tj|j_tjtj	tj
g|j_tj|j_dS(s¸
    Intialize the module, checking if the expected APIs exist and setting the
    argtypes and restype for for C{inotify_init}, C{inotify_add_watch}, and
    C{inotify_rm_watch}.
    RRR
slibc6 2.4 or higher neededN(sinotify_add_watchsinotify_initsinotify_rm_watch(tgetattrtNonetImportErrorRtargtypestctypestc_inttrestypeR
tc_char_ptc_uint32R(Rtfunction((s;/usr/lib/python2.7/dist-packages/twisted/python/_inotify.pytinitializeModuleKs
tcsCan't find C library.(RRtctypes.utilt	ExceptionRRRRRtutiltfind_librarytnameRtcdlltLoadLibraryR(((s;/usr/lib/python2.7/dist-packages/twisted/python/_inotify.pyt<module>
s