0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib
Jakub Konka dd55b72949 std: introduce posix_spawn as an alt to fork-exec
Currently, the new API will only be available on macOS with
the intention of adding more POSIX systems to it incrementally
(such as Linux, etc.).

Changes:
* add `posix_spawn` wrappers in a separate container in
  `os/posix_spawn.zig`
* rewrite `ChildProcess.spawnPosix` using `posix_spawn` targeting macOS
  as `ChildProcess.spawnMacos`
* introduce a `posix_spawn` specific `std.c.waitpid` wrapper which
  does return an error in case the child process failed to exec - this
  is required for any process that was spawned using `posix_spawn`
  mechanism as, by definition, the errors returned by `posix_spawn`
  routine cover only the `fork`-equivalent; `pre-exec()` and `exec()`
  steps are covered by a catch-all error `ECHILD` returned by `waitpid`
  on unsuccessful execution, e.g., no such file error, etc.
History 2022-03-16 19:40:44 +01:00
..
include update libcxx, libcxxabi, and C headers to release/13.x branch 2021-08-28 13:11:47 -07:00
libc glibc: version-gate _DYNAMIC_STACK_SIZE_SOURCE 2022-01-28 18:36:23 -07:00
libcxx update libcxx, libcxxabi, and C headers to release/13.x branch 2021-08-28 13:11:47 -07:00
libcxxabi update libcxx, libcxxabi, and C headers to release/13.x branch 2021-08-28 13:11:47 -07:00
libunwind Import SPARCv9 libunwind 2022-02-13 17:16:22 +02:00
std std: introduce posix_spawn as an alt to fork-exec 2022-03-16 19:40:44 +01:00
tsan update libcxx, libcxxabi, libunwind, and tsan to llvm 13 rc1 2021-08-16 23:32:13 -07:00