[libc-commits] [libc] [libc][getcwd] Refactor getcwd to use the syscall wrapper pattern (PR #204000)
Jackson Stogel via libc-commits
libc-commits at lists.llvm.org
Mon Jun 15 23:02:44 PDT 2026
================
@@ -8,58 +8,56 @@
#include "src/unistd/getcwd.h"
+#include "hdr/types/size_t.h"
+#include "hdr/types/ssize_t.h"
+#include "src/__support/CPP/optional.h"
+#include "src/__support/OSUtil/linux/syscall_wrappers/getcwd.h"
#include "src/__support/OSUtil/syscall.h" // For internal syscall function.
#include "src/__support/common.h"
+#include "src/__support/libc_errno.h"
#include "src/__support/macros/config.h"
#include "src/string/allocating_string_utils.h" // For strdup.
-#include "src/__support/libc_errno.h"
#include <linux/limits.h> // This is safe to include without any name pollution.
-#include <sys/syscall.h> // For syscall numbers.
+#include <sys/syscall.h> // For syscall numbers.
----------------
jtstogel wrote:
Removed, thanks
https://github.com/llvm/llvm-project/pull/204000
More information about the libc-commits
mailing list