thread_manage_apps: update and comment socket handling
[lttng-tools.git] / ltt-sessiond / utils.h
CommitLineData
996b65c8
MD
1#ifndef _LTT_UTILS_H
2#define _LTT_UTILS_H
3
8e68d1c8
DG
4/*
5 * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
996b65c8 6 * Copyright (C) 2011 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8e68d1c8
DG
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
82a3637f
DG
10 * as published by the Free Software Foundation; only version 2
11 * of the License.
8e68d1c8
DG
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
996b65c8 23#include <unistd.h>
8e68d1c8 24
ab147185
MD
25#ifndef ARRAY_SIZE
26#define ARRAY_SIZE(array) (sizeof(array) / (sizeof((array)[0])))
27#endif
28
996b65c8 29int mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid);
b082db07 30const char *get_home_dir(void);
8e68d1c8
DG
31
32#endif /* _LTT_UTILS_H */
This page took 0.033369 seconds and 4 git commands to generate.