summaryrefslogtreecommitdiff
path: root/libc/unistd/getpass.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/unistd/getpass.c')
-rw-r--r--libc/unistd/getpass.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libc/unistd/getpass.c b/libc/unistd/getpass.c
index a51c8e87f..834fba9d9 100644
--- a/libc/unistd/getpass.c
+++ b/libc/unistd/getpass.c
@@ -21,6 +21,8 @@
#define tcgetattr __tcgetattr
#define fileno __fileno
#define fflush __fflush
+#define fgets __fgets
+#define fputs __fputs
#include <stdio.h>
#include <string.h>
@@ -28,6 +30,8 @@
#include <unistd.h>
#include <string.h>
+extern int __putc(int c, FILE *stream) attribute_hidden;
+
/* It is desirable to use this bit on systems that have it.
The only bit of terminal state we want to twiddle is echoing, which is
done in software; there is no need to change the state of the terminal
@@ -95,7 +99,7 @@ getpass (prompt)
buf[nread - 1] = '\0';
if (tty_changed)
/* Write the newline that was not echoed. */
- putc('\n', out);
+ __putc('\n', out);
}
}