nxt_macosx_sendfile.c (13:3a52b2c3d3f1) nxt_macosx_sendfile.c (62:5e1efcc7b740)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 12 unchanged lines hidden (view full) ---

21}
22
23#else
24#define nxt_sys_sendfile sendfile
25#endif
26
27
28ssize_t
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 12 unchanged lines hidden (view full) ---

21}
22
23#else
24#define nxt_sys_sendfile sendfile
25#endif
26
27
28ssize_t
29nxt_macosx_event_conn_io_sendfile(nxt_event_conn_t *c, nxt_buf_t *b,
30 size_t limit)
29nxt_macosx_event_conn_io_sendfile(nxt_conn_t *c, nxt_buf_t *b, size_t limit)
31{
32 size_t hd_size, file_size;
33 ssize_t n;
34 nxt_buf_t *fb;
35 nxt_err_t err;
36 nxt_off_t sent;
37 nxt_uint_t nhd, ntr;
38 struct iovec hd[NXT_IOBUF_MAX], tr[NXT_IOBUF_MAX];

--- 116 unchanged lines hidden ---
30{
31 size_t hd_size, file_size;
32 ssize_t n;
33 nxt_buf_t *fb;
34 nxt_err_t err;
35 nxt_off_t sent;
36 nxt_uint_t nhd, ntr;
37 struct iovec hd[NXT_IOBUF_MAX], tr[NXT_IOBUF_MAX];

--- 116 unchanged lines hidden ---