Project

General

Profile

Actions

Feature #13743

closed

Support linking of files opened with O_TMPFILE

Added by Glass_saga (Masaki Matsushita) over 7 years ago. Updated over 7 years ago.

Status:
Rejected
Target version:
[ruby-core:82031]

Description

This patch enables linking of files opened with O_TMPFILE into file system.
Users can make a temporary file persistent as named file.

File.open(".", IO::WRONLY|IO::TMPFILE) do |f|
  f.write("content")
  f.chmod(0600)
  File.link(f, "file_name") # make temporary file persistent
end

Files

patch.diff (2.44 KB) patch.diff Glass_saga (Masaki Matsushita), 07/13/2017 11:15 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0