1#ifndef _FSSH_ERRNO_H 2#define _FSSH_ERRNO_H 3 4#ifdef __cplusplus 5extern "C" 6{ 7#endif 8 9#include "fssh_errors.h" 10 11#define FSSH_ENOERR 0 12#define FSSH_EOK FSSH_ENOERR /* some code assumes EOK exists */ 13 14extern int *_fssh_errnop(void); 15#define fssh_errno (*(_fssh_errnop())) 16 17extern int fssh_get_errno(void); 18extern void fssh_set_errno(int error); 19 20extern int fssh_to_host_error(int error); 21 22#ifdef __cplusplus 23} /* "C" */ 24#endif 25 26#endif /* _FSSH_ERRNO_H */ 27