Handle O_RDONLY

O_RDONLY is defined as 0, so we need to check if the LSB is actually not
set.

Signed-off-by: Andrew Clayton <andrew@digital-domain.net>
Add an example usage to the README

Signed-off-by: Andrew Clayton <andrew@digital-domain.net>