Skip to content
/ hxinotify Public

haxe→cpp/hashlinkl/neko bindings to the inotify linux kernel subsystem

Notifications You must be signed in to change notification settings

tong/hxinotify

Repository files navigation

hxinotify

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: https://man7.org/linux/man-pages/man7/inotify.7.html

Actions Status Haxelib Version

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.