nuttx/sched/signal
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-05-21 18:57:54 -06:00
sig_action.c sched/signal: Wrap long lines to make nxstyle happy 2020-03-10 11:13:42 +01:00
sig_allocpendingsigaction.c Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
sig_cleanup.c sched/signal: Wrap long lines to make nxstyle happy 2020-03-10 11:13:42 +01:00
sig_default.c Fix typos in comments and documentation. 2020-03-16 20:01:11 -06:00
sig_deliver.c Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
sig_dispatch.c Don't actually send a signal with signo 0 2020-03-09 07:56:11 -06:00
sig_findaction.c Run codespell -w against all files 2020-02-22 14:45:07 -06:00
sig_initialize.c sched/signal: Wrap long lines to make nxstyle happy 2020-03-10 11:13:42 +01:00
sig_kill.c mm/umm_heap: sbrk() is only available in the KERNEL build. 2019-02-04 10:32:31 -06:00
sig_lowest.c This change renames all internal, private NuttX signal-related functions to use the prefix nxsig_ so that they cannot be confused with application interfaces that begin, primarily, with sig_ 2017-10-05 13:25:25 -06:00
sig_nanosleep.c sched/signal: Wrap long lines to make nxstyle happy 2020-03-10 11:13:42 +01:00
sig_notification.c Remove CONFIG_CAN_PASS_STRUCT 2020-04-11 21:19:47 +01:00
sig_pause.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
sig_pending.c Standardization of some function headers. 2018-03-13 09:52:27 -06:00
sig_ppoll.c Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
sig_procmask.c Standardization of some function headers. 2018-03-13 09:52:27 -06:00
sig_pselect.c Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
sig_queue.c Remove CONFIG_CAN_PASS_STRUCT 2020-04-11 21:19:47 +01:00
sig_releasependingsigaction.c global change: repace sched_xfree() to kxmm_free() 2020-04-09 10:29:28 -06:00
sig_releasependingsignal.c global change: repace sched_xfree() to kxmm_free() 2020-04-09 10:29:28 -06:00
sig_removependingsignal.c sched/signal: Wrap long lines to make nxstyle happy 2020-03-10 11:13:42 +01:00
sig_sleep.c Fix minor typo / copy-paste. 'cancellaction point'->'cancellation point' 2019-08-23 11:57:35 -06:00
sig_suspend.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
sig_timedwait.c Remove type casting to wdentry_t (sched/) 2020-04-07 06:23:15 -06:00
sig_unmaskpendingsignal.c Re-implements reverted commit 344f7bc9f6 in a way that should not have the undesired side-effect. include/nuttx/sched.h: Add a bit to the TCB flags to indicat the thread is a user thread in a syscall. sched/nuttx/nxsig_dispatch.c: Delay dispatching to signal handlers if within a system call. In all syscall implementations: Process delayed signal handling when exiting system call. 2019-11-28 12:47:36 -06:00
sig_usleep.c Fix minor typo / copy-paste. 'cancellaction point'->'cancellation point' 2019-08-23 11:57:35 -06:00
sig_waitinfo.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
signal.h sched/signal and related changes to other OS subsystems. 2019-01-27 09:28:59 -06:00