public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* Error in posix_spawn(3) man page
@ 2021-12-29  3:24 Keith Thompson
       [not found] ` <DM3P110MB0522D24ED83275B9EC07839A9A449@DM3P110MB0522.NAMP110.PROD.OUTLOOK.COM>
  2022-01-05 11:46 ` Corinna Vinschen
  0 siblings, 2 replies; 10+ messages in thread
From: Keith Thompson @ 2021-12-29  3:24 UTC (permalink / raw)
  To: newlib; +Cc: Keith Thompson

The posix_spawn(3) man page has incorrect types for the argv and
envp parameters for the posix_spawn and posix_spawnp functions.

They're shown as
    char *const argv, char *const envp
when they should be
    char *const argv[], char *const envp[]

Suggested patch (though I'm not 100% sure how the square brackets
are handled when generating the man page):

diff --git newlib/libc/posix/posix_spawn.c newlib/libc/posix/posix_spawn.c
index 005471fde..85bfa6477 100644
--- newlib/libc/posix/posix_spawn.c
+++ 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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-01-10  8:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-29  3:24 Error in posix_spawn(3) man page Keith Thompson
     [not found] ` <DM3P110MB0522D24ED83275B9EC07839A9A449@DM3P110MB0522.NAMP110.PROD.OUTLOOK.COM>
2021-12-29 16:59   ` Fw: " C Howland
2022-01-05 11:46 ` Corinna Vinschen
2022-01-05 21:39   ` Keith Thompson
2022-01-07  9:32     ` Corinna Vinschen
2022-01-07 19:03       ` Brian Inglis
2022-01-07 20:02       ` Keith Thompson
2022-01-08  0:01       ` Keith Thompson
2022-01-08  4:30         ` Keith Thompson
2022-01-10  8:58           ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).