-
Notifications
You must be signed in to change notification settings - Fork 217
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
Make OS_strnlen public #928
Comments
Unfortunately the "quick fix" to expose this and just move the header had some unintended consequences, due increased dependencies in the CFE PSP files that used "osapi-common.h" causing them to fail to build coverage tests. Two options:
|
OK - this actually breaks more than PSP, it affects sample_lib too. Basically anything that has stubbed out C libraries and/or The only way for OSAL to provide this in a practical sense and make it coverage-testable would be to make it non-inline - but that would have a negative performance impact, it would require stubs, all sorts of fallout. My recommendation is to go with (1) - lets just leave it alone. Create your own local wrapper around |
- Removed all index/pointer accesses of message map and routing table - All references now via IDs and APIs - Note SB still owns destination logic (unchanged linear linked list) - Limited whitespace fixes for readability - Resolved observed instances of variables not declared at the start of functions - Cleaned comments - Resolved potential double locks in CFE_SB_SendPrevSubs - Route and message write to file no longer guaranteed in msgid order to maintain performance for large msgid space implementations - Removed unused CFE_SB_FindGlobalMsgIdCnt - Clarified CFE_PLATFORM_SB_MAX_MSG_IDS config param description - Eliminated potential race in CFE_SB_PipeDeleteFull - Individual destination removal debug events no longer reported during a CFE_SB_PipeDeleteFull
- Implementation for direct map and unsorted routing table - Includes full coverage tests - Removed msg key and route stack concepts from direct map
- Linking SBR with SB unit test, not stubbed - Confirms matching functionality (with updates for intended changes)
Is your feature request related to a problem? Please describe.
The OS_strnlen() wrapper could be useful for apps, because
strnlen
is not a standardized function, but many times this behavior is needed/desired when reading fixed size string buffers.An inline function exists in OSAL to provide a substitute but it is currently in an internal header.
Describe the solution you'd like
Move the function to the public header so apps can also use it.
Describe alternatives you've considered
Leave as is
Requester Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered: