2002-07-09 16:24:59 +04:00
|
|
|
/*
|
2012-07-19 22:11:40 +04:00
|
|
|
* Copyright 2002-2012 Haiku, Inc. All Rights Reserved.
|
2010-11-04 00:46:47 +03:00
|
|
|
* Distributed under the terms of the MIT License.
|
2002-07-09 16:24:59 +04:00
|
|
|
*/
|
|
|
|
#ifndef _POSIX_ERRNO_H
|
|
|
|
#define _POSIX_ERRNO_H
|
|
|
|
|
2010-11-04 00:46:47 +03:00
|
|
|
|
2002-07-09 16:24:59 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
2012-07-19 22:11:40 +04:00
|
|
|
#endif
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2002-07-12 18:57:37 +04:00
|
|
|
#include <Errors.h>
|
|
|
|
|
|
|
|
#define ENOERR 0
|
|
|
|
#define EOK ENOERR /* some code assumes EOK exists */
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2002-11-15 20:37:55 +03:00
|
|
|
extern int *_errnop(void);
|
|
|
|
#define errno (*(_errnop()))
|
2002-07-09 16:24:59 +04:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* "C" */
|
2012-07-19 22:11:40 +04:00
|
|
|
#endif
|
2002-07-09 16:24:59 +04:00
|
|
|
|
|
|
|
#endif /* _POSIX_ERRNO_H */
|