[all-commits] [llvm/llvm-project] 78f172: [libc] Implement gettimeofday

rtenneti-google via All-commits all-commits at lists.llvm.org
Fri Nov 11 18:11:46 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 78f172e45ad95bb9cac907486af968a9e41d9570
      https://github.com/llvm/llvm-project/commit/78f172e45ad95bb9cac907486af968a9e41d9570
  Author: Raman Tenneti <rtenneti at google.com>
  Date:   2022-11-11 (Fri, 11 Nov 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/docs/date_and_time.rst
    M libc/include/CMakeLists.txt
    M libc/spec/posix.td
    M libc/src/time/CMakeLists.txt
    A libc/src/time/gettimeofday.cpp
    A libc/src/time/gettimeofday.h
    M libc/test/src/time/CMakeLists.txt
    A libc/test/src/time/gettimeofday_test.cpp

  Log Message:
  -----------
  [libc] Implement gettimeofday

Implement gettimeofday per
.../onlinepubs/9699919799/functions/gettimeofday.html.
This call clock_gettime to implement gettimeofday function.

Tested:
Limited unit test: This makes a call and checks that no error was
returned. Used nanosleep for 100 microseconds and verfified it
returns a value that elapses more than 100 microseconds and less
than 300 microseconds.

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

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


  Commit: 35155ee7d3d5f69657ec77f3bd220db81c64d62f
      https://github.com/llvm/llvm-project/commit/35155ee7d3d5f69657ec77f3bd220db81c64d62f
  Author: Raman Tenneti <rtenneti at google.com>
  Date:   2022-11-11 (Fri, 11 Nov 2022)

  Changed paths:
    M libc/config/linux/api.td
    M libc/spec/posix.td

  Log Message:
  -----------
  Removed tabs.


Compare: https://github.com/llvm/llvm-project/compare/1fb5c7a2f17f...35155ee7d3d5


More information about the All-commits mailing list