rem: struct stat     st;
context: device_is_removeable(int fd){#ifdef unix    return 0;   /* XXXdbg should do an ioctl or something */#else    struct stat     st;    device_geometry dg;    if (ioctl(fd, B_GET_GEOMETRY, &dg) < 0) {        return 0;    }    return dg.removable;#endif}