summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaoshan Pang <baoshan.pang@windriver.com>2019-09-23 14:53:41 -0700
committerBaoshan Pang <baoshan.pang@windriver.com>2019-09-23 17:06:22 -0700
commit8d839010207a0e17fd374e00b725b142d0ac7cc0 (patch)
treec6bc1a7b84f6defce9b7fa17cb36ff098b277820
parentb4f42d540114b88e2ac36ecf48e48a1bba062281 (diff)
downloadrust-libc-8d839010207a0e17fd374e00b725b142d0ac7cc0.tar.gz
move rtpSpawn and RTP_ID_ERROR from libstd to libc
-rwxr-xr-xsrc/vxworks/mod.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vxworks/mod.rs b/src/vxworks/mod.rs
index 9307f36131..f1aff9d4bd 100755
--- a/src/vxworks/mod.rs
+++ b/src/vxworks/mod.rs
@@ -989,6 +989,7 @@ pub const SEEK_END: ::c_int = 2;
// rtpLibCommon.h
pub const VX_RTP_NAME_LENGTH: usize = 255;
+pub const RTP_ID_ERROR: ::RTP_ID = -1;
// h/public/unistd.h
pub const _SC_GETPW_R_SIZE_MAX: ::c_int = 21; // Via unistd.h
@@ -2071,6 +2072,15 @@ extern "C" {
// rtpLibCommon.h
pub fn rtpInfoGet(rtpId: ::RTP_ID, rtpStruct: *mut ::RTP_DESC) -> ::c_int;
+ pub fn rtpSpawn(
+ pubrtpFileName: *const ::c_char,
+ argv: *const *const ::c_char,
+ envp: *const *const ::c_char,
+ priority: ::c_int,
+ uStackSize: ::size_t,
+ options: ::c_int,
+ taskOptions: ::c_int,
+ ) -> RTP_ID;
// ioLib.h
pub fn _realpath(