diff options
| author | Tamir Duberstein <tamird@gmail.com> | 2015-04-20 18:50:20 -0700 | 
|---|---|---|
| committer | Tamir Duberstein <tamird@gmail.com> | 2015-04-21 08:16:02 -0700 | 
| commit | 32e5f4948f0f40f54de2a790cd8665ac40b134a9 (patch) | |
| tree | 4bf66cb28c34931589b295cd2767f83d3691d5f8 /src/libstd/sys/unix/helper_signal.rs | |
| parent | 77acda1c8ee75f9eb923ddd811ee591951b2d43f (diff) | |
| download | rust-32e5f4948f0f40f54de2a790cd8665ac40b134a9.tar.gz rust-32e5f4948f0f40f54de2a790cd8665ac40b134a9.zip | |
Remove unused files
Looks like these were missed in bf4e77d.
Diffstat (limited to 'src/libstd/sys/unix/helper_signal.rs')
| -rw-r--r-- | src/libstd/sys/unix/helper_signal.rs | 31 | 
1 files changed, 0 insertions, 31 deletions
| diff --git a/src/libstd/sys/unix/helper_signal.rs b/src/libstd/sys/unix/helper_signal.rs deleted file mode 100644 index fe0ede80fc6..00000000000 --- a/src/libstd/sys/unix/helper_signal.rs +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2014 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or -// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license -// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. - -#![allow(deprecated)] - -use libc; -use sys::os; - -use sys::fs::FileDesc; - -pub type signal = libc::c_int; - -pub fn new() -> (signal, signal) { - let (a, b) = unsafe { os::pipe().unwrap() }; - (a.unwrap(), b.unwrap()) -} - -pub fn signal(fd: libc::c_int) { - FileDesc::new(fd, false).write(&[0]).unwrap(); -} - -pub fn close(fd: libc::c_int) { - let _fd = FileDesc::new(fd, true); -} | 
