dear linux C programmers:
in the linux fanotify facility, I know how to monitor for file opens (FAN_OPEN). I can also learn whether the open was a 'read' or 'write' if I monitor until the close, because there is a FAN_CLOSE_WRITE and a FAN_CLOSE_NOWRITE.
I always thought that it would be at open() time that one tells POSIX whether the file is opened for read/write, so that the fanotify would let me distinguish between them at the open time, not at the close time. I must be wrong here.
am I? why?
/iaw