| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| | |
This configure option makes it so that a shared library is
build as well as the archive to be included in ei.
|
|\ \
| |/
| |
| |
| | |
* maint:
Update copyright year
|
| | |
|
|\ \
| |/ |
|
| | |
|
|/
|
|
| |
Replace obsolete macros and fix warnings
|
|
|
|
|
| |
When doing a debug build we do not want the printouts
as they will mess with testcases.
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Improve the comment in erl_call.c that describes the purpose of the
file to more accurately describe what erl_call does.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| |
| |
| |
| |
| | |
* 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
|
| | |
|
| | |
|
|/ |
|
| |
|
|\
| |
| |
| |
| | |
* maint:
Update copyright year
|
| | |
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
* 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
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|/ /
| |
| |
| |
| |
| | |
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.
|
|/
|
|
| |
This reverts revert-commit f824686c3c519ab00582bb1f854fdfda5e4b1240.
|
|
|
|
| |
same as ei_get_type()
|
|
|
|
| |
This reverts commit 6454221ad87d1cd8fc877b424db3c4a8e9835577.
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| | |
* 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
|
| |
| |
| |
| | |
These functions were added in erl_interface-3.11
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/ |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
if the hostname is 64 characters on a linux system.
|
| |
|
| |
|
| |
|
|
|
|
| |
to make the API independent of the actual type of erlang_char_encoding
|
| |
|
| |
|
| |
|