Given a write protected regular file (e.g. with st_mode = 33024), the following fails: fd = open(fname, O_RDONLY, 0) On return fd is -1 and errno is EACCESS (36) Tested on TOS 2.06