summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-08 20:59:58 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-08 20:59:58 +0000
commit7a3dea048d88faa3bbe1c99bcf3fdb98eabae52d (patch)
tree20146eb3255f7a1f84c8c4f6b4d10a2d29f78127 /libc
parent31aa06ef80bebbb6c31b30ea54285983df139747 (diff)
Use __sendto in __libc_send, small correction
Diffstat (limited to 'libc')
-rw-r--r--libc/inet/socketcalls.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libc/inet/socketcalls.c b/libc/inet/socketcalls.c
index 3f1770659..bdbf952b3 100644
--- a/libc/inet/socketcalls.c
+++ b/libc/inet/socketcalls.c
@@ -227,7 +227,6 @@ weak_alias(__libc_recvmsg,recvmsg)
#ifdef __NR_send
#define __NR___libc_send __NR_send
_syscall4(ssize_t, __libc_send, int, sockfd, const void *, buffer, size_t, len, int, flags);
-weak_alias(__libc_send, send);
#elif defined(__NR_socketcall)
/* send, sendto added by bir7@leland.stanford.edu */
ssize_t __libc_send(int sockfd, const void *buffer, size_t len, int flags)
@@ -241,9 +240,13 @@ ssize_t __libc_send(int sockfd, const void *buffer, size_t len, int flags)
return (__socketcall(SYS_SEND, args));
}
#elif defined(__NR_sendto)
+extern ssize_t __sendto (int __fd, __const void *__buf, size_t __n,
+ int __flags, __CONST_SOCKADDR_ARG __addr,
+ socklen_t __addr_len) attribute_hidden;
+
ssize_t __libc_send(int sockfd, const void *buffer, size_t len, int flags)
{
- return (sendto(sockfd, buffer, len, flags, NULL, 0));
+ return (__sendto(sockfd, buffer, len, flags, NULL, 0));
}
#endif
hidden_weak_alias(__libc_send,__send)