_CVTERRNO()--Convert ILE errno to IBM PASE for i 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 IBM® i PASE program. See the IBM PASE for i topic collection for more information.

The _CVTERRNO() function converts an ILE errno value to a corresponding IBM PASE for i errno value.


Parameters

errno_ile
(Input) Specifies the ILE errno value to convert to a corresponding IBM PASE for i errno value. ILE and IBM PASE for i 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 IBM PASE for i equivalent of the input ILE errno value. If the input has no IBM PASE for i errno equivalent (for example, EAPAR is an ILE errno value with no IBM PASE for i equivalent), the input is returned unchanged.


Usage Notes

  1. 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

[ Back to top | IBM PASE for i APIs | APIs by category ]