summaryrefslogtreecommitdiff
path: root/lib/erl_interface/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | | 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.
* | | Merge branch 'kjell/erl_call/output_to_stdout/OTP-17132'Kjell Winblad2021-04-062-25/+163
|\ \ \ | | | | | | | | | | | | | | | | * kjell/erl_call/output_to_stdout/OTP-17132: erl_call: Add -fetch_stdout and -no_result_term options
| * | | erl_call: Add -fetch_stdout and -no_result_term optionsKjell Winblad2021-04-062-25/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/more-codechecker' againSverker Eriksson2021-03-151-9/+1
|\ \ \ \ | |/ / / |/| | |
| * | | erl_interface: Fix double free bugsSverker Eriksson2021-03-101-9/+1
| | | | | | | | | | | | | | | | | | | | introduced on master by eba460e73540d3e4efab1cfb2c739e215021f03c
* | | | erl_interface: Support new link protocolRickard Green2021-03-123-3/+110
|/ / /
* | | erl_interface: Fix rare memory leaks in connection handshakeSverker Eriksson2021-03-021-19/+32
| | |
* | | Merge branch 'lukas/erts/clang-sanatizer'Sverker Eriksson2021-02-183-9/+16
|\ \ \
| * | | erl_interface: Silence CodeChecker in ei_connect.cSverker Eriksson2021-02-181-6/+6
| | | | | | | | | | | | | | | | and remove unused *version argument to recv_challenge.
| * | | erl_interface: Silence CodeChecker in ei_format.cSverker Eriksson2021-02-182-0/+9
| | | |
| * | | erl_interface: Remove broken undoc feature in ei_connect_initSverker Eriksson2021-02-181-3/+1
| | | | | | | | | | | | | | | | | | | | Argument this_node_name as NULL did not work as it would lead to strlen(NULL) being called.
* | | | Remove erl_interface registryRickard Green2021-01-2736-2446/+2
|/ / /
* | | Merge branch 'maint'Rickard Green2021-01-121-10/+59
|\ \ \ | |/ / | | | | | | | | | | | | | | | * maint: Print large bignums in base 16 instead of in internal representation Print all 64-bit integers in base 10 Fix printing of bignums
| * | Print large bignums in base 16 instead of in internal representationRickard Green2021-01-111-12/+35
| | |
| * | Print all 64-bit integers in base 10Rickard Green2021-01-111-0/+17
| | |
| * | Fix printing of bignumsRickard Green2021-01-081-9/+18
| | |
* | | Support of 64-bit portsRickard Green2020-12-166-17/+58
| | |
* | | Merge DFLAG_BIG_PIDS and DFLAG_HUGE_REFS into DFLAG_V4_PIDS_REFSRickard Green2020-11-162-4/+2
| | |
* | | Merge branch 'rickard/alias/master/OTP-16718'Rickard Green2020-11-123-2/+8
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rickard/alias/master/OTP-16718: User defined tag in monitor messages Use alias in gen behaviours Introduce aliases for processes Introduce internal references containing pid of creator Allow huge remote references
| * \ \ Merge branch 'rickard/alias/OTP-16718' into rickard/alias/master/OTP-16718Rickard Green2020-11-123-2/+8
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rickard/alias/OTP-16718: User defined tag in monitor messages Use alias in gen behaviours Introduce aliases for processes Introduce internal references containing pid of creator Allow huge remote references
| | * | | Allow huge remote referencesRickard Green2020-11-033-3/+9
| | |/ / | | | | | | | | | | | | | | | | We previously only allowed references with 3 number words. This has now been increased to 5.
* | | | otp: Remove all purify supportSverker Eriksson2020-11-092-25/+4
| | | | | | | | | | | | | | | | | | | | | | | | not used the last decade. Build targets: purify, quantify and purecov.
* | | | otp: Remove HiPE and HiPE-related accessoriesJohn Högberg2020-11-091-49/+6
|/ / /
* | | Since the string from strerror should never be modified, use const.Philipp Klaus Krause2020-10-141-2/+2
| | |
* | | Merge PR-2680 from sverker/64-bit-pids/OTP-16720Sverker Eriksson2020-08-124-5/+7
|\ \ \ | |/ / |/| | Prepare for 64-bit pids
| * | erl_interface: Accept 64 bit external pidsSverker Eriksson2020-08-124-5/+7
| | |
* | | Merge branch 'lukas/kernel/remsh/OTP-16783/OTP-16784/OTP-16785/OTP-16786' ↵Lukas Larsson2020-08-101-0/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into maint * lukas/kernel/remsh/OTP-16783/OTP-16784/OTP-16785/OTP-16786: port_please/2 and port_please/3 can return closed ei: Fix erl_call -R -address host:port kernel: Fix -erl_epmd_port to work properly kernel: Allow '-remsh nodename' without the hostname
| * | | ei: Fix erl_call -R -address host:portLukas Larsson2020-06-231-0/+6
| | | |
* | | | Merge PR-2678 from ↵Sverker Eriksson2020-07-021-4/+2
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | sverker/erl_interface/ei_get_type-float-fix/ERL-1288/OTP-16753 Fix ei_get_type to set *size to zero for floats, pids, ports and refs
| * | | erl_interface: Fix ei_get_type to set *size to zero for othersSverker Eriksson2020-06-301-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | according to docs. This will fix zero *size for floats, pids, ports and refs which was previously unset.
* | | | ei: Pass correct null cookie when removing ei infoLukas Larsson2020-06-231-1/+1
| |/ / |/| | | | | | | | | | | Without this the program would crash with a segfault as the cookie ptr is assumed to always be a valid string.
* | | Haiku lacks gethostid tooCalvin Buckley2020-06-081-3/+3
|/ /
* | erl_interface: Fix misc src in makefileRickard Green2020-05-071-1/+1
| |
* | Merge branch 'rickard/ei-bug-fix/OTP-16623'Rickard Green2020-05-051-0/+5
|\ \ | | | | | | | | | | | | * rickard/ei-bug-fix/OTP-16623: Fix type set by ei_decode_ei_term()
| * | Fix type set by ei_decode_ei_term()Rickard Green2020-05-051-0/+5
| | | | | | | | | | | | Set the ei_type field to the same types set by ei_get_type().
* | | Merge branch 'rickard/ei-improvements-cont/OTP-16594'Rickard Green2020-05-043-1/+393
|\ \ \ | | | | | | | | | | | | | | | | | | | | * rickard/ei-improvements-cont/OTP-16594: Introduce ei_cmp_pids(), ei_cmp_ports(), and ei_cmp_refs() Introduce ei_make_ref() and ei_make_pid()
| * | | Introduce ei_cmp_pids(), ei_cmp_ports(), and ei_cmp_refs()Rickard Green2020-05-042-1/+119
| | | |
| * | | Introduce ei_make_ref() and ei_make_pid()Rickard Green2020-05-041-0/+274
| | | |
* | | | Merge branch 'rickard/ei-bug-fix/OTP-16623'Rickard Green2020-05-0414-206/+337
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | * rickard/ei-bug-fix/OTP-16623: Verify the ref fits in ei_decode_ref() Do not modify 'self' in 'ei_cnode' structure after initialization Fix ei_rpc() Fix error checking in various ei functions
| * | | Verify the ref fits in ei_decode_ref()Rickard Green2020-05-021-0/+3
| | | |
| * | | Do not modify 'self' in 'ei_cnode' structure after initializationRickard Green2020-05-026-31/+18
| | | |
| * | | Fix ei_rpc()Rickard Green2020-04-271-14/+26
| | | |
| * | | Fix error checking in various ei functionsRickard Green2020-04-2711-159/+288
| | | |
* | | | Merge branch 'sverker/win-compile-warnings/OTP-15800'Sverker Eriksson2020-05-031-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sverker/win-compile-warnings/OTP-15800: odbc: Fix windows compiler warnings wx: Fix windows compiler warnings os_mon: Fix windows compiler warnings erl_interface: Fix windows compiler warnings erts: Fix int_drv use of type SOCKLEN_T erts: Use ERTS_SYS_FD_INVALID instead of -1 erts: Fix misc Windows C compiler warnings
| * | | | erl_interface: Fix windows compiler warningsSverker Eriksson2020-05-031-2/+2
| | | | |
* | | | | Merge branch 'sverker/win-compile-warnings-master/OTP-15800'Sverker Eriksson2020-05-032-15/+17
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-232-15/+17
| | | | | |
* | | | | | otp: Install erl_call into erts and toplevel binLukas Larsson2020-04-291-2/+0
| |_|_|/ / |/| | | | | | | | | | | | | | | | | | | We do this in order to make erl_call available even in systems that are not deployed with erl_interface.
* | | | | Merge pull request #2607 from ↵John Högberg2020-04-271-27/+84
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | jhogberg/john/erl_interface/erl_call-hostname-resolving/OTP-16604 erl_call: Assume localhost if own hostname resolution fails OTP-16624 OTP-16604
| * | | | erl_call: Add -timeout optionJohn Högberg2020-04-241-1/+37
| | | | |