summaryrefslogtreecommitdiffstats
path: root/kernel/tools/build/feature/test-libaudit.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/tools/build/feature/test-libaudit.c')
-rw-r--r--kernel/tools/build/feature/test-libaudit.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/tools/build/feature/test-libaudit.c b/kernel/tools/build/feature/test-libaudit.c
new file mode 100644
index 000000000..afc019f08
--- /dev/null
+++ b/kernel/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();
+}