comparison src/os/unix/ngx_os.h @ 42:41ccba1aba45 NGINX_0_1_21

nginx 0.1.21 *) Bugfix: the ngx_http_stub_status_module showed incorrect statistics if "rtsig" method was used or if several worker process ran on SMP. *) Bugfix: nginx could not be built by the icc compiler on Linux or if the zlib-1.2.x library was building from sources. *) Bugfix: nginx could not be built on NetBSD 2.0.
author Igor Sysoev <http://sysoev.ru>
date Tue, 22 Feb 2005 00:00:00 +0300
parents 8b6db3bda591
children 5db440287648
comparison
equal deleted inserted replaced
41:4d8e7a81b3a0 42:41ccba1aba45
18 18
19 typedef ssize_t (*ngx_recv_pt)(ngx_connection_t *c, u_char *buf, size_t size); 19 typedef ssize_t (*ngx_recv_pt)(ngx_connection_t *c, u_char *buf, size_t size);
20 typedef ssize_t (*ngx_recv_chain_pt)(ngx_connection_t *c, ngx_chain_t *in); 20 typedef ssize_t (*ngx_recv_chain_pt)(ngx_connection_t *c, ngx_chain_t *in);
21 typedef ssize_t (*ngx_send_pt)(ngx_connection_t *c, u_char *buf, size_t size); 21 typedef ssize_t (*ngx_send_pt)(ngx_connection_t *c, u_char *buf, size_t size);
22 typedef ngx_chain_t *(*ngx_send_chain_pt)(ngx_connection_t *c, ngx_chain_t *in, 22 typedef ngx_chain_t *(*ngx_send_chain_pt)(ngx_connection_t *c, ngx_chain_t *in,
23 off_t limit); 23 off_t limit);
24 24
25 typedef struct { 25 typedef struct {
26 ngx_recv_pt recv; 26 ngx_recv_pt recv;
27 ngx_recv_chain_pt recv_chain; 27 ngx_recv_chain_pt recv_chain;
28 ngx_send_pt send; 28 ngx_send_pt send;
42 42
43 ssize_t ngx_unix_recv(ngx_connection_t *c, u_char *buf, size_t size); 43 ssize_t ngx_unix_recv(ngx_connection_t *c, u_char *buf, size_t size);
44 ssize_t ngx_readv_chain(ngx_connection_t *c, ngx_chain_t *entry); 44 ssize_t ngx_readv_chain(ngx_connection_t *c, ngx_chain_t *entry);
45 ssize_t ngx_unix_send(ngx_connection_t *c, u_char *buf, size_t size); 45 ssize_t ngx_unix_send(ngx_connection_t *c, u_char *buf, size_t size);
46 ngx_chain_t *ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in, 46 ngx_chain_t *ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in,
47 off_t limit); 47 off_t limit);
48 48
49 49
50 extern ngx_os_io_t ngx_os_io; 50 extern ngx_os_io_t ngx_os_io;
51 extern ngx_int_t ngx_ncpu; 51 extern ngx_int_t ngx_ncpu;
52 extern ngx_int_t ngx_max_sockets; 52 extern ngx_int_t ngx_max_sockets;