summaryrefslogtreecommitdiff
path: root/libc/unistd/usershell.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-14 00:58:03 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-14 00:58:03 +0000
commitaf0172162f7c653cad6a11ed1c1a5459bc154465 (patch)
tree70031dad1e7286d58762da7b9e3d3f93d043c278 /libc/unistd/usershell.c
parentc8609543a9a8bf6559c2931dbbef6b3c41b3fbf2 (diff)
hidden_def/hidden_proto: convert all users (I hope) termios split, add some missing headers, other jump relocs removed
Diffstat (limited to 'libc/unistd/usershell.c')
-rw-r--r--libc/unistd/usershell.c13
1 files changed, 8 insertions, 5 deletions
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 <andersen@codepoet.org>
*/
-#define __fsetlocking __fsetlocking_internal
-#define fileno __fileno
-#define fgets_unlocked __fgets_unlocked
-
#define _GNU_SOURCE
#include <sys/param.h>
#include <sys/file.h>
@@ -45,6 +41,13 @@
#include <unistd.h>
#include <paths.h>
+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) {