File: se-context.in.h

package info (click to toggle)
gnulib 20120404%2Bstable-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 61,868 kB
  • sloc: ansic: 236,709; sh: 21,911; cpp: 1,533; yacc: 1,251; perl: 776; makefile: 296; lisp: 271; java: 5
file content (28 lines) | stat: -rw-r--r-- 1,167 bytes parent folder | download | duplicates (12)
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