comparison src/http/modules/perl/nginx.xs @ 2794:92bd6afe8d9c

use off_t in $r->sendfile(), this allows to use 64-bit off_t on platforms where IV is long: *) on 64-bit platforms, *) and on 32-bit platforms if perl was built with -Duse64bitint
author Igor Sysoev <igor@sysoev.ru>
date Fri, 01 May 2009 19:31:52 +0000
parents 09cab3f8d92e
children 975f0558aab3 724e5cd44164
comparison
equal deleted inserted replaced
2793:411653b73d7c 2794:92bd6afe8d9c
605 sendfile(r, filename, offset = -1, bytes = 0) 605 sendfile(r, filename, offset = -1, bytes = 0)
606 CODE: 606 CODE:
607 607
608 ngx_http_request_t *r; 608 ngx_http_request_t *r;
609 char *filename; 609 char *filename;
610 int offset; 610 off_t offset;
611 size_t bytes; 611 size_t bytes;
612 ngx_str_t path; 612 ngx_str_t path;
613 ngx_buf_t *b; 613 ngx_buf_t *b;
614 ngx_open_file_info_t of; 614 ngx_open_file_info_t of;
615 ngx_http_core_loc_conf_t *clcf; 615 ngx_http_core_loc_conf_t *clcf;