LibC: add function declarations to sys/stat.h

This commit is contained in:
Bananymous
2023-05-11 01:48:33 +03:00
parent d9be14e1fb
commit 729ff267d7
5 changed files with 26 additions and 9 deletions

View File

@@ -20,7 +20,7 @@ namespace LibELF
int fd = TRY(Kernel::Process::current().open(file_path, O_RDONLY));
BAN::ScopeGuard _([fd] { MUST(Kernel::Process::current().close(fd)); });
stat st;
struct stat st;
TRY(Kernel::Process::current().fstat(fd, &st));
TRY(data.resize(st.st_size));