1gnutls_transport_set_global_errno(3)gnutlsgnutls_transport_set_global_errno(3)
2
3
4

NAME

6       gnutls_transport_set_global_errno - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       void gnutls_transport_set_global_errno(int err);
12

ARGUMENTS

14       int err     error value to store in global errno variable.
15

DESCRIPTION

17       Store  err  in  the  global  errno  variable.  Useful values for err is
18       EAGAIN and EINTR, other values are treated  will  be  treated  as  real
19       errors in the push/pull function.
20
21       This  function  is  useful  in  replacement  push/pull functions set by
22       gnutls_transport_set_push_function    and    gnutls_transport_set_pull‐
23       push_function  under  Windows,  where the replacement push/pull may not
24       have access to the same errno variable that is used  by  GnuTLS  (e.g.,
25       the  application  is  linked  to  msvcr71.dll  and  gnutls is linked to
26       msvcrt.dll).
27
28       Whether this function is thread safe or  not  depends  on  whether  the
29       global  variable  errno is thread safe, some system libraries make it a
30       thread-local variable.  When feasible, using the guaranteed thread-safe
31       gnutls_transport_set_errno() may be better.
32

REPORTING BUGS

34       Report bugs to <bug-gnutls@gnu.org>.
35
37       Copyright © 2006 Free Software Foundation.
38       Permission  is  granted  to make and distribute verbatim copies of this
39       manual provided the copyright notice and  this  permission  notice  are
40       preserved on all copies.
41

SEE ALSO

43       The  full  documentation  for gnutls is maintained as a Texinfo manual.
44       If the info and gnutls programs are properly installed  at  your  site,
45       the command
46
47              info gnutls
48
49       should give you access to the complete manual.
50
51
52
53gnutls                               1.6.3gnutls_transport_set_global_errno(3)
Impressum