Expose fs_delete() via ulib

This commit is contained in:
2025-10-15 20:10:56 +02:00
parent ac6ebce112
commit e917e81e78
2 changed files with 5 additions and 0 deletions

View File

@ -119,6 +119,10 @@ int32_t fs_mkdir(char *path) {
return syscall(SYS_FS_MKDIR, (uint64_t)path, 0, 0, 0, 0, 0); return syscall(SYS_FS_MKDIR, (uint64_t)path, 0, 0, 0, 0, 0);
} }
int32_t fs_delete(char *path) {
return syscall(SYS_FS_DELETE, (uint64_t)path, 0, 0, 0, 0, 0);
}
int32_t dev_gethandle(Dev_t *dev, char *name) { int32_t dev_gethandle(Dev_t *dev, char *name) {
return syscall(SYS_DEV_GETHANDLE, (uint64_t)dev, (uint64_t)name, 0, 0, 0, 0); return syscall(SYS_DEV_GETHANDLE, (uint64_t)dev, (uint64_t)name, 0, 0, 0, 0);
} }

View File

@ -36,6 +36,7 @@ int32_t fs_read(int32_t fsh, uint8_t *const buffer, size_t len, size_t off);
int32_t fs_stat(char *path, FsStat *statbuf); int32_t fs_stat(char *path, FsStat *statbuf);
int32_t fs_fetchdirent(char *path, FsDirent *direntbuf, size_t idx); int32_t fs_fetchdirent(char *path, FsDirent *direntbuf, size_t idx);
int32_t fs_mkdir(char *path); int32_t fs_mkdir(char *path);
int32_t fs_delete(char *path);
int32_t dev_gethandle(Dev_t *dev, char *name); int32_t dev_gethandle(Dev_t *dev, char *name);
int32_t dev_listsize(void); int32_t dev_listsize(void);
int32_t dev_stat(DevStat *devstatbuf, size_t idx); int32_t dev_stat(DevStat *devstatbuf, size_t idx);