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