Files
m241Neelima/components/ip_net2-6.9/ipcom/include/ipcom_errno.h
T
2026-07-30 11:19:44 +05:30

142 lines
4.0 KiB
C

/*
******************************************************************************
* INTERPEAK HEADER FILE
*
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipcom_errno.h,v $ $Revision: 1.12 $
* $Source: /home/interpeak/CVSRoot/ipcom/include/ipcom_errno.h,v $
* $Author: tluo $ $Date: 2008-05-29 22:06:36 $
* $State: Exp $ $Locker: $
*
* INTERPEAK_COPYRIGHT_STRING
* Design and implementation by Lennart Bang <lob@interpeak.se>
******************************************************************************
*/
#ifndef IPCOM_ERRNO_H
#define IPCOM_ERRNO_H
/*
****************************************************************************
* 1 DESCRIPTION
****************************************************************************
*/
/*
****************************************************************************
* 2 CONFIGURATION
****************************************************************************
*/
/*
****************************************************************************
* 3 INCLUDE FILES
****************************************************************************
*/
#include "ipcom_cstyle.h"
#include "ipcom_perrno.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
****************************************************************************
* 4 DEFINES
****************************************************************************
*/
/*
*===========================================================================
* process specific 'errno' variable
*===========================================================================
*/
#define ipcom_errno (*ipcom_errno_get())
/*
*===========================================================================
* default errnos.
*===========================================================================
*/
#ifndef IP_ERRNO_ENOMEDIUM
#define IP_ERRNO_ENOMEDIUM 123 /* No medium found */
#endif
#ifndef IP_ERRNO_EMEDIUMTYPE
#define IP_ERRNO_EMEDIUMTYPE 124 /* Wrong medium type */
#endif
#ifndef IP_ERRNO_ENODATA
#define IP_ERRNO_ENODATA 200
#endif
#ifndef IP_ERRNO_ECOMM
#define IP_ERRNO_ECOMM 201
#endif
/*
*===========================================================================
* interpeak errno extensions
*===========================================================================
*/
#define IP_ERRNO_EINTERNAL 1000
#define IP_ERRNO_ENOSUPPORT 1001
#define IP_ERRNO_EINITFAILED 1002
#define IP_ERRNO_ECONFIG 1003
#define IP_ERRNO_ENOTOME 1004
#define IP_ERRNO_ENOTFOUND 1005
#define IP_ERRNO_EFIREWALL 1006
#define IP_ERRNO_ENAT 1007
#define IP_ERRNO_EIPSEC 1008
#define IP_ERRNO_EROHC 1009
/*
****************************************************************************
* 5 TYPES
****************************************************************************
*/
/*
****************************************************************************
* 6 FUNCTIONS
****************************************************************************
*/
/*
*===========================================================================
* ipcom_errno_get
*===========================================================================
* Description:
* Parameters:
* Returns:
*
*/
IP_PUBLIC int *
ipcom_errno_get(void);
/*
*===========================================================================
* ipcom_errno_set
*===========================================================================
* Description:
* Parameters:
* Returns: -1
*
*/
IP_PUBLIC int
ipcom_errno_set(int errcode);
#ifdef __cplusplus
}
#endif
#endif
/*
****************************************************************************
* END OF FILE
****************************************************************************
*/