a06844d559096dbaf157e7aa6d9e40ac1ef5eae2
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.029572 seconds and 3 git commands to generate.