Lines Matching refs:fd2

474 	int r, fd2;  in mfd_assert_shrink()  local
484 fd2 = mfd_assert_open(fd, in mfd_assert_shrink()
487 close(fd2); in mfd_assert_shrink()
771 int fd, fd2; in test_seal_future_write() local
792 fd2 = mfd_assert_reopen_fd(fd); in test_seal_future_write()
794 mfd_assert_read(fd2); in test_seal_future_write()
795 mfd_assert_read_shared(fd2); in test_seal_future_write()
796 mfd_fail_write(fd2); in test_seal_future_write()
801 close(fd2); in test_seal_future_write()
889 int fd, fd2; in test_share_dup() local
898 fd2 = mfd_assert_dup(fd); in test_share_dup()
899 mfd_assert_has_seals(fd2, 0); in test_share_dup()
903 mfd_assert_has_seals(fd2, F_SEAL_WRITE); in test_share_dup()
905 mfd_assert_add_seals(fd2, F_SEAL_SHRINK); in test_share_dup()
907 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK); in test_share_dup()
911 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK | F_SEAL_SEAL); in test_share_dup()
914 mfd_fail_add_seals(fd2, F_SEAL_GROW); in test_share_dup()
916 mfd_fail_add_seals(fd2, F_SEAL_SEAL); in test_share_dup()
918 close(fd2); in test_share_dup()
965 int fd, fd2; in test_share_open() local
974 fd2 = mfd_assert_open(fd, O_RDWR, 0); in test_share_open()
977 mfd_assert_has_seals(fd2, F_SEAL_WRITE); in test_share_open()
979 mfd_assert_add_seals(fd2, F_SEAL_SHRINK); in test_share_open()
981 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK); in test_share_open()
984 fd = mfd_assert_open(fd2, O_RDONLY, 0); in test_share_open()
988 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK); in test_share_open()
990 close(fd2); in test_share_open()
991 fd2 = mfd_assert_open(fd, O_RDWR, 0); in test_share_open()
993 mfd_assert_add_seals(fd2, F_SEAL_SEAL); in test_share_open()
995 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK | F_SEAL_SEAL); in test_share_open()
997 close(fd2); in test_share_open()