| /mOS-networking-stack/samples/lighttpd-1.4.32/src/ |
| H A D | stream.c | 15 int stream_open(stream *f, buffer *fn) { in stream_open() argument 26 if (-1 == stat(fn->ptr, &st)) { in stream_open() 33 if (-1 == (fd = open(fn->ptr, O_RDONLY | O_BINARY))) { in stream_open() 46 fh = CreateFile(fn->ptr, in stream_open()
|
| H A D | configfile.c | 520 (fn[0] == '/' || fn[0] == '\\') || 521 (fn[0] == '.' && (fn[1] == '/' || fn[1] == '\\'))) { 522 t->file = buffer_init_string(fn); 525 buffer_append_string(t->file, fn); 994 (fn[0] == '/' || fn[0] == '\\') || in config_parse_file() 995 (fn[0] == '.' && (fn[1] == '/' || fn[1] == '\\'))) { in config_parse_file() 996 filename = buffer_init_string(fn); in config_parse_file() 1107 pos = strrchr(fn, '\\'); in config_read() 1109 pos = strrchr(fn, '/'); in config_read() 1112 buffer_copy_string_len(context.basedir, fn, pos - fn + 1); in config_read() [all …]
|
| H A D | mod_compress.c | 413 static int deflate_file_to_file(server *srv, connection *con, plugin_data *p, buffer *fn, stat_cach… in deflate_file_to_file() argument 417 const char *filename = fn->ptr; in deflate_file_to_file() 484 …log_error_write(srv, __FILE__, __LINE__, "sbss", "opening plain-file", fn, "failed", strerror(errn… in deflate_file_to_file() 498 log_error_write(srv, __FILE__, __LINE__, "sbss", "mmaping", fn, "failed", strerror(errno)); in deflate_file_to_file() 513 log_error_write(srv, __FILE__, __LINE__, "sbss", "reading", fn, "failed", strerror(errno)); in deflate_file_to_file() 583 static int deflate_file_to_buffer(server *srv, connection *con, plugin_data *p, buffer *fn, stat_ca… in deflate_file_to_buffer() argument 600 if (-1 == (ifd = open(fn->ptr, O_RDONLY | O_BINARY))) { in deflate_file_to_buffer() 601 …log_error_write(srv, __FILE__, __LINE__, "sbss", "opening plain-file", fn, "failed", strerror(errn… in deflate_file_to_buffer() 608 log_error_write(srv, __FILE__, __LINE__, "sbss", "mmaping", fn, "failed", strerror(errno)); in deflate_file_to_buffer() 616 log_error_write(srv, __FILE__, __LINE__, "sbss", "reading", fn, "failed", strerror(errno)); in deflate_file_to_buffer()
|
| H A D | mod_cml_lua.c | 208 int cache_parse_lua(server *srv, connection *con, plugin_data *p, buffer *fn) { in cache_parse_lua() argument 216 stream_open(&rm.st, fn); in cache_parse_lua() 288 if (lua_load(L, load_file, &rm, fn->ptr) || lua_pcall(L,0,1,0)) { in cache_parse_lua() 455 int cache_parse_lua(server *srv, connection *con, plugin_data *p, buffer *fn) { in cache_parse_lua() argument 459 UNUSED(fn); in cache_parse_lua()
|
| H A D | http_chunk.c | 54 int http_chunk_append_file(server *srv, connection *con, buffer *fn, off_t offset, off_t len) { in http_chunk_append_file() argument 65 chunkqueue_append_file(cq, fn, offset, len); in http_chunk_append_file()
|
| H A D | mod_proxy.c | 1119 buffer *fn; in mod_proxy_check_extension() local 1130 fn = con->uri.path; in mod_proxy_check_extension() 1132 if (fn->used == 0) { in mod_proxy_check_extension() 1136 s_len = fn->used - 1; in mod_proxy_check_extension() 1160 if (strncmp(fn->ptr, ext->key->ptr, ct_len) == 0) { in mod_proxy_check_extension() 1164 if (NULL != (pi_offset = strchr(fn->ptr + ct_len + 1, '/'))) { in mod_proxy_check_extension() 1165 path_info_offset = pi_offset - fn->ptr; in mod_proxy_check_extension() 1171 } else if (0 == strncmp(fn->ptr + s_len - ct_len, ext->key->ptr, ct_len)) { in mod_proxy_check_extension() 1329 fn); in mod_proxy_check_extension()
|
| H A D | mod_magnet.c | 766 buffer *fn = buffer_init(); in magnet_attach_content() local 769 buffer_copy_string(fn, lua_tostring(L, -3)); in magnet_attach_content() 771 if (HANDLER_GO_ON == stat_cache_get_entry(srv, con, fn, &sce)) { in magnet_attach_content() 786 return luaL_error(L, "offset for '%s' is negative", fn->ptr); in magnet_attach_content() 790 return luaL_error(L, "offset > length for '%s'", fn->ptr); in magnet_attach_content() 793 chunkqueue_append_file(con->write_queue, fn, off, len - off); in magnet_attach_content() 796 buffer_free(fn); in magnet_attach_content()
|
| H A D | stream.h | 11 int stream_open(stream *f, buffer *fn);
|
| H A D | server.h | 13 int config_read(server *srv, const char *fn);
|
| H A D | http_chunk.h | 9 int http_chunk_append_file(server *srv, connection *con, buffer *fn, off_t offset, off_t len);
|
| H A D | mod_cml.h | 41 int cache_parse_lua(server *srv, connection *con, plugin_data *p, buffer *fn);
|
| H A D | configfile.h | 20 int config_parse_file(server *srv, config_t *context, const char *fn);
|
| H A D | http_auth.h | 71 int http_auth_digest_generate_nonce(server *srv, mod_auth_plugin_data *p, buffer *fn, char hh[33]);
|
| H A D | chunk.h | 52 int chunkqueue_append_file(chunkqueue *c, buffer *fn, off_t offset, off_t len);
|
| H A D | chunk.c | 163 int chunkqueue_append_file(chunkqueue *cq, buffer *fn, off_t offset, off_t len) { in chunkqueue_append_file() argument 172 buffer_copy_string_buffer(c->file.name, fn); in chunkqueue_append_file()
|
| H A D | mod_cgi.c | 1242 buffer *fn = con->physical.path; in URIHANDLER_FUNC() local 1247 if (fn->used == 0) return HANDLER_GO_ON; in URIHANDLER_FUNC() 1255 s_len = fn->used - 1; in URIHANDLER_FUNC() 1264 if (0 == strncmp(fn->ptr + s_len - ct_len, ds->key->ptr, ct_len)) { in URIHANDLER_FUNC()
|
| H A D | http_auth.c | 1178 int http_auth_digest_generate_nonce(server *srv, mod_auth_plugin_data *p, buffer *fn, char out[33])… in http_auth_digest_generate_nonce() argument 1187 li_MD5_Update(&Md5Ctx, (unsigned char *)fn->ptr, fn->used - 1); in http_auth_digest_generate_nonce()
|
| H A D | mod_scgi.c | 2704 buffer *fn; in scgi_check_extension() local 2713 fn = uri_path_handler ? con->uri.path : con->physical.path; in scgi_check_extension() 2715 if (buffer_is_empty(fn)) return HANDLER_GO_ON; in scgi_check_extension() 2717 s_len = fn->used - 1; in scgi_check_extension() 2734 if (strncmp(fn->ptr, ext->key->ptr, ct_len) == 0) { in scgi_check_extension() 2738 } else if (0 == strncmp(fn->ptr + s_len - ct_len, ext->key->ptr, ct_len)) { in scgi_check_extension()
|
| H A D | mod_fastcgi.c | 3461 buffer *fn; in fcgi_check_extension() local 3470 fn = uri_path_handler ? con->uri.path : con->physical.path; in fcgi_check_extension() 3472 if (buffer_is_empty(fn)) return HANDLER_GO_ON; in fcgi_check_extension() 3474 s_len = fn->used - 1; in fcgi_check_extension() 3498 if (0 == strncmp(fn->ptr + s_len - ct_len, ds->key->ptr, ct_len)) { in fcgi_check_extension() 3535 … } else if ((ct_len <= s_len) && (0 == strncmp(fn->ptr + s_len - ct_len, ext->key->ptr, ct_len))) { in fcgi_check_extension()
|