summaryrefslogtreecommitdiff
path: root/lib/erl_interface/src
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright yearErlang/OTP2023-05-151-1/+1
|
* erl_interface: Avoid warnings about safe sprintf usageFrej Drejhammar2023-05-022-6/+6
| | | | | | | | | | | | In erl_interface there are three uses of `sprintf` to construct host name strings. GCC 12 gives a `‘%s’ directive writing up to 254 bytes into a region of size between 1 and 256` warning at these locations, as it isn't smart enough to see that the manual bounds check is correct and that the write is safe. By switching to `snprintf` and removing the manual size calculation of the resulting string, we can both simplify the relevant code and avoid the warnings.
* Update copyright yearErlang/OTP2023-02-143-3/+3
|
* Merge branch 'maint' into masterSverker Eriksson2023-01-182-18/+106
|\
| * erl_interface: Accept ver5 distribution connection setupSverker Eriksson2023-01-172-18/+106
| | | | | | | | Partially reverts commit c804bd8c7f840ecfa2397c836235363c112d79b4.
* | Make new link protocol mandatoryRickard Green2022-06-132-3/+3
| |
* | Make version 4 external node container types mandatoryRickard Green2022-06-132-15/+8
|/
* Update copyright yearErlang/OTP2022-04-112-2/+2
|
* erl_interface: Remove old distribution handshakeSverker Eriksson2022-04-043-249/+52
|
* Merge branch 'maint'Sverker Eriksson2022-03-181-1/+4
|\
| * Merge 'sverker/erl_interface/supress-so-build' into maintSverker Eriksson2022-03-181-1/+4
| |\ | | | | | | | | | OTP-17987
| | * erl_interface: Avoid building dynamic libs by defaultSverker Eriksson2022-03-141-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | unless --enable-ei-dynamic-lib 96e8bea9c7f4e6071ae16588a6b2d3bbebff67f8 introduced --enable-ei-dynamic-lib, but always built dynamic libs and only suppressed _installation_ if not enabled.
* | | Merge branch 'maint'Sverker Eriksson2022-03-141-2/+5
|\ \ \ | |/ /
| * | Merge 'jdb/ei/fix-ei_resolve.c-compilation-for-Android' into maintSverker Eriksson2022-03-141-2/+5
| |\ \ | | |/ | |/| | | | OTP-17975
| | * ei: Fix ei_resolve.c compilation for AndroidJérôme de Bretagne2022-03-091-2/+5
| | |
| * | Update copyright yearErlang/OTP2022-03-091-1/+1
| |/
* | Update copyright yearErlang/OTP2022-02-158-8/+8
| |
* | Merge pull request #5398 from max-au/max-au/cleanup-vxworksRickard Green2022-02-113-6/+2
|\ \ | | | | | | vxworks: remove remaining traces
| * | vxworks: remove remaining tracesMaxim Fedorov2021-12-123-6/+2
| | | | | | | | | | | | Erlang/OTP no longer support VxWorks. Cleanup mentions to avoid confusion.
* | | Fix typos (repeated words) [doc] [ci skip]Marc-André Lafortune2022-02-054-4/+4
| | |
* | | Merge pull request #5597 from garazdawi/lukas/add-gh-actions-testing/OTP-17710Lukas Larsson2022-01-212-4/+5
|\ \ \ | | | | | | | | Add DEVELOPMENT.md and expand gh actions to run tests
| * | | otp: Fix `make TYPE=$TYPE` to work for all typesLukas Larsson2022-01-212-4/+5
| | | |
* | | | Merge branch 'maint'Lukas Larsson2022-01-211-2/+2
|\ \ \ \ | | |_|/ | |/| |
| * | | ei: Fix freebsd version checkLukas Larsson2022-01-211-2/+2
| | | |
* | | | Merge branch 'maint'Lukas Larsson2022-01-215-71/+70
|\ \ \ \ | |/ / / | | / / | |/ / |/| |
| * | ei: Add --enable-ei-dynamic-libLukas Larsson2022-01-215-71/+70
| | | | | | | | | | | | | | | This configure option makes it so that a shared library is build as well as the archive to be included in ei.
* | | Update copyright yearRickard Green2021-12-166-6/+6
| | |
* | | Merge branch 'maint'Rickard Green2021-12-1521-21/+21
|\ \ \ | |/ / | | | | | | | | | * maint: Update copyright year
| * | Update copyright yearRickard Green2021-12-1521-21/+21
| | |
* | | Fix typos in lib/erl_interfaceKian-Meng, Ang2021-12-149-17/+17
| |/ |/|
* | erl_interface: Remove undocumented ei_thiscreation()Sverker Eriksson2021-11-042-6/+0
| |
* | erl_interface: Avoid 0-creation valueSverker Eriksson2021-11-041-1/+5
| | | | | | | | as well as old tiny values 1,2,3.
* | erl_interface: Change 'creation' arg to from 16 to 32 bit integerSverker Eriksson2021-11-041-4/+4
| | | | | | | | | | | | | | | | This is technically an incompatible API change. But in practice with existing calling conventions it should work. We may get some garbage bits in the high 16 bits of the 'creation' argument, but that doesn't really matter as the actual value used for creation is not critical.
* | Merge branch 'maint'Lukas Larsson2021-09-091-1/+3
|\ \ | |/
| * ei: Document allowed arguments to erl_call -aLukas Larsson2021-09-091-1/+3
| |
* | Introduce a scheme for reusing mandatory distribution flagsBjörn Gustavsson2021-06-232-13/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During distribution connect setup between two nodes, the nodes exchange flags words encoding their capabilities. The connection setup is aborted if one of the node lacks a capability that the other node requires. In version 5 of the protocol (introduced in OTP R6), there are 32 possible capabilities (each encoded in a single bit). Since it seemed that we would soon run out of capabilitiy bits, protocol version 6 (introduced in OTP 23) expanded the number of possible capability bits to 64. To avoid having to extend the number of capabilites yet again from 64 to 128 in some future release, this commit introduces a scheme to allow reusing the bit numbers for capabilities that are now mandatory. The scheme is described in lib/kernel/include/dist.hrl. There are 10 mandatory capability bits as of OTP 25. This scheme will allow reusing 9 of those capability bits as early as in OTP 27.
* | Consolidate mandatory distribution flags across applicationsBjörn Gustavsson2021-06-234-35/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The three applications that supports Erlang distribution (erts, erl_interface, and jinterface), do not agree which the mandatory distribution flags are. For example, DFLAG_NEW_FLOATS (support for the "new" external format for floats introduced in R11B-5) is considered mandatory in erl_interface, but not in the Erlang emulator. jinterface does not test the flag, but encodes all floats in the new external format. Update erts, erl_interface, and jinterface to all use the same set of mandatory distribution flags. Also make the following distribution flags mandatory: * DFLAG_EXPORT_PTR_TAG * DFLAG_BIT_BINARIES * DFLAG_MAP_TAG Support for them in erl_interface and jinterface was added in OTP 22 or earlier. Making them mandatory allows us to remove ugly fallback code.
* | Move autoconf helpers from erts to make/autoconfRickard Green2021-06-153-4101/+0
| |
* | Adapt configure scripts to autoconf 2.71 (step 1)Rickard Green2021-06-144-37/+9
|/ | | | Replace obsolete macros and fix warnings
* Update configure scriptsRickard Green2021-05-193-0/+4101
|
* Merge branch 'lukas/24/testcase-fixes'Lukas Larsson2021-05-061-6/+6
|\ | | | | | | | | | | | | | | | | | | | | * lukas/24/testcase-fixes: ei: Put erl_call debug printsout behind HARD_DEBUG edoc: Fix eep48 suite when cover compiled kernel: Fix race in logger std h SUITE sync testcase erts: Fix dump_SUITE:signal_abort erts: Fix lcnt testcase after esock.protocols addition otp: Make public_key part of bootstrap erts: Fix perf_SUITE when unknown version
| * ei: Put erl_call debug printsout behind HARD_DEBUGLukas Larsson2021-05-041-6/+6
| | | | | | | | | | When doing a debug build we do not want the printouts as they will mess with testcases.
* | Merge branch 'maint'Lukas Larsson2021-05-041-10/+16
|\ \ | |/ |/|
| * Merge branch 'lukas/erl_interface/send-inf-tmo-fix/OTP-17358' into maintLukas Larsson2021-05-041-10/+16
| |\ | | | | | | | | | | | | * lukas/erl_interface/send-inf-tmo-fix/OTP-17358: ei: Correctly check timeout value vs EI_SCLBK_INF_TMO
| | * ei: Correctly check timeout value vs EI_SCLBK_INF_TMOLukas Larsson2021-05-031-10/+16
| | | | | | | | | | | | | | | | | | For the timeout (passed as `ms`) zero does not represent infinity, but rather no sleeping at all. So that is what we should check against and not 0.
* | | erl_call: Lift in erl_start.h and erl_start.cKjell Winblad2021-04-064-691/+623
| | | | | | | | | | | | | | | Lift in erl_start.h and erl_start.c into erl_call.c and remove erl_start.h and erl_start.c to make erl_call.c self contained.
* | | erl_call: Suppress code_checker warningsKjell Winblad2021-04-061-2/+26
| | |
* | | erl_call: Fix code_checker potential leak warning for hostname_port_argKjell Winblad2021-04-061-0/+8
| | |
* | | erl_call: Fix code_checker memory leak warnings for mod, fun and argsKjell Winblad2021-04-061-1/+8
| | |
* | | erl_call: Fix codechecker warning for flags leaksKjell Winblad2021-04-061-23/+44
| | |