-
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
osal Integration candidate: Caelum-rc4+dev54 #1400
Conversation
Replace these with long and unsigned long, respectively, as some old systems might not have these types even if it does provide stdint.h
Add OS_SocketBindAddress() and OS_SocketListen() to allow users to bind an address without also calling listen(). The use case is for client side connections where the source port needs to be controlled.
Fix #1396, do not use intmax_t/uintmax_t types
Fix #1398, separate bind and listen calls for streams
af7b78a
to
7a9c7e6
Compare
@@ -417,7 +417,7 @@ | |||
return TempBuf; | |||
} | |||
|
|||
static bool UtAssert_DoCompare(intmax_t ActualValueIn, UtAssert_Compare_t CompareType, UT_IntCheck_t ReferenceValueIn, | |||
static bool UtAssert_DoCompare(long ActualValueIn, UtAssert_Compare_t CompareType, UT_IntCheck_t ReferenceValueIn, |
Check notice
Code scanning / CodeQL
Long function without assertion Note
@@ -417,7 +417,7 @@ | |||
return TempBuf; | |||
} | |||
|
|||
static bool UtAssert_DoCompare(intmax_t ActualValueIn, UtAssert_Compare_t CompareType, UT_IntCheck_t ReferenceValueIn, | |||
static bool UtAssert_DoCompare(long ActualValueIn, UtAssert_Compare_t CompareType, UT_IntCheck_t ReferenceValueIn, |
Check notice
Code scanning / CodeQL
Function too long Note
* See description in API and header file for detail | ||
* | ||
*-----------------------------------------------------------------*/ | ||
int32 OS_SocketBindAddress(osal_id_t sock_id, const OS_SockAddr_t *Addr) |
Check notice
Code scanning / CodeQL
Long function without assertion Note
* Generated stub function for OS_SocketBindAddress() | ||
* ---------------------------------------------------- | ||
*/ | ||
int32 OS_SocketBindAddress(osal_id_t sock_id, const OS_SockAddr_t *Addr) |
Check notice
Code scanning / CodeQL
Long function without assertion Note
* See description in API and header file for detail | ||
* | ||
*-----------------------------------------------------------------*/ | ||
int32 OS_SocketListen(osal_id_t sock_id) |
Check notice
Code scanning / CodeQL
Long function without assertion Note
* Generated stub function for OS_SocketListen() | ||
* ---------------------------------------------------- | ||
*/ | ||
int32 OS_SocketListen(osal_id_t sock_id) |
Check notice
Code scanning / CodeQL
Long function without assertion Note
* See prototype for argument/return detail | ||
* | ||
*-----------------------------------------------------------------*/ | ||
int32 OS_SocketListen_Impl(const OS_object_token_t *token) |
Check notice
Code scanning / CodeQL
Long function without assertion Note
@@ -214,16 +214,14 @@ | |||
* See prototype for argument/return detail | |||
* | |||
*-----------------------------------------------------------------*/ | |||
int32 OS_SocketBind_Impl(const OS_object_token_t *token, const OS_SockAddr_t *Addr) | |||
int32 OS_SocketBindAddress_Impl(const OS_object_token_t *token, const OS_SockAddr_t *Addr) |
Check notice
Code scanning / CodeQL
Long function without assertion Note
Checklist (Please check before submitting)
Describe the contribution
Testing performed
cFS Bundle Checks
osal Checks
Expected behavior changes
See PRs
System(s) tested on
Ubuntu 20.04
Additional context
Add any other context about the contribution here.
Third party code
If included, identify any third party code and provide text file of license
Contributor Info - All information REQUIRED for consideration of pull request
@jphickey