[libc-commits] [PATCH] D118396: [libc] Add POSIX close, fsync, open, read and write functions.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Jan 27 09:52:45 PST 2022


sivachandra created this revision.
sivachandra added a reviewer: abrachet.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added a project: libc-project.
sivachandra requested review of this revision.

They are implemented as simple syscall wrappers. The file creation
macros have been put in a header file as a temporary solution until we
have a cleaner approach to listing platform relevant macros.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D118396

Files:
  libc/config/linux/api.td
  libc/config/linux/x86_64/entrypoints.txt
  libc/include/CMakeLists.txt
  libc/include/fcntl.h.def
  libc/include/llvm-libc-macros/CMakeLists.txt
  libc/include/llvm-libc-macros/fcntl-macros.h
  libc/include/llvm-libc-macros/linux/CMakeLists.txt
  libc/include/llvm-libc-macros/linux/fcntl-macros.h
  libc/include/llvm-libc-types/CMakeLists.txt
  libc/include/llvm-libc-types/mode_t.h
  libc/spec/posix.td
  libc/src/CMakeLists.txt
  libc/src/fcntl/CMakeLists.txt
  libc/src/fcntl/linux/CMakeLists.txt
  libc/src/fcntl/linux/open.cpp
  libc/src/fcntl/open.h
  libc/src/unistd/CMakeLists.txt
  libc/src/unistd/close.h
  libc/src/unistd/fsync.h
  libc/src/unistd/linux/CMakeLists.txt
  libc/src/unistd/linux/close.cpp
  libc/src/unistd/linux/fsync.cpp
  libc/src/unistd/linux/read.cpp
  libc/src/unistd/linux/write.cpp
  libc/src/unistd/read.h
  libc/test/src/unistd/CMakeLists.txt
  libc/test/src/unistd/read_write_test.cpp
  libc/test/src/unistd/write_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118396.403709.patch
Type: text/x-patch
Size: 23036 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220127/faeafdd3/attachment-0001.bin>


More information about the libc-commits mailing list