-
Notifications
You must be signed in to change notification settings - Fork 8.2k
posix: c_lib_ext: fnmatch: add support for posix character classes #97400
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
base: main
Are you sure you want to change the base?
posix: c_lib_ext: fnmatch: add support for posix character classes #97400
Conversation
|
Hello @Spago123, and thank you very much for your first pull request to the Zephyr project! |
|
@Spago123 - really nice, thanks! Just a couple of housekeeping requests. I like that you've broken this up into separate commits, but can the commits be redone in this order:
Please make sure the commit messages are really clear about what is being done and why in each commit. |
fb271dc to
dd6ce78
Compare
Yup I reorderd and split the needed commit as you suggested |
0883837 to
9cd4353
Compare
|
@Spago123 - some CI errors related to |
Yup it seems there is an issue with those fucntions on some platforms, I added custom implementations that satistify the library definitions |
285079e to
6c3a529
Compare
|
@Spago123 - will be looking to get this merged soon after v4.3.0 is released. I'll revisit shortly to see if I can help to correct any issues. |
648b2f1 to
b595574
Compare
Lovely. I am not sure for the documentation pipline what excatly is the issue |
|
@Spago123 - this is really really close - great work! It's testing locally for me fine with some minor modification. I added some comments and suggestions. In terms of the doc build issue, it's passing on |
|
I'm also not sure if the commit Ah, I see - those functions are missing in the minimal libc. I've added them in #99451 |
Implemented match_posix_class function that was needed to match the possible posix classes like alnum, alpha etc... Signed-off-by: Harun Spago <harun.spago.code@gmail.com>
b595574 to
ff14ee0
Compare
I removed the commit and now I am back at using the islower, ispunct and is blank functions as in the first place :) |
a4c6cc5 to
33deb5f
Compare
Uncommented posix class test cases in fnmatch tests Signed-off-by: Harun Spago <harun.spago.code@gmail.com>
…racter classes Added test cases for POSIX character classes in fnmatch tests. Signed-off-by: Harun Spago <harun.spago.code@gmail.com>
Removed two error codes since they are not official posix errors Signed-off-by: Harun Spago <harun.spago.code@gmail.com>
Added Doxygen on new functions and on fnmatch function Signed-off-by: Harun Spago <harun.spago.code@gmail.com>
Resolved all sonar qube issues Signed-off-by: Harun Spago <harun.spago.code@gmail.com>
Formated fnmatch c and h files and test files using clang-format Signed-off-by: Harun Spago <harun.spago.code@gmail.com>
33deb5f to
6ba774e
Compare
|



Fixed failling tests in fnmatch.c test file.
Removed duplicated code and added simplicfications.
Added new test cases.
Stepts to test run:
west build -p -b qemu_cortex_a53 -t run tests/posix/c_lib_ext/in the shell and you shall get the next result:
- PASS - [posix_c_lib_ext.test_fnmatch] duration = 0.001 secondsFixes #55186