which was slightly different to the libc one. To save any more cunfusion, use the libc one.
fail once (was twice) in forward case fail once (was no times) in reverse case this can happen when file is a directory on an NFS or procfs mount.