aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libsandbox/wrapper-funcs/open.c')
-rw-r--r--libsandbox/wrapper-funcs/open.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libsandbox/wrapper-funcs/open.c b/libsandbox/wrapper-funcs/open.c
index ef649ca..fd23f31 100644
--- a/libsandbox/wrapper-funcs/open.c
+++ b/libsandbox/wrapper-funcs/open.c
@@ -5,7 +5,10 @@
* Licensed under the GPL-2
*/
-#define WRAPPER_ARGS_PROTO const char *pathname, int flags, ...
+#define _WRAPPER_ARGS_PROTO const char *pathname, int flags
+#define WRAPPER_ARGS_PROTO _WRAPPER_ARGS_PROTO, ...
+#define WRAPPER_ARGS_PROTO_FULL _WRAPPER_ARGS_PROTO, mode_t mode
#define WRAPPER_ARGS pathname, flags
+#define WRAPPER_ARGS_FULL WRAPPER_ARGS, mode
#define WRAPPER_SAFE() FUNCTION_SANDBOX_SAFE_OPEN_INT(pathname, flags)
#include "openat.c"