Tizen 2.0 Release
[external/libgnutls26.git] / doc / manpages / gnutls_transport_set_global_errno.3
1 .\" DO NOT MODIFY THIS FILE!  It was generated by gdoc.
2 .TH "gnutls_transport_set_global_errno" 3 "2.12.6.1" "gnutls" "gnutls"
3 .SH NAME
4 gnutls_transport_set_global_errno \- API function
5 .SH SYNOPSIS
6 .B #include <gnutls/gnutls.h>
7 .sp
8 .BI "void gnutls_transport_set_global_errno(int " err ");"
9 .SH ARGUMENTS
10 .IP "int err" 12
11 error value to store in global errno variable.
12 .SH "DESCRIPTION"
13 Store \fIerr\fP in the global errno variable.  Useful values for \fIerr\fP is
14 EAGAIN and EINTR, other values are treated will be treated as real
15 errors in the push/pull function.
16
17 This function is useful in replacement push/pull functions set by
18 gnutls_transport_set_push_function and
19 gnutls_transport_set_pullpush_function under Windows, where the
20 replacement push/pull may not have access to the same \fIerrno\fP
21 variable that is used by GnuTLS (e.g., the application is linked to
22 msvcr71.dll and gnutls is linked to msvcrt.dll).
23
24 Whether this function is thread safe or not depends on whether the
25 global variable errno is thread safe, some system libraries make it
26 a thread\-local variable.  When feasible, using the guaranteed
27 thread\-safe \fBgnutls_transport_set_errno()\fP may be better.
28 .SH "REPORTING BUGS"
29 Report bugs to <bug-gnutls@gnu.org>.
30 GnuTLS home page: http://www.gnu.org/software/gnutls/
31 General help using GNU software: http://www.gnu.org/gethelp/
32 .SH COPYRIGHT
33 Copyright \(co 2008 Free Software Foundation.
34 .br
35 Copying and distribution of this file, with or without modification,
36 are permitted in any medium without royalty provided the copyright
37 notice and this notice are preserved.
38 .SH "SEE ALSO"
39 The full documentation for
40 .B gnutls
41 is maintained as a Texinfo manual.  If the
42 .B info
43 and
44 .B gnutls
45 programs are properly installed at your site, the command
46 .IP
47 .B info gnutls
48 .PP
49 should give you access to the complete manual.