Skip to content

Fix #556, Deprecate OS_open and OS_creat#617

Merged
astrogeco merged 1 commit intonasa:integration-candidatefrom
jphickey:fix-556-deprecate-open-creat
Oct 13, 2020
Merged

Fix #556, Deprecate OS_open and OS_creat#617
astrogeco merged 1 commit intonasa:integration-candidatefrom
jphickey:fix-556-deprecate-open-creat

Conversation

@jphickey
Copy link
Contributor

@jphickey jphickey commented Oct 2, 2020

Describe the contribution

These functions are replaced by OS_OpenCreate, which implements both functions via flags, and follows the correct OSAL API patterns.

Fixes #556

Testing performed
Build and run all tests, sanity check CFE
Check coverage of file-related APIs (still 100%)

Expected behavior changes
OS_open() and OS_create() are deprecated.

System(s) tested on
Ubuntu 20.04

Additional context
This initially puts the items inside an OSAL_OMIT_DEPRECATED block for review and testing, like has been done traditionally.
Should discuss at CCB whether this should become a hard-cut given that the next release will be a major one.
Although the previous discussions on the topic agreed to hard cut at major releases, these are such widely-used routines that this will cause grief to a lot of users.

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

These functions are replaced by OS_OpenCreate, which
implements both functions via flags, and follows the
correct OSAL API patterns.
@jphickey jphickey added the CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) label Oct 2, 2020
@astrogeco astrogeco added CCB-20201006 CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) breaking and removed CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) labels Oct 6, 2020
@astrogeco
Copy link
Contributor

CCB 2020-10-06 APPROVED

  • This will break many apps. We'll leave it in for now but it WILL be removed before tagging osal v6.0

@astrogeco astrogeco added IC-20201013 and removed breaking CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) labels Oct 7, 2020
@astrogeco astrogeco changed the base branch from main to integration-candidate October 13, 2020 00:26
@astrogeco astrogeco merged commit 3a76641 into nasa:integration-candidate Oct 13, 2020
astrogeco added a commit to nasa/cFS that referenced this pull request Oct 13, 2020
@jphickey jphickey deleted the fix-556-deprecate-open-creat branch December 3, 2020 17:26
@skliper skliper linked an issue Dec 9, 2020 that may be closed by this pull request
@skliper skliper added this to the 6.0.0 milestone Sep 24, 2021
jphickey pushed a commit to jphickey/osal that referenced this pull request Aug 10, 2022
Fix nasa#617, Updates comments to note that the length limit of OS_MAX_PATH_LEN and OS_MAX_API_NAME includes null terminator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate OS_open and OS_creat file descriptor signed or unsigned?

3 participants