aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_os.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2014-08-13 15:11:45 +0400
committerValentin Bartenev <vbart@nginx.com>2014-08-13 15:11:45 +0400
commita301e1a7064b0d83a2f456a305f07962ad4f0773 (patch)
treeacc9b36408691221b10271b9e8104cafa5b7125c /src/os/unix/ngx_os.h
parent79ddab189fb4bf27abd21a04bb9d1210e06384ac (diff)
downloadnginx-a301e1a7064b0d83a2f456a305f07962ad4f0773.tar.gz
nginx-a301e1a7064b0d83a2f456a305f07962ad4f0773.zip
Moved writev() handling code to a separate function.
This reduces code duplication and unifies debug logging of the writev() syscall among various send chain functions.
Diffstat (limited to 'src/os/unix/ngx_os.h')
-rw-r--r--src/os/unix/ngx_os.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/os/unix/ngx_os.h b/src/os/unix/ngx_os.h
index fa6a6a6ce..09f79175e 100644
--- a/src/os/unix/ngx_os.h
+++ b/src/os/unix/ngx_os.h
@@ -75,6 +75,9 @@ ngx_chain_t *ngx_output_chain_to_iovec(ngx_iovec_t *vec, ngx_chain_t *in,
size_t limit, ngx_log_t *log);
+ssize_t ngx_writev(ngx_connection_t *c, ngx_iovec_t *vec);
+
+
extern ngx_os_io_t ngx_os_io;
extern ngx_int_t ngx_ncpu;
extern ngx_int_t ngx_max_sockets;