errno: Rename get_errno_ptr to __errno

Inrease the compatiblity with the third party library(e.g. newlib)

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2020-05-03 20:02:48 +08:00
committed by patacongo
parent 5c748cea2a
commit a2f6dc9b7c
10 changed files with 27 additions and 36 deletions
+2 -2
View File
@@ -91,7 +91,7 @@
#ifdef __DIRECT_ERRNO_ACCESS
# define errno *get_errno_ptr()
# define errno *__errno()
# define set_errno(e) do { errno = (int)(e); } while (0)
# define get_errno() errno
@@ -406,7 +406,7 @@ extern "C"
* either as macros or via syscalls.
*/
FAR int *get_errno_ptr(void);
FAR int *__errno(void);
#ifndef __DIRECT_ERRNO_ACCESS
void set_errno(int errcode);