Mercurial > hg > nginx-quic
diff src/core/ngx_sendfile.c @ 28:a117a7fdf042
nginx-0.0.1-2002-12-16-00:08:04 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 15 Dec 2002 21:08:04 +0000 |
parents | |
children | 6a0b3d6e9c13 |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/src/core/ngx_sendfile.c @@ -0,0 +1,20 @@ + +#include <ngx_config.h> +#include <ngx_core.h> +#include <ngx_log.h> +#include <ngx_socket.h> +#include <ngx_sendv.h> + +int ngx_sendfile(ngx_socket_t s, + ngx_iovec_t *headers, int hdr_cnt, + ngx_fd_t fd, off_t offset, size_t nbytes, + ngx_iovec_t *trailers, int trl_cnt, + off_t *sent, + ngx_log_t *log) +{ + ngx_log_error(NGX_LOG_INFO, log, 0, + "ngx_sendfile: sendfile is not implemented"); + + + return NGX_ERROR; +}