[clang] [libc] Fix `nanosleep` definition in the posix spec (PR #67855)

2023-09-29 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 closed https://github.com/llvm/llvm-project/pull/67855 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc] Fix `nanosleep` definition in the posix spec (PR #67855)

2023-09-29 Thread via cfe-commits
https://github.com/michaelrj-google approved this pull request. LGTM from the libc side. https://github.com/llvm/llvm-project/pull/67855 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [libc] Fix `nanosleep` definition in the posix spec (PR #67855)

2023-09-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Changes Summary: The POSIX standard expects the first argument to this function to be constant, e.g. https://man7.org/linux/man-pages/man2/nanosleep.2.html. This fixes that problem and also corrects an obvious problem with enabling this for

[clang] [libc] Fix `nanosleep` definition in the posix spec (PR #67855)

2023-09-29 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/67855 Summary: The POSIX standard expects the first argument to this function to be constant, e.g. https://man7.org/linux/man-pages/man2/nanosleep.2.html. This fixes that problem and also corrects an obvious problem