And while doing that, ask them what they're possibly trying to achieve
with the O_CREAT flag - if /proc/$$/fd/N doesn't exist, how is creating
(what would be a normal file, if procfs allowed it) going to possibly
do anything useful? It is hard to believe that they're intending that
creating a file there will magically cause the fd to open (open to
what underlying object?) If they know the fd is open (which they
seem to do here) then they know that /proc/$$/fd/N already exists, in
which case O_CREAT is useless (in the best of cases).