haiku/headers/posix/errno.h
Ingo Weinhold 8a425955c5 The header is now compatible with R5's libroot.so.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1947 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-15 17:37:55 +00:00

26 lines
339 B
C

/*
* errno.h
*/
#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 */