Skip to content

Commit 8d83901

Browse files
committed
move rtpSpawn and RTP_ID_ERROR from libstd to libc
1 parent b4f42d5 commit 8d83901

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
@@ -989,6 +989,7 @@ pub const SEEK_END: ::c_int = 2;
989989

990990
// rtpLibCommon.h
991991
pub const VX_RTP_NAME_LENGTH: usize = 255;
992+
pub const RTP_ID_ERROR: ::RTP_ID = -1;
992993

993994
// h/public/unistd.h
994995
pub const _SC_GETPW_R_SIZE_MAX: ::c_int = 21; // Via unistd.h
@@ -2071,6 +2072,15 @@ extern "C" {
20712072

20722073
// rtpLibCommon.h
20732074
pub fn rtpInfoGet(rtpId: ::RTP_ID, rtpStruct: *mut ::RTP_DESC) -> ::c_int;
2075+
pub fn rtpSpawn(
2076+
pubrtpFileName: *const ::c_char,
2077+
argv: *const *const ::c_char,
2078+
envp: *const *const ::c_char,
2079+
priority: ::c_int,
2080+
uStackSize: ::size_t,
2081+
options: ::c_int,
2082+
taskOptions: ::c_int,
2083+
) -> RTP_ID;
20742084

20752085
// ioLib.h
20762086
pub fn _realpath(

0 commit comments

Comments
 (0)