diff options
author | Werner Koch <wk@gnupg.org> | 2015-09-25 10:45:22 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2015-09-25 11:32:07 +0200 |
commit | 071c2170479869f4c6694ae85d2b113e84482a01 (patch) | |
tree | 00f0ef082a9c2f26b6ee0e26b37c0828d2886f26 /doc/errorref.txt | |
parent | 61d832c53b7db5367a5542347e3454c882d0bf28 (diff) | |
download | libgpg-error-071c2170479869f4c6694ae85d2b113e84482a01.tar.gz |
estream: Add gpgrt_set_nonblock and gpgrt_poll.
* configure.ac (AC_CHECK_HEADERS): Add sys/select.h and sys/time.h.
* src/estream.c: Include both header if available.
(COOKIE_IOCTL_NONBLOCK): New.
(struct estream_cookie_fd): Add field nonblock.
(func_fd_create): Set nonblock from MODEFLAGS.
(es_func_fd_ioctl): New.
(parse_mode): Add modeflag "nonblock".
(es_fill): Map EWOULDBLOCK to EAGAIN. Do not set error indicator for
EAGAIN.
(es_flush, es_seek, es_write_nbf): Map EWOULDBLOCK to EAGAIN.
(do_fdopen): Call COOKIE_IOCTL_NONBLOCK.
(_gpgrt_set_nonblock): New.
(_gpgrt_get_nonblock): New.
(_gpgrt_poll): New.
* src/gpg-error.h.in (struct _gpgrt_poll_s): New.
(gpgrt_poll_t, es_poll_t): New.
(es_set_nonblock, es_get_nonblock, es_poll): New.
* src/gpg-error.vers, src/gpg-error.def.in: Add gpgrt_set_nonblock,
gpgrt_get_nonblock, and gpgrt_poll.
* src/visibility.c (gpgrt_set_nonblock, gpgrt_get_nonblock): New.
(gpgrt_poll): New.
* tests/t-common.h (DIM): New.
* tests/t-poll.c: New.
* tests/Makefile.am (TESTS): Add t-poll.
(t_poll_LDADD): New.
--
The poll interface uses select(2) internally because that is more
portable than poll(2).
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'doc/errorref.txt')
-rw-r--r-- | doc/errorref.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/errorref.txt b/doc/errorref.txt index f9dbf59..a369fbf 100644 --- a/doc/errorref.txt +++ b/doc/errorref.txt @@ -750,7 +750,7 @@ GPG_ERR_BOGUS_STRING Bogus string GPG_ERR_FORBIDDEN Forbidden - The use of a features is not allowed due to insuffcient rights. + The use of a features is not allowed due to insufficient rights. Use by gpg-agent as an error codes for restricted commands. GPG_ERR_KEY_DISABLED Key disabled |