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

Fix #623, Replace OS_FS_* return codes with common definitions #624

Merged
merged 2 commits into from
Apr 29, 2020

Conversation

dmknutsen
Copy link
Contributor

@dmknutsen dmknutsen commented Apr 17, 2020

Describe the contribution
Removed The following OS_FS* defines from osapi-os-filesys.h:
OS_FS_SUCCESS, OS_FS_ERROR , OS_FS_ERR_INVALID_POINTER, OS_FS_ERR_NO_FREE_FDS , OS_FS_ERR_INVALID_FD, and OS_FS_UNIMPLEMENTED

Fixes #623

Used sed to perform a bulk find/replace on each one to swap with common definitions.

Testing performed
Steps taken to test the contribution:

Ran unit tests.

Expected behavior changes
None

System(s) tested on
Oracle VM VirtualBox
OS: ubuntu-19.10
Versions: cFE 6.7.12.0, OSAL 5.0.11.0, PSP 1.4.7.0

**Contributor Info **
Dan Knutsen
NASA/Goddard

@@ -808,12 +808,12 @@
#define CFE_OS_ERR_INVALID_PRIORITY (OS_ERR_INVALID_PRIORITY) /**< @copydoc OS_ERR_INVALID_PRIORITY */
#define CFE_OS_ERROR_TASK_ID (OS_ERROR_TASK_ID) /**< @brief This doesn't actually exist */
#define CFE_OS_SEM_UNAVAILABLE (OS_SEM_UNAVAILABLE) /**< @brief This doesn't actually exist */
#define CFE_OS_FS_ERROR (OS_FS_ERROR) /**< @copydoc OS_FS_ERROR */
#define CFE_OS_FS_ERR_INVALID_POINTER (OS_FS_ERR_INVALID_POINTER) /**< @copydoc OS_FS_ERR_INVALID_POINTER */
#define CFE_OS_ERROR (OS_ERROR) /**< @copydoc OS_ERROR */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leave as CFE_OS_FS_ERROR, this whole group is deprecated in #582 but need to deprecate before removing. Same for CFE_OS_FS_ERR_INVALID_POINTER.

fsw/cfe-core/src/tbl/cfe_tbl_internal.h Outdated Show resolved Hide resolved
@dmknutsen dmknutsen changed the title Fix #623, Deprecates OS_FS_* defines that aren't unique to FS Fix #623, Removes OS_FS_* defines that aren't unique to FS Apr 17, 2020
@dmknutsen dmknutsen changed the title Fix #623, Removes OS_FS_* defines that aren't unique to FS Fix #623, Replace OS_FS_* return codes with common definitions Apr 17, 2020
@skliper skliper added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Apr 21, 2020
@astrogeco
Copy link
Contributor

CCB 20200422 - APPROVED

@astrogeco astrogeco added CCB - 20200422 CCB:Approved Indicates code review and approval by community CCB and removed CCB:Ready Ready for discussion at the Configuration Control Board (CCB) labels Apr 23, 2020
@astrogeco astrogeco changed the base branch from master to integration-candidate April 27, 2020 23:01
@astrogeco
Copy link
Contributor

@dmknutsen check conflicts, might want to rebase

jphickey added a commit that referenced this pull request Apr 29, 2020
Fix #623, Replace OS_FS_* return codes with common definitions
Merged manually to resolve conflicts
@astrogeco astrogeco merged commit 6ef8a02 into nasa:integration-candidate Apr 29, 2020
@skliper skliper added this to the 6.8.0 milestone Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CCB:Approved Indicates code review and approval by community CCB
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace OS_FS_* return codes with common definitions
3 participants