mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-20 13:10:07 -08:00
add file reserve Linux OS API for radlink
This commit is contained in:
1 parent
22159ac779
commit
7c6ad4c563
1 file changed
+7
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user