-void *emu_do_mmap(unsigned int length, int prot, int flags, int fd, unsigned int offset);
-int emu_do_munmap(void *addr, unsigned int length);
-int emu_do_ioctl(int fd, int request, void *argp);
-int emu_read_gpiodev(void *buf, int count);
+long emu_do_mmap(unsigned int length, int prot, int flags, int fd, unsigned int offset);
+long emu_do_munmap(void *addr, unsigned int length);
+long emu_do_ioctl(int fd, int request, void *argp);
+long emu_read_gpiodev(void *buf, int count);