Mercurial > hg > nginx
comparison src/os/unix/freebsd/ngx_sendfile.c @ 29:6a0b3d6e9c13
nginx-0.0.1-2002-12-17-18:48:27 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 17 Dec 2002 15:48:27 +0000 |
parents | 708f8bb772ec |
children | e8cdc2989cee |
comparison
equal
deleted
inserted
replaced
28:a117a7fdf042 | 29:6a0b3d6e9c13 |
---|---|
1 | 1 |
2 #include <ngx_config.h> | 2 #include <ngx_config.h> |
3 | |
4 #if (HAVE_FREEBSD_SENDFILE) | |
5 | |
3 #include <ngx_core.h> | 6 #include <ngx_core.h> |
4 #include <ngx_types.h> | 7 #include <ngx_types.h> |
5 #include <ngx_file.h> | 8 #include <ngx_file.h> |
6 #include <ngx_socket.h> | 9 #include <ngx_socket.h> |
7 #include <ngx_errno.h> | 10 #include <ngx_errno.h> |
8 #include <ngx_log.h> | 11 #include <ngx_log.h> |
9 #include <ngx_sendv.h> | 12 #include <ngx_sendv.h> |
10 #include <ngx_sendfile.h> | 13 #include <ngx_sendfile.h> |
11 | 14 |
12 /* | 15 /* |
13 TODO: | 16 CHECK: |
14 FreeBSD: | |
15 check sent if errno == EINTR then should return right sent. | 17 check sent if errno == EINTR then should return right sent. |
16 */ | 18 */ |
17 | 19 |
18 #if (HAVE_FREEBSD_SENDFILE) | |
19 | 20 |
20 int ngx_sendfile(ngx_socket_t s, | 21 int ngx_sendfile(ngx_socket_t s, |
21 ngx_iovec_t *headers, int hdr_cnt, | 22 ngx_iovec_t *headers, int hdr_cnt, |
22 ngx_fd_t fd, off_t offset, size_t nbytes, | 23 ngx_fd_t fd, off_t offset, size_t nbytes, |
23 ngx_iovec_t *trailers, int trl_cnt, | 24 ngx_iovec_t *trailers, int trl_cnt, |