[libcxx-commits] [PATCH] D92110: [SystemZ][ZOS] Provide PATH_MAX macro for libcxx

Hubert Tong via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Dec 1 14:29:31 PST 2020


hubert.reinterpretcast added inline comments.


================
Comment at: libcxx/src/filesystem/operations.cpp:46
+#if defined(__MVS__) && !defined(PATH_MAX)
+#define PATH_MAX _XOPEN_PATH_MAX
+#endif
----------------
I've been told that `PATH_MAX` is indeed limited to `_XOPEN_PATH_MAX` and that seems to be the case (based on experimentation) with `realpath`, but I have not seen documentation that supports such an assertion. The scope of this macro definition may be too broad as a solution of dealing with `realpath`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D92110



More information about the libcxx-commits mailing list