-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added vxworks libc references - worked on by danielmccormick and taeh…
…yun-lee
- Loading branch information
Showing
7 changed files
with
2,215 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
pub type c_long = i64; | ||
pub type c_ulong = u64; | ||
|
||
#[cfg(feature = "_WRS_KERNEL")] | ||
pub type _Vx_TASK_ID = *mut ::windTcb; | ||
|
||
#[cfg(feature = "_WRS_KERNEL")] | ||
s! { | ||
pub struct OBJ_CORE { | ||
pub handle : ::HANDLE, | ||
pub ownerList : ::DL_LIST, | ||
pub ownerNode : ::DL_NODE, | ||
pub classNode : ::DL_NODE, | ||
pub ownerId : *mut ::OBJ_CORE, | ||
pub ownerRtpId : ::RTP_ID, | ||
pub name : *mut ::c_char, | ||
pub pObjClass : *mut ::wind_class, | ||
pub objHandleList : ::DL_LIST, | ||
pub refCnt : u16, | ||
pub accessCnt : u16, | ||
pub padding : u32, // There is a chance that Rust automatically pads, but | ||
// no point in risking it | ||
} | ||
|
||
// semLibP.h | ||
pub struct semaphore { | ||
#[repr(align(16))] | ||
pub magic : ::OBJ_CORE, | ||
pub semType : u8, | ||
pub options : u8, | ||
pub recurse : u16, | ||
pub priInheritFlag : ::BOOL, | ||
pub qHead : ::Q_HEAD, | ||
pub state : ::size_t, //state is union of UINT and struct pointer | ||
pub events : ::EVENTS_RSRC, | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
pub type c_long = i32; | ||
pub type c_ulong = u32; | ||
|
||
#[cfg(feature = "_WRS_KERNEL")] | ||
pub type _Vx_TASK_ID = ::c_int; | ||
|
||
#[cfg(feature = "_WRS_KERNEL")] | ||
s! { | ||
pub struct OBJ_CORE { | ||
pub handle : ::HANDLE, | ||
pub ownerList : ::DL_LIST, | ||
pub ownerNode : ::DL_NODE, | ||
pub classNode : ::DL_NODE, | ||
pub ownerId : *mut ::OBJ_CORE, | ||
pub ownerRtpId : ::RTP_ID, | ||
pub name : *mut ::c_char, | ||
pub pObjClass : *mut ::wind_class, | ||
pub objHandleList : ::DL_LIST, | ||
pub refCnt : u16, | ||
pub accessCnt : u16, | ||
} | ||
|
||
// semLibP.h | ||
pub struct semaphore { | ||
#[repr(align(8))] | ||
pub magic : ::OBJ_CORE, | ||
pub semType : u8, | ||
pub options : u8, | ||
pub recurse : u16, | ||
pub priInheritFlag : ::BOOL, | ||
pub qHead : ::Q_HEAD, | ||
pub state : ::size_t, //state is union of UINT and struct pointer | ||
pub events : ::EVENTS_RSRC, | ||
} | ||
} |
Empty file.
Oops, something went wrong.