Mercurial > hg > nginx
annotate src/core/ngx_sendfile.c @ 66:4876cd4a36bb
nginx-0.0.1-2003-03-05-20:30:51 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 05 Mar 2003 17:30:51 +0000 |
parents | 6a0b3d6e9c13 |
children |
rev | line source |
---|---|
28
a117a7fdf042
nginx-0.0.1-2002-12-16-00:08:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
1 |
a117a7fdf042
nginx-0.0.1-2002-12-16-00:08:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
2 #include <ngx_config.h> |
29
6a0b3d6e9c13
nginx-0.0.1-2002-12-17-18:48:27 import
Igor Sysoev <igor@sysoev.ru>
parents:
28
diff
changeset
|
3 |
6a0b3d6e9c13
nginx-0.0.1-2002-12-17-18:48:27 import
Igor Sysoev <igor@sysoev.ru>
parents:
28
diff
changeset
|
4 #if !(HAVE_SENDFILE) |
6a0b3d6e9c13
nginx-0.0.1-2002-12-17-18:48:27 import
Igor Sysoev <igor@sysoev.ru>
parents:
28
diff
changeset
|
5 |
28
a117a7fdf042
nginx-0.0.1-2002-12-16-00:08:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
6 #include <ngx_core.h> |
a117a7fdf042
nginx-0.0.1-2002-12-16-00:08:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
7 #include <ngx_log.h> |
a117a7fdf042
nginx-0.0.1-2002-12-16-00:08:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
8 #include <ngx_socket.h> |
a117a7fdf042
nginx-0.0.1-2002-12-16-00:08:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
9 #include <ngx_sendv.h> |
a117a7fdf042
nginx-0.0.1-2002-12-16-00:08:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
10 |
a117a7fdf042
nginx-0.0.1-2002-12-16-00:08:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
11 int ngx_sendfile(ngx_socket_t s, |
a117a7fdf042
nginx-0.0.1-2002-12-16-00:08:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
12 ngx_iovec_t *headers, int hdr_cnt, |
a117a7fdf042
nginx-0.0.1-2002-12-16-00:08:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
13 ngx_fd_t fd, off_t offset, size_t nbytes, |
a117a7fdf042
nginx-0.0.1-2002-12-16-00:08:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
14 ngx_iovec_t *trailers, int trl_cnt, |
a117a7fdf042
nginx-0.0.1-2002-12-16-00:08:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
15 off_t *sent, |
a117a7fdf042
nginx-0.0.1-2002-12-16-00:08:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
16 ngx_log_t *log) |
a117a7fdf042
nginx-0.0.1-2002-12-16-00:08:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
17 { |
a117a7fdf042
nginx-0.0.1-2002-12-16-00:08:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
18 ngx_log_error(NGX_LOG_INFO, log, 0, |
a117a7fdf042
nginx-0.0.1-2002-12-16-00:08:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
19 "ngx_sendfile: sendfile is not implemented"); |
a117a7fdf042
nginx-0.0.1-2002-12-16-00:08:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
20 |
a117a7fdf042
nginx-0.0.1-2002-12-16-00:08:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
21 |
a117a7fdf042
nginx-0.0.1-2002-12-16-00:08:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
22 return NGX_ERROR; |
a117a7fdf042
nginx-0.0.1-2002-12-16-00:08:04 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
23 } |
29
6a0b3d6e9c13
nginx-0.0.1-2002-12-17-18:48:27 import
Igor Sysoev <igor@sysoev.ru>
parents:
28
diff
changeset
|
24 |
6a0b3d6e9c13
nginx-0.0.1-2002-12-17-18:48:27 import
Igor Sysoev <igor@sysoev.ru>
parents:
28
diff
changeset
|
25 #endif |