mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
committed by
Alan Carvalho de Assis
parent
eca7059785
commit
f8a809eb5b
+13
-11
@@ -49,33 +49,35 @@
|
||||
/* How can we access the errno variable? */
|
||||
|
||||
#ifdef CONFIG_BUILD_FLAT
|
||||
/* Flat build */
|
||||
/* Flat build */
|
||||
|
||||
# if defined(CONFIG_LIB_SYSCALL) && !defined(__KERNEL__)
|
||||
/* We still might be using system calls in user code. If so, then
|
||||
* user code will have no direct access to the errno variable.
|
||||
*/
|
||||
/* We still might be using system calls in user code. If so, then
|
||||
* user code will have no direct access to the errno variable.
|
||||
*/
|
||||
|
||||
# undef __DIRECT_ERRNO_ACCESS
|
||||
|
||||
# else
|
||||
/* Flat build with no system calls OR internal kernel logic... There
|
||||
* is direct access.
|
||||
*/
|
||||
/* Flat build with no system calls OR internal kernel logic... There
|
||||
* is direct access.
|
||||
*/
|
||||
|
||||
# define __DIRECT_ERRNO_ACCESS 1
|
||||
# endif
|
||||
|
||||
#else
|
||||
# if defined(__KERNEL__)
|
||||
/* Kernel portion of protected/kernel build. Kernel code has direct access */
|
||||
/* Kernel portion of protected/kernel build. Kernel code has direct
|
||||
* access
|
||||
*/
|
||||
|
||||
# define __DIRECT_ERRNO_ACCESS 1
|
||||
|
||||
# else
|
||||
/* User portion of protected/kernel build. Application code has only indirect
|
||||
* access
|
||||
*/
|
||||
/* User portion of protected/kernel build. Application code has only
|
||||
* indirect access
|
||||
*/
|
||||
|
||||
# undef __DIRECT_ERRNO_ACCESS
|
||||
# endif
|
||||
|
||||
Reference in New Issue
Block a user