OSDN Git Service

getpwnam: hide relocation
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 16 Jan 2013 11:23:58 +0000 (12:23 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 16 Jan 2013 11:23:58 +0000 (12:23 +0100)
The non-reentrant version of getpwnam is used in the RPC code (for
!HAS_REENTRANT_RPC)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
include/pwd.h
libc/pwd_grp/pwd_grp.c

index 23b4710..72475a6 100644 (file)
@@ -114,6 +114,7 @@ extern struct passwd *getpwuid (__uid_t __uid);
    This function is a possible cancellation point and therefore not
    marked with __THROW.  */
 extern struct passwd *getpwnam (const char *__name);
+libc_hidden_proto(getpwnam)
 
 #if defined __USE_POSIX || defined __USE_MISC
 
index f5c22f8..0e7c7f7 100644 (file)
@@ -354,6 +354,7 @@ struct passwd *getpwnam(const char *name)
        getpwnam_r(name, &resultbuf, buffer, sizeof(buffer), &result);
        return result;
 }
+libc_hidden_def(getpwnam)
 
 #endif
 /**********************************************************************/