Kukulkan erleuchtete mich.
Code: Alles auswählen
inotify_add_watch.l (fd.l, pathname.s, mask.l)
Code: Alles auswählen
inotify_add_watch.l (fd.l, pathname.p-utf8, mask.l)
Dann tut's auch mit unicode.
Übrigens sind file handles unter Unix int. Meine jetzige declaration sieht also so aus.
Code: Alles auswählen
ImportC "/lib/i386-linux-gnu/libc.so.6"
inotify_init.i ()
inotify_add_watch.i (fd.i, pathname.p-utf8, mask.l)
inotify_rm_watch.i (fd.i, wd.i)
EndImport