_CVTERRNO()--Convert ILE errno to i5/OS PASE errno
Syntax
#include <as400_protos.h>
int _CVTERRNO(int errno_ile);
Default Public Authority: *USE
Library: Standard C Library (libc.a)
Threadsafe: Yes
Note: This function can only be used in an i5/OS PASE
program. See i5/OS PASE for more
information.
The _CVTERRNO() function converts an ILE errno value to a
corresponding i5/OS PASE errno value.
Parameters
- errno_ile
- (Input) Specifies the ILE errno value to convert to a corresponding i5/OS
PASE errno value. ILE and i5/OS PASE errno values correspond if they have the
same name (for example, EFAULT) in a system-provided header file.
Authorities
_CVTERRNO requires no authority.
Return Value
_CVTERRNO returns the i5/OS PASE equivalent of the input
ILE errno value. If the input has no i5/OS PASE errno equivalent (for example,
EAPAR is an ILE errno value with no i5/OS PASE equivalent), the input is
returned unchanged.
Usage Notes
- The errno value set by an ILE runtime function must be determined by code
running in the same thread and activation group that called the runtime
function because ILE runtime sometimes maintains a separate errno variable for
each activation group.
Related Information
API introduced: V5R1