aboutsummaryrefslogtreecommitdiffstats
path: root/gpgme/posix-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpgme/posix-io.c')
-rw-r--r--gpgme/posix-io.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gpgme/posix-io.c b/gpgme/posix-io.c
index 3479483e..0e26a91e 100644
--- a/gpgme/posix-io.c
+++ b/gpgme/posix-io.c
@@ -56,6 +56,16 @@ _gpgme_io_subsystem_init (void)
}
}
+
+/* Write the printable version of FD to the buffer BUF of length
+ BUFLEN. The printable version is the representation on the command
+ line that the child process expects. */
+int
+_gpgme_io_fd2str (char *buf, int buflen, int fd)
+{
+ return snprintf (buf, buflen, "%d", fd);
+}
+
static struct
{