aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libsandbox/wrapper-funcs')
-rw-r--r--libsandbox/wrapper-funcs/mkdtemp.c13
-rw-r--r--libsandbox/wrapper-funcs/mkostemp.c11
-rw-r--r--libsandbox/wrapper-funcs/mkostemp64.c8
-rw-r--r--libsandbox/wrapper-funcs/mkostemps.c11
-rw-r--r--libsandbox/wrapper-funcs/mkostemps64.c8
-rw-r--r--libsandbox/wrapper-funcs/mkstemp.c11
-rw-r--r--libsandbox/wrapper-funcs/mkstemp64.c8
-rw-r--r--libsandbox/wrapper-funcs/mkstemps.c11
-rw-r--r--libsandbox/wrapper-funcs/mkstemps64.c8
9 files changed, 89 insertions, 0 deletions
diff --git a/libsandbox/wrapper-funcs/mkdtemp.c b/libsandbox/wrapper-funcs/mkdtemp.c
new file mode 100644
index 0000000..6c86114
--- /dev/null
+++ b/libsandbox/wrapper-funcs/mkdtemp.c
@@ -0,0 +1,13 @@
+/*
+ * mkdtemp() wrapper.
+ *
+ * Copyright 1999-2011 Gentoo Foundation
+ * Licensed under the GPL-2
+ */
+
+#define WRAPPER_ARGS_PROTO char *template
+#define WRAPPER_ARGS template
+#define WRAPPER_RET_TYPE char *
+#define WRAPPER_RET_DEFAULT NULL
+#define WRAPPER_SAFE() SB_SAFE(template)
+#include "__wrapper_simple.c"
diff --git a/libsandbox/wrapper-funcs/mkostemp.c b/libsandbox/wrapper-funcs/mkostemp.c
new file mode 100644
index 0000000..0ecb87f
--- /dev/null
+++ b/libsandbox/wrapper-funcs/mkostemp.c
@@ -0,0 +1,11 @@
+/*
+ * mkostemp() wrapper.
+ *
+ * Copyright 1999-2011 Gentoo Foundation
+ * Licensed under the GPL-2
+ */
+
+#define WRAPPER_ARGS_PROTO char *template, int flags
+#define WRAPPER_ARGS template, flags
+#define WRAPPER_SAFE() SB_SAFE(template)
+#include "__wrapper_simple.c"
diff --git a/libsandbox/wrapper-funcs/mkostemp64.c b/libsandbox/wrapper-funcs/mkostemp64.c
new file mode 100644
index 0000000..51dfa11
--- /dev/null
+++ b/libsandbox/wrapper-funcs/mkostemp64.c
@@ -0,0 +1,8 @@
+/*
+ * mkostemp64() wrapper.
+ *
+ * Copyright 1999-2011 Gentoo Foundation
+ * Licensed under the GPL-2
+ */
+
+#include "mkostemp.c"
diff --git a/libsandbox/wrapper-funcs/mkostemps.c b/libsandbox/wrapper-funcs/mkostemps.c
new file mode 100644
index 0000000..888dc42
--- /dev/null
+++ b/libsandbox/wrapper-funcs/mkostemps.c
@@ -0,0 +1,11 @@
+/*
+ * mkostemps() wrapper.
+ *
+ * Copyright 1999-2011 Gentoo Foundation
+ * Licensed under the GPL-2
+ */
+
+#define WRAPPER_ARGS_PROTO char *template, int suffixlen, int flags
+#define WRAPPER_ARGS template, suffixlen, flags
+#define WRAPPER_SAFE() SB_SAFE(template)
+#include "__wrapper_simple.c"
diff --git a/libsandbox/wrapper-funcs/mkostemps64.c b/libsandbox/wrapper-funcs/mkostemps64.c
new file mode 100644
index 0000000..92ca0c5
--- /dev/null
+++ b/libsandbox/wrapper-funcs/mkostemps64.c
@@ -0,0 +1,8 @@
+/*
+ * mkostemps64() wrapper.
+ *
+ * Copyright 1999-2011 Gentoo Foundation
+ * Licensed under the GPL-2
+ */
+
+#include "mkostemps.c"
diff --git a/libsandbox/wrapper-funcs/mkstemp.c b/libsandbox/wrapper-funcs/mkstemp.c
new file mode 100644
index 0000000..99a53b3
--- /dev/null
+++ b/libsandbox/wrapper-funcs/mkstemp.c
@@ -0,0 +1,11 @@
+/*
+ * mkstemp() wrapper.
+ *
+ * Copyright 1999-2011 Gentoo Foundation
+ * Licensed under the GPL-2
+ */
+
+#define WRAPPER_ARGS_PROTO char *template
+#define WRAPPER_ARGS template
+#define WRAPPER_SAFE() SB_SAFE(template)
+#include "__wrapper_simple.c"
diff --git a/libsandbox/wrapper-funcs/mkstemp64.c b/libsandbox/wrapper-funcs/mkstemp64.c
new file mode 100644
index 0000000..0c5c82b
--- /dev/null
+++ b/libsandbox/wrapper-funcs/mkstemp64.c
@@ -0,0 +1,8 @@
+/*
+ * mkstemp64() wrapper.
+ *
+ * Copyright 1999-2011 Gentoo Foundation
+ * Licensed under the GPL-2
+ */
+
+#include "mkstemp.c"
diff --git a/libsandbox/wrapper-funcs/mkstemps.c b/libsandbox/wrapper-funcs/mkstemps.c
new file mode 100644
index 0000000..090652f
--- /dev/null
+++ b/libsandbox/wrapper-funcs/mkstemps.c
@@ -0,0 +1,11 @@
+/*
+ * mkstemps() wrapper.
+ *
+ * Copyright 1999-2011 Gentoo Foundation
+ * Licensed under the GPL-2
+ */
+
+#define WRAPPER_ARGS_PROTO char *template, int suffixlen
+#define WRAPPER_ARGS template, suffixlen
+#define WRAPPER_SAFE() SB_SAFE(template)
+#include "__wrapper_simple.c"
diff --git a/libsandbox/wrapper-funcs/mkstemps64.c b/libsandbox/wrapper-funcs/mkstemps64.c
new file mode 100644
index 0000000..27cba5b
--- /dev/null
+++ b/libsandbox/wrapper-funcs/mkstemps64.c
@@ -0,0 +1,8 @@
+/*
+ * mkstemps64() wrapper.
+ *
+ * Copyright 1999-2011 Gentoo Foundation
+ * Licensed under the GPL-2
+ */
+
+#include "mkstemps.c"