[newlib-cygwin] Fix documented argv and envp params for posix_spawn

Corinna Vinschen corinna@sourceware.org
Mon Jan 10 08:57:30 GMT 2022


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=d4e61b73a946c16f1cfb44767812cd471e921120

commit d4e61b73a946c16f1cfb44767812cd471e921120
Author: Keith Thompson <Keith.S.Thompson@gmail.com>
Date:   Wed Jan 5 13:30:16 2022 -0800

    Fix documented argv and envp params for posix_spawn

Diff:
---
 newlib/libc/posix/posix_spawn.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/newlib/libc/posix/posix_spawn.c b/newlib/libc/posix/posix_spawn.c
index 005471fde..85bfa6477 100644
--- a/newlib/libc/posix/posix_spawn.c
+++ b/newlib/libc/posix/posix_spawn.c
@@ -39,11 +39,11 @@ SYNOPSIS
 	int posix_spawn(pid_t *<[pid]>, const char *<[path]>,
 			const posix_spawn_file_actions_t *<[file_actions]>,
 			const posix_spawnattr_t *<[attrp]>,
-			char *const <[argv]>, char *const <[envp]>);
+			char *const <[argv]>[], char *const <[envp]>[]);
 	int posix_spawnp(pid_t *<[pid]>, const char *<[file]>,
 			const posix_spawn_file_actions_t *<[file_actions]>,
 			const posix_spawnattr_t *<[attrp]>,
-			char *const <[argv]>, char *const <[envp]>);
+			char *const <[argv]>[], char *const <[envp]>[]);
 
 DESCRIPTION
 Use <<posix_spawn>> and <<posix_spawnp>> to create a new child process


More information about the Newlib-cvs mailing list