vfs: check userland buffers before reading them.
[haiku.git] / headers / posix / errno.h
blob045b24ec74ec8bc173a4e895d599cc7ee9271b5a
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
9 #ifdef __cplusplus
10 extern "C"
12 #endif
14 #include <Errors.h>
16 #define ENOERR 0
17 #define EOK ENOERR /* some code assumes EOK exists */
19 extern int *_errnop(void);
20 #define errno (*(_errnop()))
22 #ifdef __cplusplus
23 } /* "C" */
24 #endif
26 #endif /* _POSIX_ERRNO_H */