mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
committed by
Alan Carvalho de Assis
parent
eca7059785
commit
f8a809eb5b
@@ -51,7 +51,9 @@
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* Configuration ************************************************************/
|
||||
|
||||
/* These interfaces are not available to kernel code */
|
||||
|
||||
#if !defined(CONFIG_BUILD_FLAT) && defined(__KERNEL__)
|
||||
@@ -75,6 +77,7 @@
|
||||
#endif
|
||||
|
||||
/* Standard Definitions *****************************************************/
|
||||
|
||||
/* aio_cancel return values
|
||||
*
|
||||
* AIO_ALLDONE - Indicates that none of the requested operations could
|
||||
|
||||
+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
|
||||
|
||||
@@ -436,7 +436,7 @@ int clock_systimespec(FAR struct timespec *ts);
|
||||
* Return load measurement data for the select PID.
|
||||
*
|
||||
* Input Parameters:
|
||||
* pid - The task ID of the thread of interest. pid == 0 is the IDLE thread.
|
||||
* pid - The task ID of the thread of interest. pid == 0 is IDLE thread.
|
||||
* cpuload - The location to return the CPU load
|
||||
*
|
||||
* Returned Value:
|
||||
|
||||
@@ -102,7 +102,7 @@ EXTERN const int g_builtin_count;
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
# define HAVE_GROUP_MEMBERS 1
|
||||
#endif
|
||||
|
||||
/* In any event, we don't need group members if support for pthreads is disabled */
|
||||
/* We don't need group members if support for pthreads is disabled */
|
||||
|
||||
#ifdef CONFIG_DISABLE_PTHREAD
|
||||
# undef HAVE_GROUP_MEMBERS
|
||||
|
||||
@@ -54,7 +54,9 @@
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* Configuration ************************************************************/
|
||||
|
||||
/* If CONFIG_BUILD_PROTECTED, then CONFIG_NUTTX_USERSPACE must be defined to
|
||||
* provide the address where the user-space header can be found in memory.
|
||||
*/
|
||||
@@ -73,6 +75,7 @@
|
||||
#endif
|
||||
|
||||
/* Helper Macros ************************************************************/
|
||||
|
||||
/* This macro is used to access the struct userpace_s header that can be
|
||||
* found at the beginning of the user-space blob.
|
||||
*/
|
||||
@@ -89,9 +92,9 @@
|
||||
|
||||
struct mm_heaps_s; /* Forward reference */
|
||||
|
||||
/* Every user-space blob starts with a header that provides information about
|
||||
* the blob. The form of that header is provided by struct userspace_s. An
|
||||
* instance of this structure is expected to reside at CONFIG_NUTTX_USERSPACE.
|
||||
/* Every user-space blob starts with a header that provides information about
|
||||
* the blob. The form of that header is provided by struct userspace_s. An
|
||||
* instance of this is expected to reside at CONFIG_NUTTX_USERSPACE.
|
||||
*/
|
||||
|
||||
struct userspace_s
|
||||
@@ -166,7 +169,8 @@ extern "C"
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __KERNEL__
|
||||
void task_startup(main_t entrypt, int argc, FAR char *argv[]) noreturn_function;
|
||||
void task_startup(main_t entrypt, int argc, FAR char *argv[])
|
||||
noreturn_function;
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
+3
-1
@@ -172,7 +172,9 @@ void setbuf(FAR FILE *stream, FAR char *buf);
|
||||
int setvbuf(FAR FILE *stream, FAR char *buffer, int mode, size_t size);
|
||||
int ungetc(int c, FAR FILE *stream);
|
||||
|
||||
/* Operations on the stdout stream, buffers, paths, and the whole printf-family */
|
||||
/* Operations on the stdout stream, buffers, paths,
|
||||
* and the whole printf-family
|
||||
*/
|
||||
|
||||
void perror(FAR const char *s);
|
||||
int printf(FAR const IPTR char *fmt, ...);
|
||||
|
||||
Reference in New Issue
Block a user