Skip to content

Commit eab0eac

Browse files
committed
---
yaml --- r: 174280 b: refs/heads/snap-stage3 c: 868669f h: refs/heads/master v: v3
1 parent bbd9cbe commit eab0eac

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: a833337943300db1c310a4cf9c84b7b4ef4e9468
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 89c4e3792ddc5b45706ea0e919806a248f7a87c3
4+
refs/heads/snap-stage3: 868669f420df66c6acd866391a855200efa4a5d6
55
refs/heads/try: 08f6380a9f0b866796080094f44fe25ea5636547
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/liblibc/lib.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4168,6 +4168,27 @@ pub mod funcs {
41684168
pub fn malloc(size: size_t) -> *mut c_void;
41694169
pub fn realloc(p: *mut c_void, size: size_t) -> *mut c_void;
41704170
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+
/// ```
41714192
pub fn exit(status: c_int) -> !;
41724193
pub fn _exit(status: c_int) -> !;
41734194
pub fn atexit(cb: extern fn()) -> c_int;

0 commit comments

Comments
 (0)