diff options
author | Werner Koch <[email protected]> | 2015-12-14 08:38:46 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-12-14 15:21:19 +0000 |
commit | d80e1bc430bf64debdb6b08f0b7e5c42836781fa (patch) | |
tree | f84c394ab4fa41265400524849c77bce16285670 /common/exectool.c | |
parent | gpg: Print ownertrust in TOFU+PGP trust model. (diff) | |
download | gnupg-d80e1bc430bf64debdb6b08f0b7e5c42836781fa.tar.gz gnupg-d80e1bc430bf64debdb6b08f0b7e5c42836781fa.zip |
common: Rename sh-exectool to exectool.
* common/sh-exectool.c: Rename to exectool.c.
* common/sh-exectool.h: Rename to exectool.h.
* common/Makefile.am (common_sources): Adjust for rename.
* common/exectool.c (sh_exec_tool_stream): Rename to
gnupg_exec-tool-stream.
(sh_exec_tool): Rename to gnupg_exec_tool.
* tools/gpgtar-create.c (gpgtar_create): Adjust for changes.
* tools/gpgtar-extract.c: Adjust for changes.
* tools/gpgtar-list.c: Adjust for changes.
--
The "sh-" presifx is used by g13 for system helpers which are used by
processes created via userv. A generic function in common/ should
also have a generic name.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | common/exectool.c (renamed from common/sh-exectool.c) | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/common/sh-exectool.c b/common/exectool.c index 4382536ea..5659f2d18 100644 --- a/common/sh-exectool.c +++ b/common/exectool.c @@ -1,4 +1,4 @@ -/* sh-exectool.c - Utility functions to execute a helper tool +/* exectool.c - Utility functions to execute a helper tool * Copyright (C) 2015 Werner Koch * * This file is part of GnuPG. @@ -216,9 +216,9 @@ copy_buffer_flush (struct copy_buffer *c, estream_t sink) the process' stdout is written to OUTPUT. On error a diagnostic is printed, and an error code returned. */ gpg_error_t -sh_exec_tool_stream (const char *pgmname, const char *argv[], - estream_t input, - estream_t output) +gnupg_exec_tool_stream (const char *pgmname, const char *argv[], + estream_t input, + estream_t output) { gpg_error_t err; pid_t pid; @@ -256,7 +256,7 @@ sh_exec_tool_stream (const char *pgmname, const char *argv[], fds[2].want_read = 1; /* Now read as long as we have something to poll. We continue reading even after EOF or error on stdout so that we get the - other error messages or remaining outout. */ + other error messages or remaining outut. */ while (!fds[1].ignore && !fds[2].ignore) { count = es_poll (fds, DIM(fds), -1); @@ -361,9 +361,9 @@ nop_free (void *ptr) stored at RESULT, a diagnostic is printed, and an error code returned. */ gpg_error_t -sh_exec_tool (const char *pgmname, const char *argv[], - const char *input_string, - char **result, size_t *resultlen) +gnupg_exec_tool (const char *pgmname, const char *argv[], + const char *input_string, + char **result, size_t *resultlen) { gpg_error_t err; estream_t input = NULL; @@ -391,7 +391,7 @@ sh_exec_tool (const char *pgmname, const char *argv[], goto leave; } - err = sh_exec_tool_stream (pgmname, argv, input, output); + err = gnupg_exec_tool_stream (pgmname, argv, input, output); if (err) goto leave; |