diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-01-22 12:53:35 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-01-26 23:47:39 -0800 |
| commit | a5561ce2b94c33add47d288e1826183c511ec9fa (patch) | |
| tree | 14e4e5f4daabb28b66b7c4a58d7f08e930d2a3b7 /src/liballoc_jemalloc/pthread_atfork_dummy.c | |
| parent | 025fb7de09dfcf5fbc19c5d1b6bed168ac987e6c (diff) | |
| download | rust-a5561ce2b94c33add47d288e1826183c511ec9fa.tar.gz rust-a5561ce2b94c33add47d288e1826183c511ec9fa.zip | |
rustc: Don't export builtins/panic/alloc syms
This hides symbols from various unstable and implementation-detail crates of the standard library. Although typically transitive exported `pub extern` functions are exported from cdylibs, these crates aren't necessary as they're all implementation details. Closes #34493
Diffstat (limited to 'src/liballoc_jemalloc/pthread_atfork_dummy.c')
| -rw-r--r-- | src/liballoc_jemalloc/pthread_atfork_dummy.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/liballoc_jemalloc/pthread_atfork_dummy.c b/src/liballoc_jemalloc/pthread_atfork_dummy.c new file mode 100644 index 00000000000..f798afe741f --- /dev/null +++ b/src/liballoc_jemalloc/pthread_atfork_dummy.c @@ -0,0 +1,6 @@ +// See comments in build.rs for why this exists +int pthread_atfork(void* prefork, + void* postfork_parent, + void* postfork_child) { + return 0; +} |
