[libcxx-commits] [PATCH] D91172: [17/N] [libcxx] Implement the read_symlink function for windows

Martin Storsjö via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jan 29 05:03:57 PST 2021


mstorsjo updated this revision to Diff 320107.
mstorsjo set the repository for this revision to rG LLVM Github Monorepo.
mstorsjo added a comment.

Rebased, retriggering CI.

Avoid using PATH_MAX (which exists in mingw but not in MSVC) and use MAXIMUM_REPARSE_DATA_BUFFER_SIZE as fixed limit for the statically allocated buffer that is passed to the `readlink()` function.

(When this was implemented directly in `__read_symlink()` before, the windows codepath didn't need to concern itself with other fixed limits but just do its own thing and return a `std::filesystem::path`, but using the same `readlink()` interface now to keep the implementation out of operations.cpp.)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91172/new/

https://reviews.llvm.org/D91172

Files:
  libcxx/src/filesystem/operations.cpp
  libcxx/src/filesystem/posix_compat.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91172.320107.patch
Type: text/x-patch
Size: 4605 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210129/b1adb7bc/attachment-0001.bin>


More information about the libcxx-commits mailing list