NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: procfs difference between NetBSD and Linux
Date: Tue, 1 Jun 2021 14:32:19 +0200
From: Martin Husemann <martin%duskware.de@localhost>
Message-ID: <20210601123219.GA16802%mail.duskware.de@localhost>
| Good idea - and raise an upstream issue pointing at the non-portable
| procfs assumption.
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).
kre
Home |
Main Index |
Thread Index |
Old Index