aboutsummaryrefslogtreecommitdiffstats
path: root/src/spawn-posix.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2024-06-05 06:07:01 +0000
committerNIIBE Yutaka <[email protected]>2024-06-05 06:16:26 +0000
commit2caaef8f6b89d7fcbbe3d480d192fe1952576942 (patch)
treefddcb729218d31738937481882b8f7cc8736f3e5 /src/spawn-posix.c
parentspawn:w32: Fix setting of dwFlags for CreateProcess. (diff)
downloadlibgpg-error-2caaef8f6b89d7fcbbe3d480d192fe1952576942.tar.gz
libgpg-error-2caaef8f6b89d7fcbbe3d480d192fe1952576942.zip
spawn: Expose spawn functions API.
* src/gpg-error.def.in: Update. * src/gpg-error.vers: Update. * src/gpg-error.h.in: Add declarations. * src/visibility.c: Add implementations. * src/visibility.h: Expose them. -- GnuPG-bug-id: 6249 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'src/spawn-posix.c')
-rw-r--r--src/spawn-posix.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/spawn-posix.c b/src/spawn-posix.c
index eb990ad..67a118f 100644
--- a/src/spawn-posix.c
+++ b/src/spawn-posix.c
@@ -769,8 +769,9 @@ _gpgrt_process_get_streams (gpgrt_process_t process, unsigned int flags,
return 0;
}
-static gpg_err_code_t
-process_vctl (gpgrt_process_t process, unsigned int request, va_list arg_ptr)
+gpg_err_code_t
+_gpgrt_process_vctl (gpgrt_process_t process, unsigned int request,
+ va_list arg_ptr)
{
switch (request)
{
@@ -870,18 +871,6 @@ process_vctl (gpgrt_process_t process, unsigned int request, va_list arg_ptr)
}
gpg_err_code_t
-_gpgrt_process_ctl (gpgrt_process_t process, unsigned int request, ...)
-{
- va_list arg_ptr;
- gpg_err_code_t ec;
-
- va_start (arg_ptr, request);
- ec = process_vctl (process, request, arg_ptr);
- va_end (arg_ptr);
- return ec;
-}
-
-gpg_err_code_t
_gpgrt_process_wait (gpgrt_process_t process, int hang)
{
gpg_err_code_t ec;