aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_utils.h
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2013-07-04 17:44:23 +0200
committerRickard Green <[email protected]>2013-07-09 14:39:04 +0200
commit604d320f23c42c349f3f44710bcbc05fde7db661 (patch)
treef5f878652907634a2f9182cd1dc8a8ec66fc9175 /erts/emulator/beam/erl_utils.h
parent8cece79b77952c991e62ae595bcf71cde016a052 (diff)
downloadotp-604d320f23c42c349f3f44710bcbc05fde7db661.tar.gz
otp-604d320f23c42c349f3f44710bcbc05fde7db661.tar.bz2
otp-604d320f23c42c349f3f44710bcbc05fde7db661.zip
Make emulator arguments available via the system_info BIF
erlang:system_info(emu_args)
Diffstat (limited to 'erts/emulator/beam/erl_utils.h')
-rw-r--r--erts/emulator/beam/erl_utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_utils.h b/erts/emulator/beam/erl_utils.h
index a2064bd8a3..79c5105d92 100644
--- a/erts/emulator/beam/erl_utils.h
+++ b/erts/emulator/beam/erl_utils.h
@@ -24,6 +24,8 @@
#include "erl_smp.h"
#include "erl_printf.h"
+struct process;
+
typedef struct {
#ifdef DEBUG
int smp_api;
@@ -155,6 +157,8 @@ Uint32 block_hash(byte *, unsigned, Uint32);
Uint32 make_hash2(Eterm);
Uint32 make_hash(Eterm);
+void erts_save_emu_args(int argc, char **argv);
+Eterm erts_get_emu_args(struct process *c_p);
Eterm erts_bld_atom(Uint **hpp, Uint *szp, char *str);
Eterm erts_bld_uint(Uint **hpp, Uint *szp, Uint ui);