diff options
-rw-r--r-- | libsandbox/wrapper-funcs/__pre_check.c | 22 | ||||
-rw-r--r-- | scripts/gen_symbol_header.awk | 2 |
2 files changed, 24 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 diff --git a/scripts/gen_symbol_header.awk b/scripts/gen_symbol_header.awk index 749dabc..c9af7f9 100644 --- a/scripts/gen_symbol_header.awk +++ b/scripts/gen_symbol_header.awk @@ -186,6 +186,8 @@ END { } } + printf("#include \"wrapper-funcs/__pre_check.c\"\n"); + printf("#define SB_MAX_STRING_LEN %i\n\n", SB_MAX_STRING_LEN); printf("#endif /* __symbols_h */\n"); |