summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-06-21 18:31:34 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-06-21 18:31:34 +0000
commitff089035c7e5951620ed28ae006a892eeb61e60d (patch)
treea2f98fd1f3a7ddf3ab491f1cd27d8cc62146f95a /cpukit/libnetworking
parent2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-ff089035c7e5951620ed28ae006a892eeb61e60d.tar.bz2
2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com>
* libnetworking/rtems/rtems_syscall.c: Remove RTEMS versions of send() and recv(). We already had the BSD versions and these conflict sometimes when linking.
Diffstat (limited to 'cpukit/libnetworking')
-rw-r--r--cpukit/libnetworking/rtems/rtems_syscall.c27
1 files changed, 8 insertions, 19 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_syscall.c b/cpukit/libnetworking/rtems/rtems_syscall.c
index d43d24dc7d..640500efa2 100644
--- a/cpukit/libnetworking/rtems/rtems_syscall.c
+++ b/cpukit/libnetworking/rtems/rtems_syscall.c
@@ -33,10 +33,17 @@
#include <net/route.h>
/*
+ * Since we are "in the kernel", these do not get prototyped in sys/socket.h
+ */
+ssize_t send(int, const void *, size_t, int);
+ssize_t recv(int, void *, size_t, int);
+
+/*
* Hooks to RTEMS I/O system
*/
static const rtems_filesystem_file_handlers_r socket_handlers;
-int rtems_bsdnet_makeFdForSocket(void *so, const rtems_filesystem_file_handlers_r *h);
+int rtems_bsdnet_makeFdForSocket(
+ void *so, const rtems_filesystem_file_handlers_r *h);
struct socket *rtems_bsdnet_fdToSocket(int fd);
/*
@@ -374,15 +381,6 @@ sendto (int s, const void *buf, size_t buflen, int flags, const struct sockaddr
}
/*
- * Send a message to a connected host
- */
-ssize_t
-send (int s, const void *buf, size_t buflen, int flags)
-{
- return sendto (s, buf, buflen, flags, NULL, 0);
-}
-
-/*
* All `receive' operations end up calling this routine.
*/
ssize_t
@@ -503,15 +501,6 @@ recvfrom (int s, void *buf, size_t buflen, int flags, const struct sockaddr *fro
return ret;
}
-/*
- * Receive a message from a connected host
- */
-ssize_t
-recv (int s, void *buf, size_t buflen, int flags)
-{
- return recvfrom (s, buf, buflen, flags, NULL, NULL);
-}
-
int
setsockopt (int s, int level, int name, const void *val, int len)
{