1 /* 2 * Copyright (c) 2016 Xiao Yang <yangx.jy@cn.fujitsu.com> 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms of version 2 of the GNU General Public License as 6 * published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it would be useful, but 9 * WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 11 * 12 * Further, this software is distributed without any warranty that it is 13 * free of the rightful claim of any third person regarding infringement 14 * or the like. Any license provided herein, whether implied or 15 * otherwise, applies only to this software file. Patent licenses, if 16 * any, provided herein do not apply to combinations of this program with 17 * other software, or any other product whatsoever. 18 * 19 * You should have received a copy of the GNU General Public License along 20 * with this program. 21 * 22 */ 23 24 #ifndef TST_CLONE_H__ 25 #define TST_CLONE_H__ 26 27 /* Functions from lib/cloner.c */ 28 int ltp_clone(unsigned long flags, int (*fn)(void *arg), void *arg, 29 size_t stack_size, void *stack); 30 int ltp_clone7(unsigned long flags, int (*fn)(void *arg), void *arg, 31 size_t stack_size, void *stack, ...); 32 int ltp_clone_malloc(unsigned long clone_flags, int (*fn)(void *arg), 33 void *arg, size_t stacksize); 34 int ltp_clone_quick(unsigned long clone_flags, int (*fn)(void *arg), 35 void *arg); 36 37 #define clone(...) (use_the_ltp_clone_functions__do_not_use_clone) 38 39 #endif /* TST_CLONE_H__ */ 40