rust/src/rt/rust_env.h
Brian Anderson 4ef1ec580a Do all runtime calls to getenv at initialization
getenv is not threadsafe and (maybe as a result) it's randomly crashing with
CFLAGS=-g and RUST_THREADS=32. Calls from rust code are still on their
own.
2011-07-28 12:23:01 -07:00

12 lines
224 B
C

struct rust_env {
size_t num_sched_threads;
size_t min_stack_size;
char* logspec;
bool check_claims;
bool detailed_leaks;
char* rust_seed;
};
rust_env* load_env();
void free_env(rust_env *rust_env);