xref: /haiku/headers/posix/errno.h (revision 1deede7388b04dbeec5af85cae7164735ea9e70d)
1 /*
2  * Copyright 2002-2012 Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _POSIX_ERRNO_H
6 #define _POSIX_ERRNO_H
7 
8 
9 #ifdef __cplusplus
10 extern "C"
11 {
12 #endif
13 
14 #include <Errors.h>
15 
16 #define ENOERR          0
17 #define EOK 			ENOERR  /* some code assumes EOK exists */
18 
19 extern int *_errnop(void);
20 #define errno (*(_errnop()))
21 
22 #ifdef __cplusplus
23 } /* "C" */
24 #endif
25 
26 #endif /* _POSIX_ERRNO_H */
27