Home
last modified time | relevance | path

Searched refs:tc (Results 1 – 5 of 5) sorted by relevance

/mOS-networking-stack/samples/lighttpd-1.4.32/src/
H A Dnetwork_freebsd_sendfile.c48 chunk *tc; in network_write_chunkqueue_freebsdsendfile() local
56 …for(num_chunks = 0, tc = c; tc && tc->type == MEM_CHUNK && num_chunks < UIO_MAXIOV; num_chunks++, in network_write_chunkqueue_freebsdsendfile()
58 for(tc = c, i = 0; i < num_chunks; tc = tc->next, i++) { in network_write_chunkqueue_freebsdsendfile()
59 if (tc->mem->used == 0) { in network_write_chunkqueue_freebsdsendfile()
60 chunks[i].iov_base = tc->mem->ptr; in network_write_chunkqueue_freebsdsendfile()
63 offset = tc->mem->ptr + tc->offset; in network_write_chunkqueue_freebsdsendfile()
64 toSend = tc->mem->used - 1 - tc->offset; in network_write_chunkqueue_freebsdsendfile()
107 for(i = 0, tc = c; i < num_chunks; i++, tc = tc->next) { in network_write_chunkqueue_freebsdsendfile()
111 tc->offset += chunks[i].iov_len; in network_write_chunkqueue_freebsdsendfile()
123 tc->offset += r; in network_write_chunkqueue_freebsdsendfile()
H A Dnetwork_solaris_sendfilev.c55 chunk *tc; in network_write_chunkqueue_solarissendfilev() local
66 …for(num_chunks = 0, tc = c; tc && tc->type == MEM_CHUNK && num_chunks < UIO_MAXIOV; num_chunks++, in network_write_chunkqueue_solarissendfilev()
68 for(tc = c, i = 0; i < num_chunks; tc = tc->next, i++) { in network_write_chunkqueue_solarissendfilev()
69 if (tc->mem->used == 0) { in network_write_chunkqueue_solarissendfilev()
70 chunks[i].iov_base = tc->mem->ptr; in network_write_chunkqueue_solarissendfilev()
73 offset = tc->mem->ptr + tc->offset; in network_write_chunkqueue_solarissendfilev()
74 toSend = tc->mem->used - 1 - tc->offset; in network_write_chunkqueue_solarissendfilev()
113 for(i = 0, tc = c; i < num_chunks; i++, tc = tc->next) { in network_write_chunkqueue_solarissendfilev()
117 tc->offset += chunks[i].iov_len; in network_write_chunkqueue_solarissendfilev()
129 tc->offset += r; in network_write_chunkqueue_solarissendfilev()
H A Dnetwork_linux_sendfile.c44 chunk *tc; in network_write_chunkqueue_linuxsendfile() local
52 for (num_chunks = 0, tc = c; in network_write_chunkqueue_linuxsendfile()
53 tc && tc->type == MEM_CHUNK && num_chunks < UIO_MAXIOV; in network_write_chunkqueue_linuxsendfile()
54 tc = tc->next, num_chunks++); in network_write_chunkqueue_linuxsendfile()
56 for (tc = c, i = 0; i < num_chunks; tc = tc->next, i++) { in network_write_chunkqueue_linuxsendfile()
57 if (tc->mem->used == 0) { in network_write_chunkqueue_linuxsendfile()
61 offset = tc->mem->ptr + tc->offset; in network_write_chunkqueue_linuxsendfile()
62 toSend = tc->mem->used - 1 - tc->offset; in network_write_chunkqueue_linuxsendfile()
102 for(i = 0, tc = c; i < num_chunks; i++, tc = tc->next) { in network_write_chunkqueue_linuxsendfile()
106 tc->offset += chunks[i].iov_len; in network_write_chunkqueue_linuxsendfile()
[all …]
H A Dnetwork_writev.c47 chunk *tc; in network_write_chunkqueue_writev() local
72 …for (num_chunks = 0, tc = c; tc && tc->type == MEM_CHUNK && num_chunks < max_chunks; num_chunks++,… in network_write_chunkqueue_writev()
76 for(tc = c, i = 0; i < num_chunks; tc = tc->next, i++) { in network_write_chunkqueue_writev()
77 if (tc->mem->used == 0) { in network_write_chunkqueue_writev()
78 chunks[i].iov_base = tc->mem->ptr; in network_write_chunkqueue_writev()
81 offset = tc->mem->ptr + tc->offset; in network_write_chunkqueue_writev()
82 toSend = tc->mem->used - 1 - tc->offset; in network_write_chunkqueue_writev()
125 for(i = 0, tc = c; i < num_chunks; i++, tc = tc->next) { in network_write_chunkqueue_writev()
129 tc->offset += chunks[i].iov_len; in network_write_chunkqueue_writev()
141 tc->offset += r; in network_write_chunkqueue_writev()
H A Dnetwork_mtcp_writev.c47 chunk *tc;
72 …for (num_chunks = 0, tc = c; tc && tc->type == MEM_CHUNK && num_chunks < max_chunks; num_chunks++,…
76 for(tc = c, i = 0; i < num_chunks; tc = tc->next, i++) {
77 if (tc->mem->used == 0) {
78 chunks[i].iov_base = tc->mem->ptr;
81 offset = tc->mem->ptr + tc->offset;
82 toSend = tc->mem->used - 1 - tc->offset;
125 for(i = 0, tc = c; i < num_chunks; i++, tc = tc->next) {
129 tc->offset += chunks[i].iov_len;
141 tc->offset += r;