Lines Matching refs:fd2

573 	int r, fd2;  in mfd_assert_shrink()  local
583 fd2 = mfd_assert_open(fd, in mfd_assert_shrink()
586 close(fd2); in mfd_assert_shrink()
955 int fd, fd2; in test_seal_future_write() local
976 fd2 = mfd_assert_reopen_fd(fd); in test_seal_future_write()
978 mfd_assert_read(fd2); in test_seal_future_write()
979 mfd_assert_read_shared(fd2); in test_seal_future_write()
980 mfd_fail_write(fd2); in test_seal_future_write()
985 close(fd2); in test_seal_future_write()
1428 int fd, fd2; in test_share_dup() local
1437 fd2 = mfd_assert_dup(fd); in test_share_dup()
1438 mfd_assert_has_seals(fd2, 0); in test_share_dup()
1442 mfd_assert_has_seals(fd2, F_SEAL_WRITE); in test_share_dup()
1444 mfd_assert_add_seals(fd2, F_SEAL_SHRINK); in test_share_dup()
1446 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK); in test_share_dup()
1450 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK | F_SEAL_SEAL); in test_share_dup()
1453 mfd_fail_add_seals(fd2, F_SEAL_GROW); in test_share_dup()
1455 mfd_fail_add_seals(fd2, F_SEAL_SEAL); in test_share_dup()
1457 close(fd2); in test_share_dup()
1504 int fd, fd2; in test_share_open() local
1513 fd2 = mfd_assert_open(fd, O_RDWR, 0); in test_share_open()
1516 mfd_assert_has_seals(fd2, F_SEAL_WRITE); in test_share_open()
1518 mfd_assert_add_seals(fd2, F_SEAL_SHRINK); in test_share_open()
1520 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK); in test_share_open()
1523 fd = mfd_assert_open(fd2, O_RDONLY, 0); in test_share_open()
1527 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK); in test_share_open()
1529 close(fd2); in test_share_open()
1530 fd2 = mfd_assert_open(fd, O_RDWR, 0); in test_share_open()
1532 mfd_assert_add_seals(fd2, F_SEAL_SEAL); in test_share_open()
1534 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK | F_SEAL_SEAL); in test_share_open()
1536 close(fd2); in test_share_open()