view lib/se-context.in.h @ 17149:a49df7b88261

errno: port to LynxOS 178 2.2.2 Problem reported by Joel Brobecker in <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>. * doc/posix-headers/errno.texi (errno.h): Document this. * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros. * lib/strerror-override.c, lib/strerror-override.h (strerror_override): Supply a string for EILSEQ. * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
author Paul Eggert <eggert@cs.ucla.edu>
date Thu, 01 Nov 2012 15:29:14 -0700
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