Lines Matching refs:fd2

588 	int r, fd2;  in mfd_assert_shrink()  local
598 fd2 = mfd_assert_open(fd, in mfd_assert_shrink()
601 close(fd2); in mfd_assert_shrink()
967 int fd, fd2; in test_seal_future_write() local
988 fd2 = mfd_assert_reopen_fd(fd); in test_seal_future_write()
990 mfd_assert_read(fd2); in test_seal_future_write()
991 mfd_assert_read_shared(fd2); in test_seal_future_write()
992 mfd_fail_write(fd2); in test_seal_future_write()
997 close(fd2); in test_seal_future_write()
1460 int fd, fd2; in test_share_dup() local
1469 fd2 = mfd_assert_dup(fd); in test_share_dup()
1470 mfd_assert_has_seals(fd2, 0); in test_share_dup()
1474 mfd_assert_has_seals(fd2, F_SEAL_WRITE); in test_share_dup()
1476 mfd_assert_add_seals(fd2, F_SEAL_SHRINK); in test_share_dup()
1478 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK); in test_share_dup()
1482 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK | F_SEAL_SEAL); in test_share_dup()
1485 mfd_fail_add_seals(fd2, F_SEAL_GROW); in test_share_dup()
1487 mfd_fail_add_seals(fd2, F_SEAL_SEAL); in test_share_dup()
1489 close(fd2); in test_share_dup()
1536 int fd, fd2; in test_share_open() local
1545 fd2 = mfd_assert_open(fd, O_RDWR, 0); in test_share_open()
1548 mfd_assert_has_seals(fd2, F_SEAL_WRITE); in test_share_open()
1550 mfd_assert_add_seals(fd2, F_SEAL_SHRINK); in test_share_open()
1552 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK); in test_share_open()
1555 fd = mfd_assert_open(fd2, O_RDONLY, 0); in test_share_open()
1559 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK); in test_share_open()
1561 close(fd2); in test_share_open()
1562 fd2 = mfd_assert_open(fd, O_RDWR, 0); in test_share_open()
1564 mfd_assert_add_seals(fd2, F_SEAL_SEAL); in test_share_open()
1566 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK | F_SEAL_SEAL); in test_share_open()
1568 close(fd2); in test_share_open()