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

Establish (and use) a strerror() replacement for safety #10

Merged
merged 1 commit into from
Jan 28, 2016

Conversation

jeffaco
Copy link
Contributor

@jeffaco jeffaco commented Jan 28, 2016

Create new SCXCoreLib::strerror() function, compatible with the system ::strerror() function, but safe on all platforms (except old HP, where we can't do anything about it since strerror_r() isn't available).

Note that unit tests for this new function are not needed. The basis for this code came from scxexception.h, and the code is called directly from scxexception.h. Since scxexception.h has great unit tests that call the new code, it's directly tested.

@Microsoft/ostc-devs

@jeffaco jeffaco merged commit 9682494 into master Jan 28, 2016
@jeffaco jeffaco deleted the jeff-strerror branch January 28, 2016 17:46
@johnkord
Copy link

Looks good to me, signing off.

srupiett pushed a commit to srupiett/pal that referenced this pull request Dec 1, 2022
* policheck fixes

* policheck fixes scxlvmutils.cpp
srupiett pushed a commit to srupiett/pal that referenced this pull request Dec 1, 2022
JumpingYang001 pushed a commit that referenced this pull request Dec 13, 2022
* policheck fixes

* policheck fixes scxlvmutils.cpp
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.

2 participants