summaryrefslogtreecommitdiff
path: root/libc/unistd/getpass.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-16 01:18:01 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-16 01:18:01 +0000
commit403d3b6c026812d82647eabf9370722f3f1e7893 (patch)
treef4300320d7a7739990ad6b13aaf3918e65d94c2a /libc/unistd/getpass.c
parent6a6ae6e1a26f32fd896b0a7b740129161bfb008b (diff)
Convert all the rest, remove isxupper/isxlower, if someone objects, I'll add it back
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);
}
}