about summary refs log tree commit diff
path: root/src/libstd/sys/unix
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-04-21 15:23:11 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-04-21 15:23:11 -0700
commit59171f8ec8dce11329ed9bfaa73d5bbcf88f9a09 (patch)
tree4bcf93654923db52a4f421cabf533ea33d02c877 /src/libstd/sys/unix
parent1ec7ccb53c4ef00eff1e13ff50ec18f54400de4a (diff)
parent71bc70ea1b99f9eac5460b8560f90d1baac6385f (diff)
downloadrust-59171f8ec8dce11329ed9bfaa73d5bbcf88f9a09.tar.gz
rust-59171f8ec8dce11329ed9bfaa73d5bbcf88f9a09.zip
rollup merge of #24651: tamird/old-references
r? @alexcrichton
Diffstat (limited to 'src/libstd/sys/unix')
-rw-r--r--src/libstd/sys/unix/helper_signal.rs31
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);
-}