summaryrefslogtreecommitdiff
path: root/include/ruby/io
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2023-12-25 14:20:53 +1300
committerGitHub <noreply@github.com>2023-12-25 14:20:53 +1300
commit260bf60e52ffdfa625be1153624b0d123fc305f8 (patch)
treef473605a7b5fd59e6892f56bbc064aca7c71bdde /include/ruby/io
parent5af64ff7db3d636201db68b9ba995131a04a8f7b (diff)
Correctly release the underlying file mapping. (#9340)
* Avoiding using `Tempfile` which was retaining the file preventing it from unlinking.
Diffstat (limited to 'include/ruby/io')
-rw-r--r--include/ruby/io/buffer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ruby/io/buffer.h b/include/ruby/io/buffer.h
index 89efc0597d..b044db0539 100644
--- a/include/ruby/io/buffer.h
+++ b/include/ruby/io/buffer.h
@@ -58,6 +58,9 @@ enum rb_io_buffer_flags {
// The buffer is read-only and cannot be modified.
RB_IO_BUFFER_READONLY = 128,
+
+ // The buffer is backed by a file.
+ RB_IO_BUFFER_FILE = 256,
};
// Represents the endian of the data types.