forked from Imagelibrary/rtems
This is intended to close any valid FDs that were opened, but 0 is also a valid FD. This change ensures that a FD of 0 is also closed properly. Coverity CID 1467408 (original) Coverity CID 1616151 (followup) off_by_one: Testing whether handle fd is strictly greater than zero is suspicious. fd leaks when it is zero.
libblock
This directory contains the block device (HDD, CDROMs, etc) support code. It includes:
- block device driver interface
- generic open/close/read/write/ioctl primitives for block device drivers
- disk I/O buffering
- logical disk support
- RAM disk block device driver
Victor V. Vengerov, vvv@oktet.ru November, 7 2001