Is it possible to recreate a file from an opened file descriptor?

后端 未结 1 1992
走了就别回头了
走了就别回头了 2021-02-15 01:53

Now, this question may seem weird, and it probably is, but to give some context, I\'ve been reading this to learn about i-nodes in which the author gives an interesting example:

相关标签:
1条回答
  • 2021-02-15 02:13

    I'm afraid it is not possible because the link system call demands a valid file name (which means, an existing link) rather than an UNIX file descriptor. There is no flink function in the Single UNIX Specification.

    0 讨论(0)
提交回复
热议问题