Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 66) sorted by relevance

123

/lighttpd1.4/src/
H A DMakefile.am52 common_src=base64.c buffer.c burl.c log.c \
53 http_header.c http_kv.c keyvalue.c chunk.c \
54 http_chunk.c fdevent.c fdevent_fdnode.c gw_backend.c \
55 stat_cache.c http_etag.c array.c \
56 algo_md5.c algo_sha1.c algo_splaytree.c \
67 ck.c
69 src = server.c response.c connections.c h2.c reqpool.c \
79 configfile.c configparser.c
113 common_src += mod_auth_api.c mod_vhostdb_api.c
139 mod_magnet_la_SOURCES = mod_magnet.c mod_magnet_cache.c algo_hmac.c
[all …]
H A Dchunk.c357 if (c) return c; in chunk_acquire()
396 for (chunk *next, *c = chunks; c; c = next) { in chunkqueue_chunk_pool_clear() local
401 for (chunk *next, *c = chunks_oversized; c; c = next) { in chunkqueue_chunk_pool_clear() local
417 for (chunk *next, *c = chunk_buffers; c; c = next) { in chunkqueue_chunk_pool_free() local
951 for (c = dest->first; c && c->type == MEM_CHUNK; c = c->next) { in chunkqueue_append_cqmem_to_tempfile()
970 for (c = src->first; c && c->type == MEM_CHUNK; c = c->next) { in chunkqueue_append_cqmem_to_tempfile()
1221 for (const chunk *c = src->first; len > 0 && c != NULL; c = c->next) { in chunkqueue_append_cq_range() local
1252 c = c->next; in chunkqueue_mark_written()
1276 for (c = cq->first; c && c->next; c = c->next) { in chunkqueue_remove_empty_chunks()
1507 c = c->next; in chunkqueue_small_resp_optim()
[all …]
H A Dalgo_sha1.c85 R0(a,b,c,d,e, 0); R0(e,a,b,c,d, 1); R0(d,e,a,b,c, 2); R0(c,d,e,a,b, 3); in SHA1_Transform()
86 R0(b,c,d,e,a, 4); R0(a,b,c,d,e, 5); R0(e,a,b,c,d, 6); R0(d,e,a,b,c, 7); in SHA1_Transform()
87 R0(c,d,e,a,b, 8); R0(b,c,d,e,a, 9); R0(a,b,c,d,e,10); R0(e,a,b,c,d,11); in SHA1_Transform()
88 R0(d,e,a,b,c,12); R0(c,d,e,a,b,13); R0(b,c,d,e,a,14); R0(a,b,c,d,e,15); in SHA1_Transform()
89 R1(e,a,b,c,d,16); R1(d,e,a,b,c,17); R1(c,d,e,a,b,18); R1(b,c,d,e,a,19); in SHA1_Transform()
90 R2(a,b,c,d,e,20); R2(e,a,b,c,d,21); R2(d,e,a,b,c,22); R2(c,d,e,a,b,23); in SHA1_Transform()
91 R2(b,c,d,e,a,24); R2(a,b,c,d,e,25); R2(e,a,b,c,d,26); R2(d,e,a,b,c,27); in SHA1_Transform()
92 R2(c,d,e,a,b,28); R2(b,c,d,e,a,29); R2(a,b,c,d,e,30); R2(e,a,b,c,d,31); in SHA1_Transform()
93 R2(d,e,a,b,c,32); R2(c,d,e,a,b,33); R2(b,c,d,e,a,34); R2(a,b,c,d,e,35); in SHA1_Transform()
94 R2(e,a,b,c,d,36); R2(d,e,a,b,c,37); R2(c,d,e,a,b,38); R2(b,c,d,e,a,39); in SHA1_Transform()
[all …]
H A DSConscript58 common_src = Split("base64.c buffer.c burl.c log.c \
59 http_header.c http_kv.c keyvalue.c chunk.c \
60 http_chunk.c fdevent.c fdevent_fdnode.c gw_backend.c \
61 stat_cache.c http_etag.c array.c \
62 algo_md5.c algo_sha1.c algo_splaytree.c \
69 rand.c \
71 fdlog.c \
73 ck.c \
76 src = Split("server.c response.c connections.c h2.c reqpool.c \
86 configfile.c configparser.c")
[all …]
H A Dalgo_md5.c102 #define FF(a, b, c, d, x, s, ac) { \ argument
103 (a) += F ((b), (c), (d)) + (x) + (UINT4)(ac); \
107 #define GG(a, b, c, d, x, s, ac) { \ argument
108 (a) += G ((b), (c), (d)) + (x) + (UINT4)(ac); \
112 #define HH(a, b, c, d, x, s, ac) { \ argument
113 (a) += H ((b), (c), (d)) + (x) + (UINT4)(ac); \
117 #define II(a, b, c, d, x, s, ac) { \ argument
118 (a) += I ((b), (c), (d)) + (x) + (UINT4)(ac); \
215 FF (a, b, c, d, x[ 0], S11, 0xd76aa478); /* 1 */ in li_MD5Transform()
216 FF (d, a, b, c, x[ 1], S12, 0xe8c7b756); /* 2 */ in li_MD5Transform()
[all …]
H A Dmeson.build514 'array.c',
517 'burl.c',
518 'chunk.c',
533 'log.c',
534 'rand.c',
536 'ck.c',
546 'h2.c',
682 'log.c',
685 'ck.c',
704 'log.c',
[all …]
H A DCMakeLists.txt826 base64.c buffer.c burl.c log.c
827 http_header.c http_kv.c keyvalue.c chunk.c
828 http_chunk.c fdevent.c fdevent_fdnode.c gw_backend.c
829 stat_cache.c http_etag.c array.c
830 algo_md5.c algo_sha1.c algo_splaytree.c
841 ck.c
884 h2.c
929 log.c
932 ck.c
960 log.c
[all …]
H A Dbuffer.c733 } while (c >= ' ' && c <= '~' && c != '"' && c != '\\' && ++s < end); in buffer_append_bs_escaped()
747 c = "0000000abtnvfr"[c]; in buffer_append_bs_escaped()
781 } while (c >= ' ' && c != '"' && c != '\\' && ++s < end); in buffer_append_bs_escaped_json()
795 c = "0000000abtnvfr"[c]; in buffer_append_bs_escaped_json()
852 if ( 0xc2 <= c[0] && c[0] <= 0xdf in buffer_is_valid_UTF8()
853 && 0x80 <= c[1] && c[1] <= 0xbf ) { c+=2; continue; } in buffer_is_valid_UTF8()
857 || ( 0xe1 <= c[0] && c[0] <= 0xef && c[0] != 0xed in buffer_is_valid_UTF8()
861 && 0x80 <= c[2] && c[2] <= 0xbf ) { c+=3; continue; } in buffer_is_valid_UTF8()
865 || ( 0xf1 <= c[0] && c[0] <= 0xf3 in buffer_is_valid_UTF8()
869 && 0x80 <= c[2] && c[2] <= 0xbf in buffer_is_valid_UTF8()
[all …]
H A Dnetwork_write.c150 chunk* const c = cq->first; in network_write_mem_chunk() local
151 off_t c_len = (off_t)buffer_clen(c->mem) - c->offset; in network_write_mem_chunk()
155 ssize_t wr = network_write_data_len(fd, c->mem->ptr + c->offset, c_len); in network_write_mem_chunk()
166 off_t toSend = c->file.length - c->offset; in network_write_file_chunk_no_mmap()
175 toSend = chunk_file_pread(c->file.fd, buf, toSend, c->offset); in network_write_file_chunk_no_mmap()
207 off_t toSend = c->file.length - c->offset; in network_write_file_chunk_mmap()
259 for (const chunk *c = cq->first; c && MEM_CHUNK == c->type; c = c->next) { in network_writev_mem_chunks() local
260 const off_t c_len = (off_t)buffer_clen(c->mem) - c->offset; in network_writev_mem_chunks()
264 chunks[num_chunks].iov_base = c->mem->ptr + c->offset; in network_writev_mem_chunks()
302 offset = c->offset; in network_write_file_chunk_sendfile()
[all …]
H A Dconnections.c283 do { c = c->next; } while (c && c->type == MEM_CHUNK); in connection_write_chunkqueue()
599 return (c && (size_t)c->offset + olen < buffer_clen(c->mem)) in connection_read_header_more()
600 ? c in connection_read_header_more()
669 clen = buffer_clen(c->mem) - c->offset; in connection_handle_read_state()
710 if (((unsigned char *)c->mem->ptr)[c->offset] < 32) { in connection_handle_read_state()
715 c->mem->ptr[c->offset] == 0x16 in connection_handle_read_state()
1596 while ((c = c->next)) { in connection_handle_read_post_cq_compact()
1612 chunk *c; in connection_handle_read_post_chunked_crlf() local
1622 b = c->mem; in connection_handle_read_post_chunked_crlf()
1629 while (NULL != (c = c->next)) { in connection_handle_read_post_chunked_crlf()
[all …]
H A Dbuffer.h208 char hex2int(unsigned char c);
213 static inline int light_isdigit(int c);
214 static inline int light_isdigit(int c) { in light_isdigit() argument
215 return ((uint32_t)c-'0' <= '9'-'0'); in light_isdigit()
221 return light_isdigit(c) || (((uint32_t)c | 0x20)-'a' <= 'f'-'a'); in light_isxdigit()
225 static inline int light_isalpha(int c);
231 static inline int light_isalnum(int c);
233 return light_isdigit(c) || light_isalpha(c); in light_isalnum()
236 #define light_isupper(c) ((uint32_t)(c)-'A' <= 'Z'-'A') argument
237 #define light_islower(c) ((uint32_t)(c)-'a' <= 'z'-'a') argument
[all …]
H A Dh2.c1173 if ((c && c->type == FILE_CHUNK && c->file.is_temp) in h2_recv_data()
1210 uint8_t *s = (uint8_t *)(c->mem->ptr + c->offset); in h2_recv_continuation()
1221 s = (uint8_t *)(c->mem->ptr + c->offset); in h2_recv_continuation()
1246 s = (uint8_t *)(c->mem->ptr + c->offset); in h2_recv_continuation()
1334 buffer_truncate(c->mem, n + (uint32_t)c->offset); in h2_recv_continuation()
1723 uint32_t clen = buffer_clen(c->mem) - c->offset; in h2_parse_frames()
1743 s = (uint8_t *)(c->mem->ptr + c->offset); in h2_parse_frames()
1862 uint32_t clen = buffer_clen(c->mem) - c->offset; in h2_want_read()
1867 uint8_t *s = (uint8_t *)(c->mem->ptr + c->offset); in h2_want_read()
1880 s = (uint8_t *)(c->mem->ptr + c->offset); in h2_want_read()
[all …]
H A Dchunk.h136 void chunkqueue_update_file(chunkqueue * restrict cq, chunk *c, off_t len);
186 const chunk_file_view * chunkqueue_chunk_file_viewadj (chunk *c, off_t n, log_error_st * restrict e…
209 chunkqueue_chunk_file_view (chunk * const c, const off_t n, log_error_st * const restrict errh);
211 chunkqueue_chunk_file_view (chunk * const c, const off_t n, log_error_st * const restrict errh) in chunkqueue_chunk_file_view() argument
216 const chunk_file_view * const restrict cfv = c->file.view; in chunkqueue_chunk_file_view()
218 ? c->file.length - c->offset >= 131072 /* TBD: min chunk size to mmap */ in chunkqueue_chunk_file_view()
219 : (c->offset - cfv->foff < 0 in chunkqueue_chunk_file_view()
220 || chunk_file_view_dlen(cfv, c->offset) < (n ? n : 1))) in chunkqueue_chunk_file_view()
221 return chunkqueue_chunk_file_viewadj(c, n, errh); in chunkqueue_chunk_file_view()
224 UNUSED(c); in chunkqueue_chunk_file_view()
H A Dmod_deflate.c1504 const char *in = chunk_file_view_dptr(c->file.view, c->offset); in mod_deflate_using_libdeflate_setjmp_cb()
1575 "SIGBUS in mmap: %s %d", c->mem->ptr, c->file.fd); in mod_deflate_using_libdeflate()
1615 rd = chunk_file_pread(c->file.fd, p, (size_t)psz, c->offset+n); in mod_deflate_file_chunk_no_mmap()
1663 "SIGBUS in mmap: %s %d", c->mem->ptr, c->file.fd); in mod_deflate_file_chunk_mmap()
1714 switch(c->type) { in deflate_compress_response()
1716 len = buffer_clen(c->mem) - c->offset; in deflate_compress_response()
1718 if (mod_deflate_compress(hctx, (unsigned char *)c->mem->ptr+c->offset, len) < 0) { in deflate_compress_response()
1724 len = c->file.length - c->offset; in deflate_compress_response()
2092 && c->type == FILE_CHUNK in REQUEST_FUNC()
2094 && chunk_file_view_dlen(c->file.view, c->offset) >= len) { /*(cfv)*/ in REQUEST_FUNC()
[all …]
H A Dhttp_range.c176 chunk * const c = cq->first; in http_range_single() local
177 if (c->type == FILE_CHUNK) in http_range_single()
178 c->file.length = c->offset + ranges[1] - ranges[0] + 1; in http_range_single()
180 c->mem->used = c->offset + ranges[1] - ranges[0] + 1 + 1; in http_range_single()
242 chunk * const c = (cq->first == cq->last && cq->first->type == MEM_CHUNK) in http_range_multi() local
254 if (c) /* single MEM_CHUNK in original cq; not using mem_min */ in http_range_multi()
H A Dmod_auth.c1239 for (const char *e; *c; c++) { in mod_auth_digest_parse_authorization()
1241 while (*c == ' ' || *c == '\t' || *c == ',') ++c; in mod_auth_digest_parse_authorization()
1242 if (!*c) break; in mod_auth_digest_parse_authorization()
1249 c += tlen; in mod_auth_digest_parse_authorization()
1252 while (*c == ' ' || *c == '\t') ++c; in mod_auth_digest_parse_authorization()
1255 do { ++c; } while (*c == ' ' || *c == '\t'); in mod_auth_digest_parse_authorization()
1257 if (*c == '"') { in mod_auth_digest_parse_authorization()
1270 c = e; in mod_auth_digest_parse_authorization()
1271 if (*c != ',') { in mod_auth_digest_parse_authorization()
1273 c = strchr(c, ','); in mod_auth_digest_parse_authorization()
[all …]
H A Dmod_status.c485 for (const connection *c = srv->conns; c; c = c->next) { in mod_status_handle_server_status_html() local
486 const request_st * const cr = &c->request; in mod_status_handle_server_status_html()
487 if (http_con_state_is_keep_alive(c)) { in mod_status_handle_server_status_html()
568 for (const connection *c = srv->conns; c; c = c->next) in mod_status_handle_server_status_text() local
569 *s++ = *(http_con_state_short(c)); in mod_status_handle_server_status_text()
816 for (const connection *c = srv->conns; c; c = c->next) in TRIGGER_FUNC() local
817 p->bytes_written_1s += c->bytes_written_cur_second; in TRIGGER_FUNC()
H A Dlemon.c105 if( ISDIGIT(c) || (c=='-' && ISDIGIT(zFormat[i+1])) ){ in lemon_vsprintf()
2961 int c; in Parse() local
3014 while( (c= *cp)!=0 && c!='\n' ) cp++; in Parse()
3031 while( (c= *cp)!=0 && c!='\"' ){ in Parse()
3062 while( (c= *cp)!=0 && c!='\n' ) cp++; in Parse()
3085 while( (c= *cp)!=0 && (ISALNUM(c) || c=='_') ) cp++; in Parse()
3092 while( (c = *cp)!=0 && (ISALNUM(c) || c=='_') ) cp++; in Parse()
3527 char c; in pathsearch() local
3803 int c; in append_str() local
4257 int c; in axset_compare() local
[all …]
H A Dmod_wstunnel.c940 for (chunk *c = cq->first; c; c = c->next) { in recv_ietf_00() local
941 char *frame = c->mem->ptr+c->offset; in recv_ietf_00()
943 size_t flen = (size_t)(buffer_clen(c->mem) - c->offset); in recv_ietf_00()
945 force_assert(c->type == MEM_CHUNK); in recv_ietf_00()
1127 for (chunk *c = cq->first; c; c = c->next) { in recv_rfc_6455() local
1128 char *frame = c->mem->ptr+c->offset; in recv_rfc_6455()
1130 size_t flen = (size_t)(buffer_clen(c->mem) - c->offset); in recv_rfc_6455()
1132 force_assert(c->type == MEM_CHUNK); in recv_rfc_6455()
H A Dburl.c42 #define li_cton(c,n) \ argument
43 (((n) = (c) - '0') <= 9 || (((n) = ((c)&0xdf) - 'A') <= 5 ? ((n) += 10) : 0))
52 static int burl_is_unreserved (const int c) in burl_is_unreserved() argument
54 return (light_isalnum(c) || c == '-' || c == '.' || c == '_' || c == '~'); in burl_is_unreserved()
H A Dfdevent.c202 char * const c = strrchr(path, '/'); in fdevent_open_dirname() local
203 const char * const dname = (NULL != c ? c == path ? "/" : path : "."); in fdevent_open_dirname()
209 if (NULL != c) *c = '\0'; in fdevent_open_dirname()
211 if (NULL != c) *c = '/'; in fdevent_open_dirname()
293 #define accept4(a,b,c,d) ((errno = ENOTSUP), -1) argument
H A Dmod_webdav.c775 for (chunk *c = cq->first; c; c = c->next) { in webdav_xml_log_response() local
778 s = c->mem->ptr + c->offset; in webdav_xml_log_response()
779 len = buffer_clen(c->mem) - (uint32_t)c->offset; in webdav_xml_log_response()
788 len = (uint32_t)(c->file.length - c->offset); in webdav_xml_log_response()
3820 const off_t len = c->file.length - c->offset; in webdav_mmap_file_chunk()
3827 UNUSED(c); in webdav_mmap_file_chunk()
3858 xmlstr = c->mem->ptr + c->offset; in webdav_parse_chunkqueue()
3859 weHave = buffer_clen(c->mem) - c->offset; in webdav_parse_chunkqueue()
3864 weHave = c->file.length - c->offset; in webdav_parse_chunkqueue()
4549 cq->first = c; in mod_webdav_write_single_file_chunk()
[all …]
/lighttpd1.4/scripts/cmake/
H A DLighttpdMacros.cmake27 …add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${SRCBASE}.c ${CMAKE_CURRENT_BINARY_DIR}/${S…
29 …ARGS -q -d${CMAKE_CURRENT_BINARY_DIR} -T${CMAKE_CURRENT_SOURCE_DIR}/lempar.c ${CMAKE_CURRENT_SOURC…
30 …RRENT_BINARY_DIR}/lemon ${CMAKE_CURRENT_SOURCE_DIR}/${SRCFILE} ${CMAKE_CURRENT_SOURCE_DIR}/lempar.c
31 COMMENT "Generating ${SRCBASE}.c from ${SRCFILE}"
/lighttpd1.4/tests/
H A Dmod-scgi.t95 for (my $c = 2*30; $c && 0 == $tf->listening_on($ephemeral_port); --$c) {
H A Dmeson.build1 compiler = meson.get_compiler('c')
15 sources: 'fcgi-responder.c',
20 sources: 'scgi-responder.c',

123