mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-11 00:08:07 +00:00
add file reserve Linux OS API for radlink
This commit is contained in:
committed by
Ryan Fleury
parent
22159ac779
commit
7c6ad4c563
@@ -908,6 +908,13 @@ id_from_file(File file)
|
|||||||
return id;
|
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
|
internal B32
|
||||||
delete_file_at_path(String8 path)
|
delete_file_at_path(String8 path)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user