2003-05-20 00:39:14 +08:00
|
|
|
|
|
|
|
#include <ngx_config.h>
|
|
|
|
#include <ngx_core.h>
|
|
|
|
|
|
|
|
|
2003-11-14 15:20:34 +08:00
|
|
|
#if 0
|
2003-05-21 21:28:21 +08:00
|
|
|
/* STUB */
|
|
|
|
ssize_t ngx_unix_recv(ngx_connection_t *c, char *buf, size_t size);
|
|
|
|
ngx_chain_t *ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in);
|
|
|
|
int ngx_posix_init(ngx_log_t *log);
|
|
|
|
int ngx_posix_post_conf_init(ngx_log_t *log);
|
|
|
|
/* */
|
2003-11-14 15:20:34 +08:00
|
|
|
#endif
|
2003-05-20 23:37:55 +08:00
|
|
|
|
|
|
|
|
2003-05-21 21:28:21 +08:00
|
|
|
ngx_os_io_t ngx_os_io = {
|
|
|
|
ngx_unix_recv,
|
2003-11-14 15:20:34 +08:00
|
|
|
ngx_readv_chain,
|
2003-05-21 21:28:21 +08:00
|
|
|
NULL,
|
|
|
|
ngx_writev_chain,
|
|
|
|
NGX_HAVE_ZEROCOPY
|
|
|
|
};
|
2003-05-20 00:39:14 +08:00
|
|
|
|
|
|
|
|
2003-05-21 21:28:21 +08:00
|
|
|
int ngx_os_init(ngx_log_t *log)
|
|
|
|
{
|
|
|
|
return ngx_posix_init(log);
|
2003-05-20 23:37:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-05-21 21:28:21 +08:00
|
|
|
int ngx_os_post_conf_init(ngx_log_t *log)
|
2003-05-20 23:37:55 +08:00
|
|
|
{
|
2003-05-21 21:28:21 +08:00
|
|
|
return ngx_posix_post_conf_init(log);
|
2003-05-20 00:39:14 +08:00
|
|
|
}
|