[git commit] unistd: hide relocations
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Thu Nov 17 09:55:29 UTC 2011
commit: http://git.uclibc.org/uClibc/commit/?id=5a2b42a48342ee59c9ee48d1632f040088609589
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
include/unistd.h | 2 ++
libc/unistd/usershell.c | 4 ++++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/include/unistd.h b/include/unistd.h
index 9568790..1b2fd4d 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -962,7 +962,9 @@ extern int acct (__const char *__name) __THROW;
/* Successive calls return the shells listed in `/etc/shells'. */
extern char *getusershell (void) __THROW;
extern void endusershell (void) __THROW; /* Discard cached info. */
+libc_hidden_proto(endusershell)
extern void setusershell (void) __THROW; /* Rewind and re-read the file. */
+libc_hidden_proto(setusershell)
/* Put the program in the background, and dissociate from the controlling
diff --git a/libc/unistd/usershell.c b/libc/unistd/usershell.c
index 2a6b665..261c1c1 100644
--- a/libc/unistd/usershell.c
+++ b/libc/unistd/usershell.c
@@ -40,6 +40,8 @@ void endusershell(void)
shellb = NULL;
shells = NULL;
}
+libc_hidden_def(endusershell)
+
void setusershell(void)
{
endusershell();
@@ -61,6 +63,8 @@ void setusershell(void)
shells = (char **)shellb;
}
}
+libc_hidden_def(setusershell)
+
char *getusershell(void)
{
char *sh;
More information about the uClibc-cvs
mailing list