diff options
author | Mattias Andrée <maandree@kth.se> | 2019-10-22 18:59:27 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2019-10-22 18:59:27 +0200 |
commit | bf4020471356938b9181a33984f511ffdd7ff25b (patch) | |
tree | 7f9a9abd1ae51318cd435f0ed7471be5f33b478c /libcoopgamma_set_nonblocking.3 | |
parent | List radharc's priority (diff) | |
download | libcoopgamma-bf4020471356938b9181a33984f511ffdd7ff25b.tar.gz libcoopgamma-bf4020471356938b9181a33984f511ffdd7ff25b.tar.bz2 libcoopgamma-bf4020471356938b9181a33984f511ffdd7ff25b.tar.xz |
Change license, change style, clean up, flat file hier, clean valgrind output in test
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libcoopgamma_set_nonblocking.3')
-rw-r--r-- | libcoopgamma_set_nonblocking.3 | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/libcoopgamma_set_nonblocking.3 b/libcoopgamma_set_nonblocking.3 new file mode 100644 index 0000000..7e6ceb6 --- /dev/null +++ b/libcoopgamma_set_nonblocking.3 @@ -0,0 +1,49 @@ +.TH LIBCOOPGAMMA_SET_NONBLOCKING 3 LIBCOOPGAMMA +.SH "NAME" +libcoopgamma_set_nonblocking - Switch to or from nonblocking communication +.SH "SYNOPSIS" +.nf +#include <libcoopgamma.h> + +int libcoopgamma_set_nonblocking(libcoopgamma_context_t *restrict \fIctx\fP, int \fInonblocking\fP); +.fi +.P +Link with +.IR -lcoopgamma . +.SH "DESCRIPTION" +The +.BR libcoopgamma_set_nonblocking () +function sets the communication with the server for +the connection of +.I ctx +to be nonblocking if +.I nonblocking +is nonzero, +and to be block otherwise. +.I ctx +must already be connected to the server, +which is achieved by calling the +.BR libcoopgamma_connect (3) +functon. +.SH "RETURN VALUES" +Upon successful completion, the +.BR libcoopgamma_set_nonblocking () +function returns 0. On error, -1 is returned and +.I errno +is set appropriately. +.SH "ERRORS" +The +.BR libcoopgamma_connect () +function may fail for any reason specified for +.BR fcntl (3) +with +.I F_GETFL +or +.I F_SETFL +as the second argument. +.SH "SEE ALSO" +.BR libcoopgamma_connect (3), +.BR libcoopgamma_get_crtcs_send (3), +.BR libcoopgamma_get_gamma_info_send (3), +.BR libcoopgamma_get_gamma_send (3), +.BR libcoopgamma_set_gamma_send (3) |