mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 15:28:58 +01:00
27 lines
432 B
C
27 lines
432 B
C
/*
|
|
* Copyright 2002-2012 Haiku, Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _POSIX_ERRNO_H
|
|
#define _POSIX_ERRNO_H
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#include <Errors.h>
|
|
|
|
#define ENOERR 0
|
|
#define EOK ENOERR /* some code assumes EOK exists */
|
|
|
|
extern int *_errnop(void);
|
|
#define errno (*(_errnop()))
|
|
|
|
#ifdef __cplusplus
|
|
} /* "C" */
|
|
#endif
|
|
|
|
#endif /* _POSIX_ERRNO_H */
|