Lines Matching refs:fd2
404 int r, fd2; in mfd_assert_shrink() local
414 fd2 = mfd_assert_open(fd, in mfd_assert_shrink()
417 close(fd2); in mfd_assert_shrink()
779 int fd, fd2; in test_share_dup() local
788 fd2 = mfd_assert_dup(fd); in test_share_dup()
789 mfd_assert_has_seals(fd2, 0); in test_share_dup()
793 mfd_assert_has_seals(fd2, F_SEAL_WRITE); in test_share_dup()
795 mfd_assert_add_seals(fd2, F_SEAL_SHRINK); in test_share_dup()
797 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK); in test_share_dup()
801 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK | F_SEAL_SEAL); in test_share_dup()
804 mfd_fail_add_seals(fd2, F_SEAL_GROW); in test_share_dup()
806 mfd_fail_add_seals(fd2, F_SEAL_SEAL); in test_share_dup()
808 close(fd2); in test_share_dup()
855 int fd, fd2; in test_share_open() local
864 fd2 = mfd_assert_open(fd, O_RDWR, 0); in test_share_open()
867 mfd_assert_has_seals(fd2, F_SEAL_WRITE); in test_share_open()
869 mfd_assert_add_seals(fd2, F_SEAL_SHRINK); in test_share_open()
871 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK); in test_share_open()
874 fd = mfd_assert_open(fd2, O_RDONLY, 0); in test_share_open()
878 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK); in test_share_open()
880 close(fd2); in test_share_open()
881 fd2 = mfd_assert_open(fd, O_RDWR, 0); in test_share_open()
883 mfd_assert_add_seals(fd2, F_SEAL_SEAL); in test_share_open()
885 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK | F_SEAL_SEAL); in test_share_open()
887 close(fd2); in test_share_open()