summaryrefslogtreecommitdiff
path: root/libc/misc/ttyent/getttyent.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-16 01:02:50 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-16 01:02:50 +0000
commita1915d4502e23cc0c30e1c80a31971e71e7340a5 (patch)
tree8502cb726a6ab5f8f041ab9ea6ea7dcca7b4c36b /libc/misc/ttyent/getttyent.c
parentb865ce517bd48ce9f11dac018d350ed69a533e2b (diff)
Convert users
Diffstat (limited to 'libc/misc/ttyent/getttyent.c')
-rw-r--r--libc/misc/ttyent/getttyent.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/misc/ttyent/getttyent.c b/libc/misc/ttyent/getttyent.c
index 8e104733c..9b83b6ede 100644
--- a/libc/misc/ttyent/getttyent.c
+++ b/libc/misc/ttyent/getttyent.c
@@ -29,6 +29,7 @@
#define __fsetlocking __fsetlocking_internal
#define rewind __rewind
+#define fgets_unlocked __fgets_unlocked
#define _GNU_SOURCE
#include <features.h>
@@ -42,6 +43,8 @@
#include <pthread.h>
#endif
+extern int __getc_unlocked (FILE *__stream) attribute_hidden;
+
static char zapchar;
static FILE *tf;
static struct ttyent tty;
@@ -130,7 +133,7 @@ struct ttyent attribute_hidden * __getttyent(void)
}
/* skip lines that are too big */
if (!__strchr(p, '\n')) {
- while ((c = getc_unlocked(tf)) != '\n' && c != EOF)
+ while ((c = __getc_unlocked(tf)) != '\n' && c != EOF)
;
continue;
}