aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-07-04 18:36:03 -0400
committerMike Frysinger <vapier@gentoo.org>2011-07-04 19:06:12 -0400
commit4924cc4606ef4bd5991d66a42996dfb8e7c543ca (patch)
tree29ab07d907bc33a9f7f2b2ec3190e35da09b66fe /libsandbox/wrapper-funcs
parenttests: autogenerate testsuite.at (diff)
downloadsandbox-4924cc4606ef4bd5991d66a42996dfb8e7c543ca.tar.gz
sandbox-4924cc4606ef4bd5991d66a42996dfb8e7c543ca.tar.bz2
sandbox-4924cc4606ef4bd5991d66a42996dfb8e7c543ca.zip
libsandbox: catch mktemp related funcs
URL: http://bugs.gentoo.org/374059 Reported-by: Nick Bowler <nbowler@draconx.ca> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
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"