bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

preparations for posix_spawn for Windows


From: Bruno Haible
Subject: preparations for posix_spawn for Windows
Date: Mon, 14 Dec 2020 23:53:41 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-193-generic; KDE/5.18.0; x86_64; ; )

These few patches are preparations for the posix_spawn implementation for
native Windows.

Note the NEWS entry:

2020-12-14  findprog-in     The function 'find_in_given_path' now takes a 3rd
                            argument 'const char *directory'. To maintain the
                            previous behaviour, insert NULL as additional 3rd
                            argument.

Paul Smith: To accommodate for this change, a 1-liner patch is needed in
GNU make.


2020-12-14  Bruno Haible  <bruno@clisp.org>

        findprog-in: Allow overriding the current directory.
        * lib/findprog.h (find_in_given_path): Add directory argument.
        * lib/findprog-in.c (find_in_given_path): Likewise.
        * lib/execute.c (execute): Update caller.
        * lib/spawn-pipe.c (create_pipe): Likewise.
        * lib/windows-spawn.c (spawnpvech): Likewise.
        * NEWS: Mention the change.

2020-12-14  Bruno Haible  <bruno@clisp.org>

        posix_spawn-internal: Make better use of 'const'.
        * lib/spawn_int.h (__spawni): Does not need write access to the elements
        of argv and envp.
        * lib/spawni.c (__spawni, script_execute): Likewise.
        * lib/spawn.c (posix_spawn): Update caller.
        * lib/spawnp.c (posix_spawnp): Likewise.

2020-12-14  Bruno Haible  <bruno@clisp.org>

        spawn: Make it compile on native Windows.
        * modules/spawn (Depends-on): Add signal-h.

2020-12-14  Bruno Haible  <bruno@clisp.org>

        windows-spawn: Avoid shadowing a variable.
        * lib/windows-spawn.c (spawnpvech): Rename local variable 'flags'.

Attachment: 0001-windows-spawn-Avoid-shadowing-a-variable.patch
Description: Text Data

Attachment: 0002-spawn-Make-it-compile-on-native-Windows.patch
Description: Text Data

Attachment: 0003-posix_spawn-internal-Make-better-use-of-const.patch
Description: Text Data

Attachment: 0004-findprog-in-Allow-overriding-the-current-directory.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]