/unit/src/ |
H A D | nxt_mem_map.c | 0:a63ceefd6ab0 Tue Jan 17 17:00:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Initial version.
|
H A D | nxt_murmur_hash.h | 0:a63ceefd6ab0 Tue Jan 17 17:00:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Initial version.
|
H A D | nxt_parse.h | 0:a63ceefd6ab0 Tue Jan 17 17:00:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Initial version.
|
H A D | nxt_queue.c | 0:a63ceefd6ab0 Tue Jan 17 17:00:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Initial version.
|
H A D | nxt_gmtime.c | 0:a63ceefd6ab0 Tue Jan 17 17:00:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Initial version.
|
H A D | nxt_hash.h | 0:a63ceefd6ab0 Tue Jan 17 17:00:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Initial version.
|
H A D | nxt_recvbuf.c | 0:a63ceefd6ab0 Tue Jan 17 17:00:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Initial version.
|
H A D | nxt_recvbuf.h | 0:a63ceefd6ab0 Tue Jan 17 17:00:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Initial version.
|
H A D | nxt_djb_hash.c | 0:a63ceefd6ab0 Tue Jan 17 17:00:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Initial version.
|
H A D | nxt_dyld.c | 0:a63ceefd6ab0 Tue Jan 17 17:00:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Initial version.
|
/unit/auto/cc/ |
H A D | test | 0:a63ceefd6ab0 Tue Jan 17 17:00:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Initial version.
|
/unit/auto/echo/ |
H A D | Makefile | 0:a63ceefd6ab0 Tue Jan 17 17:00:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Initial version.
|
H A D | echo.c | 0:a63ceefd6ab0 Tue Jan 17 17:00:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Initial version.
|
/unit/auto/ |
H A D | have | 0:a63ceefd6ab0 Tue Jan 17 17:00:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Initial version.
|
H A D | test_build | 0:a63ceefd6ab0 Tue Jan 17 17:00:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Initial version.
|
H A D | pcre | diff 2228:f403dc1e3ec1 Thu Oct 27 23:17:00 UTC 2022 Andrew Clayton <a.clayton@nginx.com> Fixed main() prototypes in auto tests.
Future releases of GCC are planning to remove[0] default support for some old features that were removed from C99 but GCC still accepts.
We can test for these changes by using the following -Werror= directives
-Werror=implicit-int -Werror=implicit-function-declaration -Werror=int-conversion -Werror=strict-prototypes -Werror=old-style-definition
Doing so revealed an issue with the auto/ tests in that the test programs always define main as
int main()
rather than
int main(void)
which results in a bunch of errors like
build/autotest.c:3:23: error: function declaration isn't a prototype [-Werror=strict-prototypes] 3 | int main() { | ^~~~ build/autotest.c: In function 'main': build/autotest.c:3:23: error: old-style function definition [-Werror=old-style-definition]
The fix was easy, it only required fixing the main prototype with
find -type f -exec sed -i 's/int main() {/int main(void) {/g' {} \;
Regardless of these upcoming GCC changes, this is probably a good thing to do anyway for correctness.
[0]: https://fedoraproject.org/wiki/Changes/PortingToModernC
Link: <https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/CJXKTLXJUPZ4F2C2VQOTNMEA5JAUPMBD/> Link: <https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/6SGHPHPAXKCVJ6PUZ57WVDQ5TDBVIRMF/> Reviewed-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Andrew Clayton <a.clayton@nginx.com> diff 2228:f403dc1e3ec1 Thu Oct 27 23:17:00 UTC 2022 Andrew Clayton <a.clayton@nginx.com> Fixed main() prototypes in auto tests.
Future releases of GCC are planning to remove[0] default support for some old features that were removed from C99 but GCC still accepts.
We can test for these changes by using the following -Werror= directives
-Werror=implicit-int -Werror=implicit-function-declaration -Werror=int-conversion -Werror=strict-prototypes -Werror=old-style-definition
Doing so revealed an issue with the auto/ tests in that the test programs always define main as
int main()
rather than
int main(void)
which results in a bunch of errors like
build/autotest.c:3:23: error: function declaration isn't a prototype [-Werror=strict-prototypes] 3 | int main() { | ^~~~ build/autotest.c: In function 'main': build/autotest.c:3:23: error: old-style function definition [-Werror=old-style-definition]
The fix was easy, it only required fixing the main prototype with
find -type f -exec sed -i 's/int main() {/int main(void) {/g' {} \;
Regardless of these upcoming GCC changes, this is probably a good thing to do anyway for correctness.
[0]: https://fedoraproject.org/wiki/Changes/PortingToModernC
Link: <https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/CJXKTLXJUPZ4F2C2VQOTNMEA5JAUPMBD/> Link: <https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/6SGHPHPAXKCVJ6PUZ57WVDQ5TDBVIRMF/> Reviewed-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Andrew Clayton <a.clayton@nginx.com> 0:a63ceefd6ab0 Tue Jan 17 17:00:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Initial version.
|
H A D | time | diff 2228:f403dc1e3ec1 Thu Oct 27 23:17:00 UTC 2022 Andrew Clayton <a.clayton@nginx.com> Fixed main() prototypes in auto tests.
Future releases of GCC are planning to remove[0] default support for some old features that were removed from C99 but GCC still accepts.
We can test for these changes by using the following -Werror= directives
-Werror=implicit-int -Werror=implicit-function-declaration -Werror=int-conversion -Werror=strict-prototypes -Werror=old-style-definition
Doing so revealed an issue with the auto/ tests in that the test programs always define main as
int main()
rather than
int main(void)
which results in a bunch of errors like
build/autotest.c:3:23: error: function declaration isn't a prototype [-Werror=strict-prototypes] 3 | int main() { | ^~~~ build/autotest.c: In function 'main': build/autotest.c:3:23: error: old-style function definition [-Werror=old-style-definition]
The fix was easy, it only required fixing the main prototype with
find -type f -exec sed -i 's/int main() {/int main(void) {/g' {} \;
Regardless of these upcoming GCC changes, this is probably a good thing to do anyway for correctness.
[0]: https://fedoraproject.org/wiki/Changes/PortingToModernC
Link: <https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/CJXKTLXJUPZ4F2C2VQOTNMEA5JAUPMBD/> Link: <https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/6SGHPHPAXKCVJ6PUZ57WVDQ5TDBVIRMF/> Reviewed-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Andrew Clayton <a.clayton@nginx.com> diff 2228:f403dc1e3ec1 Thu Oct 27 23:17:00 UTC 2022 Andrew Clayton <a.clayton@nginx.com> Fixed main() prototypes in auto tests.
Future releases of GCC are planning to remove[0] default support for some old features that were removed from C99 but GCC still accepts.
We can test for these changes by using the following -Werror= directives
-Werror=implicit-int -Werror=implicit-function-declaration -Werror=int-conversion -Werror=strict-prototypes -Werror=old-style-definition
Doing so revealed an issue with the auto/ tests in that the test programs always define main as
int main()
rather than
int main(void)
which results in a bunch of errors like
build/autotest.c:3:23: error: function declaration isn't a prototype [-Werror=strict-prototypes] 3 | int main() { | ^~~~ build/autotest.c: In function 'main': build/autotest.c:3:23: error: old-style function definition [-Werror=old-style-definition]
The fix was easy, it only required fixing the main prototype with
find -type f -exec sed -i 's/int main() {/int main(void) {/g' {} \;
Regardless of these upcoming GCC changes, this is probably a good thing to do anyway for correctness.
[0]: https://fedoraproject.org/wiki/Changes/PortingToModernC
Link: <https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/CJXKTLXJUPZ4F2C2VQOTNMEA5JAUPMBD/> Link: <https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/6SGHPHPAXKCVJ6PUZ57WVDQ5TDBVIRMF/> Reviewed-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Andrew Clayton <a.clayton@nginx.com> 0:a63ceefd6ab0 Tue Jan 17 17:00:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Initial version.
|
/unit/test/node/write_before_write_head/ |
H A D | app.js | diff 1865:3c551b9721df Wed May 12 09:26:00 UTC 2021 Oisin Canty <o.canty@f5.com> Node.js: a shim for overriding "http" and "websocket" modules.
Also added stubs for Server.address() This was done to prevent crashes in some popular frameworks like express
Supports both CommonJS and the new ES Modules system syntax e.g:
app.js: const http = require('http')
app.mjs: import http from "http"
Usage on Node 14.16.x and higher: { "type": "external", "processes": {"spare": 0}, "working_directory": '/project', "executable": "/usr/bin/env", "arguments": [ "node", "--loader", "unit-http/require_shim.mjs" "--require", "unit-http/require_shim", "app.js" ] }
Usage on Node 14.15.x and lower: { "type": "external", "processes": {"spare": 0}, "working_directory": '/project', "executable": "/usr/bin/env", "arguments": [ "node", "--require", "unit-http/require_shim", "app.js" ] } diff 1865:3c551b9721df Wed May 12 09:26:00 UTC 2021 Oisin Canty <o.canty@f5.com> Node.js: a shim for overriding "http" and "websocket" modules.
Also added stubs for Server.address() This was done to prevent crashes in some popular frameworks like express
Supports both CommonJS and the new ES Modules system syntax e.g:
app.js: const http = require('http')
app.mjs: import http from "http"
Usage on Node 14.16.x and higher: { "type": "external", "processes": {"spare": 0}, "working_directory": '/project', "executable": "/usr/bin/env", "arguments": [ "node", "--loader", "unit-http/require_shim.mjs" "--require", "unit-http/require_shim", "app.js" ] }
Usage on Node 14.15.x and lower: { "type": "external", "processes": {"spare": 0}, "working_directory": '/project', "executable": "/usr/bin/env", "arguments": [ "node", "--require", "unit-http/require_shim", "app.js" ] } diff 1114:6d87da79ec4e Tue Aug 06 13:24:00 UTC 2019 Valentin Bartenev <vbart@nginx.com> Node.js: returning "this" from writeHead() to allow chaining.
In Node.js version 11.10.0 and later, the writeHead() function returns "this".
|
/unit/test/node/variables/ |
H A D | app.js | diff 1865:3c551b9721df Wed May 12 09:26:00 UTC 2021 Oisin Canty <o.canty@f5.com> Node.js: a shim for overriding "http" and "websocket" modules.
Also added stubs for Server.address() This was done to prevent crashes in some popular frameworks like express
Supports both CommonJS and the new ES Modules system syntax e.g:
app.js: const http = require('http')
app.mjs: import http from "http"
Usage on Node 14.16.x and higher: { "type": "external", "processes": {"spare": 0}, "working_directory": '/project', "executable": "/usr/bin/env", "arguments": [ "node", "--loader", "unit-http/require_shim.mjs" "--require", "unit-http/require_shim", "app.js" ] }
Usage on Node 14.15.x and lower: { "type": "external", "processes": {"spare": 0}, "working_directory": '/project', "executable": "/usr/bin/env", "arguments": [ "node", "--require", "unit-http/require_shim", "app.js" ] } diff 1865:3c551b9721df Wed May 12 09:26:00 UTC 2021 Oisin Canty <o.canty@f5.com> Node.js: a shim for overriding "http" and "websocket" modules.
Also added stubs for Server.address() This was done to prevent crashes in some popular frameworks like express
Supports both CommonJS and the new ES Modules system syntax e.g:
app.js: const http = require('http')
app.mjs: import http from "http"
Usage on Node 14.16.x and higher: { "type": "external", "processes": {"spare": 0}, "working_directory": '/project', "executable": "/usr/bin/env", "arguments": [ "node", "--loader", "unit-http/require_shim.mjs" "--require", "unit-http/require_shim", "app.js" ] }
Usage on Node 14.15.x and lower: { "type": "external", "processes": {"spare": 0}, "working_directory": '/project', "executable": "/usr/bin/env", "arguments": [ "node", "--require", "unit-http/require_shim", "app.js" ] } diff 1114:6d87da79ec4e Tue Aug 06 13:24:00 UTC 2019 Valentin Bartenev <vbart@nginx.com> Node.js: returning "this" from writeHead() to allow chaining.
In Node.js version 11.10.0 and later, the writeHead() function returns "this".
|
/unit/test/node/promise_handler/ |
H A D | app.js | diff 1865:3c551b9721df Wed May 12 09:26:00 UTC 2021 Oisin Canty <o.canty@f5.com> Node.js: a shim for overriding "http" and "websocket" modules.
Also added stubs for Server.address() This was done to prevent crashes in some popular frameworks like express
Supports both CommonJS and the new ES Modules system syntax e.g:
app.js: const http = require('http')
app.mjs: import http from "http"
Usage on Node 14.16.x and higher: { "type": "external", "processes": {"spare": 0}, "working_directory": '/project', "executable": "/usr/bin/env", "arguments": [ "node", "--loader", "unit-http/require_shim.mjs" "--require", "unit-http/require_shim", "app.js" ] }
Usage on Node 14.15.x and lower: { "type": "external", "processes": {"spare": 0}, "working_directory": '/project', "executable": "/usr/bin/env", "arguments": [ "node", "--require", "unit-http/require_shim", "app.js" ] } diff 1865:3c551b9721df Wed May 12 09:26:00 UTC 2021 Oisin Canty <o.canty@f5.com> Node.js: a shim for overriding "http" and "websocket" modules.
Also added stubs for Server.address() This was done to prevent crashes in some popular frameworks like express
Supports both CommonJS and the new ES Modules system syntax e.g:
app.js: const http = require('http')
app.mjs: import http from "http"
Usage on Node 14.16.x and higher: { "type": "external", "processes": {"spare": 0}, "working_directory": '/project', "executable": "/usr/bin/env", "arguments": [ "node", "--loader", "unit-http/require_shim.mjs" "--require", "unit-http/require_shim", "app.js" ] }
Usage on Node 14.15.x and lower: { "type": "external", "processes": {"spare": 0}, "working_directory": '/project', "executable": "/usr/bin/env", "arguments": [ "node", "--require", "unit-http/require_shim", "app.js" ] } diff 1114:6d87da79ec4e Tue Aug 06 13:24:00 UTC 2019 Valentin Bartenev <vbart@nginx.com> Node.js: returning "this" from writeHead() to allow chaining.
In Node.js version 11.10.0 and later, the writeHead() function returns "this".
|
/unit/pkg/docker/ |
H A D | Dockerfile.wasm | diff 2691:39009f55160d Wed Feb 21 13:10:00 UTC 2024 Andrew Clayton <a.clayton@nginx.com> Docker: Re-generate Dockerfile.wasm
This now includes support for the 'wasm-wasi-component' module.
This targets the upcoming 1.32.0 release which is required by wasm-wasi-component. However of course the 1.32.0 tag doesn't exist yet, so there will be a small window where this image won't build.
Signed-off-by: Andrew Clayton <a.clayton@nginx.com> diff 2691:39009f55160d Wed Feb 21 13:10:00 UTC 2024 Andrew Clayton <a.clayton@nginx.com> Docker: Re-generate Dockerfile.wasm
This now includes support for the 'wasm-wasi-component' module.
This targets the upcoming 1.32.0 release which is required by wasm-wasi-component. However of course the 1.32.0 tag doesn't exist yet, so there will be a small window where this image won't build.
Signed-off-by: Andrew Clayton <a.clayton@nginx.com> diff 2546:3a9046dca2a6 Wed Aug 23 11:29:00 UTC 2023 Andrei Zeliankou <zelenkov@nginx.com> Generated Dockerfiles for Unit 1.31.0.
|
/unit/test/php/auth/ |
H A D | index.php | 1742:0b6b58efc489 Thu Dec 10 19:28:00 UTC 2020 Andrei Zeliankou <zelenkov@nginx.com> Tests: added tests for PHP_AUTH_* variables.
|
/unit/pkg/deb/ |
H A D | Makefile.jsc16 | 1887:0a32914bf7bf Thu May 27 10:12:00 UTC 2021 Andrei Belov <defan@nginx.com> Packages: added Ubuntu 21.04 "hirsute" support.
|
/unit/pkg/deb/debian.module/ |
H A D | unit.example-jsc16-config | 1887:0a32914bf7bf Thu May 27 10:12:00 UTC 2021 Andrei Belov <defan@nginx.com> Packages: added Ubuntu 21.04 "hirsute" support.
|
H A D | unit.example-jsc17-config | 1887:0a32914bf7bf Thu May 27 10:12:00 UTC 2021 Andrei Belov <defan@nginx.com> Packages: added Ubuntu 21.04 "hirsute" support.
|