Skip to content

Commit 98a2516

Browse files
authored
Merge pull request #830 from nasa/integration-candidate
osal Integration candidate: 2021-02-23
2 parents ff4f523 + 498f3ea commit 98a2516

File tree

23 files changed

+791
-1366
lines changed

23 files changed

+791
-1366
lines changed

README.md

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,18 @@ The autogenerated OSAL user's guide can be viewed at <https://github.com/nasa/cF
1111

1212
## Version History
1313

14-
### Development Build: 5.1.0-rc1+dev262
14+
### Development Build: v5.1.0-rc1+dev280
15+
16+
- Makes tests skip after getting their first not implemented error.
17+
- Updates stub helpers to match the behavior of calling the default implementation stub macro (NULL VA list)
18+
- Removes redundant logic and assignment to fix static analysis warnings
19+
- Truncates at the end of the logic flow for socket name as opposed to possibly 3 different locations. Fixes static analysis warning.
20+
- Renames `timer_id` in unit tests to `local_timer_id` to avoid conflicts
21+
- Removes all deprecated elements
22+
- No behavior change. Renames `UT_Stub_CheckForceFail` to `UT_Stub_CheckDefaultReturnValue`, also only sets `Value` if not `NULL` (can pass in NULL value doesn't matter)
23+
- See <https://github.com/nasa/osal/pull/830>
24+
25+
### Development Build: v5.1.0-rc1+dev262
1526

1627
- Adds test cases for `OS_ObjectIdFinalizeDelete`, `OS_DeleteAllObjects`, and others to get 100% line and function coverage on VxWorks and shared/portable layers.
1728
- Ensures APIs check for `NULL` inputs or have documentation stating that a null value is allowed.
@@ -33,7 +44,7 @@ The autogenerated OSAL user's guide can be viewed at <https://github.com/nasa/cF
3344
- No behavior change, applies the standard formatting using `clang-format`
3445
- See <https://github.com/nasa/osal/pull/774>
3546

36-
### Development Build: 5.1.0-rc1+dev221
47+
### Development Build: v5.1.0-rc1+dev221
3748

3849
- Fixes `printf` format to correctly build in RTEMS-5.
3950
- **Deprecates `OS_fsBlocksFree()` and `OS_fsBytesFree()`** in favor of `OS_FileSysStatVolume()`.
@@ -52,7 +63,7 @@ The autogenerated OSAL user's guide can be viewed at <https://github.com/nasa/cF
5263
- Unit Test: Installs the modules used in unit testing and adds removal of post-test, left-over files.
5364
- See <https://github.com/nasa/osal/pulls/767>
5465

55-
### Development Build: 5.1.0-rc1+dev184
66+
### Development Build: v5.1.0-rc1+dev184
5667

5768
- Address issues with OSAL global table management:
5869
- use iterators whenever possible
@@ -78,7 +89,7 @@ The autogenerated OSAL user's guide can be viewed at <https://github.com/nasa/cF
7889
- Adds access functions to convert/extract different units from an OS_time_t value - so that other code in CFE/PSP/Apps can be updated to use the access functions and thereby not break when the internal time definition changes. Replaces the `int32` with `OS_time_t` in the "stat" structure used by the file module. Updates the pointer argument to `OS_SetLocalTime()` to be `const`. Prototype change of `OS_SetLocalTime()` should be backward compatible.
7990
- See <https://github.com/nasa/osal/pulls/750>
8091

81-
### Development Build: 5.1.0-rc1+dev149
92+
### Development Build: v5.1.0-rc1+dev149
8293

8394
- Document UtAssert_Message parameters, also adds "see also" note for helper macros.
8495
- Fix doxygen typo
@@ -88,7 +99,7 @@ The autogenerated OSAL user's guide can be viewed at <https://github.com/nasa/cF
8899
- Add cppcheck static analysis workflow to osal CI
89100
- See <https://github.com/nasa/osal/pull/744>
90101

91-
### Development Build: 5.1.0-rc1+dev132
102+
### Development Build: v5.1.0-rc1+dev132
92103

93104
- Convert the OSAL Configuration Guide from docx and pdf to a markdown file.
94105
- Test Tasks do not run at 100%. Move all definitions and instantiations out of the core-test header file and reuse the already-existing single task definition.
@@ -102,7 +113,7 @@ The autogenerated OSAL user's guide can be viewed at <https://github.com/nasa/cF
102113
- Adds support for VxWorks 7
103114
- See <https://github.com/nasa/osal/pull/690>
104115

105-
### Development Build: 5.1.0-rc1+dev109
116+
### Development Build: v5.1.0-rc1+dev109
106117

107118
- Add support for RTEMS 5.1 in the OSAL and provides defines and necessary ifdefs so RTEMS 4.11 can continue to be supported.
108119
- Adds functional test for OS_chmod
@@ -112,7 +123,7 @@ The autogenerated OSAL user's guide can be viewed at <https://github.com/nasa/cF
112123
- See <https://github.com/nasa/osal/pull/680>
113124

114125

115-
### Development Build: 5.1.0-rc1+dev91
126+
### Development Build: v5.1.0-rc1+dev91
116127

117128
- Rename `UT_SetForceFail` to `UT_SetDefaultReturnValue` since some functions that retain more than 1 value are not necessarily failing
118129
- Add a 5th timer to TimerTest functional to test the one shot (zero-length time interval) case.
@@ -122,7 +133,7 @@ The autogenerated OSAL user's guide can be viewed at <https://github.com/nasa/cF
122133
- See <https://github.com/nasa/osal/pull/662>
123134

124135

125-
### Development Build: 5.1.0-rc1+dev75
136+
### Development Build: v5.1.0-rc1+dev75
126137

127138
- Ensure that the handle is not NULL before invoking dlclose(). In particular the handle will be NULL for static modules. Shutdown after CTRL+C occurs normally (no segfault).
128139
- Add a "flags" parameter to OS_ModuleLoad() to indicate the desired symbol visibility:
@@ -131,7 +142,7 @@ The autogenerated OSAL user's guide can be viewed at <https://github.com/nasa/cF
131142
- CFE should use LOCAL flag for apps, and GLOBAL flags for libraries.
132143
- See <https://github.com/nasa/osal/pull/652>
133144

134-
### Development Build: 5.1.0-rc1+dev68
145+
### Development Build: v5.1.0-rc1+dev68
135146

136147
- When `OS_DEBUG` is enabled, this adds a message if mutex give/take actions occur outside the expected sequence. This informs the user (via the debug console) if a lock is taken more than once or if a lock is given by a different task than the one that originally took it:
137148
```
@@ -143,55 +154,55 @@ OS_MutSemTake():216:WARNING: Task 65547 taking mutex 327685 while owned by task
143154
- UtAssert macros now accept variable string arguments.The `UtAssert_True` wrapper around call is no longer needed to accommodate dynamic string output, thus removing the double assert. UtAssert macros will now be able to offer more information by themselves.
144155
- See <https://github.com/nasa/osal/pull/639>
145156

146-
### Development Build: 5.1.0-rc1+dev60
157+
### Development Build: v5.1.0-rc1+dev60
147158

148159
- Appliy standard formating, whitespace-only changes
149160
- See <https://github.com/nasa/osal/pull/627>
150161

151-
### Development Build: 5.1.0-rc1+dev55
162+
### Development Build: v5.1.0-rc1+dev55
152163

153164
- Deprecate `OS_open` and `OS_creat` to and replaced them with by `OS_OpenCreate`, which implements both functions via flags, and follows the correct OSAL API patterns.
154165
- Change use of uint32 for ID to the correct typedef. Also use ObjectIdFromInteger/ObjectIdToInteger where it is intended to convert these values to integers e.g. for the "name" fields in RTEMS.
155166
- See <https://github.com/nasa/osal/pull/621>
156167

157-
### Development Build: 5.1.0-rc1+dev49
168+
### Development Build: v5.1.0-rc1+dev49
158169

159170
- Adds an event callback mechanism to certain state changes in OSAL. This allows the CFE PSP to be notified at these points, and therefore it can add platform-specific functionality.
160171
- Correct issues involving recent OS_Milli2Ticks change.
161172
- See <https://github.com/nasa/osal/pull/612>
162173

163-
### Development Build: 5.1.0-rc1+dev44
174+
### Development Build: v5.1.0-rc1+dev44
164175

165176
- Removes OS_Tick2Micros and internalize OS_Milli2Ticks.
166177
- Adds ut_assert address equal macro.
167178
- See <https://github.com/nasa/osal/pull/607>
168179

169-
### Development Build: 5.1.0-rc1+dev38
180+
### Development Build: v5.1.0-rc1+dev38
170181

171182
- Sets Revision to 99 for development builds
172183
- See <https://github.com/nasa/osal/pull/600>
173184

174-
### Development Build: 5.1.0-rc1+dev34
185+
### Development Build: v5.1.0-rc1+dev34
175186

176187
- Move this existing function into the public API, as it is performs more verification than the OS_ConvertToArrayIndex function.
177188
- The C library type is signed, and this makes the result check work as intended.
178189
- See <https://github.com/nasa/osal/pull/596>
179190

180191

181-
### Development Build: 5.1.0-rc1+dev16
192+
### Development Build: v5.1.0-rc1+dev16
182193

183194
- In the next major OSAL release, this code will be no longer supported at all. It should be removed early in the cycle to avoid needing to maintain this compatibility code. This code was already conditional on the OSAL_OMIT_DEPRECATED flag and as such the CCB has already tested/verified running the code in this configuration as part of CI scripts. After this change, the build should be equivalent to the result of building with OMIT_DEPRECATED=true.
184195
- See <https://github.com/nasa/osal/pull/582>
185196

186-
### Development Build: 5.1.0-rc1+dev12
197+
### Development Build: v5.1.0-rc1+dev12
187198

188199
- Removes internal functions that are no longer used or defined but whose prototypes and stubs were still present in OS_ObjectIdMap
189200
- Removes repetitive clearing of the global ID and unlocking global table and replaces these with common implementation in the idmap source file. This moves deleting tables to be similar to creating tables and provides
190201
a common location for additional table-deletion-related logic.
191202
- Propagates return code from OS_TaskRegister_Impl(). If this routine fails then return the error to the caller, which also prevents the task from starting.
192203
- See <https://github.com/nasa/osal/pull/576>
193204

194-
### Development Build: 5.1.0-rc1+dev5
205+
### Development Build: v5.1.0-rc1+dev5
195206

196207
- Adds OSAL network APIs missing functional tests as well as tests for OS_TimedRead and OS_TimedWrite
197208
- Allows separate, dynamic registration of test setup and teardown routines which are executed before and after the normal test routine, which can create and delete any global/common test prerequisites.

src/os/inc/osapi-file.h

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -117,65 +117,6 @@ typedef enum
117117
* @{
118118
*/
119119

120-
#ifndef OSAL_OMIT_DEPRECATED
121-
122-
/*-------------------------------------------------------------------------------------*/
123-
/**
124-
* @brief Creates a file specified by path
125-
*
126-
* Creates a file specified by const char *path, with read/write
127-
* permissions by access. The file is also automatically opened by the
128-
* create call.
129-
*
130-
* @param[in] path File name to create
131-
* @param[in] access Intended access mode - see @ref OSFileAccess
132-
*
133-
* @note Valid handle IDs are never negative. Failure of this
134-
* call can be checked by testing if the result is less than 0.
135-
*
136-
* @return A file handle ID or appropriate error code, see @ref OSReturnCodes
137-
* @retval #OS_INVALID_POINTER if path is NULL
138-
* @retval #OS_FS_ERR_PATH_TOO_LONG if path exceeds the maximum number of chars
139-
* @retval #OS_FS_ERR_PATH_INVALID if path cannot be parsed
140-
* @retval #OS_FS_ERR_NAME_TOO_LONG if the name of the file is too long
141-
* @retval #OS_ERROR if permissions are unknown or OS call fails
142-
* @retval #OS_ERR_NO_FREE_IDS if there are no free file descriptors left
143-
*
144-
* @deprecated Replaced by OS_OpenCreate() with flags set to
145-
* OS_FILE_FLAG_CREATE | OS_FILE_FLAG_TRUNCATE.
146-
*/
147-
int32 OS_creat(const char *path, int32 access);
148-
149-
/*-------------------------------------------------------------------------------------*/
150-
/**
151-
* @brief Opens a file
152-
*
153-
* Opens a file.
154-
*
155-
* @param[in] path File name to create
156-
* @param[in] access Intended access mode - see @ref OSFileAccess
157-
* @param[in] mode The file permissions. This parameter is passed through to the
158-
* native open call, but will be ignored. The file mode (or permissions)
159-
* are ignored by the POSIX open call when the O_CREAT access flag is not passed in.
160-
*
161-
* @note Valid handle IDs are never negative. Failure of this
162-
* call can be checked by testing if the result is less than 0.
163-
*
164-
* @return A file handle ID or appropriate error code, see @ref OSReturnCodes
165-
* @retval #OS_INVALID_POINTER if path is NULL
166-
* @retval #OS_FS_ERR_PATH_TOO_LONG if path exceeds the maximum number of chars
167-
* @retval #OS_FS_ERR_PATH_INVALID if path cannot be parsed
168-
* @retval #OS_FS_ERR_NAME_TOO_LONG if the name of the file is too long
169-
* @retval #OS_ERROR if permissions are unknown or OS call fails
170-
* @retval #OS_ERR_NO_FREE_IDS if there are no free file descriptors left
171-
*
172-
* @deprecated Replaced by OS_OpenCreate() with flags set to
173-
* OS_FILE_FLAG_NONE.
174-
*/
175-
int32 OS_open(const char *path, int32 access, uint32 mode);
176-
177-
#endif
178-
179120
/*-------------------------------------------------------------------------------------*/
180121
/**
181122
* @brief Open or create a file

src/os/inc/osapi-filesys.h

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -188,52 +188,6 @@ int32 OS_rmfs(const char *devname);
188188
*/
189189
int32 OS_unmount(const char *mountpoint);
190190

191-
#ifndef OSAL_OMIT_DEPRECATED
192-
193-
/*-------------------------------------------------------------------------------------*/
194-
/**
195-
* @brief Obtain number of blocks free
196-
*
197-
* Returns the number of free blocks in a volume
198-
*
199-
* @param[in] name The device/path to operate on
200-
*
201-
* @return Block count or appropriate error code, see @ref OSReturnCodes
202-
* @retval #OS_INVALID_POINTER if name is NULL
203-
* @retval #OS_FS_ERR_PATH_TOO_LONG if the name is too long
204-
* @retval #OS_ERROR if the OS call failed
205-
*
206-
* @deprecated Replaced by OS_FileSysStatVolume() -
207-
* Value can be obtained by reading the "blocks_free" struct member.
208-
*
209-
*/
210-
int32 OS_fsBlocksFree(const char *name);
211-
212-
/*-------------------------------------------------------------------------------------*/
213-
/**
214-
* @brief Obtains the number of free bytes in a volume
215-
*
216-
* Returns the number of free bytes in a volume
217-
*
218-
* @note uses a 64 bit data type to support filesystems that
219-
* are greater than 4 Gigabytes
220-
*
221-
* @param[in] name The device/path to operate on
222-
* @param[out] bytes_free The number of free bytes
223-
*
224-
* @return Execution status, see @ref OSReturnCodes
225-
* @retval #OS_SUCCESS @copybrief OS_SUCCESS
226-
* @retval #OS_INVALID_POINTER if name is NULL
227-
* @retval #OS_FS_ERR_PATH_TOO_LONG if the name is too long
228-
* @retval #OS_ERROR if the OS call failed
229-
*
230-
* @deprecated Replaced by OS_FileSysStatVolume().
231-
* Value can be obtained by multiplying the "blocks_free" by the "block_size" struct members.
232-
*/
233-
int32 OS_fsBytesFree(const char *name, uint64 *bytes_free);
234-
235-
#endif /* OSAL_OMIT_DEPRECATED */
236-
237191
/*-------------------------------------------------------------------------------------*/
238192
/**
239193
* @brief Obtains information about size and free space in a volume

src/os/inc/osapi-os-core.h

Lines changed: 0 additions & 59 deletions
This file was deleted.

src/os/inc/osapi-os-filesys.h

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)