nuttx/libs/libc/stdlib
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
..
Kconfig libs/libc: Remove support for CONFIG_FS_WRITABLE 2020-03-22 08:24:07 -05:00
lib_abort.c drivers/usbhost/usbhost_composite.c: The cfgdesc pointer was initialized after the buffer had been advanced, so it was not pointing where it should. The totallen operations at the end of the function ended up overwriting memory belonging to the first copied interface descriptor. 2019-06-22 07:27:15 -06:00
lib_abs.c
lib_bsearch.c
lib_checkbase.c
lib_div.c Remove CONFIG_CAN_PASS_STRUCT 2020-04-11 21:19:47 +01:00
lib_itoa.c
lib_labs.c
lib_ldiv.c Remove CONFIG_CAN_PASS_STRUCT 2020-04-11 21:19:47 +01:00
lib_llabs.c
lib_lldiv.c Remove CONFIG_CAN_PASS_STRUCT 2020-04-11 21:19:47 +01:00
lib_mbtowc.c
lib_mkstemp.c Run all .c and .h files in previous commits through nxstyle. 2020-03-22 08:24:07 -05:00
lib_mktemp.c libs/libc: Remove support for CONFIG_FS_WRITABLE 2020-03-22 08:24:07 -05:00
lib_ptsname.c
lib_ptsnamer.c
lib_qsort.c
lib_rand.c
lib_srand.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -06:00
lib_strtod.c
lib_strtof.c
lib_strtol.c Squashed commit of the following: 2019-02-14 07:03:02 -06:00
lib_strtold.c
lib_strtoll.c Squashed commit of the following: 2019-02-14 07:03:02 -06:00
lib_strtoul.c Minor fixes to some spacing. 2019-02-14 15:57:15 -06:00
lib_strtoull.c Minor fixes to some spacing. 2019-02-14 15:57:15 -06:00
lib_unlockpt.c
lib_wctomb.c
Make.defs libs/libc: Remove support for CONFIG_FS_WRITABLE 2020-03-22 08:24:07 -05:00