[libc-commits] [libc] [libc] Revise the definition of `posix_spawn`. (PR #124686)
via libc-commits
libc-commits at lists.llvm.org
Mon Jan 27 19:51:09 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: None (c8ef)
<details>
<summary>Changes</summary>
Closes #<!-- -->124635.
Some parameter types in the definition of `posix_spawn` currently do not match the standard. This patch resolves the issue.
ref: https://man7.org/linux/man-pages/man3/posix_spawn.3.html
---
Full diff: https://github.com/llvm/llvm-project/pull/124686.diff
1 Files Affected:
- (modified) libc/include/spawn.yaml (+2-2)
``````````diff
diff --git a/libc/include/spawn.yaml b/libc/include/spawn.yaml
index e725ab9719eda4..c763cc76fd094f 100644
--- a/libc/include/spawn.yaml
+++ b/libc/include/spawn.yaml
@@ -18,8 +18,8 @@ functions:
- type: const char *__restrict
- type: posix_spawn_file_actions_t *
- type: posix_spawnattr_t *__restrict
- - type: const char *__restrict *
- - type: const char *__restrict *
+ - type: char * const * __restrict
+ - type: char * const * __restrict
- name: posix_spawn_file_actions_addclose
standards:
- POSIX
``````````
</details>
https://github.com/llvm/llvm-project/pull/124686
More information about the libc-commits
mailing list