mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-10 05:03:06 +03:00
add attribute_hidden to __have_{sock_cloexec,pipe2,dup3
These internal knobs are not exposed as part of the public ABI, so mark them hidden to avoid generating relocations against them. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2012-08-18 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
|
* include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
|
||||||
|
* include/unistd.h (__have_sock_cloexec): Likewise.
|
||||||
|
(__have_pipe2): Likewise.
|
||||||
|
(__have_dup3): Likewise.
|
||||||
|
|
||||||
2012-08-18 Mike Frysinger <vapier@gentoo.org>
|
2012-08-18 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
[BZ #9685]
|
[BZ #9685]
|
||||||
|
@@ -148,7 +148,7 @@ libc_hidden_proto (__libc_sa_len)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SOCK_CLOEXEC
|
#ifdef SOCK_CLOEXEC
|
||||||
extern int __have_sock_cloexec;
|
extern int __have_sock_cloexec attribute_hidden;
|
||||||
/* At lot of other functionality became available at the same time as
|
/* At lot of other functionality became available at the same time as
|
||||||
SOCK_CLOEXEC. Avoid defining separate variables for all of them
|
SOCK_CLOEXEC. Avoid defining separate variables for all of them
|
||||||
unless it is really necessary. */
|
unless it is really necessary. */
|
||||||
|
@@ -173,9 +173,9 @@ extern int __libc_pause (void);
|
|||||||
/* Not cancelable variant. */
|
/* Not cancelable variant. */
|
||||||
extern int __pause_nocancel (void) attribute_hidden;
|
extern int __pause_nocancel (void) attribute_hidden;
|
||||||
|
|
||||||
extern int __have_sock_cloexec;
|
extern int __have_sock_cloexec attribute_hidden;
|
||||||
extern int __have_pipe2;
|
extern int __have_pipe2 attribute_hidden;
|
||||||
extern int __have_dup3;
|
extern int __have_dup3 attribute_hidden;
|
||||||
|
|
||||||
extern int __getlogin_r_loginuid (char *name, size_t namesize)
|
extern int __getlogin_r_loginuid (char *name, size_t namesize)
|
||||||
attribute_hidden;
|
attribute_hidden;
|
||||||
|
Reference in New Issue
Block a user