Lines Matching defs:dup_fd
487 int dup_fd = ki_dup(fd);
488 ASSERT_NE(-1, dup_fd);
492 ASSERT_EQ(9, ki_lseek(dup_fd, 0, SEEK_CUR));
502 // dup_fd, dup2_fd -> "/foo"
504 // We should still be able to write to dup_fd (i.e. it should not be closed).
505 ASSERT_EQ(4, ki_write(dup_fd, "more", 4));
509 // dup_fd -> "/foo"
511 ASSERT_EQ(dup_fd, ki_dup2(fd, dup_fd));
512 // fd, new_fd, dup_fd -> "/bar"