minijail: Add named constants for seccomp filters

This makes it possible to write filters using named constants (like
ENOSYS instead of 38).

BUG=chromium:516701
TEST=syscall_filter_unittest passes.

Change-Id: Ic44cbdfb6f2228f6f658b1cc48adf5a923394306
Reviewed-on: https://chromium-review.googlesource.com/290540
Reviewed-by: Jorge Lucangeli Obes <[email protected]>
Trybot-Ready: Luis Hector Chavez <[email protected]>
Tested-by: Luis Hector Chavez <[email protected]>
Commit-Queue: Luis Hector Chavez <[email protected]>
diff --git a/libconstants.h b/libconstants.h
new file mode 100644
index 0000000..865f9d3
--- /dev/null
+++ b/libconstants.h
@@ -0,0 +1,15 @@
+/* Copyright 2015 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+#ifndef MINIJAIL_LIBCONSTANTS_H_
+#define MINIJAIL_LIBCONSTANTS_H_
+
+struct constant_entry {
+  const char *name;
+  unsigned long value;
+};
+
+extern const struct constant_entry constant_table[];
+
+#endif  /* MINIJAIL_LIBCONSTANTS_H_ */