Unify VFS status codes and normal system status codes
All checks were successful
Build documentation / build-and-deploy (push) Successful in 24s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 24s
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include <libk/string.h>
|
||||
#include <limine/requests.h>
|
||||
#include <m/fs_desc_buffer.h>
|
||||
#include <m/status.h>
|
||||
#include <mm/liballoc.h>
|
||||
#include <mm/pmm.h>
|
||||
#include <proc/proc.h>
|
||||
@@ -104,7 +105,7 @@ struct elf_aux proc_load_segments (struct proc* proc, uint8_t* elf) {
|
||||
struct proc* proc_from_file (const char* mountpoint, const char* path) {
|
||||
struct fs_desc_buffer desc;
|
||||
|
||||
if (vfs_describe (mountpoint, path, &desc) != VFS_OK)
|
||||
if (vfs_describe (mountpoint, path, &desc) != ST_OK)
|
||||
return NULL;
|
||||
|
||||
if (desc.type != FS_FILE)
|
||||
@@ -115,7 +116,7 @@ struct proc* proc_from_file (const char* mountpoint, const char* path) {
|
||||
if (temp_buffer == NULL)
|
||||
return NULL;
|
||||
|
||||
if (vfs_read (mountpoint, path, temp_buffer, 0, desc.size) != VFS_OK) {
|
||||
if (vfs_read (mountpoint, path, temp_buffer, 0, desc.size) != ST_OK) {
|
||||
free (temp_buffer);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user