Searched refs:targetfd (Results 1 - 3 of 3) sorted by relevance
/third_party/ltp/testcases/kernel/syscalls/pidfd_getfd/ |
H A D | pidfd_getfd01.c | 47 int flag, pid, targetfd, remotefd; in run() local 58 SAFE_READ(1, fds[0], &targetfd, sizeof(targetfd)); in run() 59 TST_EXP_FD_SILENT(pidfd_getfd(pidfd, targetfd, 0), in run() 60 "pidfd_getfd(%d, %d , 0)", pidfd, targetfd); in run() 67 TST_EXP_VAL_SILENT(kcmp(getpid(), pid, KCMP_FILE, remotefd, targetfd), 0); in run() 69 tst_res(TPASS, "pidfd_getfd(%d, %d, 0) passed", pidfd, targetfd); in run()
|
H A D | pidfd_getfd02.c | 13 * - EBADF targetfd is not an open file descriptor in the process referred 34 int targetfd; member 39 {"invalid targetfd", &valid_pidfd, -1, 0, EBADF}, 75 TST_EXP_FAIL2(pidfd_getfd(valid_pidfd, tc->targetfd, tc->flags), in run() 77 valid_pidfd, tc->targetfd, tc->flags, tc->name); in run() 93 TST_EXP_FAIL2(pidfd_getfd(pidfd, tc->targetfd, tc->flags), in run() 95 pidfd, tc->targetfd, tc->flags, tc->name); in run() 98 TST_EXP_FAIL2(pidfd_getfd(*tc->pidfd, tc->targetfd, tc->flags), in run() 100 *tc->pidfd, tc->targetfd, tc->flags, tc->name); in run()
|
/third_party/ltp/include/lapi/ |
H A D | pidfd.h | 55 static inline int pidfd_getfd(int pidfd, int targetfd, unsigned int flags) in pidfd_getfd() argument 57 return tst_syscall(__NR_pidfd_getfd, pidfd, targetfd, flags); in pidfd_getfd()
|
Completed in 2 milliseconds