Add write_file () syscall, CE implement redirections, libarena arena_realloc ()
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m14s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m14s
This commit is contained in:
@@ -70,3 +70,7 @@ int read_dir_entry (const char* path, struct dir_entry* entry, size_t entry_num)
|
||||
}
|
||||
|
||||
int create_file (const char* path) { return (int)do_syscall (SYS_CREATE_FILE, path); }
|
||||
|
||||
int write_file (const char* path, size_t off, uint8_t* buffer, size_t size) {
|
||||
return (int)do_syscall (SYS_WRITE_FILE, path, off, buffer, size);
|
||||
}
|
||||
|
||||
@@ -84,4 +84,7 @@ int read_dir_entry (const char* path, struct dir_entry* entry, size_t entry_num)
|
||||
/* create a file */
|
||||
int create_file (const char* path);
|
||||
|
||||
/* write to a file */
|
||||
int write_file (const char* path, size_t off, uint8_t* buffer, size_t size);
|
||||
|
||||
#endif // _LIBMSL_M_SYSTEM_H
|
||||
|
||||
Reference in New Issue
Block a user