Mercurial > hg > nginx
comparison src/os/unix/ngx_freebsd_init.c @ 94:8220378432a8
nginx-0.0.1-2003-05-22-19:23:47 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 22 May 2003 15:23:47 +0000 |
parents | 738fe44c70d5 |
children | 70d2345a903f |
comparison
equal
deleted
inserted
replaced
93:738fe44c70d5 | 94:8220378432a8 |
---|---|
12 | 12 |
13 ngx_os_io_t ngx_os_io = { | 13 ngx_os_io_t ngx_os_io = { |
14 ngx_unix_recv, | 14 ngx_unix_recv, |
15 ngx_readv_chain, | 15 ngx_readv_chain, |
16 NULL, | 16 NULL, |
17 ngx_freebsd_write_chain, | 17 ngx_freebsd_sendfile_chain, |
18 NGX_HAVE_SENDFILE|NGX_HAVE_ZEROCOPY | 18 NGX_HAVE_SENDFILE|NGX_HAVE_ZEROCOPY |
19 }; | 19 }; |
20 | 20 |
21 | 21 |
22 int ngx_os_init(ngx_log_t *log) | 22 int ngx_os_init(ngx_log_t *log) |
54 ngx_log_error(NGX_LOG_INFO, log, 0, | 54 ngx_log_error(NGX_LOG_INFO, log, 0, |
55 "kern.osreldate: %d, built on %d", | 55 "kern.osreldate: %d, built on %d", |
56 ngx_freebsd_kern_osreldate, __FreeBSD_version); | 56 ngx_freebsd_kern_osreldate, __FreeBSD_version); |
57 | 57 |
58 | 58 |
59 #if HAVE_FREEBSD_SENDFILE | 59 #if (HAVE_FREEBSD_SENDFILE) |
60 | 60 |
61 /* The determination of the sendfile() nbytes bug is complex enough. | 61 /* The determination of the sendfile() nbytes bug is complex enough. |
62 There're two sendfile() syscalls: a new 393 has no bug while | 62 There're two sendfile() syscalls: a new 393 has no bug while |
63 an old 336 has the bug in some versions and has not in others. | 63 an old 336 has the bug in some versions and has not in others. |
64 libc_r wrapper also emulates the bug in some versions. | 64 libc_r wrapper also emulates the bug in some versions. |