2007-04-27 16:17:22 +04:00
|
|
|
#ifndef _FSSH_ERRNO_H
|
|
|
|
#define _FSSH_ERRNO_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "fssh_errors.h"
|
|
|
|
|
|
|
|
#define FSSH_ENOERR 0
|
|
|
|
#define FSSH_EOK FSSH_ENOERR /* some code assumes EOK exists */
|
|
|
|
|
|
|
|
extern int *_fssh_errnop(void);
|
|
|
|
#define fssh_errno (*(_fssh_errnop()))
|
|
|
|
|
|
|
|
extern int fssh_get_errno(void);
|
|
|
|
extern void fssh_set_errno(int error);
|
|
|
|
|
2007-04-29 03:40:04 +04:00
|
|
|
extern int fssh_to_host_error(int error);
|
2007-04-27 16:17:22 +04:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* "C" */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _FSSH_ERRNO_H */
|