1 #ifndef SELINUX_CONTEXT_H
2 # define SELINUX_CONTEXT_H
6 #ifndef _GL_INLINE_HEADER_BEGIN
7 #error "Please include config.h first."
9 _GL_INLINE_HEADER_BEGIN
10 #ifndef SE_CONTEXT_INLINE
11 # define SE_CONTEXT_INLINE _GL_INLINE
14 /* The definition of _GL_UNUSED_PARAMETER is copied here. */
16 typedef int context_t
;
17 SE_CONTEXT_INLINE context_t
context_new (char const *s _GL_UNUSED_PARAMETER
)
18 { errno
= ENOTSUP
; return 0; }
19 SE_CONTEXT_INLINE
char *context_str (context_t con _GL_UNUSED_PARAMETER
)
20 { errno
= ENOTSUP
; return (void *) 0; }
21 SE_CONTEXT_INLINE
void context_free (context_t c _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; }
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; }
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; }
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; }
35 SE_CONTEXT_INLINE
char *context_type_get (context_t sc _GL_UNUSED_PARAMETER
)
36 { errno
= ENOTSUP
; return (void *) 0; }
37 SE_CONTEXT_INLINE
char *context_range_get (context_t sc _GL_UNUSED_PARAMETER
)
38 { errno
= ENOTSUP
; return (void *) 0; }
39 SE_CONTEXT_INLINE
char *context_role_get (context_t sc _GL_UNUSED_PARAMETER
)
40 { errno
= ENOTSUP
; return (void *) 0; }
41 SE_CONTEXT_INLINE
char *context_user_get (context_t sc _GL_UNUSED_PARAMETER
)
42 { errno
= ENOTSUP
; return (void *) 0; }