Modifications to epiphany.c for ioctl, shared memory management.