mirror of
https://review.haiku-os.org/haiku
synced 2025-01-21 05:53:46 +01:00
26 lines
426 B
C
26 lines
426 B
C
|
#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);
|
||
|
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
} /* "C" */
|
||
|
#endif
|
||
|
|
||
|
#endif /* _FSSH_ERRNO_H */
|