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(NS)
and
get_Rx_cserrno(NS),
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(NS)
and
get_Rx_cserrno(NS)
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.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005