Home
last modified time | relevance | path

Searched refs:kcmp (Results 1 - 6 of 6) sorted by relevance

/third_party/ltp/include/lapi/
H A Dkcmp.h28 # include <linux/kcmp.h>
34 static inline int kcmp(int pid1, int pid2, int type, int fd1, int fd2) in kcmp() function
/third_party/ltp/testcases/kernel/syscalls/kcmp/
H A Dkcmp.h41 # include <linux/kcmp.h>
47 int kcmp(int pid1, int pid2, int type, int fd1, int fd2) in kcmp() function
H A Dkcmp03.c10 * 1) kcmp() returns 0 if the processes share the same file system information.
11 * 2) kcmp() returns 0 if the processes share I/O context.
12 * 3) kcmp() returns 0 if the processes share the same list of System V
14 * 4) kcmp() returns 0 if the processes share the same address space.
23 #include "lapi/kcmp.h"
56 TEST(kcmp(pid1, pid2, *(int *)arg, 0, 0)); in do_child()
58 tst_res(TFAIL | TTERRNO, "kcmp() failed unexpectedly"); in do_child()
63 tst_res(TPASS, "kcmp() returned the expected value"); in do_child()
65 tst_res(TFAIL, "kcmp() returned the unexpected value"); in do_child()
H A Dkcmp02.c8 * 1) kcmp fails with bad pid
9 * 2) kcmp fails with invalid flag
10 * 3) kcmp fails with invalid flag
11 * 4) kcmp fails with invalid flag
12 * 5) kcmp fails with invalid flag
13 * 6) kcmp fails with invalid fd
20 #include "lapi/kcmp.h"
74 TEST(kcmp(*(test->pid1), *(test->pid2), test->type, in verify_kcmp()
78 tst_res(TFAIL, "kcmp() succeeded unexpectedly"); in verify_kcmp()
83 tst_res(TPASS | TTERRNO, "kcmp() returne in verify_kcmp()
[all...]
H A Dkcmp01.c8 * 1) kcmp returns 0 with two process and two fd refering to the
10 * 2) kcmp doesn't return 0 with two process and two fd not
18 #include "lapi/kcmp.h"
68 TEST(kcmp(*(test->pid1), *(test->pid2), test->type, in do_child()
75 tst_res(TFAIL | TTERRNO, "kcmp() failed unexpectedly"); in do_child()
81 tst_res(TFAIL, "kcmp() returned %lu instead of %d", in do_child()
86 tst_res(TPASS, "kcmp() returned the expected value"); in do_child()
/third_party/ltp/testcases/kernel/syscalls/pidfd_getfd/
H A Dpidfd_getfd01.c14 * - use kcmp to check whether a file descriptor idx1 in the process pid1
23 #include "lapi/kcmp.h"
67 TST_EXP_VAL_SILENT(kcmp(getpid(), pid, KCMP_FILE, remotefd, targetfd), 0); in run()

Completed in 2 milliseconds