Lines Matching +full:include +full:- +full:pid
1 // SPDX-License-Identifier: GPL-2.0-or-later
8 #include <stddef.h>
10 #include "tst_test.h"
11 #include "lapi/clone.h"
16 .flags = tst_args->flags, in tst_clone()
17 .exit_signal = tst_args->exit_signal, in tst_clone()
20 pid_t pid = -1; in tst_clone() local
26 pid = syscall(__NR_clone3, &args, sizeof(args)); in tst_clone()
28 if (pid == -1 && errno != ENOSYS) in tst_clone()
29 return -1; in tst_clone()
31 if (pid != -1) in tst_clone()
32 return pid; in tst_clone()
37 pid = syscall(__NR_clone, NULL, flags); in tst_clone()
39 pid = syscall(__NR_clone, flags, NULL); in tst_clone()
42 if (pid == -1) in tst_clone()
43 return -2; in tst_clone()
45 return pid; in tst_clone()