From a1b53eda6cd1e6144bdc362d5a4e287dbf19d9fb Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 19 Jun 2024 16:43:45 +0000 Subject: Fix cspawn signature in doc Signed-off-by: Laurent Bercot --- doc/libstddjb/cspawn.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/libstddjb/cspawn.html b/doc/libstddjb/cspawn.html index 5a19d9a..73096df 100644 --- a/doc/libstddjb/cspawn.html +++ b/doc/libstddjb/cspawn.html @@ -41,7 +41,7 @@ otherwise.

Primitive

- pid_t cspawn (char const *file, char const *const *argv, char const *const *envp, uint32_t flags, cspawn_fileaction const *fa, size_t n)
+ pid_t cspawn (char const *file, char const *const *argv, char const *const *envp, uint16_t flags, cspawn_fileaction const *fa, size_t n)
Forks and execs a child as with exec_ae(file, argv, envp). Returns 0 if it fails, and the pid of the child if it succeeds. Before execing, the following operations are performed in the child: @@ -126,7 +126,7 @@ variable as a comma-separated list of integers.

- pid_t gcspawn (char const *file, char const *const *argv, char const *const *envp, uint32_t flags, cspawn_fileaction const *fa, size_t n)
+ pid_t gcspawn (char const *file, char const *const *argv, char const *const *envp, uint16_t flags, cspawn_fileaction const *fa, size_t n)
Like cspawn, but argv will be running as a grandchild of the current process. The function forks once, invokes cspawn from the child, and the child exits after passing the grandchild's pid to the parent. -- cgit v1.2.3