annotate lib/se-selinux.in.h @ 10702:c1444c2ed476

selinux-h: mark parameters of stub functions as intentionally unused * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_. * lib/se-context.in.h: Likewise.
author Jim Meyering <jim@meyering.net>
date Wed, 22 Oct 2008 11:07:50 -0700
parents 24d0f9902f09
children d1f84df3a7a4
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_SELINUX_H
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
2 # define SELINUX_SELINUX_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 <sys/types.h>
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
5 # include <errno.h>
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
6
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
7 typedef unsigned short security_class_t;
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
8 # define security_context_t char*
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
9 # define is_selinux_enabled() 0
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
10
10702
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
11 static inline int getcon (security_context_t *con _UNUSED_PARAMETER_)
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
12 { errno = ENOTSUP; return -1; }
10702
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
13 static inline void freecon (security_context_t con _UNUSED_PARAMETER_) {}
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
14
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
15
10702
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
16 static inline int getfscreatecon (security_context_t *con _UNUSED_PARAMETER_)
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
17 { errno = ENOTSUP; return -1; }
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
18 static inline int setfscreatecon (security_context_t con _UNUSED_PARAMETER_)
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
19 { errno = ENOTSUP; return -1; }
10702
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
20 static inline int matchpathcon (char const *s _UNUSED_PARAMETER_,
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
21 mode_t m _UNUSED_PARAMETER_,
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
22 security_context_t *con _UNUSED_PARAMETER_)
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
23 { errno = ENOTSUP; return -1; }
10702
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
24 static inline int getfilecon (char const *s _UNUSED_PARAMETER_,
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
25 security_context_t *con _UNUSED_PARAMETER_)
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
26 { errno = ENOTSUP; return -1; }
10702
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
27 static inline int lgetfilecon (char const *s _UNUSED_PARAMETER_,
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
28 security_context_t *con _UNUSED_PARAMETER_)
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
29 { errno = ENOTSUP; return -1; }
10702
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
30 static inline int setfilecon (char const *s _UNUSED_PARAMETER_,
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
31 security_context_t con _UNUSED_PARAMETER_)
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
32 { errno = ENOTSUP; return -1; }
10702
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
33 static inline int lsetfilecon (char const *s _UNUSED_PARAMETER_,
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
34 security_context_t con _UNUSED_PARAMETER_)
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
35 { errno = ENOTSUP; return -1; }
10702
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
36 static inline int fsetfilecon (int fd _UNUSED_PARAMETER_,
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
37 security_context_t con _UNUSED_PARAMETER_)
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
38 { errno = ENOTSUP; return -1; }
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
39
10702
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
40 static inline int security_check_context
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
41 (security_context_t con _UNUSED_PARAMETER_)
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
42 { errno = ENOTSUP; return -1; }
10702
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
43 static inline int security_check_context_raw
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
44 (security_context_t con _UNUSED_PARAMETER_)
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
45 { errno = ENOTSUP; return -1; }
10702
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
46 static inline int setexeccon (security_context_t con _UNUSED_PARAMETER_)
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
47 { errno = ENOTSUP; return -1; }
10702
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
48 static inline int security_compute_create
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
49 (security_context_t scon _UNUSED_PARAMETER_,
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
50 security_context_t tcon _UNUSED_PARAMETER_,
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
51 security_class_t tclass _UNUSED_PARAMETER_,
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
52 security_context_t *newcon _UNUSED_PARAMETER_)
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
53 { errno = ENOTSUP; return -1; }
10702
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
54 static inline int matchpathcon_init_prefix
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
55 (char const *path _UNUSED_PARAMETER_,
c1444c2ed476 selinux-h: mark parameters of stub functions as intentionally unused
Jim Meyering <jim@meyering.net>
parents: 10695
diff changeset
56 char const *prefix _UNUSED_PARAMETER_)
10694
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
57 { errno = ENOTSUP; return -1; }
b2b4c17db720 selinux-h: new module (from coreutils/gl/)
Jim Meyering <meyering@redhat.com>
parents:
diff changeset
58 #endif