In sys/inotify.h
(inotify.h), following struct is defined:
struct inotify_event { int wd; /* Watch descriptor. */ uint32_t mask; /* Watch mask. */ uint32_t cookie; /* Cookie to synchronize two events. */ uint32_t len; /* Length (including NULs) of name. */ char name __flexarr; /* Name. */ };
I can't find any definitions for __flexarr
in the code. Where would I search for it?
In an unrelated project I found #define __flexarr [1]
which I assume does something similar, but this definition does not make much sense to me (being quite unfamiliar with C).
The only thing I know is that you can store strings of various length in it, but I completely lack the understanding of how/why this works.
Does anybody care to explain? Thanks.