Skip to content

Commit d24d008

Browse files
committed
---
yaml --- r: 174213 b: refs/heads/batch c: 868669f h: refs/heads/master i: 174211: 26d7e28 v: v3
1 parent 9f5a51a commit d24d008

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
@@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
3030
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32-
refs/heads/batch: 89c4e3792ddc5b45706ea0e919806a248f7a87c3
32+
refs/heads/batch: 868669f420df66c6acd866391a855200efa4a5d6
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 44a287e6eb22ec3c2a687fc156813577464017f7
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

branches/batch/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)