/** * @defgroup errno Errno * @ingroup libc */ #ifndef _ERRNO_H #define _ERRNO_H #ifdef __cplusplus extern "C" { #endif #include #include #ifdef __XLT_OS__ /** * @ingroup errno * * @par Description: * The set_errno() function sets the error code. * * @attention * * * @retval #void None. * * @par Dependency: * * @see get_errno * @since Huawei LiteOS V100R001C00 */ void set_errno(int errcode); /** * @ingroup errno * * @par Description: * The get_errno() function gets the error code. * * @attention * * * @retval #int The get_errno() returns the error code. * * @par Dependency: * * @see set_errno * @since Huawei LiteOS V100R001C00 */ int get_errno(void); #endif #ifdef __GNUC__ __attribute__((const)) #endif int *__errno_location(void); #define errno (*__errno_location()) #ifdef _GNU_SOURCE extern char *program_invocation_short_name, *program_invocation_name; #endif #ifdef __cplusplus } #endif #endif