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>.     GnuTLS   home   page:
35       http://www.gnu.org/software/gnutls/ General help  using  GNU  software:
36       http://www.gnu.org/gethelp/
37
39       Copyright © 2008 Free Software Foundation.
40       Copying  and  distribution  of this file, with or without modification,
41       are permitted in any medium  without  royalty  provided  the  copyright
42       notice and this notice are preserved.
43

SEE ALSO

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