inotify

Linux inotify bindings


Keywords
cpp, filesystem, hashlink, inotify, kernel, linux, neko, sys, haxe
License
QPL-1.0
Install
haxelib install inotify 2.0.1

Documentation

HXInotify

Actions Status Haxelib Version

Haxe-(Cpp|Hashlink|Neko) bindings to inotify, a linux kernel subsystem that acts to extend filesystems to notice changes and report those changes to applications.

Inotify can be used to automatically update directory views, reload configuration files, log changes, backup, synchronize, and upload.

Inotify can be used for:

  • Detecting changes in files and directories (e.g. configuration files, mail directories)
  • Guarding critical files and their eventual automatic recovery
  • File usage statistics and similar purposes
  • Automatic upload handling
  • Monitoring installations outside of packaging systems
  • Automatic on-change backup and/or versioning
  • Reflecting changes to search databases

See: http://man7.org/linux/man-pages/man7/inotify.7.html

Build

  • Cpp/Neko (inotify.ndll)
haxelib run hxcpp build.xml
  • Hashlink (inotify.hdll)
cc -o inotify.hdll -shared -std=c11 -O3 -Wall -m64 -fPIC -lhl hlinotify.c

Usage

See example