02a5cd9d5cffe735a07f16ec1f3fdfa428bad059
2 * SPDX-License-Identifier: MIT
4 * Copyright (C) 2015 Michael Jeanson <mjeanson@efficios.com>
7 #ifndef BABELTRACE_COMPAT_STDLIB_H
8 #define BABELTRACE_COMPAT_STDLIB_H
11 * This compat wrapper can be removed and replaced by g_mkdtemp() when we bump
12 * the requirement on glib to version 2.30.
23 char *bt_mkdtemp(char *template)
25 return mkdtemp(template);
28 #elif GLIB_CHECK_VERSION(2,30,0)
30 #include <glib/gstdio.h>
32 char *bt_mkdtemp(char *template)
34 return g_mkdtemp(template);
40 char *bt_mkdtemp(char *template)
44 ret
= mktemp(template);
49 if(mkdir(template, 0700)) {
61 #endif /* BABELTRACE_COMPAT_STDLIB_H */
This page took 0.032415 seconds and 5 git commands to generate.