gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
[pspp] / lib / se-context.in.h
1 #ifndef SELINUX_CONTEXT_H
2 # define SELINUX_CONTEXT_H
3
4 # include <errno.h>
5
6 typedef int context_t;
7 static inline context_t context_new (char const *s _GL_UNUSED)
8   { errno = ENOTSUP; return 0; }
9 static inline char *context_str (context_t con _GL_UNUSED)
10   { errno = ENOTSUP; return (void *) 0; }
11 static inline void context_free (context_t c _GL_UNUSED) {}
12
13 static inline int context_user_set (context_t sc _GL_UNUSED,
14                                     char const *s _GL_UNUSED)
15   { errno = ENOTSUP; return -1; }
16 static inline int context_role_set (context_t sc _GL_UNUSED,
17                                     char const *s _GL_UNUSED)
18   { errno = ENOTSUP; return -1; }
19 static inline int context_range_set (context_t sc _GL_UNUSED,
20                                      char const *s _GL_UNUSED)
21   { errno = ENOTSUP; return -1; }
22 static inline int context_type_set (context_t sc _GL_UNUSED,
23                                     char const *s _GL_UNUSED)
24   { errno = ENOTSUP; return -1; }
25
26 #endif