devzero = open("/dev/zero", O_RDWR); if(devmem < 0) { <---- should be devzero perror("open /dev/zero"); goto fail; } ===== Jon Smirl jonsmirl@yahoo.com __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree