From af0172162f7c653cad6a11ed1c1a5459bc154465 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 14 Jan 2006 00:58:03 +0000 Subject: hidden_def/hidden_proto: convert all users (I hope) termios split, add some missing headers, other jump relocs removed --- libc/unistd/usershell.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'libc/unistd/usershell.c') diff --git a/libc/unistd/usershell.c b/libc/unistd/usershell.c index bc29cf247..51330ae78 100644 --- a/libc/unistd/usershell.c +++ b/libc/unistd/usershell.c @@ -30,10 +30,6 @@ * November 2002, Erik Andersen */ -#define __fsetlocking __fsetlocking_internal -#define fileno __fileno -#define fgets_unlocked __fgets_unlocked - #define _GNU_SOURCE #include #include @@ -45,6 +41,13 @@ #include #include +libc_hidden_proto(fstat) +libc_hidden_proto(fopen) +libc_hidden_proto(fclose) +libc_hidden_proto(__fsetlocking) +libc_hidden_proto(fileno) +libc_hidden_proto(fgets_unlocked) + /* * Local shells should NOT be added here. They should be added in * /etc/shells. @@ -104,7 +107,7 @@ static char ** initshells(void) if ((fp = fopen(_PATH_SHELLS, "r")) == NULL) return (char **) validsh; - if (__fstat(fileno(fp), &statb) == -1) { + if (fstat(fileno(fp), &statb) == -1) { goto cleanup; } if ((strings = malloc((unsigned)statb.st_size + 1)) == NULL) { -- cgit v1.2.3