We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5cd320 commit 0d1d978Copy full SHA for 0d1d978
library/std/src/sys/unix/stack_overflow.rs
@@ -161,24 +161,10 @@ mod imp {
161
stackp.add(page_size())
162
}
163
164
- #[cfg(any(
165
- target_os = "linux",
166
- target_os = "macos",
167
- target_os = "freebsd",
168
- target_os = "netbsd",
169
- target_os = "openbsd",
170
- target_os = "solaris",
171
- target_os = "illumos"
172
- ))]
173
unsafe fn get_stack() -> libc::stack_t {
174
libc::stack_t { ss_sp: get_stackp(), ss_flags: 0, ss_size: SIGSTKSZ }
175
176
177
- #[cfg(target_os = "dragonfly")]
178
- unsafe fn get_stack() -> libc::stack_t {
179
- libc::stack_t { ss_sp: get_stackp() as *mut i8, ss_flags: 0, ss_size: SIGSTKSZ }
180
- }
181
-
182
pub unsafe fn make_handler() -> Handler {
183
if !NEED_ALTSTACK.load(Ordering::Relaxed) {
184
return Handler::null();
0 commit comments