diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-09-24 21:35:10 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-09-24 21:35:10 +0000 |
commit | b5bf8cd163de664f558a5b2b02b01cc8a7722456 (patch) | |
tree | 57f78fc92a0ea83967a9b6074bf43c3afa9a5bf2 /cpukit/libnetworking/libc/res_send.c | |
parent | 2007-09-24 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-b5bf8cd163de664f558a5b2b02b01cc8a7722456.tar.bz2 |
2007-09-24 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1262/filesystem
* libcsupport/Makefile.am, libnetworking/libc/herror.c,
libnetworking/libc/res_send.c, libnetworking/sys/uio.h,
telnetd/Makefile.am, telnetd/README, telnetd/preinstall.am,
telnetd/pty.c, telnetd/telnetd.c: Add support for readv() and
writev() including documentation and test case.
* libcsupport/src/readv.c, libcsupport/src/writev.c: New files.
Diffstat (limited to 'cpukit/libnetworking/libc/res_send.c')
-rw-r--r-- | cpukit/libnetworking/libc/res_send.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpukit/libnetworking/libc/res_send.c b/cpukit/libnetworking/libc/res_send.c index fa04d545b3..5f675a46e4 100644 --- a/cpukit/libnetworking/libc/res_send.c +++ b/cpukit/libnetworking/libc/res_send.c @@ -97,6 +97,9 @@ #include <poll.h> #endif +/* RTEMS now has writev */ +#define USE_WRITEV + #include "res_config.h" #if !defined(__rtems__) @@ -378,7 +381,7 @@ res_send(buf, buflen, ans, anssiz) if (v_circuit) { int truncated; -#if !defined(__rtems__) +#if defined(USE_WRITEV) struct iovec iov[2]; #endif u_short len; @@ -416,7 +419,7 @@ res_send(buf, buflen, ans, anssiz) * Send length & message */ putshort((u_short)buflen, (u_char*)&len); -#if !defined(__rtems__) +#if defined(USE_WRITEV) iov[0].iov_base = (caddr_t)&len; iov[0].iov_len = INT16SZ; iov[1].iov_base = (caddr_t)buf; |