add file reserve Linux OS API for radlink

This commit is contained in:
Nikita Smith
2026-06-02 12:10:10 -07:00
committed by Ryan Fleury
parent 22159ac779
commit 7c6ad4c563
+7
View File
@@ -908,6 +908,13 @@ id_from_file(File file)
return id;
}
internal B32
file_reserve_size(File file, U64 size)
{
int status = fallocate((int)file.u64[0], FALLOC_FL_KEEP_SIZE, 0, size);
return status == 0;
}
internal B32
delete_file_at_path(String8 path)
{