[all-commits] [llvm/llvm-project] 8d615a: [libc] move sys/mman macros to /include

michaelrj-google via All-commits all-commits at lists.llvm.org
Fri Sep 23 09:36:56 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d615a5e8af238ad4c010820634130c531205df4
      https://github.com/llvm/llvm-project/commit/8d615a5e8af238ad4c010820634130c531205df4
  Author: Michael Jones <michaelrj at google.com>
  Date:   2022-09-23 (Fri, 23 Sep 2022)

  Changed paths:
    M libc/config/linux/api.td
    M libc/include/CMakeLists.txt
    M libc/include/llvm-libc-macros/CMakeLists.txt
    M libc/include/llvm-libc-macros/linux/CMakeLists.txt
    A libc/include/llvm-libc-macros/linux/sys-mman-macros.h
    A libc/include/llvm-libc-macros/sys-mman-macros.h
    M libc/include/sys/mman.h.def

  Log Message:
  -----------
  [libc] move sys/mman macros to /include

Previously the mman macros were in api.td, but platform differences are
easier to handle with preprocessor macros so they have been moved to
include. Also I completed the list of macros (at least for what I need
soon) and fixed some previously incorrect values.

Reviewed By: sivachandra, lntue

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


  Commit: 47b724048b418892dffa62cead800c5e1121b616
      https://github.com/llvm/llvm-project/commit/47b724048b418892dffa62cead800c5e1121b616
  Author: Michael Jones <michaelrj at google.com>
  Date:   2022-09-23 (Fri, 23 Sep 2022)

  Changed paths:
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/spec/posix.td
    M libc/src/sys/mman/CMakeLists.txt
    M libc/src/sys/mman/linux/CMakeLists.txt
    A libc/src/sys/mman/linux/mprotect.cpp
    A libc/src/sys/mman/mprotect.h
    M libc/test/src/sys/mman/linux/CMakeLists.txt
    A libc/test/src/sys/mman/linux/mprotect_test.cpp

  Log Message:
  -----------
  [libc] add mprotect

Add the mprotect syscall wrapper and tests.

Reviewed By: sivachandra

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


  Commit: 85c70da7320554678ae8121d6d615938cc6c45f3
      https://github.com/llvm/llvm-project/commit/85c70da7320554678ae8121d6d615938cc6c45f3
  Author: Michael Jones <michaelrj at google.com>
  Date:   2022-09-23 (Fri, 23 Sep 2022)

  Changed paths:
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/spec/posix.td
    M libc/src/sys/mman/CMakeLists.txt
    M libc/src/sys/mman/linux/CMakeLists.txt
    A libc/src/sys/mman/linux/madvise.cpp
    A libc/src/sys/mman/linux/posix_madvise.cpp
    A libc/src/sys/mman/madvise.h
    A libc/src/sys/mman/posix_madvise.h
    M libc/test/src/sys/mman/linux/CMakeLists.txt
    A libc/test/src/sys/mman/linux/madvise_test.cpp
    A libc/test/src/sys/mman/linux/posix_madvise_test.cpp

  Log Message:
  -----------
  [libc] add madvise and posix_madvise

Add the madvise and posix_madvise syscall wrappers and tests.

Reviewed By: sivachandra

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


Compare: https://github.com/llvm/llvm-project/compare/cb46ffdbf44c...85c70da73205


More information about the All-commits mailing list