Mercurial > hg > octave-nkf > gnulib-hg
view lib/se-context.in.h @ 10695:24d0f9902f09
se-linux-h: remove ENOTSUPP-defining code; instead, use errno
* modules/selinux-h (Depends-on): Add errno.
(configure.ac): Add AC_REQUIRE([AC_C_INLINE]).
* lib/se-context.in.h: Remove code to define ENOTSUPP.
* lib/se-selinux.in.h: Likewise.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Tue, 21 Oct 2008 17:18:53 +0200 |
parents | b2b4c17db720 |
children | c1444c2ed476 |
line wrap: on
line source
#ifndef SELINUX_CONTEXT_H # define SELINUX_CONTEXT_H # include <errno.h> typedef int context_t; static inline context_t context_new (char const *s) { errno = ENOTSUP; return 0; } static inline char *context_str (context_t con) { errno = ENOTSUP; return (void *) 0; } static inline void context_free (context_t c) {} static inline int context_user_set (context_t sc, char const *s) { errno = ENOTSUP; return -1; } static inline int context_role_set (context_t sc, char const *s) { errno = ENOTSUP; return -1; } static inline int context_range_set (context_t sc, char const *s) { errno = ENOTSUP; return -1; } static inline int context_type_set (context_t sc, char const *s) { errno = ENOTSUP; return -1; } #endif