Re: Error in posix_spawn(3) man page

Brian Inglis <[email protected]>
Newsgroups gmane.comp.lib.newlib
Organization Systematic Software
Message-ID <[email protected]>
On 2022-01-07 02:32, Corinna Vinschen wrote:
> On Jan  5 13:39, Keith Thompson wrote:
>> On Wed, Jan 5, 2022 at 3:47 AM Corinna Vinschen wrote:
>>> On Dec 28 19:24, Keith Thompson wrote:
>>>> 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):

>>> Please send a git compatible patch in `git format-patch' format.

>> As requested. Given the way I copy-and-pasted the patch into my
>> email, it might not have treated tabs correctly.
You should attach it as a text attachment, possibly with an empty body, 
perhaps using a command line mailer like mail (mailutils), email (email 
package), mailx (Heirloom project download), neo/mutt, or X GUIs like 
xdg-email (xdg-utils), evolution, the MUA client from some other 
desktop, or a text friendly Unix compatible Windows GUI like Thunderbird.

> It's not TABs, it's an incorrect patch format:
> $ git am 0001-Fix-documented-argv-and-envp-params-for-posix_spawn.patch
> Applying: Fix documented argv and envp params for posix_spawn
> error: libc/posix/posix_spawn.c: does not exist in index
> Patch failed at 0001 Fix documented argv and envp params for posix_spawn
> hint: Use 'git am --show-current-patch=diff' to see the failed patch
> Did you actually create the patch with `git format-patch'?

Email it with git send-email as the MUA or Gmail may be mangling it!
Set your personal ~/.gitconfig or system global /etc/gitconfig to e.g.

[sendemail]
         aliasesFile = /etc/mail/aliases
         confirm = always
         multiEdit = false
         smtpServer = ...
         suppressFrom = true

with your own preferences and other settings, or use equivalent git 
config --global or --system commands.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.