Investigate GIR annotation to indicate that a function modifies errno
It might be nice to add an analyser which checks whether code tests errno
after calling functions which could modify it. To do so, we’d need to introduce a new function-level GIR annotation (perhaps (errno)
) which indicates that the given function sets errno
on error.