Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tong/hxinotify

haxe→cpp/hashlinkl/neko bindings to the inotify linux kernel subsystem
https://github.com/tong/hxinotify

bindings c filesystem hashlink haxe hxcpp inotify linux neko

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](https://github.com/tong/hxinotify/workflows/CI/badge.svg)](https://github.com/tong/hxinotify) [![Haxelib Version](https://img.shields.io/github/tag/tong/hxinotify.svg?style=flat-square&colorA=EA8220&colorB=FBC707&label=haxelib)](http://lib.haxe.org/p/inotify/)

## Build

- Cpp/Neko (inotify.ndll)
```sh
haxelib run hxcpp build.xml
```

- Hashlink (inotify.hdll)
```sh
cc -o inotify.hdll -shared -std=c11 -O3 -Wall -m64 -fPIC -lhl hlinotify.c
```

## Usage

See [example](https://github.com/tong/hxinotify/blob/master/example/App.hx).