Skip to content

Commit

Permalink
Merge pull request rust-lang#29 from Wind-River/cleanup
Browse files Browse the repository at this point in the history
remove rtp.rs and move rtpSpawn, RTP_ID_ERROR to libc
  • Loading branch information
n-salim committed Sep 23, 2019
2 parents cd88dae + b548814 commit 75ecbe2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 302 deletions.
1 change: 0 additions & 1 deletion src/libstd/sys/vxworks/process/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ pub use crate::ffi::OsString as EnvKey;
mod process_common;
#[path = "process_vxworks.rs"]
mod process_inner;
mod rtp;
5 changes: 2 additions & 3 deletions src/libstd/sys/vxworks/process/process_vxworks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use libc::{self, c_int, c_char};
use libc::{RTP_ID};
use crate::sys;
use crate::sys::cvt;
use crate::sys::process::rtp;
use crate::sys::process::process_common::*;
use crate::sys_common::thread;

Expand Down Expand Up @@ -53,7 +52,7 @@ impl Command {
t!(cvt(libc::chdir(cwd.as_ptr())));
}

let ret = rtp::rtpSpawn(
let ret = libc::rtpSpawn(
self.get_argv()[0], // executing program
self.get_argv().as_ptr() as *const _, // argv
*sys::os::environ() as *const *const c_char,
Expand All @@ -78,7 +77,7 @@ impl Command {
libc::close(orig_stderr);
}

if ret != rtp::RTP_ID_ERROR {
if ret != libc::RTP_ID_ERROR {
p.pid = ret;
Ok((p, ours))
} else {
Expand Down
298 changes: 0 additions & 298 deletions src/libstd/sys/vxworks/process/rtp.rs

This file was deleted.

0 comments on commit 75ecbe2

Please sign in to comment.