2 * Copyright 2011, Oliver Tappe, zooey@hirschkaefer.de.
3 * Distributed under the terms of the MIT License.
5 #ifndef _ERRNO_PRIVATE_H
6 #define _ERRNO_PRIVATE_H
13 #if defined(TRACE_ERRNO) && !defined(_KERNEL_MODE)
15 # define __set_errno(x) \
18 debug_printf("%s:%d - setting errno to %x\n", __FILE__, __LINE__, \
23 # define __set_errno(x) \
24 do { errno = (x); } while (0)
28 #endif // _ERRNO_PRIVATE_H