comparison src/os/unix/ngx_os.h @ 5854:b63e829621ab

Generalized definitions of the number of preallocated iovec's. No functional changes.
author Valentin Bartenev <vbart@nginx.com>
date Wed, 13 Aug 2014 15:11:45 +0400
parents d620f497c50f
children ec81934727a1
comparison
equal deleted inserted replaced
5853:a6e83ac70af9 5854:b63e829621ab
54 ngx_chain_t *ngx_aio_write_chain(ngx_connection_t *c, ngx_chain_t *in, 54 ngx_chain_t *ngx_aio_write_chain(ngx_connection_t *c, ngx_chain_t *in,
55 off_t limit); 55 off_t limit);
56 #endif 56 #endif
57 57
58 58
59 #if (IOV_MAX > 64)
60 #define NGX_IOVS_PREALLOCATE 64
61 #else
62 #define NGX_IOVS_PREALLOCATE IOV_MAX
63 #endif
64
65
59 extern ngx_os_io_t ngx_os_io; 66 extern ngx_os_io_t ngx_os_io;
60 extern ngx_int_t ngx_ncpu; 67 extern ngx_int_t ngx_ncpu;
61 extern ngx_int_t ngx_max_sockets; 68 extern ngx_int_t ngx_max_sockets;
62 extern ngx_uint_t ngx_inherited_nonblocking; 69 extern ngx_uint_t ngx_inherited_nonblocking;
63 extern ngx_uint_t ngx_tcp_nodelay_and_tcp_nopush; 70 extern ngx_uint_t ngx_tcp_nodelay_and_tcp_nopush;