[libc-commits] [libc] 8ce0d05 - [libc] Revise the definition of `posix_spawn`. (#124686)
via libc-commits
libc-commits at lists.llvm.org
Tue Jan 28 08:23:13 PST 2025
Author: c8ef
Date: 2025-01-29T00:23:09+08:00
New Revision: 8ce0d05b88f3369ba99866195f587a58a2d75f4c
URL: https://github.com/llvm/llvm-project/commit/8ce0d05b88f3369ba99866195f587a58a2d75f4c
DIFF: https://github.com/llvm/llvm-project/commit/8ce0d05b88f3369ba99866195f587a58a2d75f4c.diff
LOG: [libc] Revise the definition of `posix_spawn`. (#124686)
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
Added:
Modified:
libc/include/spawn.yaml
Removed:
################################################################################
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
More information about the libc-commits
mailing list