From f3490f9327af8f981da0f880231ff7883ac13d3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20B=C5=99=C3=ADza?= Date: Thu, 12 Aug 2021 19:38:30 +0200 Subject: [PATCH] LibC: Add mntent stub functions These functions are required by Qt but since we don't really need them for just basic apps, let's leave the implementation for later. --- Userland/Libraries/LibC/mntent.cpp | 21 +++++++++++++++++++++ Userland/Libraries/LibC/mntent.h | 3 +++ 2 files changed, 24 insertions(+) diff --git a/Userland/Libraries/LibC/mntent.cpp b/Userland/Libraries/LibC/mntent.cpp index 92df02eb767e42..5874e44bc66328 100644 --- a/Userland/Libraries/LibC/mntent.cpp +++ b/Userland/Libraries/LibC/mntent.cpp @@ -16,4 +16,25 @@ struct mntent* getmntent(FILE*) TODO(); return nullptr; } + +FILE* setmntent(char const*, char const*) +{ + dbgln("FIXME: Implement setmntent()"); + TODO(); + return nullptr; +} + +int endmntent(FILE*) +{ + dbgln("FIXME: Implement endmntent()"); + TODO(); + return 0; +} + +struct mntent* getmntent_r(FILE*, struct mntent*, char*, int) +{ + dbgln("FIXME: Implement getmntent_r()"); + TODO(); + return 0; +} } diff --git a/Userland/Libraries/LibC/mntent.h b/Userland/Libraries/LibC/mntent.h index af984d6906b13d..8d51ceab14773b 100644 --- a/Userland/Libraries/LibC/mntent.h +++ b/Userland/Libraries/LibC/mntent.h @@ -24,5 +24,8 @@ struct mntent { }; struct mntent* getmntent(FILE* stream); +FILE* setmntent(char const* filename, char const* type); +int endmntent(FILE* streamp); +struct mntent* getmntent_r(FILE* streamp, struct mntent* mntbuf, char* buf, int buflen); __END_DECLS