[libc-commits] [libc] [libc] Implement close_range in unistd (PR #236913)

Pavel Labath via libc-commits libc-commits at lists.llvm.org
Fri Oct 30 07:57:56 PDT 2026


================
@@ -112,6 +112,14 @@
     } while (__result == -1L && errno == EINTR);                               \
     __result;                                                                  \
   }))
+#endif // TEMP_FAILURE_RETRY
+
+#ifndef CLOSE_RANGE_UNSHARE
----------------
labath wrote:

We're trying to reuse kernel definitions where possible and <linux/close_range.h> looks like a perfect candidate. Let's include that instead.

https://github.com/llvm/llvm-project/pull/236913


More information about the libc-commits mailing list