diff options
author | rwatson <rwatson@FreeBSD.org> | 2001-08-29 17:53:45 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2001-08-29 17:53:45 +0000 |
commit | 9dcb56a64f249e3a36fe09718f4b365d3e60cd65 (patch) | |
tree | 17bf0a66c2dd1b1d4510006ef3a33a18f654a031 /lib/libc | |
parent | 285a7fc6ec03a20d2b749adf155621010745f539 (diff) | |
download | FreeBSD-src-9dcb56a64f249e3a36fe09718f4b365d3e60cd65.zip FreeBSD-src-9dcb56a64f249e3a36fe09718f4b365d3e60cd65.tar.gz |
o src/sys/capability.h provides a number of support macros that are not
documented by POSIX.1e, and understand the opaque capability structures.
Introduce support in the userland POSIX.1e library for a
_CAPABILITY_NEEDMACROS define to remove these macros from the normal
namespace, but allow the libc functions to use them.
Submitted by: tmm
Obtained from: TrustedBSD Project
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/posix1e/cap_get_flag.c | 2 | ||||
-rw-r--r-- | lib/libc/posix1e/cap_set_flag.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/posix1e/cap_get_flag.c b/lib/libc/posix1e/cap_get_flag.c index 2f0f221..3694cbb 100644 --- a/lib/libc/posix1e/cap_get_flag.c +++ b/lib/libc/posix1e/cap_get_flag.c @@ -31,7 +31,9 @@ #include <sys/types.h> #include "namespace.h" +#define _CAPABILITY_NEEDMACROS #include <sys/capability.h> +#undef _CAPABILITY_NEEDMACROS #include "un-namespace.h" #include <sys/errno.h> diff --git a/lib/libc/posix1e/cap_set_flag.c b/lib/libc/posix1e/cap_set_flag.c index dc4244c..79e438f 100644 --- a/lib/libc/posix1e/cap_set_flag.c +++ b/lib/libc/posix1e/cap_set_flag.c @@ -31,7 +31,10 @@ #include <sys/types.h> #include "namespace.h" +/* need capability.h macros */ +#define _CAPABILITY_NEEDMACROS #include <sys/capability.h> +#undef _CAPABILITY_NEEDMACROS #include "un-namespace.h" #include <sys/errno.h> |