aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_sendv.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-09-28 08:34:51 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-09-28 08:34:51 +0000
commitd90282d8ba69973d6612c405e52636085623ddcd (patch)
tree59e36e780b2f5b8f9348013d3037f8fc06ba0247 /src/os/unix/ngx_sendv.c
parent6d2a14aa906b1d576d5151b2410b59cfcab5edd4 (diff)
downloadnginx-d90282d8ba69973d6612c405e52636085623ddcd.tar.gz
nginx-d90282d8ba69973d6612c405e52636085623ddcd.zip
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
Diffstat (limited to 'src/os/unix/ngx_sendv.c')
-rw-r--r--src/os/unix/ngx_sendv.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/os/unix/ngx_sendv.c b/src/os/unix/ngx_sendv.c
deleted file mode 100644
index 810caaee9..000000000
--- a/src/os/unix/ngx_sendv.c
+++ /dev/null
@@ -1,28 +0,0 @@
-
-#include <ngx_core.h>
-#include <ngx_types.h>
-#include <ngx_errno.h>
-#include <ngx_connection.h>
-#include <ngx_log.h>
-#include <ngx_sendv.h>
-
-ssize_t ngx_sendv(ngx_connection_t *c, ngx_iovec_t *iovec, int n)
-{
- ssize_t rc;
- ngx_err_t err;
-
- rc = writev(c->fd, iovec, n);
-
- if (rc == -1) {
- err = ngx_socket_errno;
- if (err == NGX_EAGAIN) {
- ngx_log_error(NGX_LOG_INFO, c->log, err, "sendv() eagain");
- return NGX_AGAIN;
- }
-
- ngx_log_error(NGX_LOG_ERR, c->log, err, "sendv() failed");
- return NGX_ERROR;
- }
-
- return rc;
-}