Lines Matching refs:fd2

569 	int r, fd2;  in mfd_assert_shrink()  local
579 fd2 = mfd_assert_open(fd, in mfd_assert_shrink()
582 close(fd2); in mfd_assert_shrink()
948 int fd, fd2; in test_seal_future_write() local
969 fd2 = mfd_assert_reopen_fd(fd); in test_seal_future_write()
971 mfd_assert_read(fd2); in test_seal_future_write()
972 mfd_assert_read_shared(fd2); in test_seal_future_write()
973 mfd_fail_write(fd2); in test_seal_future_write()
978 close(fd2); in test_seal_future_write()
1417 int fd, fd2; in test_share_dup() local
1426 fd2 = mfd_assert_dup(fd); in test_share_dup()
1427 mfd_assert_has_seals(fd2, 0); in test_share_dup()
1431 mfd_assert_has_seals(fd2, F_SEAL_WRITE); in test_share_dup()
1433 mfd_assert_add_seals(fd2, F_SEAL_SHRINK); in test_share_dup()
1435 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK); in test_share_dup()
1439 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK | F_SEAL_SEAL); in test_share_dup()
1442 mfd_fail_add_seals(fd2, F_SEAL_GROW); in test_share_dup()
1444 mfd_fail_add_seals(fd2, F_SEAL_SEAL); in test_share_dup()
1446 close(fd2); in test_share_dup()
1493 int fd, fd2; in test_share_open() local
1502 fd2 = mfd_assert_open(fd, O_RDWR, 0); in test_share_open()
1505 mfd_assert_has_seals(fd2, F_SEAL_WRITE); in test_share_open()
1507 mfd_assert_add_seals(fd2, F_SEAL_SHRINK); in test_share_open()
1509 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK); in test_share_open()
1512 fd = mfd_assert_open(fd2, O_RDONLY, 0); in test_share_open()
1516 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK); in test_share_open()
1518 close(fd2); in test_share_open()
1519 fd2 = mfd_assert_open(fd, O_RDWR, 0); in test_share_open()
1521 mfd_assert_add_seals(fd2, F_SEAL_SEAL); in test_share_open()
1523 mfd_assert_has_seals(fd2, F_SEAL_WRITE | F_SEAL_SHRINK | F_SEAL_SEAL); in test_share_open()
1525 close(fd2); in test_share_open()