diff options
author | Roland McGrath <roland@hack.frob.com> | 2012-07-31 09:43:14 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2012-07-31 09:43:14 -0700 |
commit | 789bd351b45f024b7f51e4886bf46b8e887ab6da (patch) | |
tree | 39d7051c24bb2f763c249f4895d9126e066d152d | |
parent | 40ce302d37b7252b71c6d193abc17e6fe82d214d (diff) | |
download | glibc-789bd351b45f024b7f51e4886bf46b8e887ab6da.tar.gz glibc-789bd351b45f024b7f51e4886bf46b8e887ab6da.tar.xz glibc-789bd351b45f024b7f51e4886bf46b8e887ab6da.zip |
Clean up stub accept4 definition.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | include/sys/socket.h | 4 | ||||
-rw-r--r-- | socket/accept4.c | 1 |
3 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog index ecdb46b8f0..30b9a9e420 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2012-07-31 Roland McGrath <roland@hack.frob.com> + * include/sys/socket.h (__libc_accept, __libc_accept4): + Add attribute_hidden. + * socket/accept4.c (__libc_accept4): Remove libc_hidden_def. + * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize use of PTR_MANGLE. * inet/getnetgrent_r.c (setup): Likewise. diff --git a/include/sys/socket.h b/include/sys/socket.h index e356b75b99..50e6bb3a74 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -132,11 +132,11 @@ extern int __listen (int __fd, int __n) attribute_hidden; new socket's descriptor, or -1 for errors. */ extern int __libc_accept (int __fd, __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) - __THROW; + __THROW attribute_hidden; libc_hidden_proto (accept) extern int __libc_accept4 (int __fd, __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len, int __flags) - __THROW; + __THROW attribute_hidden; /* Return the length of a `sockaddr' structure. */ #ifdef _HAVE_SA_LEN diff --git a/socket/accept4.c b/socket/accept4.c index 7ad1259680..fad2cc696f 100644 --- a/socket/accept4.c +++ b/socket/accept4.c @@ -34,7 +34,6 @@ __libc_accept4 (fd, addr, addr_len, flags) __set_errno (ENOSYS); return -1; } -libc_hidden_def (__libc_accept4) weak_alias (__libc_accept4, accept4) |