[libc-commits] [libc] [libc] add missing pathconf header definitions (PR #195688)

Schrodinger ZHU Yifan via libc-commits libc-commits at lists.llvm.org
Mon May 4 09:52:36 PDT 2026


https://github.com/SchrodingerZhu created https://github.com/llvm/llvm-project/pull/195688

None

>From 530fc8b32fe1432b1b9f4352e5547e1099ea45d8 Mon Sep 17 00:00:00 2001
From: Schrodinger ZHU Yifan <yifanzhu at rochester.edu>
Date: Mon, 4 May 2026 12:52:03 -0400
Subject: [PATCH] [libc] add missing pathconf header definitions

---
 libc/include/unistd.yaml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/libc/include/unistd.yaml b/libc/include/unistd.yaml
index b3c19fe638d6d..115b70365bd75 100644
--- a/libc/include/unistd.yaml
+++ b/libc/include/unistd.yaml
@@ -149,6 +149,13 @@ functions:
       - type: int
       - type: uid_t
       - type: gid_t
+  - name: fpathconf
+    standards:
+      - POSIX
+    return_type: long
+    arguments:
+      - type: int
+      - type: int
   - name: fork
     standards:
       - POSIX
@@ -278,6 +285,13 @@ functions:
       - type: int
       - type: off_t
       - type: int
+  - name: pathconf
+    standards:
+      - POSIX
+    return_type: long
+    arguments:
+      - type: const char *
+      - type: int
   - name: pipe
     standards:
       - POSIX



More information about the libc-commits mailing list