Expose fs_delete() via ulib
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user