Gnulib module: selinux-h
Portability problems fixed by Gnulib:
ENOTSUPand returns ‘-1’.
lgetfileconfunction that insulates the caller from API-nonconforming behavior. Without this wrapper,
lgetfileconcan return ‘0’ and set the
contextpointer to NULL, and in another scenario can return ‘10’ and set the
contextpointer to ‘unlabeled’. This wrapper returns ‘-1’ in each case and sets
ENODATArespectively. While the conditions that can provoke such behavior are rare, the average caller does not handle them because the possibility of such behavior is not documented.
Portability problems not fixed by Gnulib: