Add constants for the open access mode, and use them.
Perl 5.20 doesn't like the template mismatch when overridind ENODATA.
Make more use of the AccessMode flag constants.
More elimination of "magic constants".