summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-20 06:58:48 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-20 06:58:48 +0100
commit7c12d66f61f95b9b4875a0e14d88e1d872fc173a (patch)
treeef625f629103045471f05cb08638cfc1ae49d542 /Libraries
parentc3b09c72429a8a4093761449e0d99f9b7bf43478 (diff)
downloadserenity-7c12d66f61f95b9b4875a0e14d88e1d872fc173a.zip
LibC: Stub out getpass()
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibC/unistd.cpp6
-rw-r--r--Libraries/LibC/unistd.h1
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, &params);
__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,