summaryrefslogtreecommitdiff
path: root/gnulib/lib/se-context.in.h
blob: cb7419a5686e2a8292ac5a3bd8ece6294fbad04d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef SELINUX_CONTEXT_H
# define SELINUX_CONTEXT_H

# include <errno.h>

/* The definition of _GL_UNUSED_PARAMETER is copied here.  */

typedef int context_t;
static inline context_t context_new (char const *s _GL_UNUSED_PARAMETER)
  { errno = ENOTSUP; return 0; }
static inline char *context_str (context_t con _GL_UNUSED_PARAMETER)
  { errno = ENOTSUP; return (void *) 0; }
static inline void context_free (context_t c _GL_UNUSED_PARAMETER) {}

static inline int context_user_set (context_t sc _GL_UNUSED_PARAMETER,
                                    char const *s _GL_UNUSED_PARAMETER)
  { errno = ENOTSUP; return -1; }
static inline int context_role_set (context_t sc _GL_UNUSED_PARAMETER,
                                    char const *s _GL_UNUSED_PARAMETER)
  { errno = ENOTSUP; return -1; }
static inline int context_range_set (context_t sc _GL_UNUSED_PARAMETER,
                                     char const *s _GL_UNUSED_PARAMETER)
  { errno = ENOTSUP; return -1; }
static inline int context_type_set (context_t sc _GL_UNUSED_PARAMETER,
                                    char const *s _GL_UNUSED_PARAMETER)
  { errno = ENOTSUP; return -1; }

#endif