comparison src/os/unix/ngx_os.h @ 493:975f62e77f02 release-0.1.21

nginx-0.1.21-RELEASE import *) 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 <igor@sysoev.ru>
date Tue, 22 Feb 2005 14:40:13 +0000
parents 8e8f3af115b5
children 417a087c9c4d
comparison
equal deleted inserted replaced
492:a3fac9a5aa5b 493:975f62e77f02
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;