annotate lib/se-context.in.h @ 40196:e63f5d3edab5

relocatable-prog: Update documentation. * doc/relocatable-maint.texi (Supporting Relocation): Update to match the recent changes.
author Bruno Haible <bruno@clisp.org>
date Sun, 24 Feb 2019 01:49:15 +0100
parents fa14c33381c4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
1 #ifndef SELINUX_CONTEXT_H
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
2 # define SELINUX_CONTEXT_H
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
3
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
4 # include <errno.h>
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
5
17473
1f9070ef79b0 headers: check that _GL_INLINE_HEADER_BEGIN is defined
Paul Eggert <eggert@cs.ucla.edu>
parents: 17170
diff changeset
6 #ifndef _GL_INLINE_HEADER_BEGIN
1f9070ef79b0 headers: check that _GL_INLINE_HEADER_BEGIN is defined
Paul Eggert <eggert@cs.ucla.edu>
parents: 17170
diff changeset
7 #error "Please include config.h first."
1f9070ef79b0 headers: check that _GL_INLINE_HEADER_BEGIN is defined
Paul Eggert <eggert@cs.ucla.edu>
parents: 17170
diff changeset
8 #endif
17170
661d79eb6d77 selinux-h: better 'inline'
Paul Eggert <eggert@cs.ucla.edu>
parents: 12503
diff changeset
9 _GL_INLINE_HEADER_BEGIN
661d79eb6d77 selinux-h: better 'inline'
Paul Eggert <eggert@cs.ucla.edu>
parents: 12503
diff changeset
10 #ifndef SE_CONTEXT_INLINE
661d79eb6d77 selinux-h: better 'inline'
Paul Eggert <eggert@cs.ucla.edu>
parents: 12503
diff changeset
11 # define SE_CONTEXT_INLINE _GL_INLINE
661d79eb6d77 selinux-h: better 'inline'
Paul Eggert <eggert@cs.ucla.edu>
parents: 12503
diff changeset
12 #endif
661d79eb6d77 selinux-h: better 'inline'
Paul Eggert <eggert@cs.ucla.edu>
parents: 12503
diff changeset
13
12503
92194f05b35f selinux-h: Make generated .h files standalone.
Bruno Haible <bruno@clisp.org>
parents: 12482
diff changeset
14 /* The definition of _GL_UNUSED_PARAMETER is copied here. */
92194f05b35f selinux-h: Make generated .h files standalone.
Bruno Haible <bruno@clisp.org>
parents: 12482
diff changeset
15
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
16 typedef int context_t;
17170
661d79eb6d77 selinux-h: better 'inline'
Paul Eggert <eggert@cs.ucla.edu>
parents: 12503
diff changeset
17 SE_CONTEXT_INLINE context_t context_new (char const *s _GL_UNUSED_PARAMETER)
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
18 { errno = ENOTSUP; return 0; }
17170
661d79eb6d77 selinux-h: better 'inline'
Paul Eggert <eggert@cs.ucla.edu>
parents: 12503
diff changeset
19 SE_CONTEXT_INLINE char *context_str (context_t con _GL_UNUSED_PARAMETER)
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
20 { errno = ENOTSUP; return (void *) 0; }
17170
661d79eb6d77 selinux-h: better 'inline'
Paul Eggert <eggert@cs.ucla.edu>
parents: 12503
diff changeset
21 SE_CONTEXT_INLINE void context_free (context_t c _GL_UNUSED_PARAMETER) {}
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
22
17170
661d79eb6d77 selinux-h: better 'inline'
Paul Eggert <eggert@cs.ucla.edu>
parents: 12503
diff changeset
23 SE_CONTEXT_INLINE int context_user_set (context_t sc _GL_UNUSED_PARAMETER,
661d79eb6d77 selinux-h: better 'inline'
Paul Eggert <eggert@cs.ucla.edu>
parents: 12503
diff changeset
24 char const *s _GL_UNUSED_PARAMETER)
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
25 { errno = ENOTSUP; return -1; }
17170
661d79eb6d77 selinux-h: better 'inline'
Paul Eggert <eggert@cs.ucla.edu>
parents: 12503
diff changeset
26 SE_CONTEXT_INLINE int context_role_set (context_t sc _GL_UNUSED_PARAMETER,
661d79eb6d77 selinux-h: better 'inline'
Paul Eggert <eggert@cs.ucla.edu>
parents: 12503
diff changeset
27 char const *s _GL_UNUSED_PARAMETER)
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
28 { errno = ENOTSUP; return -1; }
17170
661d79eb6d77 selinux-h: better 'inline'
Paul Eggert <eggert@cs.ucla.edu>
parents: 12503
diff changeset
29 SE_CONTEXT_INLINE int context_range_set (context_t sc _GL_UNUSED_PARAMETER,
661d79eb6d77 selinux-h: better 'inline'
Paul Eggert <eggert@cs.ucla.edu>
parents: 12503
diff changeset
30 char const *s _GL_UNUSED_PARAMETER)
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
31 { errno = ENOTSUP; return -1; }
17170
661d79eb6d77 selinux-h: better 'inline'
Paul Eggert <eggert@cs.ucla.edu>
parents: 12503
diff changeset
32 SE_CONTEXT_INLINE int context_type_set (context_t sc _GL_UNUSED_PARAMETER,
661d79eb6d77 selinux-h: better 'inline'
Paul Eggert <eggert@cs.ucla.edu>
parents: 12503
diff changeset
33 char const *s _GL_UNUSED_PARAMETER)
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
34 { errno = ENOTSUP; return -1; }
17549
fa14c33381c4 selinux-h: improve stub types and add more stub functions
Pádraig Brady <P@draigBrady.com>
parents: 17473
diff changeset
35 SE_CONTEXT_INLINE char *context_type_get (context_t sc _GL_UNUSED_PARAMETER)
fa14c33381c4 selinux-h: improve stub types and add more stub functions
Pádraig Brady <P@draigBrady.com>
parents: 17473
diff changeset
36 { errno = ENOTSUP; return (void *) 0; }
fa14c33381c4 selinux-h: improve stub types and add more stub functions
Pádraig Brady <P@draigBrady.com>
parents: 17473
diff changeset
37 SE_CONTEXT_INLINE char *context_range_get (context_t sc _GL_UNUSED_PARAMETER)
fa14c33381c4 selinux-h: improve stub types and add more stub functions
Pádraig Brady <P@draigBrady.com>
parents: 17473
diff changeset
38 { errno = ENOTSUP; return (void *) 0; }
fa14c33381c4 selinux-h: improve stub types and add more stub functions
Pádraig Brady <P@draigBrady.com>
parents: 17473
diff changeset
39 SE_CONTEXT_INLINE char *context_role_get (context_t sc _GL_UNUSED_PARAMETER)
fa14c33381c4 selinux-h: improve stub types and add more stub functions
Pádraig Brady <P@draigBrady.com>
parents: 17473
diff changeset
40 { errno = ENOTSUP; return (void *) 0; }
fa14c33381c4 selinux-h: improve stub types and add more stub functions
Pádraig Brady <P@draigBrady.com>
parents: 17473
diff changeset
41 SE_CONTEXT_INLINE char *context_user_get (context_t sc _GL_UNUSED_PARAMETER)
fa14c33381c4 selinux-h: improve stub types and add more stub functions
Pádraig Brady <P@draigBrady.com>
parents: 17473
diff changeset
42 { errno = ENOTSUP; return (void *) 0; }
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
43
17170
661d79eb6d77 selinux-h: better 'inline'
Paul Eggert <eggert@cs.ucla.edu>
parents: 12503
diff changeset
44 _GL_INLINE_HEADER_END
661d79eb6d77 selinux-h: better 'inline'
Paul Eggert <eggert@cs.ucla.edu>
parents: 12503
diff changeset
45
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
46 #endif