08aa10dcd199a0431845bc0a279fc9b4b30896f8
2 * Copyright (C) 2011 - David Goulet <dgoulet@efficios.com>
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation; only version 2 of the License.
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * You should have received a copy of the GNU General Public License along with
14 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15 * Place - Suite 330, Boston, MA 02111-1307, USA.
18 #ifndef _COMPAT_CLONE_H
19 #define _COMPAT_CLONE_H
26 int lttng_clone_files(int (*fn
)(void *), void *child_stack
, void *arg
)
28 return clone(fn
, child_stack
, CLONE_FILES
| SIGCHLD
, arg
);
36 int lttng_clone_files(int (*fn
)(void *), void *child_stack
, void *arg
)
38 return rfork(RFPROC
| RFTHREAD
);
42 #error "Please add support for your OS into compat/clone.h."
43 #endif /* __linux__ , __FreeBSD__ */
45 #endif /* _COMPAT_CLONE_H */
This page took 0.106036 seconds and 4 git commands to generate.