[libc-commits] [libc] [libc] add missing pathconf header definitions (PR #195688)
via libc-commits
libc-commits at lists.llvm.org
Mon May 4 09:53:34 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Schrodinger ZHU Yifan (SchrodingerZhu)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/195688.diff
1 Files Affected:
- (modified) libc/include/unistd.yaml (+14)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/195688
More information about the libc-commits
mailing list