Skip to content

Commit 97f6c67

Browse files
committed
move rtpSpawn and RTP_ID_ERROR from libstd to libc
1 parent 95b1e24 commit 97f6c67

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/vxworks/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,7 @@ pub const SEEK_END: ::c_int = 2;
968968

969969
// rtpLibCommon.h
970970
pub const VX_RTP_NAME_LENGTH: usize = 255;
971+
pub const RTP_ID_ERROR: ::RTP_ID = -1;
971972

972973
// h/public/unistd.h
973974
pub const _SC_GETPW_R_SIZE_MAX: ::c_int = 21; // Via unistd.h
@@ -2050,6 +2051,15 @@ extern "C" {
20502051

20512052
// rtpLibCommon.h
20522053
pub fn rtpInfoGet(rtpId: ::RTP_ID, rtpStruct: *mut ::RTP_DESC) -> ::c_int;
2054+
pub fn rtpSpawn(
2055+
pubrtpFileName: *const ::c_char,
2056+
argv: *const *const ::c_char,
2057+
envp: *const *const ::c_char,
2058+
priority: ::c_int,
2059+
uStackSize: ::size_t,
2060+
options: ::c_int,
2061+
taskOptions: ::c_int,
2062+
) -> RTP_ID;
20532063

20542064
// ioLib.h
20552065
pub fn _realpath(

0 commit comments

Comments
 (0)