nuttx/sched/pthread
Gregory Nutt 67ec3d7926 Remove CONFIG_CAN_PASS_STRUCT
This commit resolves issue #620:

Remove CONFIG_CAN_PASS_STRUCTS #620

The configuration option CONFIG_CAN_PASS_STRUCTS was added many years ago to support an old version of the SDCC compiler. That compiler is currently used only with the Z80 and Z180 targets. The limitation of that old compiler was that it could not pass structures or unions as either inputs or outputs. For example:

    #ifdef CONFIG_CAN_PASS_STRUCTS
    struct mallinfo mallinfo(void);
    #else
    int      mallinfo(FAR struct mallinfo *info);
    #endif

And even leads to violation of a few POSIX interfaces like:

    #ifdef CONFIG_CAN_PASS_STRUCTS
    int  sigqueue(int pid, int signo, union sigval value);
    #else
    int  sigqueue(int pid, int signo, FAR void *sival_ptr);
    #endif

This breaks the 1st INVIOLABLES rule:

Strict POSIX compliance
-----------------------

  o Strict conformance to the portable standard OS interface as defined at
    OpenGroup.org.
  o A deeply embedded system requires some special support.  Special
    support must be minimized.
  o The portable interface must never be compromised only for the sake of
    expediency.
  o Expediency or even improved performance are not justifications for
   violation of the strict POSIX interface

Also, it appears that the current SDCC compilers have resolve this issue and so, perhaps, this is no longer a problem: z88dk/z88dk#1132

NOTE:  This commit cannot pass the PR checks because it depends on matching changes to the apps/ directory.
2020-04-11 21:19:47 +01:00
..
Make.defs Squashed commit of the following: 2019-04-29 14:52:05 -06:00
pthread_cancel.c Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
pthread_cleanup.c Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
pthread_completejoin.c global change: repace sched_xfree() to kxmm_free() 2020-04-09 10:29:28 -06:00
pthread_condbroadcast.c tools/nxstyle.c: Fix logic that detects if an operator is correctly delimited with spaces. sched/: Various changes because sched/ C files were used as Guinea Pigs to test nstyle.c. 2019-03-01 10:50:02 -06:00
pthread_condsignal.c tools/nxstyle.c: Fix logic that detects if an operator is correctly delimited with spaces. sched/: Various changes because sched/ C files were used as Guinea Pigs to test nstyle.c. 2019-03-01 10:50:02 -06:00
pthread_condtimedwait.c Remove CONFIG_CAN_PASS_STRUCT 2020-04-11 21:19:47 +01:00
pthread_condwait.c sched/pthread_cond[timed]wait.c: return special mutex state. 2020-04-06 00:13:05 +01:00
pthread_create.c global change: fix tools/checkpatch.sh warnnings 2020-04-09 10:29:28 -06:00
pthread_detach.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
pthread_exit.c Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
pthread_findjoininfo.c Fix typos in comments and documentation. 2020-03-16 20:01:11 -06:00
pthread_get_stackaddr_np.c 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. 2019-06-03 13:06:58 -06:00
pthread_get_stacksize_np.c 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. 2019-06-03 13:06:58 -06:00
pthread_getaffinity.c Standardization of some function headers. 2018-03-13 09:52:27 -06:00
pthread_getschedparam.c Standardization of some function headers. 2018-03-13 09:52:27 -06:00
pthread_getspecific.c Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
pthread_initialize.c Replace #include <semaphore.h> to #include <nuttx/semaphore.h> 2020-02-01 08:27:30 -06:00
pthread_join.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
pthread_keycreate.c sched/pthread, Documentation: fix pthread_key_delete, pthread_self and pthread_yield documentation and some comments. 2019-10-17 11:04:17 -06:00
pthread_keydelete.c Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
pthread_kill.c Standardization of some function headers. 2018-03-13 09:52:27 -06:00
pthread_mutex.c Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
pthread_mutexconsistent.c Fix various issues noted by Coverity 2018-02-06 09:13:16 -06:00
pthread_mutexdestroy.c Replace #include <semaphore.h> to #include <nuttx/semaphore.h> 2020-02-01 08:27:30 -06:00
pthread_mutexinconsistent.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
pthread_mutexinit.c Standardization of some function headers. 2018-03-13 09:52:27 -06:00
pthread_mutextimedlock.c Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
pthread_mutextrylock.c Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
pthread_mutexunlock.c tools/nxstyle.c: Fix error in conditional logic that was preventing detection bad brace alignment. Add logic to handle alignment of braces in data initializators which following slightly different indentation rules. 2019-06-30 10:35:10 -06:00
pthread_release.c global change: repace sched_xfree() to kxmm_free() 2020-04-09 10:29:28 -06:00
pthread_setaffinity.c Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
pthread_setschedparam.c Standardization of some function headers. 2018-03-13 09:52:27 -06:00
pthread_setschedprio.c Make sure that labeling is used consistently in all function headers. 2018-02-01 10:00:02 -06:00
pthread_setspecific.c Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
pthread_sigmask.c Standardization of some function headers. 2018-03-13 09:52:27 -06:00
pthread.h included/pthreads, sched/pthreads, and Documetions: Updates after review of last PR. 2019-02-24 14:40:11 -06:00