summaryrefslogtreecommitdiff
path: root/lib/erl_interface/src/prog
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright yearErlang/OTP2023-05-151-1/+1
|
* erl_interface: Avoid warnings about safe sprintf usageFrej Drejhammar2023-05-021-4/+4
| | | | | | | | | | | | 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/OTP2022-02-151-1/+1
|
* Fix typos (repeated words) [doc] [ci skip]Marc-André Lafortune2022-02-051-1/+1
|
* Merge branch 'maint'Lukas Larsson2022-01-211-5/+0
|\
| * ei: Add --enable-ei-dynamic-libLukas Larsson2022-01-211-5/+0
| | | | | | | | | | This configure option makes it so that a shared library is build as well as the archive to be included in ei.
* | Merge branch 'maint'Rickard Green2021-12-151-1/+1
|\ \ | |/ | | | | | | * maint: Update copyright year
| * Update copyright yearRickard Green2021-12-151-1/+1
| |
* | Merge branch 'maint'Lukas Larsson2021-09-091-1/+3
|\ \ | |/
| * ei: Document allowed arguments to erl_call -aLukas Larsson2021-09-091-1/+3
| |
* | Adapt configure scripts to autoconf 2.71 (step 1)Rickard Green2021-06-141-8/+2
|/ | | | Replace obsolete macros and fix warnings
* 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.
* erl_call: Lift in erl_start.h and erl_start.cKjell Winblad2021-04-063-689/+622
| | | | | 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
|
* erl_call: Improve comment describing what erl_call doesKjell Winblad2021-04-061-4/+9
| | | | | Improve the comment in erl_call.c that describes the purpose of the file to more accurately describe what erl_call does.
* erl_call: Add -fetch_stdout and -no_result_term optionsKjell Winblad2021-04-061-9/+127
| | | | | | | | | | | | | | | | | | | | | | | This commit adds two options to the erl_call command line tool: * -fetch_stdout Executes the given code (provided by the -a or -e options) in a new process with a group leader that forwards all stdout (standard output) data so that it is printed to stdout of the erl_call process. This means that stdout data that is written during the execution of the called code, by the code and by descendant processes, will be forwarded (given that the group leader has not been changed by a call to erlang:group_leader/2). The printed data is UTF-8 encoded. * -fetch_stdout This option disables printing of the result term. In order to implement the first of these two options a new function called ei_xrpc_from has been added to erl_interface. This function is documented in the erl_interface documentation.
* Merge branch 'sverker/win-compile-warnings-master/OTP-15800'Sverker Eriksson2020-05-031-12/+12
|\ | | | | | | | | | | | | * sverker/win-compile-warnings-master/OTP-15800: erts: Change type ErlDrvEvent from long to SWord for sys-drivers erl_interface: Fix Windows C compiler warnings erts: Fix Windows C compiler warnings
| * erl_interface: Fix Windows C compiler warningsSverker Eriksson2020-04-231-12/+12
| |
* | erl_call: Add -timeout optionJohn Högberg2020-04-241-1/+37
| |
* | erl_call: Assume localhost if hostname resolution failsJohn Högberg2020-04-241-26/+47
|/
* erl_call: Add -R option for dynamic node nameSverker Eriksson2020-03-191-12/+18
|
* Merge branch 'maint'Rickard Green2020-03-133-3/+3
|\ | | | | | | | | * maint: Update copyright year
| * Update copyright yearRickard Green2020-03-133-3/+3
| |
* | Remove remaining VxWorks supportRickard Green2020-02-203-148/+9
| |
* | Merge branch 'kjell/erl_interface/remove_deprected/OTP-16328'Sverker Eriksson2020-02-191-251/+0
|\ \ | | | | | | | | | | | | | | | | | | * kjell/erl_interface/remove_deprected/OTP-16328: erl_interface: Remove module syntax for C functions in docs erl_interface: Fix broken doc links Remove erl_* functions from erl_interface etc
| * | Remove erl_* functions from erl_interface etcKjell Winblad2020-01-101-251/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit: * Removes the erl_interface functions that were scheduled for removal before the OTP 23 release * Removes the old erl_interface library (i.e., liberl_interface.a and *not* libei.a) * Removes references to the removed functions in the documentation * Updates code examples to use the newer ei_* functions instead of the removed erl_* functions * Changes the prefix of the erl_global_* functions to ei_global and modifies these functions so that they work without the removed functions
* | | Extend erl_call with a new flag to access a node at HOSTNAME:PORTKjell Winblad2019-12-191-23/+85
|/ / | | | | | | | | | | This commit adds the flag -address to the erl_call program. This flag makes it possible for the user to use erl_call to interact with a node even if no EPMD instance is running on the node's host.
* | erl_interface: Support 32-bit creation local cnodeSverker Eriksson2019-05-141-2/+1
|/ | | | This reverts revert-commit f824686c3c519ab00582bb1f854fdfda5e4b1240.
* erl_interface: Remove ei_get_type_internal()Sverker Eriksson2019-04-121-1/+0
| | | | same as ei_get_type()
* Revert "erl_interface: Support 32-bit creation local cnode"Sverker Eriksson2019-04-091-1/+2
| | | | This reverts commit 6454221ad87d1cd8fc877b424db3c4a8e9835577.
* erl_interface: Support 32-bit creation local cnodeSverker Eriksson2019-03-261-2/+1
|
* Merge branch 'maint'Rickard Green2019-03-193-54/+13
|\ | | | | | | | | | | | | | | * maint: Add smoke test for erl_call Add new api functions to ei_fake_prog Fix timeout value when waiting for emulator start Fix initialization of erl_call
| * Add new api functions to ei_fake_progRickard Green2019-03-181-1/+10
| | | | | | | | These functions were added in erl_interface-3.11
| * Fix timeout value when waiting for emulator startRickard Green2019-03-181-1/+1
| |
| * Fix initialization of erl_callRickard Green2019-03-181-52/+2
| | | | | | | | | | | | | | | | Previously erl_call relied on the implicit initialization made of the ei-lib if no explicit initialization had been done. This implicit initialization was utterly broken and was removed in erl_interface-3.11 (OTP 21.3) since it has been documented for a very long time that an explicit initialization is required.
* | Use ssh as the default remote shellRichard Carlsson2018-11-261-1/+1
|/
* stdlib: Move eval_str/1 from mod_esi to erl_evalHans Bolinder2018-06-071-2/+2
| | | | | | | | | | See also https://bugs.erlang.org/browse/ERL-634. The utility program `erl_call' in erl_interface used to call lib:eval_str/1, which is no longer present in Erlang/OTP 21.0. The lib module was eliminated in OTP-15072, see also https://github.com/erlang/otp/pull/1786.
* ERL-629 Do not free() module buffer until it has been usedJesper Eskilson2018-05-221-2/+9
|
* Update copyright yearRaimo Niskanen2017-05-041-1/+1
|
* This patch fixes the issue in which erlang fails to startDeepak Goel2017-03-221-1/+2
| | | | if the hostname is 64 characters on a linux system.
* erl_interface: Fix compile warning in erl_callBjörn-Egil Dahlberg2016-12-071-37/+36
|
* update copyright-yearHenrik Nord2016-03-155-5/+5
|
* Change license text to APLv2Bruce Yinhe2015-06-185-50/+55
|
* erl_interface: Change enum erlang_char_encoding to a typedefSverker Eriksson2013-02-071-1/+1
| | | | to make the API independent of the actual type of erlang_char_encoding
* Update copyright yearsBjörn-Egil Dahlberg2013-01-251-1/+1
|
* erl_interface: even more utf8 atom stuffSverker Eriksson2013-01-221-0/+6
|
* Update copyright yearsBjörn-Egil Dahlberg2011-03-111-1/+1
|