.
This commit is contained in:
parent
95d74c2ef4
commit
a66e58193f
25 changed files with 2600 additions and 93 deletions
6
os.h
6
os.h
|
|
@ -118,6 +118,7 @@ bool os_dir_create(strview_t folder);
|
|||
tstr_t os_file_fullpath(arena_t *arena, strview_t filename);
|
||||
void os_file_split_path(strview_t path, strview_t *dir, strview_t *name, strview_t *ext);
|
||||
bool os_file_delete(strview_t path);
|
||||
bool os_dir_delete(strview_t path);
|
||||
|
||||
oshandle_t os_file_open(strview_t path, filemode_e mode);
|
||||
void os_file_close(oshandle_t handle);
|
||||
|
|
@ -193,7 +194,10 @@ bool os_run_cmd(arena_t scratch, os_cmd_t *cmd, os_env_t *optional_env);
|
|||
oshandle_t os_run_cmd_async(arena_t scratch, os_cmd_t *cmd, os_env_t *optional_env);
|
||||
bool os_process_wait(oshandle_t proc, uint time, int *out_exit);
|
||||
|
||||
// == VMEM ======================================
|
||||
// == MEMORY ====================================
|
||||
|
||||
void *os_alloc(usize size);
|
||||
void os_free(void *ptr);
|
||||
|
||||
void *os_reserve(usize size, usize *out_padded_size);
|
||||
bool os_commit(void *ptr, usize num_of_pages);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue