Skip to content
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: 2021-01-12 #750

Merged
merged 34 commits into from
Jan 13, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
ce8e85c
Fix #702, use iterators instead of for loops
jphickey Dec 21, 2020
29e1fd5
Fix #645, implement separate lock/unlock key
jphickey Dec 21, 2020
a7529cf
Fix #703, implement exclusive/reserved lock
jphickey Dec 22, 2020
7ba42a6
Fix #642, make OS_TaskDelete synchronous
jphickey Dec 22, 2020
c821c37
Fix #703, unit test updates
jphickey Dec 22, 2020
ed990e7
Fix #697, use POSIX dir implementation on VxWorks6
jphickey Dec 28, 2020
e175530
Fix #580, improve FS_BASED mounts on VxWorks
jphickey Dec 28, 2020
fcfba48
Fix #708, chmod error handling
jphickey Dec 28, 2020
b5863b7
Fix #471, order of operations for delete all
jphickey Jun 4, 2020
d81c5ab
Fix #445, add pointer parameter checks
jphickey Dec 29, 2020
b04c4ff
Fix #573, add OS_FileSysStatVolume
jphickey Dec 29, 2020
847a6d2
Fix #544, add pointer check
jphickey Dec 29, 2020
b82270f
Fix #606, Resolve cast-align error in VxWorks OS_TaskGetId_Impl
skliper Dec 29, 2020
ccbaca0
Fix #429, update OSAL code to use time accessors
jphickey Dec 30, 2020
779d3e3
Fix #429, check time conversions in coverage test
jphickey Jan 4, 2021
5881078
Fix #644, Remove alignment macros
skliper Jan 4, 2021
f09c57e
Fix #429, add "assemble" routines for milli/microsecs
jphickey Jan 7, 2021
ccbbcac
Merge pull request #704 from jphickey/fix-642-645-702-703
jphickey Jan 11, 2021
efd7f35
Fix #732 change uint32 to size_t
zanzaben Jan 4, 2021
2a6d368
Merge pull request #710 from jphickey/fix-708-chmod-err-handling
astrogeco Jan 12, 2021
08c1cf1
Merge pull request #716 from jphickey/fix-544-sendto-pointer
astrogeco Jan 12, 2021
3fcac5f
Merge pull request #717 from jphickey/fix-573-stat-volume
astrogeco Jan 12, 2021
35795ca
Merge pull request #711 from jphickey/fix-471-deleteall-order
astrogeco Jan 12, 2021
52aed2a
Merge pull request #709 from jphickey/fix-580-vxworks-fsbased-mount
astrogeco Jan 12, 2021
89bd11a
Merge pull request #720 from skliper/fix606_cast-align-err
astrogeco Jan 12, 2021
f12686f
Fix #755, resolve subtasks not ending on time
zanzaben Jan 12, 2021
2f2600f
Merge pull request #734 from skliper/fix644-rm_pack_align
astrogeco Jan 13, 2021
e9ff3a6
Merge pull request #706 from jphickey/fix-697-vxworks6-dir
astrogeco Jan 13, 2021
b1f1b27
Merge pull request #733 from zanzaben/Fix732_rtems_5_conflicting_types
astrogeco Jan 13, 2021
4e16b38
Merge pull request #715 from jphickey/fix-445-param-checks
astrogeco Jan 13, 2021
b30e58d
Merge pull request #723 from jphickey/fix-429-expand-ostimet
astrogeco Jan 13, 2021
f9dd6b3
HOTFIX IC-2021-01-12, Fix osal and usersguide doxygen warning
astrogeco Jan 13, 2021
eef2a3a
Merge pull request #756 from zanzaben/fix755_Select_Test_hanging
astrogeco Jan 13, 2021
fa80679
Bump to v5.1.0-rc1+dev184
astrogeco Jan 13, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/os/shared/src/osapi-sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ int32 OS_SocketSendTo(osal_id_t sock_id, const void *buffer, size_t buflen, cons
/* Check Parameters */
OS_CHECK_POINTER(buffer);
OS_CHECK_SIZE(buflen);
OS_CHECK_POINTER(RemoteAddr);

return_code = OS_ObjectIdGetById(OS_LOCK_MODE_REFCOUNT, LOCAL_OBJID_TYPE, sock_id, &token);
if (return_code == OS_SUCCESS)
Expand Down
10 changes: 9 additions & 1 deletion src/unit-test-coverage/shared/src/coveragetest-sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,17 @@ void Test_OS_SocketSendTo(void)
UtAssert_True(actual == expected, "OS_SocketSendTo() (%ld) == OS_SUCCESS", (long)actual);

expected = OS_INVALID_POINTER;
actual = OS_SocketSendTo(UT_OBJID_1, NULL, OSAL_SIZE_C(0), NULL);
actual = OS_SocketSendTo(UT_OBJID_1, NULL, sizeof(Buf), &Addr);
UtAssert_True(actual == expected, "OS_SocketSendTo(NULL) (%ld) == OS_INVALID_POINTER", (long)actual);

expected = OS_INVALID_POINTER;
actual = OS_SocketSendTo(UT_OBJID_1, &Buf, sizeof(Buf), NULL);
UtAssert_True(actual == expected, "OS_SocketSendTo(NULL) (%ld) == OS_INVALID_POINTER", (long)actual);

expected = OS_ERR_INVALID_SIZE;
actual = OS_SocketSendTo(UT_OBJID_1, &Buf, OSAL_SIZE_C(0), &Addr);
UtAssert_True(actual == expected, "OS_SocketSendTo(0) (%ld) == OS_ERR_INVALID_SIZE", (long)actual);

/*
* Should fail if not a datagram socket
*/
Expand Down