1 #ifndef SELINUX_CONTEXT_H
2 # define SELINUX_CONTEXT_H
3 
4 # include <errno.h>
5 
6 #ifndef _GL_INLINE_HEADER_BEGIN
7  #error "Please include config.h first."
8 #endif
9 _GL_INLINE_HEADER_BEGIN
10 #ifndef SE_CONTEXT_INLINE
11 # define SE_CONTEXT_INLINE _GL_INLINE
12 #endif
13 
14 /* The definition of _GL_UNUSED_PARAMETER is copied here.  */
15 
16 typedef int context_t;
context_new(char const * s _GL_UNUSED_PARAMETER)17 SE_CONTEXT_INLINE context_t context_new (char const *s _GL_UNUSED_PARAMETER)
18   { errno = ENOTSUP; return 0; }
context_str(context_t con _GL_UNUSED_PARAMETER)19 SE_CONTEXT_INLINE char *context_str (context_t con _GL_UNUSED_PARAMETER)
20   { errno = ENOTSUP; return (void *) 0; }
context_free(context_t c _GL_UNUSED_PARAMETER)21 SE_CONTEXT_INLINE void context_free (context_t c _GL_UNUSED_PARAMETER) {}
22 
context_user_set(context_t sc _GL_UNUSED_PARAMETER,char const * s _GL_UNUSED_PARAMETER)23 SE_CONTEXT_INLINE int context_user_set (context_t sc _GL_UNUSED_PARAMETER,
24                                         char const *s _GL_UNUSED_PARAMETER)
25   { errno = ENOTSUP; return -1; }
context_role_set(context_t sc _GL_UNUSED_PARAMETER,char const * s _GL_UNUSED_PARAMETER)26 SE_CONTEXT_INLINE int context_role_set (context_t sc _GL_UNUSED_PARAMETER,
27                                         char const *s _GL_UNUSED_PARAMETER)
28   { errno = ENOTSUP; return -1; }
context_range_set(context_t sc _GL_UNUSED_PARAMETER,char const * s _GL_UNUSED_PARAMETER)29 SE_CONTEXT_INLINE int context_range_set (context_t sc _GL_UNUSED_PARAMETER,
30                                          char const *s _GL_UNUSED_PARAMETER)
31   { errno = ENOTSUP; return -1; }
context_type_set(context_t sc _GL_UNUSED_PARAMETER,char const * s _GL_UNUSED_PARAMETER)32 SE_CONTEXT_INLINE int context_type_set (context_t sc _GL_UNUSED_PARAMETER,
33                                         char const *s _GL_UNUSED_PARAMETER)
34   { errno = ENOTSUP; return -1; }
context_type_get(context_t sc _GL_UNUSED_PARAMETER)35 SE_CONTEXT_INLINE char *context_type_get (context_t sc _GL_UNUSED_PARAMETER)
36   { errno = ENOTSUP; return (void *) 0; }
context_range_get(context_t sc _GL_UNUSED_PARAMETER)37 SE_CONTEXT_INLINE char *context_range_get (context_t sc _GL_UNUSED_PARAMETER)
38   { errno = ENOTSUP; return (void *) 0; }
context_role_get(context_t sc _GL_UNUSED_PARAMETER)39 SE_CONTEXT_INLINE char *context_role_get (context_t sc _GL_UNUSED_PARAMETER)
40   { errno = ENOTSUP; return (void *) 0; }
context_user_get(context_t sc _GL_UNUSED_PARAMETER)41 SE_CONTEXT_INLINE char *context_user_get (context_t sc _GL_UNUSED_PARAMETER)
42   { errno = ENOTSUP; return (void *) 0; }
43 
44 _GL_INLINE_HEADER_END
45 
46 #endif
47