41aad2557b0786c75f0646ebfd88dd2473ab0317
[lttng-tools.git] / ltt-sessiond / utils.h
1 #ifndef _LTT_UTILS_H
2 #define _LTT_UTILS_H
3
4 /*
5 * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
6 * Copyright (C) 2011 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; only version 2
11 * of the License.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 */
22
23 #include <unistd.h>
24
25 #ifndef ARRAY_SIZE
26 #define ARRAY_SIZE(array) (sizeof(array) / (sizeof((array)[0])))
27 #endif
28
29 int mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid);
30 const char *get_home_dir(void);
31
32 #endif /* _LTT_UTILS_H */
This page took 0.042304 seconds and 4 git commands to generate.