Documentation about Minix.
[gnulib.git] / doc / glibc-functions / getfilecon-desc.texi
1 @macro getfileconDesc{fn}
2 Gnulib module: selinux-h
3
4 Portability problems fixed by Gnulib:
5 @itemize
6 @item
7 This function is missing on some platforms:
8 MacOS 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 2010-11, mingw, 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}.
11 @item
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.
22 @end itemize
23
24 Portability problems not fixed by Gnulib:
25 @itemize
26 @end itemize
27 @end macro