aboutsummaryrefslogtreecommitdiffstats
path: root/gpgme/priv-io.h
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2007-10-02 12:02:08 +0000
committerMarcus Brinkmann <[email protected]>2007-10-02 12:02:08 +0000
commitd8289000feaa3c4c2ab37296c3036e5f2e0d9bbc (patch)
treec0644972b7171aeef9ee87cb465d37b7d9ed392e /gpgme/priv-io.h
parentFixed a problem in the W32 gpgme->gpgsm communication. (diff)
downloadgpgme-d8289000feaa3c4c2ab37296c3036e5f2e0d9bbc.tar.gz
gpgme-d8289000feaa3c4c2ab37296c3036e5f2e0d9bbc.zip
2007-10-02 Marcus Brinkmann <[email protected]>
* priv-io.h, engine-gpgsm.c: Add comments. * w32-qt-io.cpp (_gpgme_io_select): Remove code handling frozen FDs. * w32-glib-io.c (_gpgme_io_close): Always dereference the channel, even if not primary. (_gpgme_io_dup): Acquire a reference. Replace unused implementation by assertion.
Diffstat (limited to '')
-rw-r--r--gpgme/priv-io.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/gpgme/priv-io.h b/gpgme/priv-io.h
index a488acb0..5841dc92 100644
--- a/gpgme/priv-io.h
+++ b/gpgme/priv-io.h
@@ -64,7 +64,13 @@ int _gpgme_io_select (struct io_select_fd_s *fds, size_t nfds, int nonblock);
line that the child process expects. */
int _gpgme_io_fd2str (char *buf, int buflen, int fd);
-/* Like dup(). */
+/* Duplicate a file descriptor. This is more restrictive than dup():
+ it assumes that the resulting file descriptors are essentially
+ co-equal (for example, no private offset), which is true for pipes
+ and sockets (but not files) under Unix with the standard dup()
+ function. Basically, this function is used to reference count the
+ status output file descriptor shared between GPGME and libassuan
+ (in engine-gpgsm.c). */
int _gpgme_io_dup (int fd);
#endif /* IO_H */