This patch fixes rc and errno within nanosleep(). It also updates __rem parameter as well it introduces cast to handle conversions from long into unsigned int to avoid warnings.
Details
- Reviewers
Mordante ldionne - Group Reviewers
Restricted Project - Commits
- rG916093f49faf: [SystemZ][z/OS] correct rc and errno within nanosleep()
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
This commit message is highly misleading. This is rewriting the function, not only tuning down warning levels. Can you please delimit more clearly what your change is doing if you want a meaningful review? It might be a good idea to break it down into more than one patch, too.
By the way, my comments are made in the spirit of encouraging good review practices more than anything. I otherwise don't have a stake in this patch, since this is z/OS which is not officially supported anyway (since it lacks CI).
libcxx/include/__support/ibm/nanosleep.h | ||
---|---|---|
35 | Please use complete sentences starting with a capital and ending with a full stop. | |
45 | I think I wasn't clear enough regarding what I meant with too large. So I like the mentioning of the rounding up, but I would also like some information regarding ignoring the time slept. |
libcxx/include/__support/ibm/nanosleep.h | ||
---|---|---|
45 | Thanks, have a look at new comments. |
libcxx/include/__support/ibm/nanosleep.h | ||
---|---|---|
45 | Typo. But this comment sounds a bit awkward to me. |
libcxx/include/__support/ibm/nanosleep.h | ||
---|---|---|
45 | Thx for catching this. I will rewrite the comment and land this patch. |
@zibi Please do *not* commit patches when the libcxx review group is not green. The policy for committing to libc++ is clear - you have to wait for the libcxx group to be green, or you will get reverted.
This is OK for now and I'm sure you did not intend to do wrong, but please follow the process in the future.
@ldionne Yes, sorry about that, I'm still learning the process.
The last commit was [NFC] so I thought it will be fine but will wait in the future and thank you for brining this up to my attention.
Please use complete sentences starting with a capital and ending with a full stop.