projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
install-reloc: Support multi-binary installation.
[gnulib.git]
/
lib
/
se-context.in.h
diff --git
a/lib/se-context.in.h
b/lib/se-context.in.h
index
ec88a03
..
bd586e8
100644
(file)
--- a/
lib/se-context.in.h
+++ b/
lib/se-context.in.h
@@
-2,30
+2,37
@@
# define SELINUX_CONTEXT_H
# include <errno.h>
# define SELINUX_CONTEXT_H
# include <errno.h>
-/* Some systems don't have ENOTSUP. */
-# ifndef ENOTSUP
-# ifdef ENOSYS
-# define ENOTSUP ENOSYS
-# else
-/* Some systems don't have ENOSYS either. */
-# define ENOTSUP EINVAL
-# endif
-# endif
+
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
+_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;
typedef int context_t;
-
static inline context_t context_new (char const *s
)
+
SE_CONTEXT_INLINE context_t context_new (char const *s _GL_UNUSED_PARAMETER
)
{ errno = ENOTSUP; return 0; }
{ errno = ENOTSUP; return 0; }
-
static inline char *context_str (context_t con
)
+
SE_CONTEXT_INLINE char *context_str (context_t con _GL_UNUSED_PARAMETER
)
{ errno = ENOTSUP; return (void *) 0; }
{ errno = ENOTSUP; return (void *) 0; }
-
static inline void context_free (context_t c
) {}
+
SE_CONTEXT_INLINE void context_free (context_t c _GL_UNUSED_PARAMETER
) {}
-static inline int context_user_set (context_t sc, char const *s)
+SE_CONTEXT_INLINE int context_user_set (context_t sc _GL_UNUSED_PARAMETER,
+ char const *s _GL_UNUSED_PARAMETER)
{ errno = ENOTSUP; return -1; }
{ errno = ENOTSUP; return -1; }
-static inline int context_role_set (context_t sc, char const *s)
+SE_CONTEXT_INLINE int context_role_set (context_t sc _GL_UNUSED_PARAMETER,
+ char const *s _GL_UNUSED_PARAMETER)
{ errno = ENOTSUP; return -1; }
{ errno = ENOTSUP; return -1; }
-static inline int context_range_set (context_t sc, char const *s)
+SE_CONTEXT_INLINE int context_range_set (context_t sc _GL_UNUSED_PARAMETER,
+ char const *s _GL_UNUSED_PARAMETER)
{ errno = ENOTSUP; return -1; }
{ errno = ENOTSUP; return -1; }
-static inline int context_type_set (context_t sc, char const *s)
+SE_CONTEXT_INLINE int context_type_set (context_t sc _GL_UNUSED_PARAMETER,
+ char const *s _GL_UNUSED_PARAMETER)
{ errno = ENOTSUP; return -1; }
{ errno = ENOTSUP; return -1; }
+_GL_INLINE_HEADER_END
+
#endif
#endif