1 @macro getfileconDesc{fn}
2 Gnulib module: selinux-h
4 Portability problems fixed by Gnulib:
7 This function is missing on some platforms:
8 Mac OS X 10.5, OpenBSD 3.8, Minix 3.1.8, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 11 2011-11, mingw, MSVC 9, Interix 3.5, BeOS.
9 On those platforms, this module provides a stub that always sets
10 @code{errno} to @code{ENOTSUP} and returns @samp{-1}.
12 On systems with SELinux support, this module provides a wrapper for the
13 @code{\fn\} function that insulates the caller from API-nonconforming behavior.
14 Without this wrapper, @code{\fn\} can return @samp{0} and set
15 the @code{context} pointer to NULL, and in another scenario can return
16 @samp{10} and set the @code{context} pointer to @samp{unlabeled}.
17 This wrapper returns @samp{-1} in each case and sets @code{errno} to
18 @code{ENOTSUP} and @code{ENODATA} respectively.
19 While the conditions that can provoke such behavior are rare, the
20 average caller does not handle them because the possibility of such
21 behavior is not documented.
24 Portability problems not fixed by Gnulib: