about summary refs log tree commit diff
path: root/src/liblibc
diff options
context:
space:
mode:
authorAaron Turon <aturon@mozilla.com>2014-11-24 17:22:40 -0800
committerAaron Turon <aturon@mozilla.com>2014-12-18 23:31:34 -0800
commitc009bfdf94a48434e1f6bf3bfe59cf539f464ee2 (patch)
tree1285f0852045384fbba6e3b9ea4e157fe06c321b /src/liblibc
parentb66681cd31674e1a2d0b9675ef8183c463470bb5 (diff)
downloadrust-c009bfdf94a48434e1f6bf3bfe59cf539f464ee2.tar.gz
rust-c009bfdf94a48434e1f6bf3bfe59cf539f464ee2.zip
Make at_exit initialize lazily
Diffstat (limited to 'src/liblibc')
-rw-r--r--src/liblibc/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs
index 8825099e36c..6ab00cfe8fa 100644
--- a/src/liblibc/lib.rs
+++ b/src/liblibc/lib.rs
@@ -138,7 +138,7 @@ pub use funcs::c95::stdio::{fread, freopen, fseek, fsetpos, ftell};
 pub use funcs::c95::stdio::{fwrite, perror, puts, remove, rename, rewind};
 pub use funcs::c95::stdio::{setbuf, setvbuf, tmpfile, ungetc};
 
-pub use funcs::c95::stdlib::{abs, atof, atoi, calloc, exit, _exit};
+pub use funcs::c95::stdlib::{abs, atof, atoi, calloc, exit, _exit, atexit};
 pub use funcs::c95::stdlib::{free, getenv, labs, malloc, rand};
 pub use funcs::c95::stdlib::{realloc, srand, strtod, strtol};
 pub use funcs::c95::stdlib::{strtoul, system};
@@ -4102,7 +4102,7 @@ pub mod funcs {
                 pub fn free(p: *mut c_void);
                 pub fn exit(status: c_int) -> !;
                 pub fn _exit(status: c_int) -> !;
-                // Omitted: atexit.
+                pub fn atexit(cb: extern fn()) -> c_int;
                 pub fn system(s: *const c_char) -> c_int;
                 pub fn getenv(s: *const c_char) -> *mut c_char;
                 // Omitted: bsearch, qsort