Skip to content

Commit 75ecbe2

Browse files
authored
Merge pull request rust-lang#29 from Wind-River/cleanup
remove rtp.rs and move rtpSpawn, RTP_ID_ERROR to libc
2 parents cd88dae + b548814 commit 75ecbe2

File tree

3 files changed

+2
-302
lines changed

3 files changed

+2
-302
lines changed

src/libstd/sys/vxworks/process/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ pub use crate::ffi::OsString as EnvKey;
55
mod process_common;
66
#[path = "process_vxworks.rs"]
77
mod process_inner;
8-
mod rtp;

src/libstd/sys/vxworks/process/process_vxworks.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use libc::{self, c_int, c_char};
33
use libc::{RTP_ID};
44
use crate::sys;
55
use crate::sys::cvt;
6-
use crate::sys::process::rtp;
76
use crate::sys::process::process_common::*;
87
use crate::sys_common::thread;
98

@@ -53,7 +52,7 @@ impl Command {
5352
t!(cvt(libc::chdir(cwd.as_ptr())));
5453
}
5554

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

81-
if ret != rtp::RTP_ID_ERROR {
80+
if ret != libc::RTP_ID_ERROR {
8281
p.pid = ret;
8382
Ok((p, ours))
8483
} else {

src/libstd/sys/vxworks/process/rtp.rs

-298
This file was deleted.

0 commit comments

Comments
 (0)