-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add some pthread-related syscalls #20
Conversation
Why this pr contains the same code as #14 ? They should be separated. Or close either of them. |
6ec0fe0
to
3e19b83
Compare
I rebased the branch to seperate each pr. |
I searched some meterial and believed that TSD and TLS are different concepts. So the implement of TSD current is not duplicated. |
TSD is more like a libc conception rather than a kernel conception. Musl libc organizes TSD in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change some code mentioned here, especially error handling (always remember to handle error, and print log), and please remove pthread-key-related functions test into another test file, since pthread/basic only contains tests for frequently used functions.
I added following syscalls:
And I added test code for the above syscalls in apps/c/pthreads/basic.