瀏覽代碼

getpwnam: hide relocation

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>
Bernhard Reutner-Fischer 12 年之前
父節點
當前提交
a716f8ad2c
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      include/pwd.h
  2. 1 0
      libc/pwd_grp/pwd_grp.c

+ 1 - 0
include/pwd.h

@@ -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
 

+ 1 - 0
libc/pwd_grp/pwd_grp.c

@@ -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
 /**********************************************************************/