aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-08-25 05:29:03 -0400
committerMike Frysinger <vapier@gentoo.org>2009-08-25 05:29:03 -0400
commitb27df46f349e850067ae388fe067b043abf3aecb (patch)
tree844cf15caafd1646349b85d6aa449928944d9e82 /libsandbox
parentdrop accidental libsandbox.so addition (diff)
downloadsandbox-b27df46f349e850067ae388fe067b043abf3aecb.tar.gz
sandbox-b27df46f349e850067ae388fe067b043abf3aecb.tar.bz2
sandbox-b27df46f349e850067ae388fe067b043abf3aecb.zip
libsandbox: fix missing *at pre_checks
For systems that lack *at() funcs, make sure we still include the pre-checks as we use these functions in the non-at version. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libsandbox')
-rw-r--r--libsandbox/wrapper-funcs/__pre_check.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/libsandbox/wrapper-funcs/__pre_check.c b/libsandbox/wrapper-funcs/__pre_check.c
new file mode 100644
index 0000000..2d5711f
--- /dev/null
+++ b/libsandbox/wrapper-funcs/__pre_check.c
@@ -0,0 +1,22 @@
+/*
+ * make sure some pre-checks are pulled in when needed
+ *
+ * Copyright 1999-2009 Gentoo Foundation
+ * Licensed under the GPL-2
+ */
+
+#if SB_NR_MKDIR != SB_NR_UNDEF && SB_NR_MKDIRAT == SB_NR_UNDEF
+# include "mkdirat_pre_check.c"
+#endif
+
+#if SB_NR_OPEN != SB_NR_UNDEF && SB_NR_OPENAT == SB_NR_UNDEF
+# include "openat_pre_check.c"
+#endif
+
+#if SB_NR_OPEN64 != SB_NR_UNDEF && SB_NR_OPENAT64 == SB_NR_UNDEF
+# include "openat64_pre_check.c"
+#endif
+
+#if SB_NR_UNLINK != SB_NR_UNDEF && SB_NR_UNLINKAT == SB_NR_UNDEF
+# include "unlinkat_pre_check.c"
+#endif