Mercurial > hg > octave-jordi > gnulib-hg
view lib/se-context.in.h @ 14858:dd10bbc31f53
Copyright: Use LGPL 2.1 instead of LGPL 2.0.
* lib/localename.h: Update copyright header.
* lib/localename.c: Likewise.
* lib/relocatable.h: Likewise.
* lib/relocatable.c: Likewise.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Fri, 03 Jun 2011 14:21:08 +0200 |
parents | 92194f05b35f |
children | 661d79eb6d77 |
line wrap: on
line source
#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