/civetweb-2.7.6/test/ |
D | test.pl | 19 my $root = 'test'; 20 my $test_dir = $root . $dir_separator. $test_dir_uri; 28 my @files_to_delete = ('debug.log', 'access.log', $config, "$root/a/put.txt", 29 "$root/a+.txt", "$root/.htpasswd", "$root/binary_file", "$root/a", 30 "$root/myperl", $embed_exe, $unit_test_exe); 55 my $sock = IO::Socket::INET->new(Proto => 6, 58 $sock->autoflush(1); 143 my $out = `(cc -c src/civetweb.c && nm src/civetweb.o) | grep ' T '`; 158 spawn("$civetweb_exe -listening_ports 127.0.0.1:$port"); 165 "-listening_ports 127.0.0.1:$port ". [all …]
|
D | ssi_test.shtml | 4 <meta charset="utf-8"> 15 <!--#exec "cd" --> 17 <!--#exec "pwd" --> 20 <!--#include file="hello.txt" --> 22 <!--#include "hello.txt" --> 24 <h2>File relative to document root: "hello.txt"</h2> 25 <!--#include virtual="hello.txt" --> 28 <!--#include abspath="C:\Windows\system.ini" --> 30 <!--#include abspath="/etc/issue" --> 33 <!--#include file="./hello.shtml" -->
|
/civetweb-2.7.6/examples/rest/cJSON/ |
D | cJSON_Utils.c | 2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors 98 return tolower(*string1) - tolower(*string2); in compare_strings() 196 …for (current_child = object->child; current_child != NULL; (void)(current_child = current_child->n… in cJSONUtils_FindPointerFromObjectTo() 222 …strlen((char*)target_pointer) + pointer_encoded_length((unsigned char*)current_child->string) + 2); in cJSONUtils_FindPointerFromObjectTo() 224 encode_string_as_pointer(full_pointer + 1, (unsigned char*)current_child->string); in cJSONUtils_FindPointerFromObjectTo() 244 cJSON *child = array ? array->child : NULL; in get_array_item() 247 item--; in get_array_item() 248 child = child->next; in get_array_item() 267 parsed_index = (10 * parsed_index) + (size_t)(pointer[position] - '0'); in decode_array_index_from_pointer() 306 current_element = current_element->child; in get_item_from_pointer() [all …]
|
D | cJSON_Utils.h | 2 Copyright (c) 2009-2017 Dave Gamble and cJSON contributors 64 /* generates a patch to move from -> to */ 69 /* Given a root object and a target object, construct a pointer from one to the other. */
|
/civetweb-2.7.6/src/third_party/lua-5.1.5/test/ |
D | bisect.lua | 1 -- bisection method for solving non-linear equations 3 delta=1e-6 -- tolerance 8 if c==a or c==b or math.abs(a-b)<delta then return c,b-a end 14 -- find root of f in the inverval [a,b]. needs f(a)*f(b)<0 18 io.write(string.format("after %d steps, root is %.17g with error %.1e, f=%.1e\n",n,z,e,f(z))) 21 -- our function 23 return x*x*x-x-1 26 -- find zero in [1,2]
|
/civetweb-2.7.6/docs/ |
D | UserManual.md | 5 It may be embedded into C/C++ host applications or used as a stand-alone 9 The stand-alone server is self-contained, and does not require any external 11 [Visual C++ Redistributable](http://www.microsoft.com/en-us/download/details.aspx?id=30679). 15 ---- 17 On Windows, UNIX and Mac, the CivetWeb stand-alone executable may be started 24 Pressing `Ctrl-C` keys will stop the server. 27 Right-clicking on the icon pops up a menu, where it is possible to stop 33 to this folder, double-click the exe, and launch a browser at 54 All command line arguments must start with `-`. 57 `CivetWeb -document_root D:\web`. Then the `D:\web` directory will be served [all …]
|
D | Building.md | 4 This guide covers the build instructions for the stand-alone web server. 17 --------- 25 #### Using MinGW-w64 or TDM-GCC 26 In the start menu locate and run the "Run terminal" batch file. For TDM-GCC this is named "MinGW Co… 29 mingw32-make CC=gcc 41 --------- 87 | --------------------------- | ------------------------------------------------- | 89 | `WITH_DUKTAPE=1` | build with server-side JavaScript support | 100 | `DOCUMENT_ROOT=/path` | default document root | 105 | `COPT='-DNO_SSL'` | method to insert compile flags | [all …]
|
D | Embedding.md | 7 …-alone executable. It can deliver static files and offers built-in server side Lua, JavaScript and… 11 ------ 25 - HTTP server API 26 - include/civetweb.h 27 - C implementation 28 - src/civetweb.c 29 - src/md5.inl (MD5 calculation) 30 - src/sha1.inl (SHA calculation) 31 - src/handle\_form.inl (HTML form handling functions) 32 - src/timer.inl (optional timer support) [all …]
|
/civetweb-2.7.6/src/third_party/duktape-1.8.0/src-separate/ |
D | duk_debug_heap.c | 18 maxchars = (duk_size_t) (buf_size - 1); 20 nchars = ((duk_size_t) str->blen < maxchars ? (duk_size_t) str->blen : maxchars); 53 DUK_D(DUK_DPRINT(" [%ld]: %p %s (flags: 0x%08lx, ref: %ld) -> %!O", 61 DUK_D(DUK_DPRINT(" [%ld]: %p %s (flags: 0x%08lx) -> %!O", 72 DUK_LOCAL void duk__dump_heaphdr_list(duk_heap *heap, duk_heaphdr *root, const char *name) { 80 curr = root; 89 curr = root; 104 (void *) heap->strtable, 105 (long) heap->st_used, 106 (long) heap->st_size, [all …]
|
D | duk_heap_markandsweep.c | 2 * Mark-and-sweep garbage collection. 16 /* Select a thread for mark-and-sweep use. 21 if (heap->curr_thread) { in duk__get_temp_hthread() 22 return heap->curr_thread; in duk__get_temp_hthread() 24 return heap->heap_thread; /* may be NULL, too */ in duk__get_temp_hthread() 48 /* XXX: use advancing pointers instead of index macros -> faster and smaller? */ in duk__mark_hobject() 57 duk__mark_heaphdr(heap, (duk_heaphdr *) DUK_HOBJECT_E_GET_VALUE_PTR(heap, h, i)->a.get); in duk__mark_hobject() 58 duk__mark_heaphdr(heap, (duk_heaphdr *) DUK_HOBJECT_E_GET_VALUE_PTR(heap, h, i)->a.set); in duk__mark_hobject() 60 duk__mark_tval(heap, &DUK_HOBJECT_E_GET_VALUE_PTR(heap, h, i)->v); in duk__mark_hobject() 98 /* May happen in some out-of-memory corner cases. */ in duk__mark_hobject() [all …]
|
/civetweb-2.7.6/src/third_party/duktape-1.5.2/src-separate/ |
D | duk_debug_heap.c | 18 maxchars = (duk_size_t) (buf_size - 1); 20 nchars = ((duk_size_t) str->blen < maxchars ? (duk_size_t) str->blen : maxchars); 53 DUK_D(DUK_DPRINT(" [%ld]: %p %s (flags: 0x%08lx, ref: %ld) -> %!O", 61 DUK_D(DUK_DPRINT(" [%ld]: %p %s (flags: 0x%08lx) -> %!O", 72 DUK_LOCAL void duk__dump_heaphdr_list(duk_heap *heap, duk_heaphdr *root, const char *name) { 80 curr = root; 89 curr = root; 104 (void *) heap->strtable, 105 (long) heap->st_used, 106 (long) heap->st_size, [all …]
|
D | duk_heap_markandsweep.c | 2 * Mark-and-sweep garbage collection. 16 /* Select a thread for mark-and-sweep use. 21 if (heap->curr_thread) { in duk__get_temp_hthread() 22 return heap->curr_thread; in duk__get_temp_hthread() 24 return heap->heap_thread; /* may be NULL, too */ in duk__get_temp_hthread() 48 /* XXX: use advancing pointers instead of index macros -> faster and smaller? */ in duk__mark_hobject() 57 duk__mark_heaphdr(heap, (duk_heaphdr *) DUK_HOBJECT_E_GET_VALUE_PTR(heap, h, i)->a.get); in duk__mark_hobject() 58 duk__mark_heaphdr(heap, (duk_heaphdr *) DUK_HOBJECT_E_GET_VALUE_PTR(heap, h, i)->a.set); in duk__mark_hobject() 60 duk__mark_tval(heap, &DUK_HOBJECT_E_GET_VALUE_PTR(heap, h, i)->v); in duk__mark_hobject() 98 /* May happen in some out-of-memory corner cases. */ in duk__mark_hobject() [all …]
|
/civetweb-2.7.6/examples/https/ |
D | civetweb.conf | 12 # 3) copy the content of the *.pin files into the Public-Key-Pins 14 # 4) set the document root, and all other required http server settings 25 # 7) run civetweb, like above - or better create your own start script 27 # (or Google groups) - see README.md in CivetWeb main directory 35 # Don't forget to set the document root and domain 54 additional_header Content-Security-Policy: script-src 'self' 55 additional_header X-Frame-Options: SAMEORIGIN 56 additional_header X-Xss-Protection: 1; mode=block 57 additional_header X-Content-Type-Options: nosniff 58 additional_header Referrer-Policy: same-origin [all …]
|
/civetweb-2.7.6/ |
D | Makefile | 3 # License http://opensource.org/licenses/mit-license.php MIT License 10 include resources/Makefile.in-os 19 # http://www.gnu.org/prep/standards/html_node/Directory-Variables.html 32 MKDIR = mkdir -p 33 RMF = rm -f 34 RMRF = rm -rf 36 # desired configuration of the document root 61 # to this variable so we can run lua-specific unit tests. 68 CFLAGS += -Wall -Wextra -Wshadow -Wformat-security -Winit-self -Wmissing-prototypes -D$(TARGET_OS) … 70 LIBS = -lpthread -lm [all …]
|
D | .travis.yml | 10 - $HOME/third-party 17 - cmake 18 - openssl 19 - libssl-dev 21 - kubuntu-backports 25 - if [ "${TRAVIS_OS_NAME}" == "linux" ]; then 28 wget https://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.sh --no-check-certificate; 29 chmod +x cmake-3.7.2-Linux-x86_64.sh; 30 ./cmake-3.7.2-Linux-x86_64.sh --prefix=$HOME/usr --exclude-subdir --skip-license; 32 - cmake --version [all …]
|
/civetweb-2.7.6/examples/multidomain/ |
D | README.md | 1 Compile CivetWeb to the repository root and run it from there 7 …ho | openssl s_client -showcerts -servername default-domain -connect localhost:443 2>/dev/null | o… 9 echo | openssl s_client -showcerts -servername localhost -connect localhost:443 2>/dev/null | opens…
|
/civetweb-2.7.6/resources/ |
D | mingw.bat | 1 @rem MinGW build test - used to test MinGW builds locally 4 @rem This batch file must be used from the repository root 8 @set PATH=%ProgramFiles%\mingw-w64\i686-4.9.2-win32-dwarf-rt_v3-rev1\mingw32\bin;%PATH% 12 @rem make CC=gcc CFLAGS=-w CFLAGS+=-Iinclude/ CFLAGS+=-lws2_32 CFLAGS+=-liphlpapi 13 @rem gcc src\civetweb.c src\main.c -Iinclude\ -lws2_32 -lpthread -lcomdlg32 -w
|
D | coverity_check.sh | 8 echo "Run this script from the root directory of project!" 1>&2 14 rm -rf cov_build/ 29 cp resources/Makefile.in-os cov_build/resources/ 34 ../../cov-analysis-linux64-2017.07/bin/cov-build --dir cov-int make WITH_IPV6=1 WITH_WEBSOCKET=1 W… 38 tar czvf civetweb_coverity_check.tgz cov-int 44 ls -la cov_build/civetweb_coverity_check.tgz 49 echo "submit to https://scan.coverity.com/projects/bel2125-civetweb" 52 git log -n 1
|
/civetweb-2.7.6/cmake/ |
D | FindLibRt.cmake | 3 # -------- 20 # LIBRT_INCLUDE_DIRS - where to find time.h, etc. 21 # LIBRT_LIBRARIES - List of libraries when using librt. 22 # LIBRT_FOUND - True if realtime library found. 27 # A user may set ``LIBRT_ROOT`` to a realtime installation root to tell this
|
D | FindLibDl.cmake | 3 # -------- 20 # LIBDL_INCLUDE_DIRS - where to find dlfcn.h, etc. 21 # LIBDL_LIBRARIES - List of libraries when using libdl. 22 # LIBDL_FOUND - True if dynamic linking library found. 27 # A user may set ``LIBDL_ROOT`` to a library installation root to tell this
|
D | FindLibM.cmake | 3 # -------- 20 # LIBM_INCLUDE_DIRS - where to find math.h, etc. 21 # LIBM_LIBRARIES - List of libraries when using libm. 22 # LIBM_FOUND - True if math library found. 27 # A user may set ``LIBM_ROOT`` to a math library installation root to tell this
|
D | FindWinSock.cmake | 3 # -------- 20 # WINSOCK_INCLUDE_DIRS - where to find winsock.h, etc. 21 # WINSOCK_LIBRARIES - List of libraries when using librt. 22 # WINSOCK_FOUND - True if realtime library found. 27 # A user may set ``WINSOCK_ROOT`` to a realtime installation root to tell this 43 COMMAND ${CMAKE_C_COMPILER} -xc -E -v - 52 if (NOT ${START} EQUAL -1 AND NOT ${END} EQUAL -1) 54 math(EXPR END "${END} - 1") 55 math(EXPR LENGTH "${END} - ${START}") 67 COMMAND ${CMAKE_C_COMPILER} -print-search-dirs
|
/civetweb-2.7.6/src/third_party/duktape-1.5.2/config/ |
D | genconfig.py | 5 # - duk_config.h with specific or autodetected platform, compiler, and 7 # - option documentation for Duktape 1.x feature options (DUK_OPT_xxx) 8 # - option documentation for Duktape 1.x/2.x config options (DUK_USE_xxx) 121 # in validate_platform_file()). Fill-ins provide missing optionals. 127 # in validate_architecture_file()). Fill-ins provide missing optionals. 133 # in validate_compiler_file()). Fill-ins provide missing optionals. 150 tmpdir = tempfile.mkdtemp(suffix='-genconfig') 153 if os.path.isdir(dirname) and '-genconfig' in dirname: 180 re_line_requires = re.compile(r'(DUK_[A-Z0-9_]+)') # uppercase only, don't match DUK_USE_xxx for e… 194 self.lines.append(line.encode('utf-8')) [all …]
|
/civetweb-2.7.6/src/third_party/duktape-1.8.0/config/ |
D | genconfig.py | 5 # - duk_config.h with specific or autodetected platform, compiler, and 7 # - option documentation for Duktape 1.x feature options (DUK_OPT_xxx) 8 # - option documentation for Duktape 1.x/2.x config options (DUK_USE_xxx) 121 # in validate_platform_file()). Fill-ins provide missing optionals. 127 # in validate_architecture_file()). Fill-ins provide missing optionals. 133 # in validate_compiler_file()). Fill-ins provide missing optionals. 150 tmpdir = tempfile.mkdtemp(suffix='-genconfig') 153 if os.path.isdir(dirname) and '-genconfig' in dirname: 180 re_line_requires = re.compile(r'(DUK_[A-Z0-9_]+)') # uppercase only, don't match DUK_USE_xxx for e… 194 self.lines.append(line.encode('utf-8')) [all …]
|
/civetweb-2.7.6/src/third_party/lua-5.1.5/src/ |
D | lgc.c | 35 ((x)->gch.marked = cast_byte(((x)->gch.marked & maskmarks) | luaC_white(g))) 37 #define white2gray(x) reset2bits((x)->gch.marked, WHITE0BIT, WHITE1BIT) 38 #define black2gray(x) resetbit((x)->gch.marked, BLACKBIT) 40 #define stringmark(s) reset2bits((s)->tsv.marked, WHITE0BIT, WHITE1BIT) 43 #define isfinalized(u) testbit((u)->marked, FINALIZEDBIT) 44 #define markfinalized(u) l_setbit((u)->marked, FINALIZEDBIT) 59 #define setthreshold(g) (g->GCthreshold = (g->estimate/100) * g->gcpause) 72 switch (o->gch.tt) { in reallymarkobject() 77 Table *mt = gco2u(o)->metatable; in reallymarkobject() 80 markobject(g, gco2u(o)->env); in reallymarkobject() [all …]
|