f2b2cc0e926e18a2b529c89fcbfc8423c9d3dd12
[debian/tar] / gnu / se-context.in.h
1 /* -*- buffer-read-only: t -*- vi: set ro: */
2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3 #ifndef SELINUX_CONTEXT_H
4 # define SELINUX_CONTEXT_H
5
6 # include <errno.h>
7
8 _GL_INLINE_HEADER_BEGIN
9 #ifndef SE_CONTEXT_INLINE
10 # define SE_CONTEXT_INLINE _GL_INLINE
11 #endif
12
13 /* The definition of _GL_UNUSED_PARAMETER is copied here.  */
14
15 typedef int context_t;
16 SE_CONTEXT_INLINE context_t context_new (char const *s _GL_UNUSED_PARAMETER)
17   { errno = ENOTSUP; return 0; }
18 SE_CONTEXT_INLINE char *context_str (context_t con _GL_UNUSED_PARAMETER)
19   { errno = ENOTSUP; return (void *) 0; }
20 SE_CONTEXT_INLINE void context_free (context_t c _GL_UNUSED_PARAMETER) {}
21
22 SE_CONTEXT_INLINE int context_user_set (context_t sc _GL_UNUSED_PARAMETER,
23                                         char const *s _GL_UNUSED_PARAMETER)
24   { errno = ENOTSUP; return -1; }
25 SE_CONTEXT_INLINE int context_role_set (context_t sc _GL_UNUSED_PARAMETER,
26                                         char const *s _GL_UNUSED_PARAMETER)
27   { errno = ENOTSUP; return -1; }
28 SE_CONTEXT_INLINE int context_range_set (context_t sc _GL_UNUSED_PARAMETER,
29                                          char const *s _GL_UNUSED_PARAMETER)
30   { errno = ENOTSUP; return -1; }
31 SE_CONTEXT_INLINE int context_type_set (context_t sc _GL_UNUSED_PARAMETER,
32                                         char const *s _GL_UNUSED_PARAMETER)
33   { errno = ENOTSUP; return -1; }
34
35 _GL_INLINE_HEADER_END
36
37 #endif