Skip to content

Commit

Permalink
Clean up stub accept4 definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland McGrath committed Jul 31, 2012
1 parent 40ce302 commit 789bd35
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions include/sys/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion socket/accept4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 789bd35

Please sign in to comment.