diff options
author | Lauri Aarnio <Lauri.Aarnio@iki.fi> | 2008-10-27 17:51:58 +0200 |
---|---|---|
committer | Lauri Leukkunen <lle@rahina.org> | 2008-11-02 18:59:55 +0200 |
commit | 823380458b6e3363a3a6ae1b91272f45161d2edf (patch) | |
tree | 4f74b7a53a0d0608e9c5d84e48563c167778ddd9 /include | |
parent | c7596e61d2985b7bf73606418b8fa2133f4ce937 (diff) |
Optimized use of sb2's own environment variables - __SB2_BINARYNAME and __SB2_REAL_BINARYNAME are now copied to global vars at startup (previously those were fetched by getenv() before every call to Lua functions, which is unsafe and slow) - env.var. SBOX_EMULATE_SB1_BUGS was replaced by conf.var. sbox_emulate_sb1_bugs
Diffstat (limited to 'include')
-rw-r--r-- | include/sb2.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sb2.h b/include/sb2.h index 503803b..dd0ffae 100644 --- a/include/sb2.h +++ b/include/sb2.h @@ -92,6 +92,8 @@ extern void sb2_initialize_global_variables(void); extern char *sbox_session_dir; extern char *sbox_orig_ld_preload; extern char *sbox_orig_ld_library_path; +extern char *sbox_binary_name; +extern char *sbox_real_binary_name; extern int pthread_library_is_available; /* flag */ extern pthread_t (*pthread_self_fnptr)(void); |