Skip to content

Commit 8ce0d05

Browse files
authored
[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
1 parent e38f4f6 commit 8ce0d05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/include/spawn.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ functions:
1818
- type: const char *__restrict
1919
- type: posix_spawn_file_actions_t *
2020
- type: posix_spawnattr_t *__restrict
21-
- type: const char *__restrict *
22-
- type: const char *__restrict *
21+
- type: char * const * __restrict
22+
- type: char * const * __restrict
2323
- name: posix_spawn_file_actions_addclose
2424
standards:
2525
- POSIX

0 commit comments

Comments
 (0)