Browse Source

unistd: hide relocations

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 12 years ago
parent
commit
5a2b42a483
2 changed files with 6 additions and 0 deletions
  1. 2 0
      include/unistd.h
  2. 4 0
      libc/unistd/usershell.c

+ 2 - 0
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

+ 4 - 0
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;