mirror of
https://github.com/apache/nuttx.git
synced 2026-06-12 22:24:12 +08:00
Fix several ZNeo compile issues. There are more. Pthreads: Fix a could of places where FAR was added when it is not appropriate. This matters to ZNeo which depends on definitions of NEAR and FAR points.
This commit is contained in:
@@ -41,12 +41,13 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#include <nuttx/wqueue.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdbool.h>
|
||||
#include <signal.h>
|
||||
|
||||
#include <nuttx/wqueue.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
@@ -281,7 +282,7 @@ int nxsig_kill(pid_t pid, int signo);
|
||||
* This is an internal OS interface. It is functionally equivalent to
|
||||
* sigwaitinfo() except that:
|
||||
*
|
||||
* - It is not a cancellaction point, and
|
||||
* - It is not a cancellation point, and
|
||||
* - It does not modify the errno value.
|
||||
*
|
||||
* Input Parameters:
|
||||
@@ -403,7 +404,7 @@ int nxsig_nanosleep(FAR const struct timespec *rqtp,
|
||||
* This is an internal OS interface. It is functionally equivalent to
|
||||
* the standard sleep() application interface except that:
|
||||
*
|
||||
* - It is not a cancellaction point, and
|
||||
* - It is not a cancellation point, and
|
||||
* - There is no check that the action of the signal is to invoke a
|
||||
* signal-catching function or to terminate the process.
|
||||
*
|
||||
@@ -437,7 +438,7 @@ unsigned int nxsig_sleep(unsigned int seconds);
|
||||
* This is an internal OS interface. It is functionally equivalent to
|
||||
* the standard nxsig_usleep() application interface except that:
|
||||
*
|
||||
* - It is not a cancellaction point, and
|
||||
* - It is not a cancellation point, and
|
||||
* - It does not modify the errno value.
|
||||
*
|
||||
* See the description of usleep() for additional information that is not
|
||||
|
||||
+2
-2
@@ -475,8 +475,8 @@ int pthread_attr_getstack(FAR pthread_attr_t *attr,
|
||||
|
||||
/* Get run-time stack address and size */
|
||||
|
||||
FAR void *pthread_get_stackaddr_np(FAR pthread_t thread);
|
||||
ssize_t pthread_get_stacksize_np(FAR pthread_t thread);
|
||||
FAR void *pthread_get_stackaddr_np(pthread_t thread);
|
||||
ssize_t pthread_get_stacksize_np(pthread_t thread);
|
||||
|
||||
/* To create a thread object and runnable thread, a routine must be specified
|
||||
* as the new thread's start routine. An argument may be passed to this
|
||||
|
||||
Reference in New Issue
Block a user