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:
Gregory Nutt
2019-06-03 13:06:58 -06:00
parent 25f42dd076
commit 84a57f8fa0
7 changed files with 46 additions and 24 deletions
+5 -4
View File
@@ -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
View File
@@ -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