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