2021-06-03 17:58:24 +08:00
|
|
|
//! `signal()` is special on Linux and macOS that it's only supported within libstd.
|
2021-06-06 10:33:46 +02:00
|
|
|
//! The implementation is not complete enough to permit user code to call it.
|
2022-07-17 21:54:10 -04:00
|
|
|
//@ignore-target-windows: No libc on Windows
|
2021-06-03 17:58:24 +08:00
|
|
|
#![feature(rustc_private)]
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
unsafe {
|
|
|
|
libc::signal(libc::SIGPIPE, libc::SIG_IGN);
|
2022-07-11 11:44:55 +00:00
|
|
|
//~^ ERROR: unsupported operation: can't call foreign function: signal
|
2021-06-03 17:58:24 +08:00
|
|
|
}
|
|
|
|
}
|