summaryrefslogtreecommitdiffhomepage
path: root/auto/shmem (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-06-18Use octal instead of mode macrosAlejandro Colomar1-4/+3
They are more readable. And we had a mix of both styles; there wasn't really a consistent style. Tested-by: Andrew Clayton <a.clayton@nginx.com> Reviewed-by: Andrew Clayton <a.clayton@nginx.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
2022-10-28Fixed main() prototypes in auto tests.Andrew Clayton1-4/+4
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>
2018-03-06Added support for shm_open(SHM_ANON) extension.Sergey Kandaurov1-0/+23
2018-01-11Fixed DragonFly BSD shared memory implementation.Igor Sysoev1-1/+48
2017-09-27Better checking for shm_open() during configure.Sergey Kandaurov1-7/+15
2017-08-31nginext has been renamed to unit.Igor Sysoev1-2/+2
2017-08-29Store and use NXT_LIBRT for go module.Max Romanov1-0/+1
2017-05-12Using shared memory to send data via nxt_port.Max Romanov1-0/+60
Usage: b = nxt_port_mmap_get_buf(task, port, size); b->mem.free = nxt_cpymem(b->mem.free, data, size); nxt_port_socket_write(task, port, NXT_PORT_MSG_DATA, -1, 0, b);