[all-commits] [llvm/llvm-project] 8f1e36: Implement nanosleep per https://pubs.opengroup.org...

rtenneti-google via All-commits all-commits at lists.llvm.org
Fri Sep 23 17:14:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f1e362ee9275a687693448bd975194ee9b984f2
      https://github.com/llvm/llvm-project/commit/8f1e362ee9275a687693448bd975194ee9b984f2
  Author: Raman Tenneti <rtenneti at google.com>
  Date:   2022-09-24 (Sat, 24 Sep 2022)

  Changed paths:
    M libc/config/linux/aarch64/entrypoints.txt
    M libc/config/linux/api.td
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/include/CMakeLists.txt
    M libc/include/llvm-libc-types/struct_timespec.h
    M libc/spec/posix.td
    M libc/src/time/CMakeLists.txt
    A libc/src/time/nanosleep.cpp
    A libc/src/time/nanosleep.h
    M libc/test/src/time/CMakeLists.txt
    A libc/test/src/time/nanosleep_test.cpp

  Log Message:
  -----------
  Implement nanosleep per https://pubs.opengroup.org/onlinepubs/009695399/basedefs/time.h.html

Tested:
Limited unit test: This makes a call and checks that no error was
returned, but we currently don't have the ability to ensure that
time has elapsed as expected.

Co-authored-by: Jeff Bailey <jeffbailey at google.com>

Reviewed By: sivachandra, jeffbailey

Differential Revision: https://reviews.llvm.org/D134095




More information about the All-commits mailing list