From: Mikael Pettersson <mikpe@csd.uu.se>
To: adam@cfar.umd.edu, linux-kernel@vger.kernel.org
Subject: Re: [ot] named sockets
Date: Tue, 8 May 2001 18:21:28 +0200 (MET DST) [thread overview]
Message-ID: <200105081621.SAA14493@harpo.it.uu.se> (raw)
On Mon, 7 May 2001 21:47:33 -0400 (EDT), Adam <adam@cfar.umd.edu> wrote:
>So I'm wondering, is there a way, kind of like "relink" system call which
>coule take existing file descriptor (they are still so the fd is there,
>just unlinked) and link it back to file name?
POSIX' fattach(int fd, const char *path) library call does that,
although it's often limited to STREAMS fd:s. It's usually
implemented as mounting "namefs" at the path (SVR4) or setting
a magic mount option (OSF1), with the fd passed in as mount-point
specific data. Regular users are allowed to do this special mount().
Linux currently doesn't have this functionality, but it could
probably be implemented as a pseudo-fs in 2.4, assuming the 2.4
VFS properly supports stacking of file systems. (There's some
gotchas concerning chown/chmod changes and restoring the original
object after the fd is unmounted.)
Not that I think Linux really needs this creeping featurism ...
/Mikael
next reply other threads:[~2001-05-08 16:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-08 16:21 Mikael Pettersson [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-05-08 1:47 Adam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200105081621.SAA14493@harpo.it.uu.se \
--to=mikpe@csd.uu.se \
--cc=adam@cfar.umd.edu \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®