diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-20 06:58:48 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-20 06:58:48 +0100 |
commit | 7c12d66f61f95b9b4875a0e14d88e1d872fc173a (patch) | |
tree | ef625f629103045471f05cb08638cfc1ae49d542 /Libraries | |
parent | c3b09c72429a8a4093761449e0d99f9b7bf43478 (diff) | |
download | serenity-7c12d66f61f95b9b4875a0e14d88e1d872fc173a.zip |
LibC: Stub out getpass()
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibC/unistd.cpp | 6 | ||||
-rw-r--r-- | Libraries/LibC/unistd.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Libraries/LibC/unistd.cpp b/Libraries/LibC/unistd.cpp index 81769a2996..4e14cb223e 100644 --- a/Libraries/LibC/unistd.cpp +++ b/Libraries/LibC/unistd.cpp @@ -701,4 +701,10 @@ int unveil(const char* path, const char* permissions) int rc = syscall(SC_unveil, ¶ms); __RETURN_WITH_ERRNO(rc, rc, -1); } + +char* getpass(const char* prompt) +{ + dbg() << "FIXME: getpass(\"" << prompt << "\")"; + ASSERT_NOT_REACHED(); +} } diff --git a/Libraries/LibC/unistd.h b/Libraries/LibC/unistd.h index 6d1d0c89f5..d0f1610a7b 100644 --- a/Libraries/LibC/unistd.h +++ b/Libraries/LibC/unistd.h @@ -140,6 +140,7 @@ int mount(const char* source, const char* target, const char* fs_type, int flags int umount(const char* mountpoint); int pledge(const char* promises, const char* execpromises); int unveil(const char* path, const char* permissions); +char* getpass(const char* prompt); enum { _PC_NAME_MAX, |