File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 89c4e3792ddc5b45706ea0e919806a248f7a87c3
2
+ refs/heads/master: 868669f420df66c6acd866391a855200efa4a5d6
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 210f0dcf007104240b2e286ed0b80cb4a61d7bae
5
5
refs/heads/try: 957472483d3a2f43c0e4f7c2056280a1022af93c
Original file line number Diff line number Diff line change @@ -4168,6 +4168,27 @@ pub mod funcs {
4168
4168
pub fn malloc ( size : size_t ) -> * mut c_void ;
4169
4169
pub fn realloc ( p : * mut c_void , size : size_t ) -> * mut c_void ;
4170
4170
pub fn free ( p : * mut c_void ) ;
4171
+
4172
+ /// Exits the running program in a possibly dangerous manner.
4173
+ ///
4174
+ /// # Unsafety
4175
+ ///
4176
+ /// While this forces your program to exit, it does so in a way that has
4177
+ /// consequences. This will skip all unwinding code, which means that anything
4178
+ /// relying on unwinding for cleanup (such as flushing and closing a buffer to a
4179
+ /// file) may act in an unexpected way.
4180
+ ///
4181
+ /// # Examples
4182
+ ///
4183
+ /// ```no_run
4184
+ /// extern crate libc;
4185
+ ///
4186
+ /// fn main() {
4187
+ /// unsafe {
4188
+ /// libc::exit(1);
4189
+ /// }
4190
+ /// }
4191
+ /// ```
4171
4192
pub fn exit ( status : c_int ) -> !;
4172
4193
pub fn _exit ( status : c_int ) -> !;
4173
4194
pub fn atexit ( cb : extern fn ( ) ) -> c_int ;
You can’t perform that action at this time.
0 commit comments