Implement read_dir_entry () VFS op, CE add ls command

This commit is contained in:
2026-02-25 16:25:43 +01:00
parent 704db2dfa4
commit 29bbcea435
12 changed files with 189 additions and 23 deletions

10
include/dir_entry.h Normal file
View File

@@ -0,0 +1,10 @@
#ifndef _DIR_ENTRY_H
#define _DIR_ENTRY_H
#include <path_defs.h>
struct dir_entry {
char path[PATH_MAX];
};
#endif // _DIR_ENTRY_H

View File

@@ -16,5 +16,7 @@
#define ST_EXEC_ERROR 12
#define ST_MOUNT_ERROR 13
#define ST_TRY_AGAIN 14
#define ST_NOT_DIR 15
#define ST_DIR_NO_ENTRIES 16
#endif // _M_STATUS_H

View File

@@ -22,5 +22,6 @@
#define SYS_MAIL_RECEIVE 19
#define SYS_GET_PROCGROUP 20
#define SYS_GET_EXEC_PID 21
#define SYS_READ_DIR_ENTRY 22
#endif // _M_SYSCALL_DEFS_H