2 * Copyright 2003-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
13 Kernel space storage for "errno", located in the thread structure
14 (user "errno" can't be changed from kernel internal POSIX calls)
19 Thread
*thread
= thread_get_current_thread();
21 return &thread
->kernel_errno
;