Changes between Initial Version and Version 1 of Ticket #8449, comment 6
- Timestamp:
- Apr 13, 2012, 5:53:49 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #8449, comment 6
initial v1 1 will 2 if(ioctl(fd, B_GET_GEOMETRY, &geometry) >= 0) 3 {then geometry} 4 work, as the call returns -1 in case of error?? 1 i'm going for 2 if(ioctl(fd, B_GET_GEOMETRY, &geometry) == 0), as ioctl() returns 0 on success and -1 on failure, but i'm not sure about the other cases in which a non-negative value is returned as an output parameter. Should i go with it??