diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2012-12-22 14:27:13 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2012-12-22 14:27:13 +0000 |
commit | c949e6f8ed33f31bd46c1626dc6c5828a1750e56 (patch) | |
tree | e519be160770e6b20bfe88eb923ea6aa8edb3e58 /lib/se-context.in.h | |
download | sed-tarball-c949e6f8ed33f31bd46c1626dc6c5828a1750e56.tar.gz |
Diffstat (limited to 'lib/se-context.in.h')
-rw-r--r-- | lib/se-context.in.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/se-context.in.h b/lib/se-context.in.h new file mode 100644 index 0000000..a692f5a --- /dev/null +++ b/lib/se-context.in.h @@ -0,0 +1,35 @@ +#ifndef SELINUX_CONTEXT_H +# define SELINUX_CONTEXT_H + +# include <errno.h> + +_GL_INLINE_HEADER_BEGIN +#ifndef SE_CONTEXT_INLINE +# define SE_CONTEXT_INLINE _GL_INLINE +#endif + +/* The definition of _GL_UNUSED_PARAMETER is copied here. */ + +typedef int context_t; +SE_CONTEXT_INLINE context_t context_new (char const *s _GL_UNUSED_PARAMETER) + { errno = ENOTSUP; return 0; } +SE_CONTEXT_INLINE char *context_str (context_t con _GL_UNUSED_PARAMETER) + { errno = ENOTSUP; return (void *) 0; } +SE_CONTEXT_INLINE void context_free (context_t c _GL_UNUSED_PARAMETER) {} + +SE_CONTEXT_INLINE int context_user_set (context_t sc _GL_UNUSED_PARAMETER, + char const *s _GL_UNUSED_PARAMETER) + { errno = ENOTSUP; return -1; } +SE_CONTEXT_INLINE int context_role_set (context_t sc _GL_UNUSED_PARAMETER, + char const *s _GL_UNUSED_PARAMETER) + { errno = ENOTSUP; return -1; } +SE_CONTEXT_INLINE int context_range_set (context_t sc _GL_UNUSED_PARAMETER, + char const *s _GL_UNUSED_PARAMETER) + { errno = ENOTSUP; return -1; } +SE_CONTEXT_INLINE int context_type_set (context_t sc _GL_UNUSED_PARAMETER, + char const *s _GL_UNUSED_PARAMETER) + { errno = ENOTSUP; return -1; } + +_GL_INLINE_HEADER_END + +#endif |