-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vxWorks adding few errnoLib related constants. #3780
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,6 +91,7 @@ pub type SEM_ID_KERNEL = ::OBJ_HANDLE; | |
pub type RTP_ID = ::OBJ_HANDLE; | ||
pub type SD_ID = ::OBJ_HANDLE; | ||
pub type CONDVAR_ID = ::OBJ_HANDLE; | ||
pub type STATUS = ::OBJ_HANDLE; | ||
|
||
// From vxTypes.h | ||
pub type _Vx_usr_arg_t = isize; | ||
|
@@ -613,6 +614,7 @@ pub const PTHREAD_STACK_MIN: usize = 4096; | |
pub const _PTHREAD_SHARED_SEM_NAME_MAX: usize = 30; | ||
|
||
// ERRNO STUFF | ||
pub const ERROR: ::c_int = -1; | ||
pub const OK: ::c_int = 0; | ||
pub const EPERM: ::c_int = 1; /* Not owner */ | ||
pub const ENOENT: ::c_int = 2; /* No such file or directory */ | ||
|
@@ -720,6 +722,33 @@ pub const S_nfsLib_NFSERR_SERVERFAULT: ::c_int = EIO; | |
pub const S_nfsLib_NFSERR_BADTYPE: ::c_int = M_nfsStat | nfsstat::NFSERR_BADTYPE as ::c_int; | ||
pub const S_nfsLib_NFSERR_JUKEBOX: ::c_int = M_nfsStat | nfsstat::NFSERR_JUKEBOX as ::c_int; | ||
|
||
// internal offset values for below constants | ||
const taskErrorBase: ::c_int = 0x00030000; | ||
const semErrorBase: ::c_int = 0x00160000; | ||
const objErrorBase: ::c_int = 0x003d0000; | ||
|
||
// taskLibCommon.h | ||
pub const S_taskLib_NAME_NOT_FOUND: ::c_int = taskErrorBase + 0x0065; | ||
pub const S_taskLib_TASK_HOOK_TABLE_FULL: ::c_int = taskErrorBase + 0x0066; | ||
pub const S_taskLib_TASK_HOOK_NOT_FOUND: ::c_int = taskErrorBase + 0x0067; | ||
pub const S_taskLib_ILLEGAL_PRIORITY: ::c_int = taskErrorBase + 0x0068; | ||
|
||
// FIXME: could also be useful for TASK_DESC type | ||
pub const VX_TASK_NAME_LENGTH: ::c_int = 31; | ||
|
||
// semLibCommon.h | ||
pub const S_semLib_INVALID_STATE: ::c_int = semErrorBase + 0x0065; | ||
pub const S_semLib_INVALID_OPTION: ::c_int = semErrorBase + 0x0066; | ||
pub const S_semLib_INVALID_QUEUE_TYPE: ::c_int = semErrorBase + 0x0067; | ||
pub const S_semLib_INVALID_OPERATION: ::c_int = semErrorBase + 0x0068; | ||
|
||
// objLibCommon.h | ||
pub const S_objLib_OBJ_ID_ERROR: ::c_int = objErrorBase + 0x0001; | ||
pub const S_objLib_OBJ_UNAVAILABLE: ::c_int = objErrorBase + 0x0002; | ||
pub const S_objLib_OBJ_DELETED: ::c_int = objErrorBase + 0x0003; | ||
pub const S_objLib_OBJ_TIMEOUT: ::c_int = objErrorBase + 0x0004; | ||
pub const S_objLib_OBJ_NO_METHOD: ::c_int = objErrorBase + 0x0005; | ||
Comment on lines
+746
to
+750
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These in objLibCommon.h |
||
|
||
// in.h | ||
pub const IPPROTO_IP: ::c_int = 0; | ||
pub const IPPROTO_IPV6: ::c_int = 41; | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are defined in semLibCommon.h