1 /*
2  * Copyright (c) 2015 Travis Geiselbrecht
3  *
4  * Use of this source code is governed by a MIT-style
5  * license that can be found in the LICENSE file or at
6  * https://opensource.org/licenses/MIT
7  */
8 
9 #include <errno.h>
10 #include <kernel/thread.h>
11 
__geterrno(void)12 int *__geterrno(void) {
13     return (int*)tls_get(TLS_ENTRY_ERRNO);
14 }
15 
16