fifo into fifo - read and write using ioctl