i came across a bit of code which says
int fd = open(fn, flags, 0);
if (fd < 0 && errno != EMLINK)
...
flags
is either O_RDONLY
or O_RDONLY|O_NOFOLLOW
IEEE Std 1003.1, 2013 (SUSv4) has just
[EMLINK] Too many links. An attempt was made to have the link count of a single file exceed {LINK_MAX}.
{LINK_MAX} Maximum number of links to a single file.
how does opening a file increase its link count?