summaryrefslogtreecommitdiffstats
path: root/tools/build/feature/test-libaudit.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2015-03-27 10:10:47 +0100
committerIngo Molnar <mingo@kernel.org>2015-03-27 10:10:47 +0100
commitb381e63b48a0b6befc7b4e55408c39012a0dcf8c (patch)
tree92e70447e1b0cf721ef40515db6b97cb881c5066 /tools/build/feature/test-libaudit.c
parentMerge branch 'timers/core' into perf/timer, to apply dependent patch (diff)
parentperf: Fix racy group access (diff)
downloadlinux-b381e63b48a0b6befc7b4e55408c39012a0dcf8c.tar.xz
linux-b381e63b48a0b6befc7b4e55408c39012a0dcf8c.zip
Merge branch 'perf/core' into perf/timer, before applying new changes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/build/feature/test-libaudit.c')
-rw-r--r--tools/build/feature/test-libaudit.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/build/feature/test-libaudit.c b/tools/build/feature/test-libaudit.c
new file mode 100644
index 000000000000..afc019f08641
--- /dev/null
+++ b/tools/build/feature/test-libaudit.c
@@ -0,0 +1,10 @@
+#include <libaudit.h>
+
+extern int printf(const char *format, ...);
+
+int main(void)
+{
+ printf("error message: %s\n", audit_errno_to_name(0));
+
+ return audit_open();
+}