comparison src/os/unix/ngx_linux_sendfile_chain.c @ 201:267ea1d98683

nginx-0.0.1-2003-11-30-23:03:18 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 30 Nov 2003 20:03:18 +0000
parents a65b630b3a66
children 05592fd7a436
comparison
equal deleted inserted replaced
200:abeaebe0a33c 201:267ea1d98683
4 #include <ngx_event.h> 4 #include <ngx_event.h>
5 5
6 6
7 /* 7 /*
8 * On Linux up to 2.4.21 sendfile() (syscall #187) works with 32-bit 8 * On Linux up to 2.4.21 sendfile() (syscall #187) works with 32-bit
9 * offsets only and the including <sys/sendfile.h> breaks building 9 * offsets only and the including <sys/sendfile.h> breaks building if
10 * if off_t is 64 bit wide. So we use own sendfile() definition where 10 * off_t is 64 bit wide. So we use own sendfile() definition where offset
11 * offset paramter is int32_t. It allows to use sendfile() with 11 * parameter is int32_t and use sendfile() with the file parts below 2G.
12 * the file parts below 2G.
13 * 12 *
14 * Linux 2.4.21 has a new sendfile64() syscall #239. 13 * Linux 2.4.21 has a new sendfile64() syscall #239.
15 */ 14 */
16 15
17 16