HDIO_GETGEO
if (ioctl (fd, HDIO_GETGEO, &hdg))
# ifndef HDIO_GETGEO
&& ioctl (fileno (fp), HDIO_GETGEO, &hdg))