Error variables
REXEC supports two error variables,
Rx_errno
and
Rx_cserrno.
In case of an error in REXEC itself, the reason for the error may be
determined by examining the value of
Rx_errno.
In case of an error in the connection procedure, the reason for the failure
of the Connection Server may be determined by examining the value of
Rx_cserrno.
NOTE:
In applications linked with the Threads Library, distinct instances of
Rx_errno
and
Rx_cserrno
will be supported for each thread.
The values of
Rx_errno
and
Rx_cserrno
for the current thread will be returned by the new functions
get_Rx_errno(3N)
and
get_Rx_cserrno(3N),
respectively.
You may set the values of
Rx_errno
and
Rx_cserrno
by calling the functions
set_Rx_errno
and
set_Rx_cserrno,
respectively,
as described on the
get_Rx_errno(3N)
and
get_Rx_cserrno(3N)
manual pages, respectively.
(Setting library error variables is not recommended.)
The symbols
Rx_errno
and
Rx_cserrno
will continue to be available in read-only form, but will generate
compile-time errors if you try to assign them values directly.
See
``Multithreaded network programming''
for more information about using Remote Execution
with the Threads Library.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004