Update version to 2.0-pre17
[lttng-tools.git] / common / runas.h
1 #ifndef _RUNAS_H
2 #define _RUNAS_H
3
4 /*
5 * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
6 * 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 verion 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 int run_as_mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid);
26 int run_as_mkdir(const char *path, mode_t mode, uid_t uid, gid_t gid);
27 int run_as_open(const char *path, int flags, mode_t mode, uid_t uid, gid_t gid);
28
29 #endif /* _RUNAS_H */
This page took 0.03043 seconds and 5 git commands to generate.