Lines Matching refs:fd2

439 	int r, fd2;  in mfd_assert_shrink()  local
449 fd2 = mfd_assert_open(fd, in mfd_assert_shrink()
452 close(fd2); in mfd_assert_shrink()
736 int fd, fd2; in test_seal_future_write() local
757 fd2 = mfd_assert_reopen_fd(fd); in test_seal_future_write()
759 mfd_assert_read(fd2); in test_seal_future_write()
760 mfd_assert_read_shared(fd2); in test_seal_future_write()
761 mfd_fail_write(fd2); in test_seal_future_write()
764 close(fd2); in test_seal_future_write()
852 int fd, fd2; in test_share_dup() local
861 fd2 = mfd_assert_dup(fd); in test_share_dup()
862 mfd_assert_has_seals(fd2, 0); in test_share_dup()
866 mfd_assert_has_seals(fd2, F_SEAL_WRITE); in test_share_dup()
868 mfd_assert_add_seals(fd2, F_SEAL_SHRINK); in test_share_dup()
870 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK); in test_share_dup()
874 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK | F_SEAL_SEAL); in test_share_dup()
877 mfd_fail_add_seals(fd2, F_SEAL_GROW); in test_share_dup()
879 mfd_fail_add_seals(fd2, F_SEAL_SEAL); in test_share_dup()
881 close(fd2); in test_share_dup()
928 int fd, fd2; in test_share_open() local
937 fd2 = mfd_assert_open(fd, O_RDWR, 0); in test_share_open()
940 mfd_assert_has_seals(fd2, F_SEAL_WRITE); in test_share_open()
942 mfd_assert_add_seals(fd2, F_SEAL_SHRINK); in test_share_open()
944 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK); in test_share_open()
947 fd = mfd_assert_open(fd2, O_RDONLY, 0); in test_share_open()
951 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK); in test_share_open()
953 close(fd2); in test_share_open()
954 fd2 = mfd_assert_open(fd, O_RDWR, 0); in test_share_open()
956 mfd_assert_add_seals(fd2, F_SEAL_SEAL); in test_share_open()
958 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK | F_SEAL_SEAL); in test_share_open()
960 close(fd2); in test_share_open()